@witchcraft/layout 0.4.3 → 0.5.0
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/dist/module.json +1 -1
- package/dist/runtime/components/FrameDragHandle.vue +3 -3
- package/dist/runtime/components/LayoutDragEdgeGrabbed.vue +3 -3
- package/dist/runtime/components/LayoutDragEdgeHandle.d.vue.ts +2 -2
- package/dist/runtime/components/LayoutDragEdgeHandle.vue +2 -2
- package/dist/runtime/components/LayoutDragEdgeHandle.vue.d.ts +2 -2
- package/dist/runtime/components/LayoutDragEdges.vue +5 -5
- package/dist/runtime/components/LayoutEdgesActiveFrame.vue +2 -2
- package/dist/runtime/components/LayoutFrame.vue +2 -2
- package/dist/runtime/components/LayoutIntersectionHandle.d.vue.ts +2 -2
- package/dist/runtime/components/LayoutIntersectionHandle.vue +2 -2
- package/dist/runtime/components/LayoutIntersectionHandle.vue.d.ts +2 -2
- package/dist/runtime/components/LayoutIntersections.vue +4 -4
- package/dist/runtime/components/LayoutWindow.d.vue.ts +54 -45
- package/dist/runtime/components/LayoutWindow.vue +29 -29
- package/dist/runtime/components/LayoutWindow.vue.d.ts +54 -45
- package/dist/runtime/composables/useFrames.d.ts +142 -129
- package/dist/runtime/composables/useFrames.js +122 -94
- package/dist/runtime/demo/App.vue +16 -16
- package/dist/runtime/demo/DemoControls.d.vue.ts +2 -2
- package/dist/runtime/demo/DemoControls.vue +4 -4
- package/dist/runtime/demo/DemoControls.vue.d.ts +2 -2
- package/dist/runtime/demo/tailwind.css +1 -1
- package/dist/runtime/helpers/createZoneSideClipPath.d.ts +2 -2
- package/dist/runtime/helpers/findEdgesTouchingWindow.d.ts +7 -0
- package/dist/runtime/helpers/findEdgesTouchingWindow.js +20 -0
- package/dist/runtime/helpers/{findFrameDraggableEdges.d.ts → findFrameMoveableEdges.d.ts} +2 -2
- package/dist/runtime/helpers/{findFrameDraggableEdges.js → findFrameMoveableEdges.js} +3 -3
- package/dist/runtime/helpers/{findDraggableEdge.d.ts → findMoveableEdge.d.ts} +1 -1
- package/dist/runtime/helpers/{findDraggableEdge.js → findMoveableEdge.js} +1 -1
- package/dist/runtime/helpers/index.d.ts +10 -3
- package/dist/runtime/helpers/index.js +10 -3
- package/dist/runtime/layout/createSplitDecoFromDrag.d.ts +1 -1
- package/dist/runtime/layout/createSplitDecoFromDrag.js +2 -2
- package/dist/runtime/layout/debugFrame.js +5 -1
- package/dist/runtime/layout/findSafeSplitEdge.d.ts +1 -1
- package/dist/runtime/layout/findSafeSplitEdge.js +2 -2
- package/dist/runtime/layout/getCloseFrameInfo.js +4 -4
- package/dist/runtime/layout/getFrameCollapseInfo.d.ts +1 -1
- package/dist/runtime/layout/getFrameCollapseInfo.js +9 -29
- package/dist/runtime/layout/getFrameDockInfo.d.ts +1 -1
- package/dist/runtime/layout/getFrameDockInfo.js +61 -44
- package/dist/runtime/layout/getFrameExpandInfo.d.ts +11 -0
- package/dist/runtime/layout/getFrameExpandInfo.js +49 -0
- package/dist/runtime/layout/getFrameRearrangeInfo.d.ts +2 -2
- package/dist/runtime/layout/getFrameRearrangeInfo.js +8 -8
- package/dist/runtime/layout/getFrameShrinkInfo.d.ts +14 -0
- package/dist/runtime/layout/getFrameShrinkInfo.js +48 -0
- package/dist/runtime/layout/getFrameSplitInfo.d.ts +1 -1
- package/dist/runtime/layout/getFrameSplitInfo.js +2 -2
- package/dist/runtime/layout/getFrameUncollapseInfo.d.ts +1 -1
- package/dist/runtime/layout/getFrameUncollapseInfo.js +6 -20
- package/dist/runtime/layout/{getFrameDragZones.d.ts → getFrameZones.d.ts} +3 -3
- package/dist/runtime/layout/{getFrameDragZones.js → getFrameZones.js} +1 -1
- package/dist/runtime/layout/getUpdateWindowSizeInfo.js +10 -12
- package/dist/runtime/layout/{getWindowDragZones.d.ts → getWindowZones.d.ts} +1 -1
- package/dist/runtime/layout/{getWindowDragZones.js → getWindowZones.js} +1 -1
- package/dist/runtime/layout/getZones.d.ts +8 -0
- package/dist/runtime/layout/getZones.js +32 -0
- package/dist/runtime/layout/index.d.ts +6 -3
- package/dist/runtime/layout/index.js +6 -3
- package/dist/runtime/{drag/DragActionHandler.d.ts → move/ActionHandler.d.ts} +18 -18
- package/dist/runtime/{drag/DragActionHandler.js → move/ActionHandler.js} +19 -19
- package/dist/runtime/{drag → move}/CloseAction.d.ts +8 -8
- package/dist/runtime/{drag → move}/CloseAction.js +29 -26
- package/dist/runtime/{drag → move}/FrameDragAction.d.ts +8 -8
- package/dist/runtime/{drag → move}/FrameDragAction.js +23 -21
- package/dist/runtime/{drag/DragDirectionStore.d.ts → move/MoveDirectionStore.d.ts} +4 -4
- package/dist/runtime/{drag/DragDirectionStore.js → move/MoveDirectionStore.js} +9 -9
- package/dist/runtime/{drag → move}/SplitAction.d.ts +9 -9
- package/dist/runtime/{drag → move}/SplitAction.js +46 -43
- package/dist/runtime/{drag → move}/createDefaultHandlers.d.ts +2 -2
- package/dist/runtime/types/index.d.ts +242 -158
- package/dist/runtime/types/index.js +4 -3
- package/dist/runtime/types/vue.d.ts +25 -18
- package/dist/runtime/types/vue.js +1 -1
- package/package.json +3 -2
- package/src/runtime/components/FrameDragHandle.vue +3 -3
- package/src/runtime/components/LayoutDragEdgeGrabbed.vue +3 -3
- package/src/runtime/components/LayoutDragEdgeHandle.vue +4 -4
- package/src/runtime/components/LayoutDragEdges.vue +5 -5
- package/src/runtime/components/LayoutEdgesActiveFrame.vue +2 -2
- package/src/runtime/components/LayoutFrame.vue +2 -2
- package/src/runtime/components/LayoutIntersectionHandle.vue +4 -4
- package/src/runtime/components/LayoutIntersections.vue +4 -4
- package/src/runtime/components/LayoutWindow.vue +35 -35
- package/src/runtime/composables/useFrames.ts +141 -121
- package/src/runtime/demo/App.vue +18 -18
- package/src/runtime/demo/DemoControls.vue +5 -5
- package/src/runtime/demo/tailwind.css +4 -0
- package/src/runtime/helpers/createZoneSideClipPath.ts +2 -2
- package/src/runtime/helpers/findEdgesTouchingWindow.ts +30 -0
- package/src/runtime/helpers/{findFrameDraggableEdges.ts → findFrameMoveableEdges.ts} +4 -4
- package/src/runtime/helpers/{findDraggableEdge.ts → findMoveableEdge.ts} +1 -1
- package/src/runtime/helpers/index.ts +10 -3
- package/src/runtime/layout/createSplitDecoFromDrag.ts +2 -2
- package/src/runtime/layout/debugFrame.ts +6 -1
- package/src/runtime/layout/findSafeSplitEdge.ts +4 -4
- package/src/runtime/layout/getCloseFrameInfo.ts +4 -4
- package/src/runtime/layout/getFrameCollapseInfo.ts +12 -41
- package/src/runtime/layout/getFrameDockInfo.ts +77 -57
- package/src/runtime/layout/getFrameExpandInfo.ts +84 -0
- package/src/runtime/layout/getFrameRearrangeInfo.ts +10 -10
- package/src/runtime/layout/getFrameShrinkInfo.ts +87 -0
- package/src/runtime/layout/getFrameSplitInfo.ts +5 -5
- package/src/runtime/layout/getFrameUncollapseInfo.ts +8 -30
- package/src/runtime/layout/{getFrameDragZones.ts → getFrameZones.ts} +4 -4
- package/src/runtime/layout/getUpdateWindowSizeInfo.ts +16 -22
- package/src/runtime/layout/{getWindowDragZones.ts → getWindowZones.ts} +1 -1
- package/src/runtime/layout/getZones.ts +48 -0
- package/src/runtime/layout/index.ts +6 -3
- package/src/runtime/{drag/DragActionHandler.ts → move/ActionHandler.ts} +44 -42
- package/src/runtime/{drag → move}/CloseAction.ts +39 -36
- package/src/runtime/{drag → move}/FrameDragAction.ts +36 -35
- package/src/runtime/{drag/DragDirectionStore.ts → move/MoveDirectionStore.ts} +10 -10
- package/src/runtime/{drag → move}/SplitAction.ts +56 -53
- package/src/runtime/{drag/defaultDragActions.ts → move/createDefaultHandlers.ts} +2 -2
- package/src/runtime/types/index.ts +104 -55
- package/src/runtime/types/vue.ts +18 -16
- package/dist/runtime/drag/defaultDragActions.d.ts +0 -9
- package/dist/runtime/drag/defaultDragActions.js +0 -10
- package/dist/runtime/layout/getDragZones.d.ts +0 -8
- package/dist/runtime/layout/getDragZones.js +0 -32
- package/src/runtime/drag/createDefaultHandlers.ts +0 -20
- package/src/runtime/layout/getDragZones.ts +0 -48
- /package/dist/runtime/{drag → move}/createDefaultHandlers.js +0 -0
|
@@ -1,47 +1,30 @@
|
|
|
1
1
|
import type { Ref } from "vue";
|
|
2
|
-
import type {
|
|
3
|
-
export declare function useFrames(win: Ref<LayoutWindow>, handler: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* Can be used to save some context/info to later apply safely during onDragApply.
|
|
11
|
-
*/
|
|
12
|
-
onDragChange: (...args: Parameters<DragChangeHandler>) => DragChangeResult;
|
|
13
|
-
/**
|
|
14
|
-
* Called when drag will be applied. If dragEnd was called with apply false, it will not be called.
|
|
15
|
-
* Return false to not apply the regular drag end changes (i.e. return false to reset to the position before dragging).
|
|
16
|
-
*/
|
|
17
|
-
onDragApply: ((state: DragState, forceRecalculateEdges: () => void) => boolean);
|
|
18
|
-
/**
|
|
19
|
-
* Called after visual edges are recalculated. Action handlers can annotate edges with error info.
|
|
20
|
-
*/
|
|
21
|
-
annotateEdges?: (edges: Edge[], frames: LayoutFrame[]) => void;
|
|
22
|
-
}): {
|
|
23
|
-
dragStart: <T extends "edge" | "frame">(e: PointerEvent, type: T, data: T extends "edge" ? EdgeDragStartData : FrameDragStartData) => void;
|
|
24
|
-
dragEnd: (e?: PointerEvent, { apply }?: {
|
|
25
|
-
apply?: boolean;
|
|
26
|
-
}) => void;
|
|
2
|
+
import type { ActionHandler, ActionHandlerApplyResult, EdgeMoveStartData, FrameMoveStartData, IntersectionEntry, LayoutFrame, LayoutWindow } from "../types/index.js";
|
|
3
|
+
export declare function useFrames(win: Ref<LayoutWindow>, handler: ActionHandler): {
|
|
4
|
+
moveStart: <T extends "edge" | "frame">(e: PointerEvent, type: T, data: T extends "edge" ? EdgeMoveStartData : FrameMoveStartData, { moveEvent, endEvent, context }?: {
|
|
5
|
+
moveEvent?: string;
|
|
6
|
+
endEvent?: string;
|
|
7
|
+
context?: Record<string, unknown>;
|
|
8
|
+
}) => Promise<any>;
|
|
9
|
+
moveEnd: (e?: PointerEvent, { apply }?: Partial<Pick<ActionHandlerApplyResult, "apply">>) => void;
|
|
27
10
|
cancel: () => void;
|
|
28
|
-
|
|
29
|
-
|
|
11
|
+
onMove: (e: PointerEvent) => void;
|
|
12
|
+
moveDirections: Ref<{
|
|
30
13
|
horizontal: "up" | "down" | "left" | "right" | undefined;
|
|
31
14
|
vertical: "up" | "down" | "left" | "right" | undefined;
|
|
32
15
|
}, Record<"horizontal" | "vertical", "up" | "down" | "left" | "right" | undefined> | {
|
|
33
16
|
horizontal: "up" | "down" | "left" | "right" | undefined;
|
|
34
17
|
vertical: "up" | "down" | "left" | "right" | undefined;
|
|
35
18
|
}>;
|
|
36
|
-
|
|
19
|
+
movePoint: Ref<{
|
|
37
20
|
x: number;
|
|
38
21
|
y: number;
|
|
39
22
|
} | undefined, {
|
|
40
23
|
x: number;
|
|
41
24
|
y: number;
|
|
42
25
|
} | undefined>;
|
|
43
|
-
|
|
44
|
-
|
|
26
|
+
isMoving: Ref<false | "edge" | "frame", false | "edge" | "frame">;
|
|
27
|
+
movingEdges: Ref<{
|
|
45
28
|
startX: number;
|
|
46
29
|
startY: number;
|
|
47
30
|
endX: number;
|
|
@@ -70,17 +53,17 @@ export declare function useFrames(win: Ref<LayoutWindow>, handler: {
|
|
|
70
53
|
} | {
|
|
71
54
|
frame: LayoutFrame;
|
|
72
55
|
} | {
|
|
73
|
-
|
|
56
|
+
movingFrameId: string;
|
|
74
57
|
hoveredFrameId: string;
|
|
75
|
-
zoneSide: import("../types/index.js").
|
|
58
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
76
59
|
} | {
|
|
77
|
-
|
|
60
|
+
movingFrameId: string;
|
|
78
61
|
hoveredFrameId: string;
|
|
79
|
-
zoneSide: import("../types/index.js").
|
|
62
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
80
63
|
} | {
|
|
81
|
-
|
|
64
|
+
movingFrameId: string;
|
|
82
65
|
hoveredFrameId: string;
|
|
83
|
-
zoneSide: import("../types/index.js").
|
|
66
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
84
67
|
} | {
|
|
85
68
|
frame: LayoutFrame;
|
|
86
69
|
} | {
|
|
@@ -103,6 +86,8 @@ export declare function useFrames(win: Ref<LayoutWindow>, handler: {
|
|
|
103
86
|
frame: LayoutFrame;
|
|
104
87
|
} | {
|
|
105
88
|
frame: LayoutFrame;
|
|
89
|
+
} | {
|
|
90
|
+
frame: LayoutFrame;
|
|
106
91
|
}> | {
|
|
107
92
|
code: string;
|
|
108
93
|
message: string;
|
|
@@ -136,17 +121,17 @@ export declare function useFrames(win: Ref<LayoutWindow>, handler: {
|
|
|
136
121
|
} | {
|
|
137
122
|
frame: LayoutFrame;
|
|
138
123
|
} | {
|
|
139
|
-
|
|
124
|
+
movingFrameId: string;
|
|
140
125
|
hoveredFrameId: string;
|
|
141
|
-
zoneSide: import("../types/index.js").
|
|
126
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
142
127
|
} | {
|
|
143
|
-
|
|
128
|
+
movingFrameId: string;
|
|
144
129
|
hoveredFrameId: string;
|
|
145
|
-
zoneSide: import("../types/index.js").
|
|
130
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
146
131
|
} | {
|
|
147
|
-
|
|
132
|
+
movingFrameId: string;
|
|
148
133
|
hoveredFrameId: string;
|
|
149
|
-
zoneSide: import("../types/index.js").
|
|
134
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
150
135
|
} | {
|
|
151
136
|
frame: LayoutFrame;
|
|
152
137
|
} | {
|
|
@@ -169,6 +154,8 @@ export declare function useFrames(win: Ref<LayoutWindow>, handler: {
|
|
|
169
154
|
frame: LayoutFrame;
|
|
170
155
|
} | {
|
|
171
156
|
frame: LayoutFrame;
|
|
157
|
+
} | {
|
|
158
|
+
frame: LayoutFrame;
|
|
172
159
|
}> | {
|
|
173
160
|
code: string;
|
|
174
161
|
message: string;
|
|
@@ -202,17 +189,17 @@ export declare function useFrames(win: Ref<LayoutWindow>, handler: {
|
|
|
202
189
|
} | {
|
|
203
190
|
frame: LayoutFrame;
|
|
204
191
|
} | {
|
|
205
|
-
|
|
192
|
+
movingFrameId: string;
|
|
206
193
|
hoveredFrameId: string;
|
|
207
|
-
zoneSide: import("../types/index.js").
|
|
194
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
208
195
|
} | {
|
|
209
|
-
|
|
196
|
+
movingFrameId: string;
|
|
210
197
|
hoveredFrameId: string;
|
|
211
|
-
zoneSide: import("../types/index.js").
|
|
198
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
212
199
|
} | {
|
|
213
|
-
|
|
200
|
+
movingFrameId: string;
|
|
214
201
|
hoveredFrameId: string;
|
|
215
|
-
zoneSide: import("../types/index.js").
|
|
202
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
216
203
|
} | {
|
|
217
204
|
frame: LayoutFrame;
|
|
218
205
|
} | {
|
|
@@ -235,12 +222,14 @@ export declare function useFrames(win: Ref<LayoutWindow>, handler: {
|
|
|
235
222
|
frame: LayoutFrame;
|
|
236
223
|
} | {
|
|
237
224
|
frame: LayoutFrame;
|
|
225
|
+
} | {
|
|
226
|
+
frame: LayoutFrame;
|
|
238
227
|
}> | {
|
|
239
228
|
code: string;
|
|
240
229
|
message: string;
|
|
241
230
|
} | undefined;
|
|
242
231
|
}[]>;
|
|
243
|
-
|
|
232
|
+
movingIntersection: Ref<{
|
|
244
233
|
point: {
|
|
245
234
|
x: number;
|
|
246
235
|
y: number;
|
|
@@ -277,17 +266,17 @@ export declare function useFrames(win: Ref<LayoutWindow>, handler: {
|
|
|
277
266
|
} | {
|
|
278
267
|
frame: LayoutFrame;
|
|
279
268
|
} | {
|
|
280
|
-
|
|
269
|
+
movingFrameId: string;
|
|
281
270
|
hoveredFrameId: string;
|
|
282
|
-
zoneSide: import("../types/index.js").
|
|
271
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
283
272
|
} | {
|
|
284
|
-
|
|
273
|
+
movingFrameId: string;
|
|
285
274
|
hoveredFrameId: string;
|
|
286
|
-
zoneSide: import("../types/index.js").
|
|
275
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
287
276
|
} | {
|
|
288
|
-
|
|
277
|
+
movingFrameId: string;
|
|
289
278
|
hoveredFrameId: string;
|
|
290
|
-
zoneSide: import("../types/index.js").
|
|
279
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
291
280
|
} | {
|
|
292
281
|
frame: LayoutFrame;
|
|
293
282
|
} | {
|
|
@@ -310,6 +299,8 @@ export declare function useFrames(win: Ref<LayoutWindow>, handler: {
|
|
|
310
299
|
frame: LayoutFrame;
|
|
311
300
|
} | {
|
|
312
301
|
frame: LayoutFrame;
|
|
302
|
+
} | {
|
|
303
|
+
frame: LayoutFrame;
|
|
313
304
|
}> | {
|
|
314
305
|
code: string;
|
|
315
306
|
message: string;
|
|
@@ -344,17 +335,17 @@ export declare function useFrames(win: Ref<LayoutWindow>, handler: {
|
|
|
344
335
|
} | {
|
|
345
336
|
frame: LayoutFrame;
|
|
346
337
|
} | {
|
|
347
|
-
|
|
338
|
+
movingFrameId: string;
|
|
348
339
|
hoveredFrameId: string;
|
|
349
|
-
zoneSide: import("../types/index.js").
|
|
340
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
350
341
|
} | {
|
|
351
|
-
|
|
342
|
+
movingFrameId: string;
|
|
352
343
|
hoveredFrameId: string;
|
|
353
|
-
zoneSide: import("../types/index.js").
|
|
344
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
354
345
|
} | {
|
|
355
|
-
|
|
346
|
+
movingFrameId: string;
|
|
356
347
|
hoveredFrameId: string;
|
|
357
|
-
zoneSide: import("../types/index.js").
|
|
348
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
358
349
|
} | {
|
|
359
350
|
frame: LayoutFrame;
|
|
360
351
|
} | {
|
|
@@ -377,6 +368,8 @@ export declare function useFrames(win: Ref<LayoutWindow>, handler: {
|
|
|
377
368
|
frame: LayoutFrame;
|
|
378
369
|
} | {
|
|
379
370
|
frame: LayoutFrame;
|
|
371
|
+
} | {
|
|
372
|
+
frame: LayoutFrame;
|
|
380
373
|
}> | {
|
|
381
374
|
code: string;
|
|
382
375
|
message: string;
|
|
@@ -421,17 +414,17 @@ export declare function useFrames(win: Ref<LayoutWindow>, handler: {
|
|
|
421
414
|
} | {
|
|
422
415
|
frame: LayoutFrame;
|
|
423
416
|
} | {
|
|
424
|
-
|
|
417
|
+
movingFrameId: string;
|
|
425
418
|
hoveredFrameId: string;
|
|
426
|
-
zoneSide: import("../types/index.js").
|
|
419
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
427
420
|
} | {
|
|
428
|
-
|
|
421
|
+
movingFrameId: string;
|
|
429
422
|
hoveredFrameId: string;
|
|
430
|
-
zoneSide: import("../types/index.js").
|
|
423
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
431
424
|
} | {
|
|
432
|
-
|
|
425
|
+
movingFrameId: string;
|
|
433
426
|
hoveredFrameId: string;
|
|
434
|
-
zoneSide: import("../types/index.js").
|
|
427
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
435
428
|
} | {
|
|
436
429
|
frame: LayoutFrame;
|
|
437
430
|
} | {
|
|
@@ -454,6 +447,8 @@ export declare function useFrames(win: Ref<LayoutWindow>, handler: {
|
|
|
454
447
|
frame: LayoutFrame;
|
|
455
448
|
} | {
|
|
456
449
|
frame: LayoutFrame;
|
|
450
|
+
} | {
|
|
451
|
+
frame: LayoutFrame;
|
|
457
452
|
}> | {
|
|
458
453
|
code: string;
|
|
459
454
|
message: string;
|
|
@@ -488,17 +483,17 @@ export declare function useFrames(win: Ref<LayoutWindow>, handler: {
|
|
|
488
483
|
} | {
|
|
489
484
|
frame: LayoutFrame;
|
|
490
485
|
} | {
|
|
491
|
-
|
|
486
|
+
movingFrameId: string;
|
|
492
487
|
hoveredFrameId: string;
|
|
493
|
-
zoneSide: import("../types/index.js").
|
|
488
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
494
489
|
} | {
|
|
495
|
-
|
|
490
|
+
movingFrameId: string;
|
|
496
491
|
hoveredFrameId: string;
|
|
497
|
-
zoneSide: import("../types/index.js").
|
|
492
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
498
493
|
} | {
|
|
499
|
-
|
|
494
|
+
movingFrameId: string;
|
|
500
495
|
hoveredFrameId: string;
|
|
501
|
-
zoneSide: import("../types/index.js").
|
|
496
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
502
497
|
} | {
|
|
503
498
|
frame: LayoutFrame;
|
|
504
499
|
} | {
|
|
@@ -521,6 +516,8 @@ export declare function useFrames(win: Ref<LayoutWindow>, handler: {
|
|
|
521
516
|
frame: LayoutFrame;
|
|
522
517
|
} | {
|
|
523
518
|
frame: LayoutFrame;
|
|
519
|
+
} | {
|
|
520
|
+
frame: LayoutFrame;
|
|
524
521
|
}> | {
|
|
525
522
|
code: string;
|
|
526
523
|
message: string;
|
|
@@ -558,17 +555,17 @@ export declare function useFrames(win: Ref<LayoutWindow>, handler: {
|
|
|
558
555
|
} | {
|
|
559
556
|
frame: LayoutFrame;
|
|
560
557
|
} | {
|
|
561
|
-
|
|
558
|
+
movingFrameId: string;
|
|
562
559
|
hoveredFrameId: string;
|
|
563
|
-
zoneSide: import("../types/index.js").
|
|
560
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
564
561
|
} | {
|
|
565
|
-
|
|
562
|
+
movingFrameId: string;
|
|
566
563
|
hoveredFrameId: string;
|
|
567
|
-
zoneSide: import("../types/index.js").
|
|
564
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
568
565
|
} | {
|
|
569
|
-
|
|
566
|
+
movingFrameId: string;
|
|
570
567
|
hoveredFrameId: string;
|
|
571
|
-
zoneSide: import("../types/index.js").
|
|
568
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
572
569
|
} | {
|
|
573
570
|
frame: LayoutFrame;
|
|
574
571
|
} | {
|
|
@@ -591,6 +588,8 @@ export declare function useFrames(win: Ref<LayoutWindow>, handler: {
|
|
|
591
588
|
frame: LayoutFrame;
|
|
592
589
|
} | {
|
|
593
590
|
frame: LayoutFrame;
|
|
591
|
+
} | {
|
|
592
|
+
frame: LayoutFrame;
|
|
594
593
|
}> | {
|
|
595
594
|
code: string;
|
|
596
595
|
message: string;
|
|
@@ -624,17 +623,17 @@ export declare function useFrames(win: Ref<LayoutWindow>, handler: {
|
|
|
624
623
|
} | {
|
|
625
624
|
frame: LayoutFrame;
|
|
626
625
|
} | {
|
|
627
|
-
|
|
626
|
+
movingFrameId: string;
|
|
628
627
|
hoveredFrameId: string;
|
|
629
|
-
zoneSide: import("../types/index.js").
|
|
628
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
630
629
|
} | {
|
|
631
|
-
|
|
630
|
+
movingFrameId: string;
|
|
632
631
|
hoveredFrameId: string;
|
|
633
|
-
zoneSide: import("../types/index.js").
|
|
632
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
634
633
|
} | {
|
|
635
|
-
|
|
634
|
+
movingFrameId: string;
|
|
636
635
|
hoveredFrameId: string;
|
|
637
|
-
zoneSide: import("../types/index.js").
|
|
636
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
638
637
|
} | {
|
|
639
638
|
frame: LayoutFrame;
|
|
640
639
|
} | {
|
|
@@ -657,6 +656,8 @@ export declare function useFrames(win: Ref<LayoutWindow>, handler: {
|
|
|
657
656
|
frame: LayoutFrame;
|
|
658
657
|
} | {
|
|
659
658
|
frame: LayoutFrame;
|
|
659
|
+
} | {
|
|
660
|
+
frame: LayoutFrame;
|
|
660
661
|
}> | {
|
|
661
662
|
code: string;
|
|
662
663
|
message: string;
|
|
@@ -690,17 +691,17 @@ export declare function useFrames(win: Ref<LayoutWindow>, handler: {
|
|
|
690
691
|
} | {
|
|
691
692
|
frame: LayoutFrame;
|
|
692
693
|
} | {
|
|
693
|
-
|
|
694
|
+
movingFrameId: string;
|
|
694
695
|
hoveredFrameId: string;
|
|
695
|
-
zoneSide: import("../types/index.js").
|
|
696
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
696
697
|
} | {
|
|
697
|
-
|
|
698
|
+
movingFrameId: string;
|
|
698
699
|
hoveredFrameId: string;
|
|
699
|
-
zoneSide: import("../types/index.js").
|
|
700
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
700
701
|
} | {
|
|
701
|
-
|
|
702
|
+
movingFrameId: string;
|
|
702
703
|
hoveredFrameId: string;
|
|
703
|
-
zoneSide: import("../types/index.js").
|
|
704
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
704
705
|
} | {
|
|
705
706
|
frame: LayoutFrame;
|
|
706
707
|
} | {
|
|
@@ -723,6 +724,8 @@ export declare function useFrames(win: Ref<LayoutWindow>, handler: {
|
|
|
723
724
|
frame: LayoutFrame;
|
|
724
725
|
} | {
|
|
725
726
|
frame: LayoutFrame;
|
|
727
|
+
} | {
|
|
728
|
+
frame: LayoutFrame;
|
|
726
729
|
}> | {
|
|
727
730
|
code: string;
|
|
728
731
|
message: string;
|
|
@@ -731,24 +734,24 @@ export declare function useFrames(win: Ref<LayoutWindow>, handler: {
|
|
|
731
734
|
touchingFrames: Ref<Record<string, LayoutFrame>[], Record<string, LayoutFrame>[]>;
|
|
732
735
|
touchingFramesArrays: import("vue").ComputedRef<LayoutFrame[][]>;
|
|
733
736
|
frames: import("vue").ComputedRef<import("../types/index.js").LayoutFrames>;
|
|
734
|
-
|
|
737
|
+
moveHoveredFrame: import("vue").ComputedRef<LayoutFrame | undefined>;
|
|
735
738
|
intersections: import("vue").ComputedRef<IntersectionEntry[]>;
|
|
736
|
-
|
|
739
|
+
isMovingFromWindowEdge: Ref<boolean, boolean>;
|
|
737
740
|
forceRecalculateEdges: () => void;
|
|
738
741
|
state: import("vue").ComputedRef<{
|
|
739
|
-
|
|
742
|
+
moveDirections: {
|
|
740
743
|
horizontal: "up" | "down" | "left" | "right" | undefined;
|
|
741
744
|
vertical: "up" | "down" | "left" | "right" | undefined;
|
|
742
745
|
};
|
|
743
|
-
|
|
746
|
+
movePoint: {
|
|
744
747
|
x: number;
|
|
745
748
|
y: number;
|
|
746
749
|
} | undefined;
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
750
|
+
moveDistance: number;
|
|
751
|
+
isMoving: false | "edge" | "frame";
|
|
752
|
+
showMoving: boolean;
|
|
753
|
+
movingFrameId: string | undefined;
|
|
754
|
+
movingEdges: {
|
|
752
755
|
startX: number;
|
|
753
756
|
startY: number;
|
|
754
757
|
endX: number;
|
|
@@ -777,17 +780,17 @@ export declare function useFrames(win: Ref<LayoutWindow>, handler: {
|
|
|
777
780
|
} | {
|
|
778
781
|
frame: LayoutFrame;
|
|
779
782
|
} | {
|
|
780
|
-
|
|
783
|
+
movingFrameId: string;
|
|
781
784
|
hoveredFrameId: string;
|
|
782
|
-
zoneSide: import("../types/index.js").
|
|
785
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
783
786
|
} | {
|
|
784
|
-
|
|
787
|
+
movingFrameId: string;
|
|
785
788
|
hoveredFrameId: string;
|
|
786
|
-
zoneSide: import("../types/index.js").
|
|
789
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
787
790
|
} | {
|
|
788
|
-
|
|
791
|
+
movingFrameId: string;
|
|
789
792
|
hoveredFrameId: string;
|
|
790
|
-
zoneSide: import("../types/index.js").
|
|
793
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
791
794
|
} | {
|
|
792
795
|
frame: LayoutFrame;
|
|
793
796
|
} | {
|
|
@@ -810,12 +813,14 @@ export declare function useFrames(win: Ref<LayoutWindow>, handler: {
|
|
|
810
813
|
frame: LayoutFrame;
|
|
811
814
|
} | {
|
|
812
815
|
frame: LayoutFrame;
|
|
816
|
+
} | {
|
|
817
|
+
frame: LayoutFrame;
|
|
813
818
|
}> | {
|
|
814
819
|
code: string;
|
|
815
820
|
message: string;
|
|
816
821
|
} | undefined;
|
|
817
822
|
}[];
|
|
818
|
-
|
|
823
|
+
movingIntersection: {
|
|
819
824
|
point: {
|
|
820
825
|
x: number;
|
|
821
826
|
y: number;
|
|
@@ -852,17 +857,17 @@ export declare function useFrames(win: Ref<LayoutWindow>, handler: {
|
|
|
852
857
|
} | {
|
|
853
858
|
frame: LayoutFrame;
|
|
854
859
|
} | {
|
|
855
|
-
|
|
860
|
+
movingFrameId: string;
|
|
856
861
|
hoveredFrameId: string;
|
|
857
|
-
zoneSide: import("../types/index.js").
|
|
862
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
858
863
|
} | {
|
|
859
|
-
|
|
864
|
+
movingFrameId: string;
|
|
860
865
|
hoveredFrameId: string;
|
|
861
|
-
zoneSide: import("../types/index.js").
|
|
866
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
862
867
|
} | {
|
|
863
|
-
|
|
868
|
+
movingFrameId: string;
|
|
864
869
|
hoveredFrameId: string;
|
|
865
|
-
zoneSide: import("../types/index.js").
|
|
870
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
866
871
|
} | {
|
|
867
872
|
frame: LayoutFrame;
|
|
868
873
|
} | {
|
|
@@ -885,6 +890,8 @@ export declare function useFrames(win: Ref<LayoutWindow>, handler: {
|
|
|
885
890
|
frame: LayoutFrame;
|
|
886
891
|
} | {
|
|
887
892
|
frame: LayoutFrame;
|
|
893
|
+
} | {
|
|
894
|
+
frame: LayoutFrame;
|
|
888
895
|
}> | {
|
|
889
896
|
code: string;
|
|
890
897
|
message: string;
|
|
@@ -919,17 +926,17 @@ export declare function useFrames(win: Ref<LayoutWindow>, handler: {
|
|
|
919
926
|
} | {
|
|
920
927
|
frame: LayoutFrame;
|
|
921
928
|
} | {
|
|
922
|
-
|
|
929
|
+
movingFrameId: string;
|
|
923
930
|
hoveredFrameId: string;
|
|
924
|
-
zoneSide: import("../types/index.js").
|
|
931
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
925
932
|
} | {
|
|
926
|
-
|
|
933
|
+
movingFrameId: string;
|
|
927
934
|
hoveredFrameId: string;
|
|
928
|
-
zoneSide: import("../types/index.js").
|
|
935
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
929
936
|
} | {
|
|
930
|
-
|
|
937
|
+
movingFrameId: string;
|
|
931
938
|
hoveredFrameId: string;
|
|
932
|
-
zoneSide: import("../types/index.js").
|
|
939
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
933
940
|
} | {
|
|
934
941
|
frame: LayoutFrame;
|
|
935
942
|
} | {
|
|
@@ -952,6 +959,8 @@ export declare function useFrames(win: Ref<LayoutWindow>, handler: {
|
|
|
952
959
|
frame: LayoutFrame;
|
|
953
960
|
} | {
|
|
954
961
|
frame: LayoutFrame;
|
|
962
|
+
} | {
|
|
963
|
+
frame: LayoutFrame;
|
|
955
964
|
}> | {
|
|
956
965
|
code: string;
|
|
957
966
|
message: string;
|
|
@@ -989,17 +998,17 @@ export declare function useFrames(win: Ref<LayoutWindow>, handler: {
|
|
|
989
998
|
} | {
|
|
990
999
|
frame: LayoutFrame;
|
|
991
1000
|
} | {
|
|
992
|
-
|
|
1001
|
+
movingFrameId: string;
|
|
993
1002
|
hoveredFrameId: string;
|
|
994
|
-
zoneSide: import("../types/index.js").
|
|
1003
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
995
1004
|
} | {
|
|
996
|
-
|
|
1005
|
+
movingFrameId: string;
|
|
997
1006
|
hoveredFrameId: string;
|
|
998
|
-
zoneSide: import("../types/index.js").
|
|
1007
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
999
1008
|
} | {
|
|
1000
|
-
|
|
1009
|
+
movingFrameId: string;
|
|
1001
1010
|
hoveredFrameId: string;
|
|
1002
|
-
zoneSide: import("../types/index.js").
|
|
1011
|
+
zoneSide: import("../types/index.js").Zone["side"];
|
|
1003
1012
|
} | {
|
|
1004
1013
|
frame: LayoutFrame;
|
|
1005
1014
|
} | {
|
|
@@ -1022,6 +1031,8 @@ export declare function useFrames(win: Ref<LayoutWindow>, handler: {
|
|
|
1022
1031
|
frame: LayoutFrame;
|
|
1023
1032
|
} | {
|
|
1024
1033
|
frame: LayoutFrame;
|
|
1034
|
+
} | {
|
|
1035
|
+
frame: LayoutFrame;
|
|
1025
1036
|
}> | {
|
|
1026
1037
|
code: string;
|
|
1027
1038
|
message: string;
|
|
@@ -1030,11 +1041,13 @@ export declare function useFrames(win: Ref<LayoutWindow>, handler: {
|
|
|
1030
1041
|
touchingFrames: Record<string, LayoutFrame>[];
|
|
1031
1042
|
touchingFramesArrays: LayoutFrame[][];
|
|
1032
1043
|
frames: import("../types/index.js").LayoutFrames;
|
|
1033
|
-
|
|
1044
|
+
moveHoveredFrame: LayoutFrame | undefined;
|
|
1034
1045
|
intersections: IntersectionEntry[];
|
|
1035
|
-
|
|
1046
|
+
isMovingFromWindowEdge: boolean;
|
|
1047
|
+
eventContext: Record<string, unknown> | undefined;
|
|
1036
1048
|
win: import("../types/index.js").BaseLayoutWindow;
|
|
1037
1049
|
}>;
|
|
1038
|
-
|
|
1039
|
-
|
|
1050
|
+
showMoving: Ref<boolean, boolean>;
|
|
1051
|
+
movingFrameId: Ref<string | undefined, string | undefined>;
|
|
1052
|
+
actionHandler: ActionHandler;
|
|
1040
1053
|
};
|