@pixerate/editor-svelte 0.117.0 → 0.117.1

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.
@@ -17,7 +17,7 @@
17
17
  pointerPressure,
18
18
  FreeTransformTool,
19
19
  boxFrameHit,
20
- boxFrameOverlay,
20
+ quadFrameOverlay,
21
21
  getViewportProjection,
22
22
  measureCanvasViewport,
23
23
  watchCanvasViewport,
@@ -359,9 +359,9 @@
359
359
  const id = c.getState().activeLayerId;
360
360
  const layer = id ? c.getLayer(id) : undefined;
361
361
  if (!layer || layer.visible === false) return null;
362
- const bounds = c.getLayerBounds(layer.id);
363
- if (!bounds) return null;
364
- return boxFrameOverlay(bounds, !(layer.locks?.all || layer.locks?.position));
362
+ const corners = c.getLayerFrame(layer.id);
363
+ if (!corners) return null;
364
+ return quadFrameOverlay(corners, !(layer.locks?.all || layer.locks?.position));
365
365
  }
366
366
 
367
367
  /**
@@ -391,7 +391,8 @@
391
391
  } catch {
392
392
  // Synthetic events have no active pointer to capture.
393
393
  }
394
- transformTool.down(pt, tolerance);
394
+ // A press anywhere inside moves the layer, the centre included.
395
+ transformTool.down(pt, tolerance, { reference: false });
395
396
  frameDrag = true;
396
397
  return true;
397
398
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixerate/editor-svelte",
3
- "version": "0.117.0",
3
+ "version": "0.117.1",
4
4
  "description": "Svelte bindings and prompt/rich-text components for @pixerate/editor",
5
5
  "author": "Pixerate",
6
6
  "license": "MIT",
@@ -160,7 +160,7 @@
160
160
  "@tiptap/extension-bubble-menu": "^2.27.3",
161
161
  "@tiptap/extension-placeholder": "^2.27.3",
162
162
  "@tiptap/starter-kit": "^2.27.3",
163
- "@pixerate/editor": "0.159.0"
163
+ "@pixerate/editor": "0.160.0"
164
164
  },
165
165
  "peerDependencies": {
166
166
  "@dagrejs/dagre": "^1.1.4",