1
0
Fork 0
freesewing/packages/plugin-svgattr
2019-04-19 08:58:45 +02:00
..
src tada: Initial commit 2019-04-19 08:22:50 +02:00
.babelrc tada: Initial commit 2019-04-19 08:22:50 +02:00
.gitignore tada: Initial commit 2019-04-19 08:22:50 +02:00
.npmignore tada: Initial commit 2019-04-19 08:22:50 +02:00
LICENSE tada: Initial commit 2019-04-19 08:22:50 +02:00
package-lock.json bookmark: v0.2.0 2019-04-19 08:22:50 +02:00
package.json chore(release): publish 2019-04-19 08:58:45 +02:00
README.md tada: Initial commit 2019-04-19 08:22:50 +02:00
rollup.config.js wrench: Updated rollup config 2019-04-19 08:22:50 +02:00

Freesewing logo

 freesewing
a library for made-to-measure sewing patterns

Travis build Version License Code coverage DeepScan grade Chat on Gitter Become a Patron

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.

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