1
0
Fork 0
freesewing/markdown/dev/reference/api/svg/defs/en.md
2022-10-01 23:12:26 +02:00

549 B

title
Svg.defs

The Svg.defs property holds a string that will be rendered as the defs section of the SVG document.

Signature

<defs>
  /* svg.defs will be inserted */
</defs>

Notes

The defs attribute is where plugins will add additional snippets.

When adding your own defs, it's important not to overwrite this property, but rather add your own.

In other words, do this:

svg.defs += myDefs

and don't do this:

svg.defs = myDefs