1
0
Fork 0
freesewing/packages/plugin-svgattr/README.md
2019-04-19 08:22:50 +02:00

2.6 KiB

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