@weasel-js/core 1.4.2 → 1.4.3

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 (43) hide show
  1. package/CHANGELOG.md +375 -0
  2. package/dist/{DrawCommand-Ch8W63oQ.d.ts → DrawCommand-CD-ug3d9.d.ts} +45 -1
  3. package/dist/{stroke-Dq8nL4A2.d.ts → builtins-CtGORLCG.d.ts} +51 -2
  4. package/dist/{chunk-2KKYDDDD.js → chunk-4RJP2N2L.js} +43 -21
  5. package/dist/chunk-4RJP2N2L.js.map +1 -0
  6. package/dist/{chunk-MXFSHJOM.js → chunk-D4AAWR64.js} +4 -4
  7. package/dist/{chunk-MXFSHJOM.js.map → chunk-D4AAWR64.js.map} +1 -1
  8. package/dist/{chunk-ZB7UYJVG.js → chunk-DOBSZOPR.js} +3 -3
  9. package/dist/{chunk-ZB7UYJVG.js.map → chunk-DOBSZOPR.js.map} +1 -1
  10. package/dist/{chunk-TORKRNFY.js → chunk-LEURURX3.js} +68 -5
  11. package/dist/chunk-LEURURX3.js.map +1 -0
  12. package/dist/{chunk-Y5KS66G7.js → chunk-ORZNKVXM.js} +3 -3
  13. package/dist/{chunk-Y5KS66G7.js.map → chunk-ORZNKVXM.js.map} +1 -1
  14. package/dist/{chunk-67KE7SDP.js → chunk-T3UQ3F6R.js} +4 -4
  15. package/dist/{chunk-67KE7SDP.js.map → chunk-T3UQ3F6R.js.map} +1 -1
  16. package/dist/{chunk-KIVJXUYE.js → chunk-WYPSGIYS.js} +1058 -503
  17. package/dist/chunk-WYPSGIYS.js.map +1 -0
  18. package/dist/clipboard.d.ts +2 -2
  19. package/dist/clipboard.js +3 -3
  20. package/dist/clone.d.ts +2 -2
  21. package/dist/clone.js +3 -3
  22. package/dist/{geometry-Dtt_k6Dq.d.ts → geometry-CHR36Ub_.d.ts} +3 -3
  23. package/dist/{grid-nnXU4VjN.d.ts → grid-Bw8cSde-.d.ts} +1 -1
  24. package/dist/index.d.ts +117 -232
  25. package/dist/index.js +7 -7
  26. package/dist/insert.d.ts +3 -3
  27. package/dist/move.d.ts +4 -4
  28. package/dist/move.js +2 -2
  29. package/dist/{options-CdFl510T.d.ts → options-DYfUlZxk.d.ts} +1 -1
  30. package/dist/{pointSnapToGrid-Dmthv94u.d.ts → pointSnapToGrid-D1bRdq-j.d.ts} +2 -2
  31. package/dist/{registry-BwY_DxJM.d.ts → registry-DnoTWGED.d.ts} +98 -8
  32. package/dist/renderer.d.ts +32 -4
  33. package/dist/renderer.js +7 -7
  34. package/dist/resize.d.ts +4 -4
  35. package/dist/routing.d.ts +6 -6
  36. package/dist/routing.js +1 -1
  37. package/dist/{types-miXHGrZM.d.ts → types-BJqsTlXl.d.ts} +1 -1
  38. package/dist/{types-XBcDEp3Y.d.ts → types-CoVTbo_y.d.ts} +9 -0
  39. package/dist/{types-DIQAisSG.d.ts → types-H7o6MaPo.d.ts} +20 -1
  40. package/package.json +9 -9
  41. package/dist/chunk-2KKYDDDD.js.map +0 -1
  42. package/dist/chunk-KIVJXUYE.js.map +0 -1
  43. package/dist/chunk-TORKRNFY.js.map +0 -1
@@ -1,5 +1,5 @@
1
- import { N as NodeId } from './types-DIQAisSG.js';
2
- import { C as ClipboardSnapshot, I as InsertAdapter } from './types-XBcDEp3Y.js';
1
+ import { N as NodeId } from './types-H7o6MaPo.js';
2
+ import { C as ClipboardSnapshot, I as InsertAdapter } from './types-CoVTbo_y.js';
3
3
  import '@weasel-js/history';
