From 64759a8cab150ab77ff4d79194acdc265ccb6631 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?KB=20J=C3=B8rgensen?= Date: Tue, 27 Feb 2018 11:21:07 +0100 Subject: [PATCH] Added documentation for the preventUndo parameter in the svgcanvas.setSvgString() function. --- editor/svgcanvas.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 152bd0d9..0ae24687 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -4439,6 +4439,9 @@ var convertToGroup = this.convertToGroup = function(elem) { // // Parameters: // xmlString - The SVG as XML text. +// preventUndo - Boolean (defaults to false) indicating if we want to do the +// changes without adding them to the undo stack - e.g. for initializing a +// drawing on page load. // // Returns: // This function returns false if the set was unsuccessful, true otherwise.