@tldraw/editor 4.4.0-canary.e744008e3510 → 4.4.0-canary.ea8833f5994b

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.
@@ -909,7 +909,6 @@ export declare const defaultTldrawOptions: {
909
909
  readonly maxShapesPerPage: 4000;
910
910
  readonly multiClickDurationMs: 200;
911
911
  readonly nonce: undefined;
912
- readonly quickZoomPreservesScreenBounds: true;
913
912
  readonly snapThreshold: 8;
914
913
  readonly spacebarPanning: true;
915
914
  readonly temporaryAssetPreviewLifetimeMs: 180000;
@@ -7065,13 +7064,6 @@ export declare interface TldrawOptions {
7065
7064
  * The distance (in screen pixels) at which shapes snap to guides and other shapes.
7066
7065
  */
7067
7066
  readonly snapThreshold: number;
7068
- /**
7069
- * Whether the quick-zoom brush preserves its screen-pixel size when the user
7070
- * zooms the overview. When true, zooming in shrinks the target viewport (higher
7071
- * return zoom); zooming out expands it. When false, the brush keeps the original
7072
- * viewport's page dimensions regardless of overview zoom changes.
7073
- */
7074
- readonly quickZoomPreservesScreenBounds: boolean;
7075
7067
  }
7076
7068
 
7077
7069
  /** @public */
@@ -8027,35 +8019,17 @@ export declare interface TLShapeUtilCanBeLaidOutOpts {
8027
8019
 
8028
8020
  /**
8029
8021
  * Options passed to {@link ShapeUtil.canBind}. A binding that could be made. At least one of
8030
- * `fromShape` or `toShape` will belong to this shape util.
8031
- *
8032
- * The shapes may be full {@link @tldraw/tlschema#TLShape} objects when available, or just
8033
- * `{ type }` stubs when the shape hasn't been created yet (e.g. during arrow creation). Use
8034
- * `'id' in shape` to check whether the full shape is available.
8022
+ * `fromShapeType` or `toShapeType` will belong to this shape util.
8035
8023
  *
8036
8024
  * @public
8037
8025
  */
8038
8026
  export declare interface TLShapeUtilCanBindOpts<Shape extends TLShape = TLShape> {
8039
- /** The shape referenced by the `fromId` of the binding, or a `{ type }` stub if unavailable. */
8040
- fromShape: {
8041
- type: TLShape['type'];
8042
- } | TLShape;
8043
- /** The shape referenced by the `toId` of the binding, or a `{ type }` stub if unavailable. */
8044
- toShape: {
8045
- type: TLShape['type'];
8046
- } | TLShape;
8047
- /** The type of binding. */
8048
- bindingType: string;
8049
- /**
8050
- * The type of shape referenced by the `fromId` of the binding.
8051
- * @deprecated Use `fromShape.type` instead.
8052
- */
8027
+ /** The type of shape referenced by the `fromId` of the binding. */
8053
8028
  fromShapeType: TLShape['type'];
8054
- /**
8055
- * The type of shape referenced by the `toId` of the binding.
8056
- * @deprecated Use `toShape.type` instead.
8057
- */
8029
+ /** The type of shape referenced by the `toId` of the binding. */
8058
8030
  toShapeType: TLShape['type'];
8031
+ /** The type of binding. */
8032
+ bindingType: string;
8059
8033
  }
8060
8034
 
8061
8035
  /** @public */
package/dist-cjs/index.js CHANGED
@@ -372,7 +372,7 @@ var import_uniq = require("./lib/utils/uniq");
372
372
  var import_window_open = require("./lib/utils/window-open");
373
373
  (0, import_utils.registerTldrawLibraryVersion)(
374
374
  "@tldraw/editor",
375
- "4.4.0-canary.e744008e3510",
375
+ "4.4.0-canary.ea8833f5994b",
376
376
  "cjs"
377
377
  );
378
378
  //# sourceMappingURL=index.js.map
@@ -4598,13 +4598,7 @@ class Editor extends (_a = import_eventemitter3.default, _getIsShapeHiddenCache_
4598
4598
  const fromShapeType = typeof fromShape === "string" ? fromShape : fromShape.type;
4599
4599
  const toShapeType = typeof toShape === "string" ? toShape : toShape.type;
4600
4600
  const bindingType = typeof binding === "string" ? binding : binding.type;
4601
- const canBindOpts = {
4602
- fromShape: typeof fromShape === "string" ? { type: fromShape } : fromShape,
4603
- toShape: typeof toShape === "string" ? { type: toShape } : toShape,
4604
- bindingType,
4605
- fromShapeType,
4606
- toShapeType
4607
- };
4601
+ const canBindOpts = { fromShapeType, toShapeType, bindingType };
4608
4602
  if (fromShapeType === toShapeType) {
4609
4603
  return this.getShapeUtil(fromShapeType).canBind(canBindOpts);
4610
4604
  }