Svg\Document
Synopsis
class Document
extends AbstractTag
{
- // members
- protected $filename;
- public boolean $inDefs = false;
- protected $x;
- protected $y;
- protected $width;
- protected $height;
- protected $subPathInit;
- protected $pathBBox;
- protected $viewBox;
- protected $parser;
- protected SurfaceInterface $surface;
- protected array $stack = ;
- protected array $defs = ;
- protected array $styleSheets = ;
- // Inherited members from AbstractTag
- protected Document $document;
- public $tagName;
- protected Style $style;
- protected array $attributes;
- protected boolean $hasShape;
- protected array $children;
- // methods
- public void loadFile()
- protected void initParser()
- public void __construct()
- public SurfaceInterface getSurface()
- public void getStack()
- public void getWidth()
- public void getHeight()
- public void getDimensions()
- public void handleSizeAttributes()
- public void getDocument()
- public void appendStyleSheet()
- public array getStyleSheets()
- protected void before()
- public void render()
- protected void svgOffset()
- public void getDef()
- private void _tagStart()
- public void _charData()
- public void _tagEnd()
- // Inherited methods from AbstractTag
- public void __construct()
- public void getDocument()
- public Group|null getParentGroup()
- public void handle()
- public void handleEnd()
- protected void before()
- protected void start()
- protected void end()
- protected void after()
- public void getAttributes()
- protected void setStyle()
- public Style getStyle()
- protected Style makeStyle()
- protected void applyTransform()
Hierarchy
Extends
Members
protected
- $attributes
- $children — array
- $defs — array
- $document — Svg\Document
- $filename
- $hasShape
- $height
- $parser — resource
- $pathBBox
- $stack — array
- $style — Svg\Style
- $styleSheets — array
- $subPathInit
- $surface — Svg\Surface\SurfaceInterface
- $viewBox
- $width
- $x
- $y
public
- $inDefs
- $tagName
Methods
private
protected
public
- __construct()
- _charData()
- _tagEnd()
- appendStyleSheet() — Append a style sheet
- getDef()
- getDimensions()
- getDocument()
- getHeight()
- getStack()
- getStyleSheets() — Get the document style sheets
- getSurface()
- getWidth()
- handleSizeAttributes()
- loadFile()
- render()
Inherited from Svg\Tag\AbstractTag
protected
- after()
- applyTransform()
- before()
- end()
- makeStyle() — Make a style object from the tag and its attributes
- setStyle()
- start()