@weasel-js/core 1.5.0 → 1.5.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.
Files changed (42) hide show
  1. package/CHANGELOG.md +363 -0
  2. package/dist/autoPoseDescriptor-Dr6CwNZK.d.ts +26 -0
  3. package/dist/{chunk-UCPV7JXC.js → chunk-3LPQ2XZG.js} +4 -159
  4. package/dist/chunk-3LPQ2XZG.js.map +1 -0
  5. package/dist/{chunk-MG7OXCAI.js → chunk-GREL4MVO.js} +2276 -1485
  6. package/dist/chunk-GREL4MVO.js.map +1 -0
  7. package/dist/chunk-HAGOFNP5.js +162 -0
  8. package/dist/chunk-HAGOFNP5.js.map +1 -0
  9. package/dist/chunk-LXJDWBEL.js +318 -0
  10. package/dist/chunk-LXJDWBEL.js.map +1 -0
  11. package/dist/{chunk-BDWAA634.js → chunk-P6MGECVO.js} +3 -3
  12. package/dist/{chunk-BDWAA634.js.map → chunk-P6MGECVO.js.map} +1 -1
  13. package/dist/{chunk-MQI4PIX3.js → chunk-XXQ6FLCJ.js} +3 -3
  14. package/dist/{chunk-MQI4PIX3.js.map → chunk-XXQ6FLCJ.js.map} +1 -1
  15. package/dist/clipboard.d.ts +1 -1
  16. package/dist/clone.d.ts +2 -2
  17. package/dist/{depSchema-nMqj_qTM.d.ts → depSchema-BubKMv-2.d.ts} +67 -78
  18. package/dist/{grid-BrIa38gG.d.ts → grid-Z_Af3vTl.d.ts} +1 -1
  19. package/dist/index.d.ts +647 -382
  20. package/dist/index.js +6 -4
  21. package/dist/insert.d.ts +3 -3
  22. package/dist/insert.js +2 -1
  23. package/dist/insert.js.map +1 -1
  24. package/dist/math-E3rZn4bR.d.ts +282 -0
  25. package/dist/math.d.ts +5 -0
  26. package/dist/math.js +4 -0
  27. package/dist/math.js.map +1 -0
  28. package/dist/move.d.ts +4 -4
  29. package/dist/move.js +3 -2
  30. package/dist/move.js.map +1 -1
  31. package/dist/{options-BDyCnrp8.d.ts → options-BPcmwYk7.d.ts} +1 -1
  32. package/dist/{autoPoseDescriptor-CvjflWJK.d.ts → pointSnapToGrid-CgcK2R_I.d.ts} +2 -26
  33. package/dist/{poseDescriptor-CGOgIgf8.d.ts → poseDescriptor-PgfVKfa0.d.ts} +1 -1
  34. package/dist/renderer.d.ts +5 -6
  35. package/dist/renderer.js +6 -4
  36. package/dist/resize.d.ts +5 -4
  37. package/dist/resize.js +3 -2
  38. package/dist/{types-DMyo7dnM.d.ts → types-BHGdrOcu.d.ts} +1 -1
  39. package/dist/{types-DtjCJA5r.d.ts → types-BdaK9PcP.d.ts} +1 -1
  40. package/package.json +14 -10
  41. package/dist/chunk-MG7OXCAI.js.map +0 -1
  42. package/dist/chunk-UCPV7JXC.js.map +0 -1
package/dist/resize.d.ts CHANGED
@@ -1,10 +1,11 @@
1
- export { A as AUTO_POSE_DESCRIPTOR, C as CORNER_ANCHORS, a as CornerAnchor, b as CornerHandle, U as UseResizeOptions, c as cornerPoint, d as cornerResizeHandles, f as fixedCornerOf, h as hitCornerHandle, i as isPathLike, e as isRectPose, p as pointSnapToGrid } from './autoPoseDescriptor-CvjflWJK.js';
2
- export { P as PoseDescriptor, R as RECT_POSE_DESCRIPTOR, b as ROTATED_POSE_DESCRIPTOR, p as poseDescriptorForNode } from './poseDescriptor-CGOgIgf8.js';
3
- import { B as BoundsConstraint } from './types-DMyo7dnM.js';
1
+ export { C as CORNER_ANCHORS, a as CornerAnchor, b as CornerHandle, U as UseResizeOptions, c as cornerPoint, d as cornerResizeHandles, f as fixedCornerOf, h as hitCornerHandle, p as pointSnapToGrid } from './pointSnapToGrid-CgcK2R_I.js';
2
+ export { P as PoseDescriptor, R as RECT_POSE_DESCRIPTOR, b as ROTATED_POSE_DESCRIPTOR, p as poseDescriptorForNode } from './poseDescriptor-PgfVKfa0.js';
3
+ import { B as BoundsConstraint } from './types-BHGdrOcu.js';
4
4
  import { Bounds, ModifierState, View } from '@weasel-js/routing';
5
+ export { A as AUTO_POSE_DESCRIPTOR, i as isPathLike, a as isRectPose } from './autoPoseDescriptor-Dr6CwNZK.js';
5
6
  import { G as Guide } from './types-D2tTKEU0.js';
6
7
  import '@weasel-js/history';
7
- import './types-DtjCJA5r.js';
8
+ import './types-BdaK9PcP.js';
8
9
 
