methodofaction / Method-Draw

Method Draw, the SVG Editor for Method of Action
http://editor.method.ac
MIT License
2.82k stars 712 forks source link

View/Snap to grid do nothing #51

Open Saurbaum opened 8 years ago

Saurbaum commented 8 years ago

Turning on View Grid and Snap to grid only tick the options in the menu they appear to do nothing else.

dyp2000 commented 8 years ago

+1

thomas-negrault commented 8 years ago

After compiling the script myself the view grid works and I find a little workaround for the Snap To Grid, I replaced all curConfig.gridSnapping by window.curConfig.gridSnapping in the file Method-Draw/editor/src/svgcanvas.js

The problem is the local curConfig variable is set only one time and is not updated when global curConfig changes (when you activate Snap To Grid)

I believe this is not a "clean" solution but it fix the issue for me