svg
As the tin suggests, the 'svg' component makes an SVG. The SVG is editable and made new.
var svg = new PrimaryContext(undefined, '#container')
window.pipes = svg
svg.start()
Target a container or an svg name:
var svg = new PrimaryContext('svd_id')
SVG First, then fallback to the container:
var svg = new PrimaryContext('svd_id', "#svg_pawn_div")
For free we have a rendering layer, iterating objects and discovering a render() function:
svg.addItem({
render() {
...
}
})
Meta Data
| filepath_exists | True |
| path | svg |
| filepath | svg.js |
| clean_files | () |