@drauu/core
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -48,3 +48,3 @@ interface Unsubscribe { | ||
interface EventsMap { | ||
update: () => void; | ||
changed: () => void; | ||
mounted: () => void; | ||
@@ -51,0 +51,0 @@ unmounted: () => void; |
@@ -412,2 +412,3 @@ (() => { | ||
el.lastElementChild.remove(); | ||
this._emitter.emit("changed"); | ||
return true; | ||
@@ -419,2 +420,3 @@ } | ||
this.el.appendChild(this._undoStack.pop()); | ||
this._emitter.emit("changed"); | ||
return true; | ||
@@ -433,3 +435,3 @@ } | ||
event.preventDefault(); | ||
this._emitter.emit("update"); | ||
this._emitter.emit("changed"); | ||
} | ||
@@ -443,3 +445,3 @@ } | ||
this.el.appendChild(this._currentNode); | ||
this._emitter.emit("update"); | ||
this._emitter.emit("changed"); | ||
} | ||
@@ -455,3 +457,3 @@ eventEnd(event) { | ||
} | ||
this._emitter.emit("update"); | ||
this._emitter.emit("changed"); | ||
} | ||
@@ -462,3 +464,3 @@ eventKeyboard(event) { | ||
this.model.onMove(this.model.point); | ||
this._emitter.emit("update"); | ||
this._emitter.emit("changed"); | ||
} | ||
@@ -465,0 +467,0 @@ commit() { |
@@ -425,2 +425,3 @@ var __defProp = Object.defineProperty; | ||
el.lastElementChild.remove(); | ||
this._emitter.emit("changed"); | ||
return true; | ||
@@ -432,2 +433,3 @@ } | ||
this.el.appendChild(this._undoStack.pop()); | ||
this._emitter.emit("changed"); | ||
return true; | ||
@@ -446,3 +448,3 @@ } | ||
event.preventDefault(); | ||
this._emitter.emit("update"); | ||
this._emitter.emit("changed"); | ||
} | ||
@@ -456,3 +458,3 @@ } | ||
this.el.appendChild(this._currentNode); | ||
this._emitter.emit("update"); | ||
this._emitter.emit("changed"); | ||
} | ||
@@ -468,3 +470,3 @@ eventEnd(event) { | ||
} | ||
this._emitter.emit("update"); | ||
this._emitter.emit("changed"); | ||
} | ||
@@ -475,3 +477,3 @@ eventKeyboard(event) { | ||
this.model.onMove(this.model.point); | ||
this._emitter.emit("update"); | ||
this._emitter.emit("changed"); | ||
} | ||
@@ -478,0 +480,0 @@ commit() { |
{ | ||
"name": "@drauu/core", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"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
44237
1571