2.6 KiB
2.6 KiB
freesewing
a library for made-to-measure sewing patterns
plugin-svgattr
A freesewing plugin to add attributes to the SVG tag of a rendered pattern.
Typically used to add CSS classes or an ID to the SVG to allow styling.
Links
- 📕 Documentation: developer.freesewing.org/plugins/#svgattr
- 📂 Source code: gitub.com/freesewing/plugin-svgattr
- 📦 NPM Package: @freesewing/plugin-svgattr
- 💻 Website: freesewing.org
- 💬 Chat: Gitter
- 🐦 Twitter: @freesewing_org
- 📷 Instagram: @freesewing_org
Install
npm install @freesewing/plugin-svgattr
Usage
import brian from '@freesewing/brian'
import svgattr from '@freesewing/plugin-svgattr'
let pattern = new brian
.with(svgattr, {id: "someid", class: "class1 another-class"});
More details are are available at developer.freesewing.org/plugins