Shape toSvg method
How to use the toSvg method of a shape util to determine how your custom shapes look when copied/exported as an image.
The "export as SVG/PNG" and "copy as SVG/PNG" actions use the toSvg
or toBackgroundSvg
methods of a shape util. If a shape does not have a toSvg
or toBackgroundSvg
method defined, it will default to an empty box.