@n-uf/docking 26.11.61 → 26.11.62
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 +12 -0
- package/dist/{chunk-Y2IM76RG.js → chunk-AX6OK7XQ.js} +68 -26
- package/dist/chunk-AX6OK7XQ.js.map +1 -0
- package/dist/{drag-B8JbX6Sq.d.ts → drag-CEdu7jFG.d.ts} +11 -5
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +1 -1
- package/package.json +4 -4
- package/dist/chunk-Y2IM76RG.js.map +0 -1
|
@@ -1198,8 +1198,11 @@ interface DropResult {
|
|
|
1198
1198
|
readonly state: DockState;
|
|
1199
1199
|
readonly layout: DockLayout;
|
|
1200
1200
|
/**
|
|
1201
|
-
* Where
|
|
1202
|
-
*
|
|
1201
|
+
* Where the pointer holds the item in the form the drop lays it in, in the laid rect's own coordinates (`DockGrab`): a
|
|
1202
|
+
* drop that lands at the hand (a float, a sliding spot) says the grab it was aimed with, every other (a fixed slot,
|
|
1203
|
+
* home) the drag's grab read in its landing's form, the reading `dockDrag(...).after(held).grab` makes. Present on
|
|
1204
|
+
* every drop `targets()`, `stops()` and `lanes()` give, so a held copy drawn at the pointer less it lies where the
|
|
1205
|
+
* release lands it. (Absent only on a result that no drop has given yet, as `solve`'s internals hold one.)
|
|
1203
1206
|
*/
|
|
1204
1207
|
readonly grab?: Point;
|
|
1205
1208
|
}
|
|
@@ -1244,8 +1247,9 @@ interface DockDrop extends Target {
|
|
|
1244
1247
|
readonly strip?: Rect;
|
|
1245
1248
|
/**
|
|
1246
1249
|
* The state a release here commits and its layout, with the pointer at `point` holding the item at `grab` (a point or
|
|
1247
|
-
* a function of the laid form, `DockGrab`; default its middle). Only a float's and a
|
|
1248
|
-
* those say the grab they landed with (`DropResult.grab`).
|
|
1250
|
+
* a function of the laid form, `DockGrab`; default `DockDropOptions.grab`, else its middle). Only a float's and a
|
|
1251
|
+
* sliding spot's landing depends on them; those say the grab they landed with (`DropResult.grab`). Every other drop's
|
|
1252
|
+
* `grab` is the one passed read in its landing's form, the same reading.
|
|
1249
1253
|
*/
|
|
1250
1254
|
after(point: Point, grab?: DockGrab): DropResult;
|
|
1251
1255
|
}
|
|
@@ -1274,7 +1278,9 @@ interface DockDropOptions {
|
|
|
1274
1278
|
readonly grab?: DockGrab;
|
|
1275
1279
|
/**
|
|
1276
1280
|
* Hears a note on a grab function (`DockGrabNote`), once per function: in development a host says it (the library
|
|
1277
|
-
* reaches no console). Read once per lift; it changes no output
|
|
1281
|
+
* reaches no console). Read once per lift; it changes no output, so the memos of `stops()` and `lanes()` leave it
|
|
1282
|
+
* out of their keys: the first callback a drag's options are remembered with is the one that hears (an inline arrow per
|
|
1283
|
+
* call is fine, it costs no memo miss).
|
|
1278
1284
|
*/
|
|
1279
1285
|
readonly onGrabNote?: (note: DockGrabNote) => void;
|
|
1280
1286
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FloatAnchorAt, a as FloatAnchor, D as DockItem, K as Kind, Z as ZoneAccepts, b as Zone, O as Orient, c as DockState, d as KeepClear, A as AnchoredKeepClear, e as DockEdge, R as RailMode, S as SolveOptions, f as DockLayout, g as DockRefusal, h as DockDropOptions, i as DockDrop } from './drag-
|
|
2
|
-
export { C as ColumnPlace, j as ColumnTemplate, k as DEFAULT_FLOAT_SIZE, l as DEFAULT_HIT_BAND, m as DEFAULT_RAIL_MAGNET, n as DEFAULT_STRIP, o as DockAfter, p as DockDrag, q as DockEdgeLayout, r as DockFloat, s as DockGrab, t as DockGrabForm, u as DockGrabNote, v as DockGrabPlace, w as DockGuideFrame, x as DockGuideRef, y as DockHeld, z as DockItemLayout, B as DockKeepClearLayout, E as DockLane, G as DockLaneMark, H as DockLaneOptions, I as DockMark, J as DockNote, L as DockNoteCode, M as DockPlace, N as DockRailLayout, P as DockRegions, Q as DockSpot, T as DockStateRead, U as DropPlace, V as DropResult, W as EDGE_ROOM_HOLD, X as EmptyLanes, Y as FLOAT_ANCHORS, _ as FloatAnchorOffset, $ as FloatPlace, a0 as FloatResize, a1 as HATCH_EDGE, a2 as HATCH_END, a3 as KeepClearRegion, a4 as LaneRefusal, a5 as LaneSlide, a6 as Place, a7 as RAIL_MODES, a8 as RAIL_STRIP_MIN, a9 as RAIL_VISIBILITIES, aa as RailDropPolicy, ab as RailPlace, ac as RailSpec, ad as RailVisibility, ae as ResizeEdges, af as ResizeLimit, ag as SIDES, ah as StoredDockState, ai as StoredDockStateEdge, aj as StoredDockStateFloat, ak as StoredDockStateItem, al as ZONES, am as canFold, an as closeItem, ao as dockDrag, ap as dockHome, aq as fitResize, ar as floatAt, as as foldItem, at as homeFor, au as keepItem, av as lanes, aw as liftItem, ax as markUsed, ay as mergeSideColumns, az as moveTo, aA as openItem, aB as orientFloat, aC as raiseFloat, aD as readDockState, aE as resizeEdge, aF as resizeFloat, aG as setRailMode, aH as setSide, aI as storeDockState } from './drag-
|
|
1
|
+
import { F as FloatAnchorAt, a as FloatAnchor, D as DockItem, K as Kind, Z as ZoneAccepts, b as Zone, O as Orient, c as DockState, d as KeepClear, A as AnchoredKeepClear, e as DockEdge, R as RailMode, S as SolveOptions, f as DockLayout, g as DockRefusal, h as DockDropOptions, i as DockDrop } from './drag-CEdu7jFG.js';
|
|
2
|
+
export { C as ColumnPlace, j as ColumnTemplate, k as DEFAULT_FLOAT_SIZE, l as DEFAULT_HIT_BAND, m as DEFAULT_RAIL_MAGNET, n as DEFAULT_STRIP, o as DockAfter, p as DockDrag, q as DockEdgeLayout, r as DockFloat, s as DockGrab, t as DockGrabForm, u as DockGrabNote, v as DockGrabPlace, w as DockGuideFrame, x as DockGuideRef, y as DockHeld, z as DockItemLayout, B as DockKeepClearLayout, E as DockLane, G as DockLaneMark, H as DockLaneOptions, I as DockMark, J as DockNote, L as DockNoteCode, M as DockPlace, N as DockRailLayout, P as DockRegions, Q as DockSpot, T as DockStateRead, U as DropPlace, V as DropResult, W as EDGE_ROOM_HOLD, X as EmptyLanes, Y as FLOAT_ANCHORS, _ as FloatAnchorOffset, $ as FloatPlace, a0 as FloatResize, a1 as HATCH_EDGE, a2 as HATCH_END, a3 as KeepClearRegion, a4 as LaneRefusal, a5 as LaneSlide, a6 as Place, a7 as RAIL_MODES, a8 as RAIL_STRIP_MIN, a9 as RAIL_VISIBILITIES, aa as RailDropPolicy, ab as RailPlace, ac as RailSpec, ad as RailVisibility, ae as ResizeEdges, af as ResizeLimit, ag as SIDES, ah as StoredDockState, ai as StoredDockStateEdge, aj as StoredDockStateFloat, ak as StoredDockStateItem, al as ZONES, am as canFold, an as closeItem, ao as dockDrag, ap as dockHome, aq as fitResize, ar as floatAt, as as foldItem, at as homeFor, au as keepItem, av as lanes, aw as liftItem, ax as markUsed, ay as mergeSideColumns, az as moveTo, aA as openItem, aB as orientFloat, aC as raiseFloat, aD as readDockState, aE as resizeEdge, aF as resizeFloat, aG as setRailMode, aH as setSide, aI as storeDockState } from './drag-CEdu7jFG.js';
|
|
3
3
|
import { Size, Point, Rect, Side, Target } from '@n-uf/placement';
|
|
4
4
|
export { Axis, Side } from '@n-uf/placement';
|
|
5
5
|
import '@n-uf/placement/stack';
|
package/dist/index.js
CHANGED
package/dist/testing.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Point, Rect, Side } from '@n-uf/placement';
|
|
2
2
|
import { StackFormKind } from '@n-uf/placement/stack';
|
|
3
|
-
import { c as DockState, U as DropPlace, f as DockLayout, ah as StoredDockState, b as Zone, L as DockNoteCode, i as DockDrop, g as DockRefusal, H as DockLaneOptions, y as DockHeld, x as DockGuideRef, P as DockRegions, Q as DockSpot } from './drag-
|
|
3
|
+
import { c as DockState, U as DropPlace, f as DockLayout, ah as StoredDockState, b as Zone, L as DockNoteCode, i as DockDrop, g as DockRefusal, H as DockLaneOptions, y as DockHeld, x as DockGuideRef, P as DockRegions, Q as DockSpot } from './drag-CEdu7jFG.js';
|
|
4
4
|
import { LandingGeometry, LandingRegions } from '@n-uf/motion/drag';
|
|
5
5
|
|
|
6
6
|
/**
|
package/dist/testing.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@n-uf/docking",
|
|
3
|
-
"version": "26.11.
|
|
3
|
+
"version": "26.11.62",
|
|
4
4
|
"description": "Where panels and toolbars dock: a window's bars, rails, columns, items and floats solved into a layout, with the drop places, refusals and lanes of every drag. Pure state in, rects out. No DOM, no framework, no motion.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"docking",
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
"LICENSE"
|
|
48
48
|
],
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@n-uf/placement": "26.11.
|
|
50
|
+
"@n-uf/placement": "26.11.62"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@n-uf/motion": "^26.11.
|
|
53
|
+
"@n-uf/motion": "^26.11.62"
|
|
54
54
|
},
|
|
55
55
|
"peerDependenciesMeta": {
|
|
56
56
|
"@n-uf/motion": {
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"tsup": "^8.5.1",
|
|
63
63
|
"typescript": "^6.0.3",
|
|
64
64
|
"vitest": "^4.1.12",
|
|
65
|
-
"@n-uf/motion": "26.11.
|
|
65
|
+
"@n-uf/motion": "26.11.62"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
68
68
|
"build": "tsup && node ./scripts/check-dist.mjs",
|