How do I use the useComputedStyles option and load with a spinner, etc. when using format.toSVG? #2882
Replies: 2 comments 2 replies
-
Correct.
I am not sure I understand what do you mean by "loading a document as a SVG". How is it related to JointJS? |
Beta Was this translation helpful? Give feedback.
-
Using setTimeout is the simplest way. Thank you. |
Beta Was this translation helpful? Give feedback.
-
Introduction
When using format.toSVG, the useComputedStyles option states in the document that this requires a lot of computations and it might significantly affect the export time.
When I actually used the true option, it was incredibly slow.
When using the false option, if there is no separate external style, is there no change in the svg image displayed on the screen?
And when loading a document as svg, I want to show loading with a spinner, etc., but I want to show the spinner while loading and show a lightbox when it is complete. How should I write the code in this case?
Steps to reproduce
No response
Restrictions & Constraints
No response
Does your question relate to JointJS or JointJS+. Select both if applicable.
JointJS, JointJS+
Beta Was this translation helpful? Give feedback.
All reactions