@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.
- package/CHANGELOG.md +363 -0
- package/dist/autoPoseDescriptor-Dr6CwNZK.d.ts +26 -0
- package/dist/{chunk-UCPV7JXC.js → chunk-3LPQ2XZG.js} +4 -159
- package/dist/chunk-3LPQ2XZG.js.map +1 -0
- package/dist/{chunk-MG7OXCAI.js → chunk-GREL4MVO.js} +2276 -1485
- package/dist/chunk-GREL4MVO.js.map +1 -0
- package/dist/chunk-HAGOFNP5.js +162 -0
- package/dist/chunk-HAGOFNP5.js.map +1 -0
- package/dist/chunk-LXJDWBEL.js +318 -0
- package/dist/chunk-LXJDWBEL.js.map +1 -0
- package/dist/{chunk-BDWAA634.js → chunk-P6MGECVO.js} +3 -3
- package/dist/{chunk-BDWAA634.js.map → chunk-P6MGECVO.js.map} +1 -1
- package/dist/{chunk-MQI4PIX3.js → chunk-XXQ6FLCJ.js} +3 -3
- package/dist/{chunk-MQI4PIX3.js.map → chunk-XXQ6FLCJ.js.map} +1 -1
- package/dist/clipboard.d.ts +1 -1
- package/dist/clone.d.ts +2 -2
- package/dist/{depSchema-nMqj_qTM.d.ts → depSchema-BubKMv-2.d.ts} +67 -78
- package/dist/{grid-BrIa38gG.d.ts → grid-Z_Af3vTl.d.ts} +1 -1
- package/dist/index.d.ts +647 -382
- package/dist/index.js +6 -4
- package/dist/insert.d.ts +3 -3
- package/dist/insert.js +2 -1
- package/dist/insert.js.map +1 -1
- package/dist/math-E3rZn4bR.d.ts +282 -0
- package/dist/math.d.ts +5 -0
- package/dist/math.js +4 -0
- package/dist/math.js.map +1 -0
- package/dist/move.d.ts +4 -4
- package/dist/move.js +3 -2
- package/dist/move.js.map +1 -1
- package/dist/{options-BDyCnrp8.d.ts → options-BPcmwYk7.d.ts} +1 -1
- package/dist/{autoPoseDescriptor-CvjflWJK.d.ts → pointSnapToGrid-CgcK2R_I.d.ts} +2 -26
- package/dist/{poseDescriptor-CGOgIgf8.d.ts → poseDescriptor-PgfVKfa0.d.ts} +1 -1
- package/dist/renderer.d.ts +5 -6
- package/dist/renderer.js +6 -4
- package/dist/resize.d.ts +5 -4
- package/dist/resize.js +3 -2
- package/dist/{types-DMyo7dnM.d.ts → types-BHGdrOcu.d.ts} +1 -1
- package/dist/{types-DtjCJA5r.d.ts → types-BdaK9PcP.d.ts} +1 -1
- package/package.json +14 -10
- package/dist/chunk-MG7OXCAI.js.map +0 -1
- package/dist/chunk-UCPV7JXC.js.map +0 -1
package/dist/resize.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { P as PoseDescriptor, R as RECT_POSE_DESCRIPTOR, b as ROTATED_POSE_DESCRIPTOR, p as poseDescriptorForNode } from './poseDescriptor-
|
|
3
|
-
import { B as BoundsConstraint } from './types-
|
|
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-
|
|
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-
|
|
2
|
-
|
|
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-
|
|
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,
|
|
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.
|
|
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.
|
|
79
|
+
"@weasel-js/font": "1.5.1"
|
|
76
80
|
},
|
|
77
81
|
"dependencies": {
|
|
78
|
-
"@weasel-js/cursor": "1.5.
|
|
79
|
-
"@weasel-js/geom": "1.5.
|
|
80
|
-
"@weasel-js/gestures": "1.5.
|
|
81
|
-
"@weasel-js/history": "1.5.
|
|
82
|
-
"@weasel-js/paint": "1.5.
|
|
83
|
-
"@weasel-js/routing": "1.5.
|
|
84
|
-
"@weasel-js/text": "1.5.
|
|
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.
|
|
106
|
+
"@weasel-js/modes": "1.5.1"
|
|
103
107
|
}
|
|
104
108
|
}
|