@tldraw/editor 4.5.4 → 4.5.5

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.
@@ -22,10 +22,10 @@ __export(version_exports, {
22
22
  version: () => version
23
23
  });
24
24
  module.exports = __toCommonJS(version_exports);
25
- const version = "4.5.4";
25
+ const version = "4.5.5";
26
26
  const publishDates = {
27
27
  major: "2025-09-18T14:39:22.803Z",
28
28
  minor: "2026-03-18T11:05:13.340Z",
29
- patch: "2026-03-26T10:28:25.848Z"
29
+ patch: "2026-04-01T09:22:33.926Z"
30
30
  };
31
31
  //# sourceMappingURL=version.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/version.ts"],
4
- "sourcesContent": ["// This file is automatically generated by internal/scripts/refresh-assets.ts.\n// Do not edit manually. Or do, I'm a comment, not a cop.\n\nexport const version = '4.5.4'\nexport const publishDates = {\n\tmajor: '2025-09-18T14:39:22.803Z',\n\tminor: '2026-03-18T11:05:13.340Z',\n\tpatch: '2026-03-26T10:28:25.848Z',\n}\n"],
4
+ "sourcesContent": ["// This file is automatically generated by internal/scripts/refresh-assets.ts.\n// Do not edit manually. Or do, I'm a comment, not a cop.\n\nexport const version = '4.5.5'\nexport const publishDates = {\n\tmajor: '2025-09-18T14:39:22.803Z',\n\tminor: '2026-03-18T11:05:13.340Z',\n\tpatch: '2026-04-01T09:22:33.926Z',\n}\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGO,MAAM,UAAU;AAChB,MAAM,eAAe;AAAA,EAC3B,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AACR;",
6
6
  "names": []
7
7
  }
@@ -304,7 +304,7 @@ import { LocalIndexedDb, Table } from "./lib/utils/sync/LocalIndexedDb.mjs";
304
304
  import { uniq } from "./lib/utils/uniq.mjs";
305
305
  registerTldrawLibraryVersion(
306
306
  "@tldraw/editor",
307
- "4.5.4",
307
+ "4.5.5",
308
308
  "esm"
309
309
  );
310
310
  export {
@@ -435,6 +435,10 @@ class Editor extends (_a = EventEmitter, _getIsShapeHiddenCache_dec = [computed]
435
435
  this.disposables.add(() => this.textMeasure.dispose());
436
436
  this.fonts = new FontManager(this, fontAssetUrls);
437
437
  this._tickManager = new TickManager(this);
438
+ this.disposables.add(() => {
439
+ this.off("tick", this._decayCameraStateTimeout);
440
+ this._setCameraState("idle");
441
+ });
438
442
  this.inputs = new InputsManager(this);
439
443
  class NewRoot extends RootState {
440
444
  static initial = initialState ?? "";