1
0
Fork 0
freesewing/markdown/dev/reference/api/svg/script/en.md
2021-10-17 17:34:55 +02:00

522 B


title: script

A string that will be rendered as the script section of the SVG document.

We don't use this ourselves, but it's there if you need it.

<script type="text/javascript">
  /* svg.script will be inserted */
</scripts>
Add, but don't overwrite

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

In other words, do this:

svg.script += myScript;

and don't do this:

svg.script = myScript;