Methods
(static) load(p5, svgNode, settings)
- Source:
Extract path data from the provided SVG node and produce a set of Path objects with Nodes
Parameters:
Name | Type | Description |
---|---|---|
p5 |
object | Reference to the global instance of p5.js |
svgNode |
node | SVG DOM node to load data from |
settings |
object | Object containing local override Settings to merge with Defaults |
(static) loadFromObject(p5, id, settings) → {array}
- Source:
Kick of loading of an SVG document embedded within a DOM element with the provided ID
Parameters:
Name | Type | Description |
---|---|---|
p5 |
object | Reference to the global instance of p5.js |
id |
string | ID attribute of the DOM node to load SVG data from |
settings |
object | Object containing local override Settings to merge with Defaults |
Returns:
See `load()`
- Type
- array