@tldraw/editor 3.16.0-canary.1b74ce1c7283 → 3.16.0-canary.2b37b2b68fe4

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.
@@ -890,6 +890,8 @@ export declare const defaultTldrawOptions: {
890
890
  readonly temporaryAssetPreviewLifetimeMs: 180000;
891
891
  readonly textShadowLod: 0.35;
892
892
  readonly tooltipDelayMs: 700;
893
+ readonly uiCoarseDragDistanceSquared: 625;
894
+ readonly uiDragDistanceSquared: 16;
893
895
  };
894
896
 
895
897
  /** @public */
@@ -6422,6 +6424,8 @@ export declare interface TldrawOptions {
6422
6424
  readonly multiClickDurationMs: number;
6423
6425
  readonly coarseDragDistanceSquared: number;
6424
6426
  readonly dragDistanceSquared: number;
6427
+ readonly uiDragDistanceSquared: number;
6428
+ readonly uiCoarseDragDistanceSquared: number;
6425
6429
  readonly defaultSvgPadding: number;
6426
6430
  readonly cameraSlideFriction: number;
6427
6431
  readonly gridSteps: readonly {
package/dist-cjs/index.js CHANGED
@@ -371,7 +371,7 @@ function debugEnableLicensing() {
371
371
  }
372
372
  (0, import_utils.registerTldrawLibraryVersion)(
373
373
  "@tldraw/editor",
374
- "3.16.0-canary.1b74ce1c7283",
374
+ "3.16.0-canary.2b37b2b68fe4",
375
375
  "cjs"
376
376
  );
377
377
  //# sourceMappingURL=index.js.map
@@ -4748,7 +4748,16 @@ class Editor extends (_a = import_eventemitter3.default, _getIsShapeHiddenCache_
4748
4748
  }
4749
4749
  this.createShapes(shapesToCreate);
4750
4750
  this.createBindings(bindingsToCreate);
4751
- this.setSelectedShapes((0, import_utils.compact)(ids.map((id) => shapeIds.get(id))));
4751
+ this.setSelectedShapes(
4752
+ (0, import_utils.compact)(
4753
+ ids.map((oldId) => {
4754
+ const newId = shapeIds.get(oldId);
4755
+ if (!newId) return null;
4756
+ if (!this.getShape(newId)) return null;
4757
+ return newId;
4758
+ })
4759
+ )
4760
+ );
4752
4761
  if (offset !== void 0) {
4753
4762
  const selectionPageBounds = this.getSelectionPageBounds();
4754
4763
  const viewportPageBounds = this.getViewportPageBounds();