9
10
  /** Resize constraint that stops a node shrinking past a minimum. The anchored
10
11
  * edge stays put, so clamping pushes the dragged edge back rather than moving
package/dist/resize.js CHANGED
@@ -1,4 +1,5 @@
1
- export { CORNER_ANCHORS, DEFAULT_RESIZE_BEHAVIORS, clampMinSize, cornerPoint, cornerResizeHandles, fixedCornerOf, hitCornerHandle, lockAspectWithModifier, pointSnapToGrid, snapToGrid, snapToGuides } from './chunk-MQI4PIX3.js';
2
- export { AUTO_POSE_DESCRIPTOR, RECT_POSE_DESCRIPTOR, ROTATED_POSE_DESCRIPTOR, isPathLike, isRectPose, poseDescriptorForNode } from './chunk-UCPV7JXC.js';
1
+ export { CORNER_ANCHORS, DEFAULT_RESIZE_BEHAVIORS, clampMinSize, cornerPoint, cornerResizeHandles, fixedCornerOf, hitCornerHandle, lockAspectWithModifier, pointSnapToGrid, snapToGrid, snapToGuides } from './chunk-XXQ6FLCJ.js';
2
+ import './chunk-HAGOFNP5.js';
3
+ export { AUTO_POSE_DESCRIPTOR, RECT_POSE_DESCRIPTOR, ROTATED_POSE_DESCRIPTOR, isPathLike, isRectPose, poseDescriptorForNode } from './chunk-3LPQ2XZG.js';
3
4
  //# sourceMappingURL=resize.js.map
4
5
  //# sourceMappingURL=resize.js.map
@@ -1,5 +1,5 @@
1
1
  import { Op } from '@weasel-js/history';
2
- import { S as SnapTarget, M as MoveAdapter, I as InsertAdapter } from './types-DtjCJA5r.js';
2
+ import { S as SnapTarget, M as MoveAdapter, I as InsertAdapter } from './types-BdaK9PcP.js';
3
3
  import { Bounds, ModifierState, ResizeAnchor } from '@weasel-js/routing';
4
4
 
5
5
  /** Pointer position in both world and client coords. */
@@ -382,4 +382,4 @@ interface OrderedAdapter {
382
382
  setChildOrder?(parentId: string | null, ids: string[]): void;
383
383
  }
384
384
 
385
- export type { AreaSelectAdapter as A, ClipboardSnapshot as C, DropTarget as D, InsertAdapter as I, LayoutStrategy as L, MoveAdapter as M, OrderedAdapter as O, RotateAdapter as R, SnapTarget as S, SceneAdapter as a, LassoHitMode as b, LassoSelectAdapter as c, ResizeAdapter as d, LayerEnumerableAdapter as e, LayoutSnap as f, ContainerBounds as g, LayoutChild as h, LayoutContainer as i, LayoutDragged as j };
385
+ export type { AreaSelectAdapter as A, ClipboardSnapshot as C, DropTarget as D, InsertAdapter as I, LayoutStrategy as L, MoveAdapter as M, OrderedAdapter as O, ResizeAdapter as R, SnapTarget as S, SceneAdapter as a, LassoHitMode as b, LassoSelectAdapter as c, RotateAdapter as d, LayerEnumerableAdapter as e, LayoutSnap as f, ContainerBounds as g, LayoutChild as h, LayoutContainer as i, LayoutDragged as j };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weasel-js/core",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "Domain-agnostic 2D scene graph primitives for React: viewport math, drag/resize/insert/clone interactions, layered canvas rendering.",
5
5
  "license": "MIT",
6
6
  "author": "orochi235",
@@ -32,6 +32,10 @@
32
32
  "import": "./dist/index.js",
33
33
  "types": "./dist/index.d.ts"
34
34
  },
35
+ "./math": {
36
+ "import": "./dist/math.js",
37
+ "types": "./dist/math.d.ts"
38
+ },
35
39
  "./move": {
36
40
  "import": "./dist/move.js",
37
41
  "types": "./dist/move.d.ts"
@@ -72,16 +76,16 @@
72
76
  },
73
77
  "peerDependencies": {
74
78
  "react": ">=18",
75
- "@weasel-js/font": "1.5.0"
79
+ "@weasel-js/font": "1.5.1"
76
80
  },
77
81
  "dependencies": {
78
- "@weasel-js/cursor": "1.5.0",
79
- "@weasel-js/geom": "1.5.0",
80
- "@weasel-js/gestures": "1.5.0",
81
- "@weasel-js/history": "1.5.0",
82
- "@weasel-js/paint": "1.5.0",
83
- "@weasel-js/routing": "1.5.0",
84
- "@weasel-js/text": "1.5.0",
82
+ "@weasel-js/cursor": "1.5.1",
83
+ "@weasel-js/geom": "1.5.1",
84
+ "@weasel-js/gestures": "1.5.1",
85
+ "@weasel-js/history": "1.5.1",
86
+ "@weasel-js/paint": "1.5.1",
87
+ "@weasel-js/routing": "1.5.1",
88
+ "@weasel-js/text": "1.5.1",
85
89
  "earcut": "2.2.4",
86
90
  "polygon-clipping": "^0.15.7"
87
91
  },
@@ -99,6 +103,6 @@
99
103
  "2d"
100
104
  ],
101
105
  "devDependencies": {
102
- "@weasel-js/modes": "1.5.0"
106
+ "@weasel-js/modes": "1.5.1"
103
107
  }
104
108
  }