@n-uf/docking 26.11.56 → 26.11.58

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 CHANGED
@@ -7,6 +7,83 @@ package, the docking model shipped as `@n-uf/placement/scene` and `/scene/cases`
7
7
 
8
8
  Unreleased entries live in `changes/` until a release joins them.
9
9
 
10
+ ## 26.11.58
11
+
12
+ - Fixed: **no guide lies over a movable grower while another item is held beside it.** The marks read a grower as the
13
+ frame draws it: in a held place's layout, its release's commit, it has taken its bar's free stretch, so the box and
14
+ hatch of the place after it are cut there, not where its natural length ends. A growing fixed title's slack stays free
15
+ room for the marks, as before. Drop room still counts a grower at its natural length.
16
+ - Fixed: **a movable grower floats at its natural size, under the hand.** A form that grows without a body (a toolbar
17
+ that grows on a bar) is not sized by hand (`sizedByHand`: a form that grows and shows a body, a panel's card): its
18
+ float takes its `floatSizes` or its natural size, never `DEFAULT_FLOAT_SIZE` or a rect left from its grown length, and
19
+ `fitResize` and `orientFloat` treat it as a toolbar group: a float of a movable toolbar grower is not resizable by hand
20
+ (`fitResize` gives null), since its size comes from its forms. A float of it keeps the hand's share of the grown rect
21
+ it was pressed on, so it lies under the pointer, and every frame of its drag lands as its release commits.
22
+ - Added: **a movable item that grows takes its bar's free span.** An item that isn't fixed, drawn in a form with
23
+ `main.grows` on a bar (a top or bottom bar, a compact rail, a side toolbar bar; never a panel column, whose cards grow
24
+ as before), no longer just takes the fit's spare length end to end: the zones are laid with every growing item at its
25
+ natural length, then each free stretch goes to the movable growers in the zones beside it (a start-zone grower the
26
+ stretch after its zone, an end-zone one the stretch before, a center one fills the stretches on both sides), so a
27
+ centered item that doesn't grow stays put. Its asked length on a bar (`DockItem.lengths.row`) is replaced by the free
28
+ span (it only weighs the shares where two growers border one stretch). A fixed grower on such a bar (a title, say)
29
+ keeps its natural length. No new field: `main.grows` says it.
30
+ - Added: **for drop room a movable grower counts at its natural length**, as a growing title does: every drop-room
31
+ reading of a bar (its zone extents, slot lines, cards, the dragged item's own place, an empty zone's probe, and
32
+ `zoneExtents`) is taken in one layout, the window solved with every movable grower's growth off (once per drag), so
33
+ what its growth pushes along (a toolbar after it in its zone) counts where it would lie without it. The targets,
34
+ refusals and zone extents beside a grower are those of the same state with the growth off (a center drop beside it
35
+ is no longer lost, a bar with a centered fixed item takes it).
36
+ - Added: **dragged, a movable grower previews and lands at its natural length.** Its drop layouts (a target's `after`,
37
+ `dockDrag`'s `after(held)` and its `landing`, a lane spot's landing, the held item's size) are the drop's state solved
38
+ with its growth off: it and its bar's neighbors lie at its natural length, with no hole in its zone, and solving the
39
+ state grows it. This is the one exception to "a held frame and its commit read one layout". States with no movable
40
+ grower on a bar lay out, target and land exactly as before.
41
+ - Added: **`DockItem.countsAsDocked`, so a side strip no longer switches on the inset of `insetWhen: "docked"`.** The
42
+ declaration says whether an item counts as a docked panel; left out, the old rule holds (not closed, not fixed, its first
43
+ column form `open`, `header` or `rail`). It overrides that either way: `false` on a narrow column that only moves the
44
+ content aside leaves the inset off while it is open alone, so the content is the stage's less the strip's width and the
45
+ strip lies flush at the window's side; `true` counts an item of another form. With a docked panel open as well the
46
+ inset is on, as before. It is a declaration like `pushable`: `readDockState` takes it from `base`, `storeDockState`
47
+ never writes it. A state that declares none lays out exactly as before.
48
+
49
+ ## 26.11.57
50
+
51
+ - **Keep-clear rects anchored to the layout's content** (new, additive). A `DockState.keepClear` entry may now be
52
+ `{ region: "content", side, size, for, id? }` (`AnchoredKeepClear`; `KeepClearRegion` is `"content"`, extensible):
53
+ `size` px deep at that side of `DockLayout.content`, along its whole length, clamped to it, none in an empty content.
54
+ `solve` resolves it once the edges and the content are final, before the floats, into the new
55
+ `DockLayout.keepClear` (`DockKeepClearLayout`: `rect`, `for`, `id`), so an overlay strip a host draws at the content's
56
+ edge moves with the content a drop opens or closes. Before, a host fed the strip as a fixed rect taken from the
57
+ committed layout, and a drop that opened or closed a column solved its `after` with the strip where it was: the
58
+ commit moved it and a float re-fitted off its marker. Nothing that sizes the content reads keep-clear rects. Each
59
+ reader names its layout: the hits a drag shows and a float resize by hand read the layout on screen; a drop's fit
60
+ and its floats read the drop's own `after`. A guide predicted in another layout (an empty lane, a Near lane not on
61
+ screen) is trimmed by the anchored rects on screen; a `for: "floats"` rect cuts no lane guide. A declaration like
62
+ `pushable`: taken from `base`, never stored. A state with fixed rects only lays out exactly as before, and its layout
63
+ has no `keepClear`.
64
+ - **`minRegion` on an anchored entry** (new, additive): `minRegion?: { width?, height? }`. While the region as solved
65
+ is narrower or shorter than a given bound the entry is inactive: it keeps nothing clear and is absent from
66
+ `DockLayout.keepClear` (absent, not flagged), so a host draws its overlay exactly when the entry is there. A drop
67
+ that opens a column and takes the content under the bound has no entry in its `after` layout.
68
+ - Breaking (type only): `DockState.keepClear` is now `readonly (KeepClear | AnchoredKeepClear)[]`; narrow an entry
69
+ with `"region" in c` (or the root's new `isAnchoredKeepClear(c)`) before reading it as a rect. No behavior changes
70
+ for a state with fixed rects only.
71
+ - Changed (breaking for a conformance host): **`@n-uf/docking/testing` row C1 expects no `[data-drag-marker]`.** A gap or
72
+ strip landing draws one mark, the slot (`[data-drag-slot][data-drag-target]`), so a page that also drew an insertion
73
+ line from `DockDrop.marker` now fails the row: draw the slot only. `DockDrop.marker` stays, as data.
74
+ - Fixed: **reach only adds, for a new column's line and a rail stop too.** A bar's `endReach` strip past its end (over an
75
+ inset's strip beside the content) used to take the corner of the virtual `column:<side>:<n>` line's own hit there, so
76
+ the line lost its corner points once `endReach` was set; a line whose drop is the same move as home or a rail stop lost
77
+ its pieces the same way. A reach strip now never takes what another target holds as its own: a drawn edge's owned
78
+ band, or the tiles an edge with no drawn ends (a column line, a rail stop) has as it tiles on its own. Every target's
79
+ pieces with `endReach` cover its pieces without it.
80
+ - **`Side` is placement's, and `Axis` joins it; both re-exported from the root.** `Side` (`"top" | "right" | "bottom" |
81
+ "left"`) is declared once, in `@n-uf/placement`, and `@n-uf/docking` re-exports it with the new `Axis` (`"x" | "y"`):
82
+ a host's `import { type Side } from "@n-uf/docking"` still works. `DockLane.axis` and `LaneMarks.axis` are typed
83
+ `Axis`, the same two strings. No runtime change.
84
+ - **Removed (breaking): `DockGuide`.** It was the deprecated alias of `DockLaneMark` (what `DockDrag.guides(frame)`
85
+ returns). A host that wrote `DockGuide` writes `DockLaneMark`: a one-line rename, the type is the same.
86
+
10
87
  ## 26.11.56
11
88
 
12
89
  - Behavior change: **"does not fit" is decided by the hand.** The float target's drop (`DockDrop.after`, so