To get only the SVG code, skipping the file download step

AndeanMath shared this question 2 years ago
Answered

I would like to get the SVG code of the active view in a JavaScript variable (or GeoGebra text).


How can I get only the SVG code of the active view, skipping the file download step?

Comments (3)

photo
2

var svg = ggbApplet.exportSVG()

photo
1

Thanks, Michael. However, this command launches the download step (either in GG6, or by embedding the applet in the HTML code). Is it possible to skip the file download step?

photo
1

Some weeks ago, I tried with this offline method (Offline and Self-Hosted Solution): the file download step was skipped. However, I would like to use the applets with an online approach.

photo
© 2023 International GeoGebra Institute