@tldraw/editor 3.13.0-canary.c7e3df3a9530 → 3.13.0-canary.cb6b7a41c175
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-cjs/index.js +1 -1
- package/dist-cjs/lib/editor/Editor.js +1 -1
- package/dist-cjs/lib/editor/Editor.js.map +2 -2
- package/dist-cjs/version.js +3 -3
- package/dist-cjs/version.js.map +1 -1
- package/dist-esm/index.mjs +1 -1
- package/dist-esm/lib/editor/Editor.mjs +1 -1
- package/dist-esm/lib/editor/Editor.mjs.map +2 -2
- package/dist-esm/version.mjs +3 -3
- package/dist-esm/version.mjs.map +1 -1
- package/package.json +7 -7
- package/src/lib/editor/Editor.ts +1 -1
- package/src/version.ts +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -424,6 +424,7 @@ class Editor extends (_a = import_eventemitter3.default, _getIsShapeHiddenCache_
|
|
|
424
424
|
) : getShapeVisibility;
|
|
425
425
|
this.options = { ...import_options.defaultTldrawOptions, ...options };
|
|
426
426
|
this.store = store;
|
|
427
|
+
this.disposables.add(this.store.dispose.bind(this.store));
|
|
427
428
|
this.history = new import_HistoryManager.HistoryManager({
|
|
428
429
|
store,
|
|
429
430
|
annotateError: (error) => {
|
|
@@ -835,7 +836,6 @@ class Editor extends (_a = import_eventemitter3.default, _getIsShapeHiddenCache_
|
|
|
835
836
|
dispose() {
|
|
836
837
|
this.disposables.forEach((dispose) => dispose());
|
|
837
838
|
this.disposables.clear();
|
|
838
|
-
this.store.dispose();
|
|
839
839
|
this.isDisposed = true;
|
|
840
840
|
}
|
|
841
841
|
getShapeUtil(arg) {
|