From d8dae76d3aa4c458496abbf3151731e297ae94cb Mon Sep 17 00:00:00 2001 From: Ian Newborn Date: Fri, 11 Mar 2016 13:33:43 +0000 Subject: [PATCH] Exposed grid snapping setting on svgCanvas --- editor/svgcanvas.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index a0e885ef..4c462904 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -5505,6 +5505,11 @@ var getResolution = this.getResolution = function() { // Returns the current zoom level this.getZoom = function(){return current_zoom;}; +// Function: getSnapToGrid +// Returns the current snap to grid setting +this.getSnapToGrid = function(){return curConfig.gridSnapping;}; + + // Function: getVersion // Returns a string which describes the revision number of SvgCanvas. this.getVersion = function() {