1
0
Fork 0
freesewing/markdown/dev/reference/plugins/svgattr/en.md
2022-10-02 00:27:09 +02:00

695 B

title
plugin-svgattr

Published as @freesewing/plugin-svgattr, this plugin takes an object of key-value pairs and adds them ass attributes to your SVG document on render.

Installation

npm install @freesewing/plugin-svgattr

Usage

Either add it as a part plugins in your design, or add it to a pattern instance with Pattern.use().

Notes

You should pass a second argument which holds key-value pairs of the attributes you want to add to the SVG tag.

The svgattr plugin is part of our plugin-bundle