@n-uf/docking 26.11.56 → 26.11.57

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,44 @@ 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.57
11
+
12
+ - **Keep-clear rects anchored to the layout's content** (new, additive). A `DockState.keepClear` entry may now be
13
+ `{ region: "content", side, size, for, id? }` (`AnchoredKeepClear`; `KeepClearRegion` is `"content"`, extensible):
14
+ `size` px deep at that side of `DockLayout.content`, along its whole length, clamped to it, none in an empty content.
15
+ `solve` resolves it once the edges and the content are final, before the floats, into the new
16
+ `DockLayout.keepClear` (`DockKeepClearLayout`: `rect`, `for`, `id`), so an overlay strip a host draws at the content's
17
+ edge moves with the content a drop opens or closes. Before, a host fed the strip as a fixed rect taken from the
18
+ committed layout, and a drop that opened or closed a column solved its `after` with the strip where it was: the
19
+ commit moved it and a float re-fitted off its marker. Nothing that sizes the content reads keep-clear rects. Each
20
+ reader names its layout: the hits a drag shows and a float resize by hand read the layout on screen; a drop's fit
21
+ and its floats read the drop's own `after`. A guide predicted in another layout (an empty lane, a Near lane not on
22
+ screen) is trimmed by the anchored rects on screen; a `for: "floats"` rect cuts no lane guide. A declaration like
23
+ `pushable`: taken from `base`, never stored. A state with fixed rects only lays out exactly as before, and its layout
24
+ has no `keepClear`.
25
+ - **`minRegion` on an anchored entry** (new, additive): `minRegion?: { width?, height? }`. While the region as solved
26
+ is narrower or shorter than a given bound the entry is inactive: it keeps nothing clear and is absent from
27
+ `DockLayout.keepClear` (absent, not flagged), so a host draws its overlay exactly when the entry is there. A drop
28
+ that opens a column and takes the content under the bound has no entry in its `after` layout.
29
+ - Breaking (type only): `DockState.keepClear` is now `readonly (KeepClear | AnchoredKeepClear)[]`; narrow an entry
30
+ with `"region" in c` (or the root's new `isAnchoredKeepClear(c)`) before reading it as a rect. No behavior changes
31
+ for a state with fixed rects only.
32
+ - Changed (breaking for a conformance host): **`@n-uf/docking/testing` row C1 expects no `[data-drag-marker]`.** A gap or
33
+ strip landing draws one mark, the slot (`[data-drag-slot][data-drag-target]`), so a page that also drew an insertion
34
+ line from `DockDrop.marker` now fails the row: draw the slot only. `DockDrop.marker` stays, as data.
35
+ - 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
36
+ inset's strip beside the content) used to take the corner of the virtual `column:<side>:<n>` line's own hit there, so
37
+ 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
38
+ its pieces the same way. A reach strip now never takes what another target holds as its own: a drawn edge's owned
39
+ 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
40
+ pieces with `endReach` cover its pieces without it.
41
+ - **`Side` is placement's, and `Axis` joins it; both re-exported from the root.** `Side` (`"top" | "right" | "bottom" |
42
+ "left"`) is declared once, in `@n-uf/placement`, and `@n-uf/docking` re-exports it with the new `Axis` (`"x" | "y"`):
43
+ a host's `import { type Side } from "@n-uf/docking"` still works. `DockLane.axis` and `LaneMarks.axis` are typed
44
+ `Axis`, the same two strings. No runtime change.
45
+ - **Removed (breaking): `DockGuide`.** It was the deprecated alias of `DockLaneMark` (what `DockDrag.guides(frame)`
46
+ returns). A host that wrote `DockGuide` writes `DockLaneMark`: a one-line rename, the type is the same.
47
+
10
48
  ## 26.11.56
11
49
 
12
50
  - Behavior change: **"does not fit" is decided by the hand.** The float target's drop (`DockDrop.after`, so