paper layers code breaks format.toSvg() #2952
IntroductionI've been experimenting with the Paper layers, and found it extremely useful. But I tripped over this - if I try to export to SVG or PNG using format.toSvg()...etc, I get a
In my example app, at the top of app.component.ts, there is a line:
If you comment out the TestShapeContainer line, and uncomment any of the lines above it, the SaveToSVG will work. The two example "container" components that use the layer code fail. The SaveToSvg() is a direct copy of that sample, and has been working to date, both in the test app, and in my real code. Example app: Steps to reproduceNo response Restrictions & ConstraintsNo response Does your question relate to JointJS or JointJS+. Select both if applicable.JointJS+ |
Replies: 2 comments 1 reply
|
|
Ahh, that did the trick, thanks. Is there an official/correct position in the layer list for GRID? Perhaps in the final version the paper.render() function can just accept the additional/custom layers, instead of the complete list? You might want to fix the example you pointed me to in the other thread, as I copied that exactly - its also missing that layer. So others won't make my mistake. Thanks again. |
LayersNames.GRIDlayer, which is required by thetoSVG()function.