TYPE
TYPE
SVG Class
addDef(\SVGCreator\Element $def) : \SVGCreator\Element
Adds an def element to the element
\SVGCreator\Element | $def |
attr(mixed $attrKey, string $attrValue) : mixed
Set's an attribute for the current element
mixed | $attrKey | The name of the attribute |
string | $attrValue | The value of the attribute |
Could be an \SVGCreator\Element or could be the value of the attribute, this means that the second parameter wasn't passed
append(mixed $element) : \SVGCreator\Element
Appends an element to the current element
mixed | $element | The element to append to this element could be an object \SVGCreator\Element or a string of the type to create |
The element append
text(string $text) : \SVGCreator\Element
Set's or returns the text of the element
string | $text | The text to add to the element |
setDefs( $defs) : \SVGCreator\Element
Set's the definition array
$defs |
factoryElement(string $type) : \SVGCreator\Element
Factory for building the several elements available
string | $type | The type of element to build |