@tldraw/editor 5.3.0-canary.3c03dcdf8fa0 → 5.3.0-canary.3cf7ba2fcdbb
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 +3 -0
- 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 +3 -0
- 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 +4 -0
- package/src/version.ts +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -379,7 +379,7 @@ var import_uniq = require("./lib/utils/uniq");
|
|
|
379
379
|
var import_defaultThemes2 = require("./lib/editor/managers/ThemeManager/defaultThemes");
|
|
380
380
|
(0, import_utils.registerTldrawLibraryVersion)(
|
|
381
381
|
"@tldraw/editor",
|
|
382
|
-
"5.3.0-canary.
|
|
382
|
+
"5.3.0-canary.3cf7ba2fcdbb",
|
|
383
383
|
"cjs"
|
|
384
384
|
);
|
|
385
385
|
//# sourceMappingURL=index.js.map
|
|
@@ -492,6 +492,9 @@ class Editor extends import_eventemitter3.default {
|
|
|
492
492
|
},
|
|
493
493
|
instance_page_state: {
|
|
494
494
|
afterChange: (prev, next) => {
|
|
495
|
+
if (prev?.focusedGroupId !== next?.focusedGroupId) {
|
|
496
|
+
this.cancelDoubleClick();
|
|
497
|
+
}
|
|
495
498
|
if (prev?.selectedShapeIds !== next?.selectedShapeIds) {
|
|
496
499
|
const filtered = next.selectedShapeIds.filter((id) => {
|
|
497
500
|
let parentId = this.getShape(id)?.parentId;
|