0.0.12 • Published 2 years ago

@shanzhai/convert-svg-document-to-def-step v0.0.12

Weekly downloads
1
License
MIT
Repository
github
Last release
2 years ago

@shanzhai/convert-svg-document-to-def-step Continuous Integration License FOSSA Status Renovate enabled npm npm type definitions

A Shanzhai step which converts a SVG document to a def to be embedded in another SVG document.

Usage

This step is unlikely to have any use other than supplying input to CollectSvgDefsStep.

Should a trigger's event handler return the following:

new ConvertSvgDocumentToDefStep(
  new ConstantInput(`<svg><rect width="100" height="220" /></svg>`),
  new OutputOfConvertedDef()
);

It will write something similar to the following to its output:

<rect id="" width="100" height="220" />

If there are multiple elements, a wrapping <g> will be added.

Dependencies

This package has the following runtime dependencies:

NameVersion
svgo2.8.0

Peer Dependencies

This package has no runtime peer dependencies (it does not expect any other packages to be installed alongside itself).

License

FOSSA Status

0.0.10

2 years ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

4 years ago

0.0.1

4 years ago

0.0.0

4 years ago