@tldraw/editor 4.0.1 → 4.0.3

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.0.1";
25
+ const version = "4.0.3";
26
26
  const publishDates = {
27
27
  major: "2025-09-18T14:32:28.865Z",
28
28
  minor: "2025-09-18T14:32:28.865Z",
29
- patch: "2025-09-18T16:14:08.234Z"
29
+ patch: "2025-10-02T15:59:40.571Z"
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.0.1'\nexport const publishDates = {\n\tmajor: '2025-09-18T14:32:28.865Z',\n\tminor: '2025-09-18T14:32:28.865Z',\n\tpatch: '2025-09-18T16:14:08.234Z',\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.0.3'\nexport const publishDates = {\n\tmajor: '2025-09-18T14:32:28.865Z',\n\tminor: '2025-09-18T14:32:28.865Z',\n\tpatch: '2025-10-02T15:59:40.571Z',\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
  }
@@ -1564,7 +1564,12 @@ export declare class Editor extends EventEmitter<TLEventMap> {
1564
1564
  * @readonly
1565
1565
  */
1566
1566
  getOnlySelectedShape(): null | TLShape;
1567
- /* Excluded from this release type: getShapesPageBounds */
1567
+ /**
1568
+ * Get the page bounds of all the provided shapes.
1569
+ *
1570
+ * @public
1571
+ */
1572
+ getShapesPageBounds(shapeIds: TLShapeId[]): Box | null;
1568
1573
  /**
1569
1574
  * The current page bounds of all the selected shapes. If the
1570
1575
  * selection is rotated, then these bounds are the axis-aligned
@@ -301,7 +301,7 @@ import { uniq } from "./lib/utils/uniq.mjs";
301
301
  import { openWindow } from "./lib/utils/window-open.mjs";
302
302
  registerTldrawLibraryVersion(
303
303
  "@tldraw/editor",
304
- "4.0.1",
304
+ "4.0.3",
305
305
  "esm"
306
306
  );
307
307
  export {
@@ -1601,7 +1601,9 @@ class Editor extends (_a = EventEmitter, _getIsShapeHiddenCache_dec = [computed]
1601
1601
  return selectedShapes.length === 1 ? selectedShapes[0] : null;
1602
1602
  }
1603
1603
  /**
1604
- * @internal
1604
+ * Get the page bounds of all the provided shapes.
1605
+ *
1606
+ * @public
1605
1607
  */
1606
1608
  getShapesPageBounds(shapeIds) {
1607
1609
  const bounds = compact(shapeIds.map((id) => this.getShapePageBounds(id)));