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