@drauu/core
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -107,2 +107,4 @@ interface Unsubscribe { | ||
redo(): boolean; | ||
canRedo(): boolean; | ||
canUndo(): boolean; | ||
private eventMove; | ||
@@ -115,2 +117,4 @@ private eventStart; | ||
cancel(): void; | ||
dump(): string; | ||
load(svg: string): void; | ||
} | ||
@@ -117,0 +121,0 @@ declare function createDrauu(options?: Options): Drauu; |
@@ -420,2 +420,9 @@ (() => { | ||
} | ||
canRedo() { | ||
return !!this._undoStack.length; | ||
} | ||
canUndo() { | ||
var _a; | ||
return !!((_a = this.el) == null ? void 0 : _a.lastElementChild); | ||
} | ||
eventMove(event) { | ||
@@ -468,2 +475,9 @@ if (this.model._eventMove(event)) { | ||
} | ||
dump() { | ||
return this.el.innerHTML; | ||
} | ||
load(svg) { | ||
this.clear(); | ||
this.el.innerHTML = svg; | ||
} | ||
}; | ||
@@ -470,0 +484,0 @@ function createDrauu(options) { |
@@ -433,2 +433,9 @@ var __defProp = Object.defineProperty; | ||
} | ||
canRedo() { | ||
return !!this._undoStack.length; | ||
} | ||
canUndo() { | ||
var _a; | ||
return !!((_a = this.el) == null ? void 0 : _a.lastElementChild); | ||
} | ||
eventMove(event) { | ||
@@ -481,2 +488,9 @@ if (this.model._eventMove(event)) { | ||
} | ||
dump() { | ||
return this.el.innerHTML; | ||
} | ||
load(svg) { | ||
this.clear(); | ||
this.el.innerHTML = svg; | ||
} | ||
}; | ||
@@ -483,0 +497,0 @@ function createDrauu(options) { |
{ | ||
"name": "@drauu/core", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.mjs", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44010
1565