@mocanvas/editor 4.7.0 → 4.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -8870,6 +8870,7 @@ var Editor = class extends EventEmitter {
|
|
|
8870
8870
|
if (shape && !shape.isLocked) collect(id);
|
|
8871
8871
|
}
|
|
8872
8872
|
if (toDelete.size === 0) return this;
|
|
8873
|
+
this.emit("deleted-shapes", [...toDelete]);
|
|
8873
8874
|
this.run(() => {
|
|
8874
8875
|
const ps = this.getCurrentPageState();
|
|
8875
8876
|
const selected = ps.selectedShapeIds.filter((id) => !toDelete.has(id));
|
|
@@ -8878,7 +8879,6 @@ var Editor = class extends EventEmitter {
|
|
|
8878
8879
|
if (ps.editingShapeId && toDelete.has(ps.editingShapeId)) this.setEditingShape(null);
|
|
8879
8880
|
this.store.remove([...toDelete]);
|
|
8880
8881
|
});
|
|
8881
|
-
this.emit("deleted-shapes", [...toDelete]);
|
|
8882
8882
|
return this;
|
|
8883
8883
|
}
|
|
8884
8884
|
/**
|