kritzel-stencil 0.0.109 → 0.0.111

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.
Files changed (46) hide show
  1. package/dist/cjs/kritzel-brush-style_18.cjs.entry.js +61 -89
  2. package/dist/cjs/kritzel-brush-style_18.cjs.entry.js.map +1 -1
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/stencil.cjs.js +1 -1
  5. package/dist/collection/classes/commands/remove-selection-group.command.js +1 -1
  6. package/dist/collection/classes/commands/remove-selection-group.command.js.map +1 -1
  7. package/dist/collection/classes/tools/brush-tool.class.js +9 -0
  8. package/dist/collection/classes/tools/brush-tool.class.js.map +1 -1
  9. package/dist/collection/classes/tools/selection-tool.class.js +9 -32
  10. package/dist/collection/classes/tools/selection-tool.class.js.map +1 -1
  11. package/dist/collection/classes/tools/text-tool.class.js +6 -0
  12. package/dist/collection/classes/tools/text-tool.class.js.map +1 -1
  13. package/dist/collection/components/core/kritzel-cursor-trail/kritzel-cursor-trail.js +58 -57
  14. package/dist/collection/components/core/kritzel-cursor-trail/kritzel-cursor-trail.js.map +1 -1
  15. package/dist/collection/components/core/kritzel-engine/kritzel-engine.js +12 -24
  16. package/dist/collection/components/core/kritzel-engine/kritzel-engine.js.map +1 -1
  17. package/dist/components/kritzel-controls.js +1 -1
  18. package/dist/components/kritzel-cursor-trail.js +1 -1
  19. package/dist/components/kritzel-editor.js +4 -4
  20. package/dist/components/kritzel-engine.js +1 -1
  21. package/dist/components/{p-Ds3FhuuO.js → p-BvPTbq7F.js} +29 -37
  22. package/dist/components/p-BvPTbq7F.js.map +1 -0
  23. package/dist/components/{p-BmrZipyu.js → p-CB9PaoF-.js} +27 -59
  24. package/dist/components/p-CB9PaoF-.js.map +1 -0
  25. package/dist/components/p-D8W6LE-c.js +11 -0
  26. package/dist/components/p-D8W6LE-c.js.map +1 -0
  27. package/dist/components/{p-7Ns73-wN.js → p-DqZOaMbq.js} +19 -9
  28. package/dist/components/p-DqZOaMbq.js.map +1 -0
  29. package/dist/components/{p-Ch6TgHX3.js → p-c5feBXbv.js} +3 -3
  30. package/dist/components/{p-Ch6TgHX3.js.map → p-c5feBXbv.js.map} +1 -1
  31. package/dist/esm/kritzel-brush-style_18.entry.js +61 -89
  32. package/dist/esm/kritzel-brush-style_18.entry.js.map +1 -1
  33. package/dist/esm/loader.js +1 -1
  34. package/dist/esm/stencil.js +1 -1
  35. package/dist/stencil/p-dc8da7cf.entry.js +2 -0
  36. package/dist/stencil/p-dc8da7cf.entry.js.map +1 -0
  37. package/dist/stencil/stencil.esm.js +1 -1
  38. package/dist/types/classes/tools/selection-tool.class.d.ts +0 -2
  39. package/dist/types/components/core/kritzel-cursor-trail/kritzel-cursor-trail.d.ts +5 -6
  40. package/dist/types/components.d.ts +4 -0
  41. package/package.json +1 -1
  42. package/dist/components/p-7Ns73-wN.js.map +0 -1
  43. package/dist/components/p-BmrZipyu.js.map +0 -1
  44. package/dist/components/p-Ds3FhuuO.js.map +0 -1
  45. package/dist/stencil/p-c976660c.entry.js +0 -2
  46. package/dist/stencil/p-c976660c.entry.js.map +0 -1
@@ -715,6 +715,9 @@ class KritzelBrushTool extends KritzelBaseTool {
715
715
  };
716
716
  }
