PluginProbe
Yatra – Travel Booking & Tour Operator Software / 3.0.2.7
Yatra – Travel Booking & Tour Operator Software v3.0.2.7
3.0.16 3.0.15 3.0.14 3.0.14.1 3.0.14.2 3.0.12 3.0.13 3.0.11 3.0.10 3.0.9 3.0.8 3.0.7 3.0.6 3.0.5 3.0.5.1 3.0.4 3.0.3 3.0.2.9 3.0.2.7 3.0.2.8 3.0.2.6 trunk 1.0.0 2.0.0 2.0.1 All 84 releases
yatra / vendor / phenx / php-svg-lib / src / Svg / Surface / SurfaceInterface.php

SurfaceInterface.php in Yatra – Travel Booking & Tour Operator Software 3.0.2.7, at vendor/phenx/php-svg-lib/src/Svg/Surface/SurfaceInterface.php

91 lines 2.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package php-svg-lib
4 * @link http://github.com/PhenX/php-svg-lib
5 * @author Fabien Ménager <[email protected]>
6 * @license GNU LGPLv3+ http://www.gnu.org/copyleft/lesser.html
7 */
8
9 namespace Svg\Surface;
10
11 use Svg\Style;
12
13 /**
14 * Interface Surface, like CanvasRenderingContext2D
15 *
16 * @package Svg
17 */
18 interface SurfaceInterface
19 {
20 public function save();
21
22 public function restore();
23
24 // transformations (default transform is the identity matrix)
25 public function scale($x, $y);
26
27 public function rotate($angle);
28
29 public function translate($x, $y);
30
31 public function transform($a, $b, $c, $d, $e, $f);
32
33 // path ends
34 public function beginPath();
35
36 public function closePath();
37
38 public function fill();
39
40 public function stroke(bool $close = false);
41
42 public function endPath();
43
44 public function fillStroke(bool $close = false);
45
46 public function clip();
47
48 // text (see also the CanvasDrawingStyles interface)
49 public function fillText($text, $x, $y, $maxWidth = null);
50
51 public function strokeText($text, $x, $y, $maxWidth = null);
52
53 public function measureText($text);
54
55 // drawing images
56 public function drawImage($image, $sx, $sy, $sw = null, $sh = null, $dx = null, $dy = null, $dw = null, $dh = null);
57
58 // paths
59 public function lineTo($x, $y);
60
61 public function moveTo($x, $y);
62
63 public function quadraticCurveTo($cpx, $cpy, $x, $y);
64
65 public function bezierCurveTo($cp1x, $cp1y, $cp2x, $cp2y, $x, $y);
66
67 public function arcTo($x1, $y1, $x2, $y2, $radius);
68
69 public function circle($x, $y, $radius);
70
71 public function arc($x, $y, $radius, $startAngle, $endAngle, $anticlockwise = false);
72
73 public function ellipse($x, $y, $radiusX, $radiusY, $rotation, $startAngle, $endAngle, $anticlockwise);
74
75 // Rectangle
76 public function rect($x, $y, $w, $h, $rx = 0, $ry = 0);
77
78 public function fillRect($x, $y, $w, $h);
79
80 public function strokeRect($x, $y, $w, $h);
81
82 public function setStyle(Style $style);
83
84 /**
85 * @return Style
86 */
87 public function getStyle();
88
89 public function setFont($family, $style, $weight);
90 }
91