@tldraw/editor 4.1.0-canary.e653ec63c99b → 4.1.0-canary.f414ee471d7f
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.d.ts +15 -1
- package/dist-cjs/index.js +1 -1
- package/dist-cjs/lib/editor/Editor.js +3 -1
- package/dist-cjs/lib/editor/Editor.js.map +2 -2
- package/dist-cjs/lib/editor/shapes/ShapeUtil.js.map +2 -2
- package/dist-cjs/lib/license/Watermark.js +4 -4
- package/dist-cjs/lib/license/Watermark.js.map +1 -1
- package/dist-cjs/version.js +3 -3
- package/dist-cjs/version.js.map +1 -1
- package/dist-esm/index.d.mts +15 -1
- package/dist-esm/index.mjs +1 -1
- package/dist-esm/lib/editor/Editor.mjs +3 -1
- package/dist-esm/lib/editor/Editor.mjs.map +2 -2
- package/dist-esm/lib/editor/shapes/ShapeUtil.mjs.map +2 -2
- package/dist-esm/lib/license/Watermark.mjs +4 -4
- package/dist-esm/lib/license/Watermark.mjs.map +1 -1
- package/dist-esm/version.mjs +3 -3
- package/dist-esm/version.mjs.map +1 -1
- package/editor.css +7 -2
- package/package.json +7 -7
- package/src/lib/editor/Editor.ts +3 -1
- package/src/lib/editor/shapes/ShapeUtil.ts +10 -0
- package/src/lib/license/Watermark.tsx +4 -4
- package/src/version.ts +3 -3
package/dist-cjs/index.d.ts
CHANGED
|
@@ -1564,7 +1564,12 @@ export declare class Editor extends EventEmitter<TLEventMap> {
|
|
|
1564
1564
|
* @readonly
|
|
1565
1565
|
*/
|
|
1566
1566
|
getOnlySelectedShape(): null | TLShape;
|
|
1567
|
-
|
|
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
|
|
@@ -5243,6 +5248,15 @@ export declare abstract class ShapeUtil<Shape extends TLUnknownShape = TLUnknown
|
|
|
5243
5248
|
* @public
|
|
5244
5249
|
*/
|
|
5245
5250
|
shouldClipChild?(child: TLShape): boolean;
|
|
5251
|
+
/**
|
|
5252
|
+
* Whether a specific shape should hide in the minimap.
|
|
5253
|
+
*
|
|
5254
|
+
* If not defined, the default behavior is to show all shapes in the minimap.
|
|
5255
|
+
*
|
|
5256
|
+
* @returns boolean indicating if this shape should hide in the minimap
|
|
5257
|
+
* @public
|
|
5258
|
+
*/
|
|
5259
|
+
hideInMinimap?(_shape: Shape): boolean;
|
|
5246
5260
|
/**
|
|
5247
5261
|
* Whether the shape should hide its resize handles when selected.
|
|
5248
5262
|
*
|
package/dist-cjs/index.js
CHANGED
|
@@ -369,7 +369,7 @@ var import_uniq = require("./lib/utils/uniq");
|
|
|
369
369
|
var import_window_open = require("./lib/utils/window-open");
|
|
370
370
|
(0, import_utils.registerTldrawLibraryVersion)(
|
|
371
371
|
"@tldraw/editor",
|
|
372
|
-
"4.1.0-canary.
|
|
372
|
+
"4.1.0-canary.f414ee471d7f",
|
|
373
373
|
"cjs"
|
|
374
374
|
);
|
|
375
375
|
//# sourceMappingURL=index.js.map
|
|
@@ -1567,7 +1567,9 @@ class Editor extends (_a = import_eventemitter3.default, _getIsShapeHiddenCache_
|
|
|
1567
1567
|
return selectedShapes.length === 1 ? selectedShapes[0] : null;
|
|
1568
1568
|
}
|
|
1569
1569
|
/**
|
|
1570
|
-
*
|
|
1570
|
+
* Get the page bounds of all the provided shapes.
|
|
1571
|
+
*
|
|
1572
|
+
* @public
|
|
1571
1573
|
*/
|
|
1572
1574
|
getShapesPageBounds(shapeIds) {
|
|
1573
1575
|
const bounds = (0, import_utils.compact)(shapeIds.map((id) => this.getShapePageBounds(id)));
|