717
717
  handlePointerDown(event) {
718
+ if (event.cancelable) {
719
+ event.preventDefault();
720
+ }
718
721
  if (event.pointerType === 'mouse') {
719
722
  if (KritzelEventHelper.isLeftClick(event)) {
720
723
  this._store.state.isDrawing = true;
@@ -749,6 +752,9 @@ class KritzelBrushTool extends KritzelBaseTool {
749
752
  }
750
753
  }
751
754
  handlePointerMove(event) {
755
+ if (event.cancelable) {
756
+ event.preventDefault();
757
+ }
752
758
  if (event.pointerType === 'mouse') {
753
759
  if (this._store.state.isDrawing) {
754
760
  const x = event.clientX - this._store.offsetX;
@@ -782,6 +788,9 @@ class KritzelBrushTool extends KritzelBaseTool {
782
788
  }
783
789
  }
784
790
  handlePointerUp(event) {
791
+ if (event.cancelable) {
792
+ event.preventDefault();
793
+ }
785
794
  if (event.pointerType === 'mouse') {
786
795
  if (this._store.state.isDrawing) {
787
796
  this._store.state.isDrawing = false;
@@ -1017,6 +1026,9 @@ class KritzelTextTool extends KritzelBaseTool {
1017
1026
  ];
1018
1027
  }
1019
1028
  handlePointerDown(event) {
1029
+ if (event.cancelable) {
1030
+ event.preventDefault();
1031
+ }
1020
1032
  if (event.pointerType === 'mouse') {
1021
1033
  const path = event.composedPath().slice(1);
1022
1034
  const objectElement = path.find(element => element.classList && element.classList.contains('object'));
@@ -1084,6 +1096,9 @@ class KritzelTextTool extends KritzelBaseTool {
1084
1096
  }
1085
1097
  handlePointerUp(event) {
1086
1098
  var _a, _b, _c, _d;
1099
+ if (event.cancelable) {
1100
+ event.preventDefault();
1101
+ }
1087
1102
  if (event.pointerType === 'mouse') {
1088
1103
  (_a = this._store.state.activeText) === null || _a === void 0 ? void 0 : _a.adjustTextareaSize();
1089
1104
  (_b = this._store.state.activeText) === null || _b === void 0 ? void 0 : _b.focus();
@@ -1251,12 +1266,20 @@ const KritzelCursorTrail = class {
1251
1266
  }
1252
1267
  }
1253
1268
  handleMouseDown(ev) {
1254
- if (ev.button === 0) {
1255
- this.isLeftButtonDown = true;
1256
- this.cursorTrailPoints = [];
1269
+ if (ev.pointerType === 'mouse') {
1270
+ if (ev.button === KritzelMouseButton.Left) {
1271
+ this.isLeftButtonDown = true;
1272
+ this.cursorTrailPoints = [];
1273
+ }
1274
+ }
1275
+ if (ev.pointerType === 'touch') {
1276
+ if (this.store.state.pointers.size === 1) {
1277
+ this.isLeftButtonDown = true;
1278
+ this.cursorTrailPoints = [];
1279
+ }
1257
1280
  }
1258
1281
  }
1259
- handleMouseMove(ev) {
1282
+ handlePointerMove(ev) {
1260
1283
  if (!this.isLeftButtonDown) {
1261
1284
  return;
1262
1285
  }
@@ -1269,40 +1292,22 @@ const KritzelCursorTrail = class {
1269
1292
  this.cursorTrailPoints = updatedTrail;
1270
1293
  }
1271
1294
  }
1272
- handleMouseUp(ev) {
1273
- if (ev.button === 0) {
1274
- this.isLeftButtonDown = false;
1275
- this.cursorTrailPoints = [];
1276
- }
1277
- }
1278
- handleTouchStart(ev) {
1279
- if (ev.touches.length === 1) {
1280
- this.isLeftButtonDown = true;
1281
- this.cursorTrailPoints = [];
1282
- }
1283
- }
1284
- handleTouchMove(ev) {
1285
- if (!this.isLeftButtonDown) {
1286
- return;
1287
- }
1288
- const touch = ev.touches[0];
1289
- const newPoint = { x: touch.clientX, y: touch.clientY, timestamp: Date.now() };
1290
- const updatedTrail = [newPoint, ...this.cursorTrailPoints];
1291
- if (updatedTrail.length > this.MAX_TRAIL_POINTS) {
1292
- this.cursorTrailPoints = updatedTrail.slice(0, this.MAX_TRAIL_POINTS);
1293
- }
1294
- else {
1295
- this.cursorTrailPoints = updatedTrail;
1295
+ handlePointerUp(ev) {
1296
+ if (ev.pointerType === 'mouse') {
1297
+ if (ev.button === KritzelMouseButton.Left) {
1298
+ this.isLeftButtonDown = false;
1299
+ this.cursorTrailPoints = [];
1300
+ }
1296
1301
  }
1297
- }
1298
- handleTouchEnd(ev) {
1299
- if (ev.touches.length === 0) {
1300
- this.isLeftButtonDown = false;
1301
- this.cursorTrailPoints = [];
1302
+ if (ev.pointerType === 'touch') {
1303
+ if (this.store.state.pointers.size === 0) {
1304
+ this.isLeftButtonDown = false;
1305
+ this.cursorTrailPoints = [];
1306
+ }
1302
1307
  }
1303
1308
  }
1304
1309
  render() {
1305
- return (h(Host, { key: 'c0a9b9ebe1634ba020024efed6446791d6a65a2f' }, this.cursorTrailPoints.length > 1 && (h("svg", { key: '50c73784eaffe743823bc6a75524fa4dc98566a8', class: "cursor-trail-svg", xmlns: "http://www.w3.org/2000/svg", style: {
1310
+ return (h(Host, { key: '2e6ee739a4c25cee00470ee95ca22e55712c8d7b' }, this.cursorTrailPoints.length > 1 && (h("svg", { key: '483aa687ccd290980ca9c588a84547df2bfdb659', class: "cursor-trail-svg", xmlns: "http://www.w3.org/2000/svg", style: {
1306
1311
  position: 'absolute',
1307
1312
  left: '0',
1308
1313
  top: '0',
@@ -1600,7 +1605,7 @@ class RemoveSelectionGroupCommand extends KritzelBaseCommand {
1600
1605
  this.previousSelectionGroup = this._store.state.selectionGroup;
1601
1606
  }
1602
1607
  execute() {
1603
- this._store.state.objectsOctree.remove(object => object.id === this.previousSelectionGroup.id);
1608
+ this._store.state.objectsOctree.remove(object => { var _a; return object.id === ((_a = this.previousSelectionGroup) === null || _a === void 0 ? void 0 : _a.id); });
1604
1609
  this._store.state.selectionGroup = null;
1605
1610
  }
1606
1611
  undo() {
@@ -2312,6 +2317,9 @@ class KritzelSelectionTool extends KritzelBaseTool {
2312
2317
  this.rotationHandler = new KritzelRotationHandler(this._store);
2313
2318
  }
2314
2319
  handlePointerDown(event) {
2320
+ if (event.cancelable) {
2321
+ event.preventDefault();
2322
+ }
2315
2323
  if (event.pointerType === 'mouse') {
2316
2324
  if (KritzelEventHelper.isLeftClick(event)) {
2317
2325
  this._store.state.isResizeHandleSelected = this.isHandleSelected(event);
@@ -2373,6 +2381,9 @@ class KritzelSelectionTool extends KritzelBaseTool {
2373
2381
  }
2374
2382
  }
2375
2383
  handlePointerMove(event) {
2384
+ if (event.cancelable) {
2385
+ event.preventDefault();
2386
+ }
2376
2387
  if (event.pointerType === 'mouse') {
2377
2388
  this.moveHandler.handlePointerMove(event);
2378
2389
  this.selectionHandler.handlePointerMove(event);
@@ -2392,6 +2403,9 @@ class KritzelSelectionTool extends KritzelBaseTool {
2392
2403
  }
2393
2404
  }
2394
2405
  handlePointerUp(event) {
2406
+ if (event.cancelable) {
2407
+ event.preventDefault();
2408
+ }
2395
2409
  if (event.pointerType === 'mouse') {
2396
2410
  this.moveHandler.handlePointerUp(event);
2397
2411
  this.selectionHandler.handlePointerUp(event);
@@ -2409,36 +2423,6 @@ class KritzelSelectionTool extends KritzelBaseTool {
2409
2423
  this.selectionHandler.handlePointerUp(event);
2410
2424
  }
2411
2425
  }
2412
- handleDoubleClick(event) {
2413
- var _a;
2414
- if (KritzelEventHelper.isLeftClick(event)) {
2415
- if (this._store.state.selectionGroup && ((_a = this._store.state.selectionGroup) === null || _a === void 0 ? void 0 : _a.objects.length) === 1) {
2416
- const selectedObject = this._store.state.selectionGroup.objects[0];
2417
- if (selectedObject instanceof KritzelText) {
2418
- this._store.history.executeCommand(new RemoveSelectionGroupCommand(this._store, this._store.state.selectionGroup));
2419
- this._store.setState('activeTool', KritzelToolRegistry.getTool('text'));
2420
- this._store.state.activeText = selectedObject;
2421
- setTimeout(() => {
2422
- selectedObject.focus();
2423
- }, 300);
2424
- }
2425
- }
2426
- }
2427
- }
2428
- handleDoubleTap(event) {
2429
- const selectionGroup = this.getSelectedObject(event);
2430
- if (!selectionGroup || selectionGroup.objects.length !== 1) {
2431
- return;
2432
- }
2433
- const selectedObject = selectionGroup.objects[0];
2434
- if (selectedObject instanceof KritzelText) {
2435
- this._store.setState('activeTool', KritzelToolRegistry.getTool('text'));
2436
- this._store.state.activeText = selectedObject;
2437
- setTimeout(() => {
2438
- selectedObject.focus();
2439
- }, 300);
2440
- }
2441
- }
2442
2426
  getSelectedObject(event) {
2443
2427
  const path = event.composedPath().slice(1);
2444
2428
  const objectElement = path.find(element => element.classList && element.classList.contains('object'));
@@ -3867,9 +3851,6 @@ const KritzelEngine = class {
3867
3851
  if (this.store.state.isEnabled === false) {
3868
3852
  return;
3869
3853
  }
3870
- if (ev.cancelable) {
3871
- ev.preventDefault();
3872
- }
3873
3854
  KritzelEventHelper.onLongTouchPress(ev, (event) => {
3874
3855
  if (!(this.store.state.activeTool instanceof KritzelSelectionTool)) {
3875
3856
  return;
@@ -3886,9 +3867,6 @@ const KritzelEngine = class {
3886
3867
  if (this.store.state.isEnabled === false) {
3887
3868
  return;
3888
3869
  }
3889
- if (ev.cancelable) {
3890
- ev.preventDefault();
3891
- }
3892
3870
  this.store.state.pointers.set(ev.pointerId, ev);
3893
3871
  this.viewport.handlePointerMove(ev);
3894
3872
  (_b = (_a = this.store.state) === null || _a === void 0 ? void 0 : _a.activeTool) === null || _b === void 0 ? void 0 : _b.handlePointerMove(ev);
@@ -3898,9 +3876,6 @@ const KritzelEngine = class {
3898
3876
  if (this.store.state.isEnabled === false) {
3899
3877
  return;
3900
3878
  }
3901
- if (ev.cancelable) {
3902
- ev.preventDefault();
3903
- }
3904
3879
  this.store.state.pointers.delete(ev.pointerId);
3905
3880
  this.host.releasePointerCapture(ev.pointerId);
3906
3881
  this.viewport.handlePointerUp(ev);
@@ -3911,9 +3886,6 @@ const KritzelEngine = class {
3911
3886
  if (this.store.state.isEnabled === false) {
3912
3887
  return;
3913
3888
  }
3914
- if (ev.cancelable) {
3915
- ev.preventDefault();
3916
- }
3917
3889
  this.host.releasePointerCapture(ev.pointerId);
3918
3890
  this.store.state.pointers.delete(ev.pointerId);
3919
3891
  this.viewport.handlePointerUp(ev);
@@ -4057,15 +4029,15 @@ const KritzelEngine = class {
4057
4029
  const baseHandleSizePx = computedStyle.getPropertyValue('--kritzel-selection-handle-size').trim() || '6px';
4058
4030
  const baseHandleSize = parseFloat(baseHandleSizePx);
4059
4031
  const baseHandleTouchSize = baseHandleSize * 2 < 14 ? 14 : baseHandleSize;
4060
- return (h(Host, { key: 'a797514d787c08c2cd6a2e526ace31fecddf8956' }, h("div", { key: 'd0d23c34809f26ab3c21f756923d1ef7a00ebb41', class: "debug-panel", style: { display: this.store.state.debugInfo.showViewportInfo ? 'block' : 'none' } }, h("div", { key: '302b23a9028483c7dc31f4ca983c8036f6de5b25' }, "TranslateX: ", (_a = this.store.state) === null || _a === void 0 ? void 0 :
4061
- _a.translateX), h("div", { key: '2224e2bb5bd1feea8a65ac4f082342a40e8e18b5' }, "TranslateY: ", (_b = this.store.state) === null || _b === void 0 ? void 0 :
4062
- _b.translateY), h("div", { key: '02108ee26500eb97a08d8460b6b71cdc553d6c90' }, "ViewportWidth: ", (_c = this.store.state) === null || _c === void 0 ? void 0 :
4063
- _c.viewportWidth), h("div", { key: '8e87161155f4e2960985292be3101e9f57893381' }, "ViewportHeight: ", (_d = this.store.state) === null || _d === void 0 ? void 0 :
4064
- _d.viewportHeight), h("div", { key: 'aa2469bda052787a93ea615451676dba4b4fb53e' }, "ObjectsInViewport. ", this.store.objects.length), h("div", { key: '593aaf98bfaec8aae03bd7a3f37e46e14f454333' }, "Scale: ", (_e = this.store.state) === null || _e === void 0 ? void 0 :
4065
- _e.scale), h("div", { key: '6c9799e82d30236c6f1277830dec32358bfccd93' }, "ActiveTool: ", (_g = (_f = this.store.state) === null || _f === void 0 ? void 0 : _f.activeTool) === null || _g === void 0 ? void 0 :
4066
- _g.name), h("div", { key: '3dbbec42f8a699a97ef65b5da35f2611866797e5' }, "HasViewportChanged: ", ((_h = this.store.state) === null || _h === void 0 ? void 0 : _h.hasViewportChanged) ? 'true' : 'false'), h("div", { key: '03a71e1efab2801e77e0d8dffc7a4814469613c7' }, "IsEnabled: ", ((_j = this.store.state) === null || _j === void 0 ? void 0 : _j.isEnabled) ? 'true' : 'false'), h("div", { key: '7663ed6cad2ed3b9b74bad5cb238a4cf0310e9e1' }, "IsScaling: ", ((_k = this.store.state) === null || _k === void 0 ? void 0 : _k.isScaling) ? 'true' : 'false'), h("div", { key: '957a1b0906ad9cecc46f470db1ad402d19f94d22' }, "IsPanning: ", ((_l = this.store.state) === null || _l === void 0 ? void 0 : _l.isPanning) ? 'true' : 'false'), h("div", { key: 'b73277742d0966445b6f49a0fb1433f80cab1d60' }, "IsFocused: ", this.store.state.isFocused ? 'true' : 'false'), h("div", { key: '6a4e0ca6d868b1f8ccfe2957f352fc454b3527ea' }, "IsSelecting: ", this.isSelecting ? 'true' : 'false'), h("div", { key: 'da9dce9f4c38cd740f27ecc8de3c32edac2a7fe2' }, "IsSelectionActive: ", this.isSelectionActive ? 'true' : 'false'), h("div", { key: 'f6b0d7cc9e828cac5a65879b9973944a444be6b1' }, "IsResizeHandleSelected: ", this.store.state.isResizeHandleSelected ? 'true' : 'false'), h("div", { key: '3ef7c46329e47a97703e49f47c8f5325f0d4b9b2' }, "IsRotationHandleSelected: ", this.store.state.isRotationHandleSelected ? 'true' : 'false'), h("div", { key: 'cab4fb21ede0b4f4925e9d7d2175ad8661f07907' }, "IsDrawing: ", this.store.state.isDrawing ? 'true' : 'false'), h("div", { key: '2f4eeaa711a56e2246495fe1eee46d5629c93364' }, "IsWriting: ", this.store.state.isWriting ? 'true' : 'false'), h("div", { key: 'ee2e5edcd140da8b957b468989c71e7c247063bb' }, "CursorX: ", (_m = this.store.state) === null || _m === void 0 ? void 0 :
4067
- _m.cursorX), h("div", { key: '1fea9888ca2f1a9fed25ad0cac065d8278c78227' }, "CursorY: ", (_o = this.store.state) === null || _o === void 0 ? void 0 :
4068
- _o.cursorY)), h("div", { key: '226c675711317ff06f1db5165fa19794310f2e1e', class: "origin", style: {
4032
+ return (h(Host, { key: '632d8633bd27520dedda2e6eb84862d280fa6714' }, h("div", { key: 'fda3cdc033d97e1f17ae8fcede94933ae73458b3', class: "debug-panel", style: { display: this.store.state.debugInfo.showViewportInfo ? 'block' : 'none' } }, h("div", { key: '823aac3e9b58615e7c499163bd9101675a62ff70' }, "TranslateX: ", (_a = this.store.state) === null || _a === void 0 ? void 0 :
4033
+ _a.translateX), h("div", { key: '5d138212f0fefcaea7dc839f6d5f3e9c68c19681' }, "TranslateY: ", (_b = this.store.state) === null || _b === void 0 ? void 0 :
4034
+ _b.translateY), h("div", { key: '8342eabd22ba71b58fe8346a182904cf5f4ccbb9' }, "ViewportWidth: ", (_c = this.store.state) === null || _c === void 0 ? void 0 :
4035
+ _c.viewportWidth), h("div", { key: '325546fc07c2cfec7808e661d82f21db06d53aea' }, "ViewportHeight: ", (_d = this.store.state) === null || _d === void 0 ? void 0 :
4036
+ _d.viewportHeight), h("div", { key: '2b1826604f561c58ad573d5545a0913498345b1f' }, "ObjectsInViewport. ", this.store.objects.length), h("div", { key: '749b56a6bfd63c838c89c55595bedd6749ee89ad' }, "Scale: ", (_e = this.store.state) === null || _e === void 0 ? void 0 :
4037
+ _e.scale), h("div", { key: '0ee63c810198cb583c4e419f14503f5fb8d71d32' }, "ActiveTool: ", (_g = (_f = this.store.state) === null || _f === void 0 ? void 0 : _f.activeTool) === null || _g === void 0 ? void 0 :
4038
+ _g.name), h("div", { key: '5facf47db6f093db24b12fa4b4453d20af1b1f57' }, "HasViewportChanged: ", ((_h = this.store.state) === null || _h === void 0 ? void 0 : _h.hasViewportChanged) ? 'true' : 'false'), h("div", { key: '948069683ac1568257dab4dbd5d1b3e9926ac501' }, "IsEnabled: ", ((_j = this.store.state) === null || _j === void 0 ? void 0 : _j.isEnabled) ? 'true' : 'false'), h("div", { key: 'a3e5bf4522b9d515bc7d346dbc9803af12eb60f5' }, "IsScaling: ", ((_k = this.store.state) === null || _k === void 0 ? void 0 : _k.isScaling) ? 'true' : 'false'), h("div", { key: 'ce8fc21cd938e7a58fef489b086b5111b1612353' }, "IsPanning: ", ((_l = this.store.state) === null || _l === void 0 ? void 0 : _l.isPanning) ? 'true' : 'false'), h("div", { key: '5725282e17bbe0766ebe010377070df81c1542d2' }, "IsFocused: ", this.store.state.isFocused ? 'true' : 'false'), h("div", { key: '8805bbfac86078d2a0541d60a53a3c6a9585a1db' }, "IsSelecting: ", this.isSelecting ? 'true' : 'false'), h("div", { key: '1801d4d8297e36f4c14022c411ce5a1889042398' }, "IsSelectionActive: ", this.isSelectionActive ? 'true' : 'false'), h("div", { key: 'd269982265e35a511eeb892969b3e47eb21b023f' }, "IsResizeHandleSelected: ", this.store.state.isResizeHandleSelected ? 'true' : 'false'), h("div", { key: '1362e4c3d93a8452705e5fb1a1ba6a0ffdb3c557' }, "IsRotationHandleSelected: ", this.store.state.isRotationHandleSelected ? 'true' : 'false'), h("div", { key: '2181e07738e56e10c57c4d6a06acdd667a14da83' }, "IsDrawing: ", this.store.state.isDrawing ? 'true' : 'false'), h("div", { key: '57b96821b4fb1cbc97ec7083fc523c0bdba7539b' }, "IsWriting: ", this.store.state.isWriting ? 'true' : 'false'), h("div", { key: 'c7302e6ce4635e04aa92a24878dd3cbce8724228' }, "CursorX: ", (_m = this.store.state) === null || _m === void 0 ? void 0 :
4039
+ _m.cursorX), h("div", { key: '93b01e5d147ca445e6645749043bb7fb46852f39' }, "CursorY: ", (_o = this.store.state) === null || _o === void 0 ? void 0 :
4040
+ _o.cursorY)), h("div", { key: '7b535830bbd75ca61e09d6984120e17168911d7d', class: "origin", style: {
4069
4041
  transform: `matrix(${(_p = this.store.state) === null || _p === void 0 ? void 0 : _p.scale}, 0, 0, ${(_q = this.store.state) === null || _q === void 0 ? void 0 : _q.scale}, ${(_r = this.store.state) === null || _r === void 0 ? void 0 : _r.translateX}, ${(_s = this.store.state) === null || _s === void 0 ? void 0 : _s.translateY})`,
4070
4042
  } }, (_t = this.store.objects) === null || _t === void 0 ? void 0 :
4071
4043
  _t.map(object => {
@@ -4162,7 +4134,7 @@ const KritzelEngine = class {
4162
4134
  fill: 'transparent',
4163
4135
  cursor: 'grab',
4164
4136
  }, visibility: object.selected && !this.isSelecting ? 'visible' : 'hidden' }), h("g", { style: { display: this.store.state.debugInfo.showObjectInfo ? 'block' : 'none', pointerEvents: 'none' } }, h("foreignObject", { x: object.totalWidth.toString(), y: "0", width: "400px", height: "160px", style: { minHeight: '0', minWidth: '0', display: object.debugInfoVisible ? 'block' : 'none' } }, h("div", { style: { width: '100%', height: '100%' } }, h("div", { style: { whiteSpace: 'nowrap' } }, "zIndex: ", object.zIndex), h("div", { style: { whiteSpace: 'nowrap' } }, "translateX: ", object.translateX), h("div", { style: { whiteSpace: 'nowrap' } }, "translateY: ", object.translateY), h("div", { style: { whiteSpace: 'nowrap' } }, "width: ", object.width), h("div", { style: { whiteSpace: 'nowrap' } }, "height: ", object.height), h("div", { style: { whiteSpace: 'nowrap' } }, "scale: ", object.scale), h("div", { style: { whiteSpace: 'nowrap' } }, "rotation: ", object.rotation)))))));
4165
- }), h("svg", { key: '34f891f9408d3b0174c67b869f49cce7329fd84a', class: "object", xmlns: "http://www.w3.org/2000/svg", style: {
4137
+ }), h("svg", { key: 'cce82d436a044879bfbb900a836978c392f232ae', class: "object", xmlns: "http://www.w3.org/2000/svg", style: {
4166
4138
  height: (_u = this.store.state.currentPath) === null || _u === void 0 ? void 0 : _u.height.toString(),
4167
4139
  width: (_v = this.store.state.currentPath) === null || _v === void 0 ? void 0 : _v.width.toString(),
4168
4140
  left: '0',
@@ -4172,12 +4144,12 @@ const KritzelEngine = class {
4172
4144
  transform: (_x = this.store.state.currentPath) === null || _x === void 0 ? void 0 : _x.transformationMatrix,
4173
4145
  transformOrigin: 'top left',
4174
4146
  overflow: 'visible',
4175
- }, viewBox: (_y = this.store.state.currentPath) === null || _y === void 0 ? void 0 : _y.viewBox }, h("path", { key: '97360b7270a285a87a45459e497968a444cc83cb', d: (_z = this.store.state.currentPath) === null || _z === void 0 ? void 0 : _z.d, fill: (_0 = this.store.state.currentPath) === null || _0 === void 0 ? void 0 : _0.fill, stroke: (_1 = this.store.state.currentPath) === null || _1 === void 0 ? void 0 : _1.stroke }))), this.store.state.isContextMenuVisible && (h("kritzel-context-menu", { key: '111d7b1daccd69aaf914dfcd51f525f2ad81802e', class: "context-menu", ref: el => (this.contextMenuElement = el), items: this.store.state.contextMenuItems, style: {
4147
+ }, viewBox: (_y = this.store.state.currentPath) === null || _y === void 0 ? void 0 : _y.viewBox }, h("path", { key: '1c0366598a805faffc965824c30c05fe1f1e0f74', d: (_z = this.store.state.currentPath) === null || _z === void 0 ? void 0 : _z.d, fill: (_0 = this.store.state.currentPath) === null || _0 === void 0 ? void 0 : _0.fill, stroke: (_1 = this.store.state.currentPath) === null || _1 === void 0 ? void 0 : _1.stroke }))), this.store.state.isContextMenuVisible && (h("kritzel-context-menu", { key: '624855529efbe7a5de784e3e1ce2b82282fac63a', class: "context-menu", ref: el => (this.contextMenuElement = el), items: this.store.state.contextMenuItems, style: {
4176
4148
  position: 'fixed',
4177
4149
  left: `${this.store.state.contextMenuX}px`,
4178
4150
  top: `${this.store.state.contextMenuY}px`,
4179
4151
  zIndex: '10000',
4180
- }, onActionSelected: event => this.handleContextMenuAction(event) })), ((_2 = this.store.state) === null || _2 === void 0 ? void 0 : _2.activeTool) instanceof KritzelEraserTool && !this.store.state.isScaling && h("kritzel-cursor-trail", { key: '9814ec7d95a84edc8af1bff319eff5f59b8cfc86' })));
4152
+ }, onActionSelected: event => this.handleContextMenuAction(event) })), ((_2 = this.store.state) === null || _2 === void 0 ? void 0 : _2.activeTool) instanceof KritzelEraserTool && !this.store.state.isScaling && h("kritzel-cursor-trail", { key: 'd09a4701c43b8acec4e9daa09b69f545eebe95b7', store: this.store })));
4181
4153
  }
4182
4154
  get host() { return getElement(this); }
4183
4155
  };