diff --git a/dist/examples/api-demo.html b/dist/examples/api-demo.html index 7fd12e8..3426c8a 100644 --- a/dist/examples/api-demo.html +++ b/dist/examples/api-demo.html @@ -30,6 +30,7 @@

API examples:

+
@@ -57,6 +58,12 @@

API examples:

parseSVG: true }); var state = null; + $("#pause-history").on("click", function () { + drawingTool.pauseHistory(); + }); + $("#unpause-history").on("click", function () { + drawingTool.unpauseHistory(); + }); $("#set-background").on("click", function () { drawingTool.setBackgroundImage($("#background-src").val()); }); @@ -93,6 +100,9 @@

API examples:

$("#restart-history").on("click", function () { drawingTool.unpauseHistory(); }); + $("#reset-history").on("click", function () { + drawingTool.resetHistory(); + }); diff --git a/public/examples/api-demo.html b/public/examples/api-demo.html index 7fd12e8..3426c8a 100644 --- a/public/examples/api-demo.html +++ b/public/examples/api-demo.html @@ -30,6 +30,7 @@

API examples:

+
@@ -57,6 +58,12 @@

API examples:

parseSVG: true }); var state = null; + $("#pause-history").on("click", function () { + drawingTool.pauseHistory(); + }); + $("#unpause-history").on("click", function () { + drawingTool.unpauseHistory(); + }); $("#set-background").on("click", function () { drawingTool.setBackgroundImage($("#background-src").val()); }); @@ -93,6 +100,9 @@

API examples:

$("#restart-history").on("click", function () { drawingTool.unpauseHistory(); }); + $("#reset-history").on("click", function () { + drawingTool.resetHistory(); + });