How to export svg as a image in Gojs

Also, read How to save SVG diagram? - #2 by simon