522 B
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;