API / geotoolkit / svg / SVGParser / SVGParser
A class that parses svg documents into carnac shapes
Constructors
Constructors
• new SVGParser(xmlDocument?, dpi?)
Create SVGParser
| Name | Type | Description |
|---|---|---|
Optional xmlDocument | XmlDocument | Input SVG document to parse |
Optional dpi | number | Screen resolution |
Methods
▸ getClassName(): string
string
▸ getSvgMetaInfo(doc?): EmptyRecord | MetaInfo
Returns information stored in svg tag of the document
| Name | Type | Description |
|---|---|---|
Optional doc | string | Document | The document to parse |
Object with meta information from the svg tag
▸ parse(shapesGroup, doc?): ParseResult
Parses the given XML document into given group
| Name | Type | Description |
|---|---|---|
shapesGroup | Group<Node> | A group to fill with parsed elements |
Optional doc | string | Document | The document to parse |
▸ scalablePatterns(): boolean
Returns pattern scalability flag
boolean
▸ setScalablePatterns(scale): SVGParser
Sets pattern scalability flag
| Name | Type | Description |
|---|---|---|
scale | boolean | Pattern scalability flag |
▸ Static getClassName(): string
string