Tiny utility functions for SVG DOM mainly in Buckle Script / Reason.
- Simple, easy.
- No dirty DOM. No append some extra attributes.
SVG attachment depents on types of bs-webapi
.
npm install bs-svg-attachment bs-webapi
Then add them to bs-dependencies in your bsconfig.json.
{
"name": "some",
"source": "src",
"bs-dependencies": [
"bs-svg-attachment",
"bs-webapi"
]
}
- Svg Functions for one element
- SvgSet Functions for element set