@tldraw/editor 3.13.0-canary.8b94604b33ff → 3.13.0-canary.8f06b22abe77

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 = "3.13.0-canary.8b94604b33ff";
25
+ const version = "3.13.0-canary.8f06b22abe77";
26
26
  const publishDates = {
27
27
  major: "2024-09-13T14:36:29.063Z",
28
- minor: "2025-05-20T11:29:36.623Z",
29
- patch: "2025-05-20T11:29:36.623Z"
28
+ minor: "2025-05-21T10:30:10.629Z",
29
+ patch: "2025-05-21T10:30:10.629Z"
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 = '3.13.0-canary.8b94604b33ff'\nexport const publishDates = {\n\tmajor: '2024-09-13T14:36:29.063Z',\n\tminor: '2025-05-20T11:29:36.623Z',\n\tpatch: '2025-05-20T11:29:36.623Z',\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 = '3.13.0-canary.8f06b22abe77'\nexport const publishDates = {\n\tmajor: '2024-09-13T14:36:29.063Z',\n\tminor: '2025-05-21T10:30:10.629Z',\n\tpatch: '2025-05-21T10:30:10.629Z',\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
  }
@@ -286,7 +286,7 @@ function debugEnableLicensing() {
286
286
  }
287
287
  registerTldrawLibraryVersion(
288
288
  "@tldraw/editor",
289
- "3.13.0-canary.8b94604b33ff",
289
+ "3.13.0-canary.8f06b22abe77",
290
290
  "esm"
291
291
  );
292
292
  export {
@@ -7541,6 +7541,34 @@ class Editor extends (_a = EventEmitter, _getIsShapeHiddenCache_dec = [computed]
7541
7541
  }
7542
7542
  const { x: cx, y: cy, z: cz } = unsafe__withoutCapture(() => this.getCamera());
7543
7543
  const { x: dx, y: dy, z: dz = 0 } = info.delta;
7544
+ if (this.inputs.keys.has("KeyV")) {
7545
+ const selectedShapeIds = this.getSelectedShapeIds();
7546
+ if (selectedShapeIds.length > 0) {
7547
+ const instanceState2 = this.getInstanceState();
7548
+ if (!instanceState2.isChangingStyle) {
7549
+ this.updateInstanceState({ isChangingStyle: true });
7550
+ }
7551
+ clearTimeout(this._isChangingStyleTimeout);
7552
+ this._isChangingStyleTimeout = this.timers.setTimeout(() => {
7553
+ this._updateInstanceState({ isChangingStyle: false }, { history: "ignore" });
7554
+ }, 1e3);
7555
+ this.updateShapes(
7556
+ compact(
7557
+ selectedShapeIds.map((id) => {
7558
+ const shape = this.getShape(id);
7559
+ if (!shape) return;
7560
+ if (hasOwnProperty(shape.props, "scale")) {
7561
+ const scale = shape.props["scale"];
7562
+ const change = info.delta.y / 100;
7563
+ const next = scale + change;
7564
+ return { ...shape, props: { scale: Math.max(0.01, next) } };
7565
+ }
7566
+ })
7567
+ )
7568
+ );
7569
+ return;
7570
+ }
7571
+ }
7544
7572
  let behavior = wheelBehavior;
7545
7573
  if (info.ctrlKey) behavior = wheelBehavior === "pan" ? "zoom" : "pan";
7546
7574
  switch (behavior) {