dikalo / lienzo-core

Lienzo Structure Graphics GWT Toolkit
Apache License 2.0
51 stars 58 forks source link

Refactor to enable SVG export. Cherry pick commit from kiegroup #209

Closed tiagodolphine closed 6 years ago

tiagodolphine commented 6 years ago

This is a refactor necessary to use canvas2svg library, where basically we extracted the NativeContex2d that allow us to inject a custom context to build the SVG, based on the same calls as for the native canvas context. There was need to split the context.save/restore to saveContainer/restoreContainer because there was needed to distinct the calld when using the SVG library to create the SVG groups. The original behavior is the same because the saveContainer/restoreContainer is simply calling the save and restore methods. @romartin @mdproctor

SprocketNYC commented 6 years ago

I’ll work on getting the project cleaned up and push back a commit, I’m changing the copyright dates and running it through code quality analytics

romartin commented 6 years ago

oh @SprocketNYC !!! glad to hear from you again!! Hope you're doing better....
We'll provide another PR soon in order to merge other stuff we had been adding on our fork, o will keep you updated! Thanks and take care!