1 | <?php |
||
26 | class SVG extends Base implements ContainerInterface, ElementFactoryInterface, SVGOutputInterface |
||
27 | { |
||
28 | use ElementTrait, ChildTrait; |
||
29 | |||
30 | /** |
||
31 | * @var XMLDocumentInterface |
||
32 | */ |
||
33 | private $svg; |
||
34 | |||
35 | /** |
||
36 | * @var OutputInterface |
||
37 | */ |
||
38 | private $outputImpl; |
||
39 | |||
40 | 149 | public function __construct($width = 640, $height = 480, XMLDocumentInterface $dom = null) |
|
62 | |||
63 | /** |
||
64 | * @param array $assoc |
||
65 | * |
||
66 | * @return mixed |
||
67 | */ |
||
68 | 149 | public function apply(array $assoc) |
|
74 | |||
75 | 3 | public function getRoot() |
|
79 | |||
80 | 3 | public function getName() |
|
84 | |||
85 | /** |
||
86 | * @return DOMElement |
||
87 | */ |
||
88 | 149 | public function getElement() |
|
92 | |||
93 | 149 | public function createElement($name, $value = null, $attributes = []) |
|
101 | |||
102 | 1 | public function __toString() |
|
106 | |||
107 | 62 | public function draw() |
|
111 | |||
112 | /** |
||
113 | * @inheritdoc |
||
114 | */ |
||
115 | 1 | public function copy(array $apply = [], array $ignore = [], ContainerInterface $parent = null) |
|
119 | |||
120 | /** |
||
121 | * Returns escaped svg as plain text. |
||
122 | * |
||
123 | * @return string |
||
124 | */ |
||
125 | 1 | public function asString() |
|
129 | |||
130 | /** |
||
131 | * @inheritdoc |
||
132 | */ |
||
133 | 1 | public function asSVG() |
|
137 | |||
138 | /** |
||
139 | * @inheritdoc |
||
140 | */ |
||
141 | 2 | public function asSVGZ($sendHeader = false) |
|
149 | |||
150 | /** |
||
151 | * @inheritdoc |
||
152 | */ |
||
153 | 1 | public function asDataUriBase64() |
|
160 | |||
161 | /** |
||
162 | * @inheritdoc |
||
163 | */ |
||
164 | 2 | public function asFile($name, $prettyPrint = false, $override = false) |
|
172 | |||
173 | /** |
||
174 | * @inheritdoc |
||
175 | */ |
||
176 | public function asImageFile($name, $format = IOFormat::PNG, $override = false) |
||
185 | |||
186 | /** |
||
187 | * @inheritdoc |
||
188 | */ |
||
189 | public function asImage($format = IOFormat::PNG, $sendHeader = false) |
||
197 | |||
198 | public static function fromString($svgString) |
||
202 | } |
||
203 |
This check looks for function calls that miss required arguments.