4
4
  import './path-JEV2c5If.js';
5
5
 
package/dist/clipboard.js CHANGED
@@ -1,5 +1,5 @@
1
- export { WEASEL_CLIPBOARD_MIME, WEASEL_CLIPBOARD_MIME_WEB, buildWeaselClipboardText, embedWeaselMetadataInSvg, extractWeaselClipboardFromSvg, parseWeaselClipboardText, sniffWeaselClipboardText, useClipboardOps } from './chunk-67KE7SDP.js';
2
- import './chunk-ZB7UYJVG.js';
3
- import './chunk-2KKYDDDD.js';
1
+ export { WEASEL_CLIPBOARD_MIME, WEASEL_CLIPBOARD_MIME_WEB, buildWeaselClipboardText, embedWeaselMetadataInSvg, extractWeaselClipboardFromSvg, parseWeaselClipboardText, sniffWeaselClipboardText, useClipboardOps } from './chunk-T3UQ3F6R.js';
2
+ import './chunk-DOBSZOPR.js';
3
+ import './chunk-4RJP2N2L.js';
4
4
  //# sourceMappingURL=clipboard.js.map
5
5
  //# sourceMappingURL=clipboard.js.map
package/dist/clone.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { C as CloneBehavior } from './types-miXHGrZM.js';
1
+ import { C as CloneBehavior } from './types-BJqsTlXl.js';
2
2
  import '@weasel-js/history';
3
- import './types-XBcDEp3Y.js';
3
+ import './types-CoVTbo_y.js';
4
4
 
5
5
  /** Clone-on-alt-drag behavior for `useClone`; activates when Alt/Option is held at drag start. */
6
6
  declare function cloneByAltDrag(): CloneBehavior;
package/dist/clone.js CHANGED
@@ -1,5 +1,5 @@
1
- export { cloneByAltDrag } from './chunk-MXFSHJOM.js';
2
- import './chunk-ZB7UYJVG.js';
3
- import './chunk-2KKYDDDD.js';
1
+ export { cloneByAltDrag } from './chunk-D4AAWR64.js';
2
+ import './chunk-DOBSZOPR.js';
3
+ import './chunk-4RJP2N2L.js';
4
4
  //# sourceMappingURL=clone.js.map
5
5
  //# sourceMappingURL=clone.js.map
@@ -1,5 +1,5 @@
1
1
  import { V as View } from './view-DSQgxBJB.js';
2
- import { R as ResizePose, a as RotatedPose } from './types-miXHGrZM.js';
2
+ import { R as ResizePose, a as RotatedPose } from './types-BJqsTlXl.js';
3
3
 
4
4
  /**
5
5
  * Axis-aligned rectangle in world space. Kit-wide `Bounds` shape used by
@@ -26,12 +26,12 @@ interface FitViewToBoundsOptions {
26
26
  padding?: number;
27
27
  /**
28
28
  * Override the kit's system max scale. Defaults to the kit-wide max zoom
29
- * used by `computeWheelAction` / `useZoom` (currently `10`).
29
+ * used by `computeWheelAction` (`DEFAULT_MAX_ZOOM`).
30
30
  */
31
31
  maxScale?: number;
32
32
  /**
33
33
  * Override the kit's system min scale. Defaults to the kit-wide min zoom
34
- * used by `computeWheelAction` / `useZoom` (currently `0.1`).
34
+ * used by `computeWheelAction` (`DEFAULT_MIN_ZOOM`).
35
35
  */
36
36
  minScale?: number;
37
37
  /**
@@ -1,4 +1,4 @@
1
- import { b as MoveBehavior, S as SnapStrategy } from './types-miXHGrZM.js';
1
+ import { b as MoveBehavior, S as SnapStrategy } from './types-BJqsTlXl.js';
2
2
  import { D as DebugSink } from './types-BHK2dkMu.js';
3
3
 
4
4
  /**