@n-uf/docking 26.11.55 → 26.11.56

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,78 @@ 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.56
11
+
12
+ - Behavior change: **"does not fit" is decided by the hand.** The float target's drop (`DockDrop.after`, so
13
+ `dockDrag(...).after({ kind: "float", point })`) keeps a float clear of the docked items only while the pointer is
14
+ still on the item at that clear place (on the hand rect as kept inside the stage). Otherwise the float lies at the
15
+ hand, over the docked items it covers, still clear of the bars and the chrome, and the least-covered fallback is not
16
+ used for it. A narrow float pushed at a column keeps the wall until the pointer enters the column, as before; a float
17
+ wider than the open room follows the hand and lands where it is shown, instead of jumping to one of a few seams.
18
+ - Added: **`DockFloat.stays`**, the mark of a float the hand left over content. `solve` keeps a marked float inside the
19
+ stage and clear of the bars and the chrome only, never beside what it covers (a `float-covers` note says what), so
20
+ it stays put at rest; a float with no mark keeps the rule it had (it moves clear when a column opens under it or the
21
+ window shrinks). The float target's drop decides the mark again each time; `floatAt` with a rect clears it;
22
+ `resizeFloat`, `orientFloat`, `raiseFloat` and `markUsed` keep it. `FloatPlace.stays` sets it with a rect
23
+ (`moveTo`), and the place `homeFor` gives carries it. `fitResize` on a marked float stops a growing edge at the bars
24
+ and the chrome only. Stored as `stays: true` (`StoredDockStateFloat.stays`); a `stays` that isn't `true`, or one on an
25
+ anchored float, is dropped and listed (`float:<id>:stays`).
26
+ - The conformance row `P5-neighbour-half-facing-it` now expects the float at the hand, over the neighbor's body
27
+ (`140,190`), not beside it.
28
+ - A float at the hand, and a marked float at rest, is pushed the least it takes clear of the bars and the chrome, along
29
+ the axis that needs it (as the stage's edge clamps it), and stays at the hand otherwise; it is never moved to a clear
30
+ place elsewhere.
31
+ - Behavior change: **the float floated first wins the place both want; what the hand does moves nothing else.** An
32
+ anchored float keeps clear of the anchored floats floated before it, as before, and of the floats with a rect of their
33
+ own floated strictly before it (a smaller `since`), no longer of every float with a rect of its own. A float floated
34
+ after an anchored float (or as early, with no `since`), grown over it by a corner resize or dropped on it, covers it
35
+ (or lies under it, by the stacking order), and the anchored float keeps its place. A group sent to Float from a menu
36
+ still lands beside the floats already there.
37
+ - Behavior change: **what the hand covers, it wins; what it doesn't cover never moves.** `floatAt` with a rect (a drop)
38
+ and `resizeFloat` give the float one more than the largest `since` there only when its new rect lies over an anchored
39
+ float as drawn, so a float dropped or grown over an anchored float wins over it whichever was floated first; a drop or
40
+ resize that stays clear of every anchored float keeps its `since`, so a nudge beside an anchored float moves nothing.
41
+ Re-anchoring with no rect, `raiseFloat` and `markUsed` keep it too.
42
+ - Fixed: **over a drawn rail, a new column's line and `targets()` and the lanes now decide the same** (the one-layout
43
+ property over a rail has no exceptions left). A drawn rail owns its whole rect, less the held tile's own run, so `targets()` no longer offers a
44
+ `column:<side>:<ring>` over the rest of a rail (past its last tile, or below a held tile's own run) where the lanes
45
+ stayed, and a new column's lane gives way to the rail as seen: its hit rect stops at the rail's inner side, so a
46
+ pointer on the held tile's own rail stays home or floats, as `targets()` says, instead of picking the new column whose
47
+ box lands where that rail was. With a tile of a rail held, the strip beside the rail is
48
+ home's in `targets()` (the new-column lines about its folded column are the same move as home), and the lanes now
49
+ block it too (`regions.blocked` holds the rail's home pieces), so a pointer there stays instead of floating. The new column's marks are unchanged (they are laid in the layout that makes it).
50
+ - **Added: `DockItem.stepping`**, a fixed item that still takes steps (a page readout at a title bar's end with a
51
+ `controlLadder` of its own). It is never dragged, no hit covers it and nothing lands between it and its zone's anchor
52
+ (read from the order of ids while it is in the »), but it steps through its forms, folds and goes into its edge's »
53
+ like a movable item with the same forms. A declaration like `pushable`: taken from `base`, never stored. Plain `fixed`
54
+ is unchanged.
55
+ - Fixed: **a growing title no longer takes its zone's drop room.** Its growth is spare room, not owned room: for target
56
+ room a growing fixed item counts at its natural length, not its grown length, so a drop beside it lands exactly where it
57
+ would beside a fixed item of that length that doesn't grow (its neighbors giving way as on any bar), where it was
58
+ refused before. The title yields its growth to the landing and never shrinks under its natural length for a drop. A
59
+ title bar asks nothing else of a drop: the rules that the dropped item keep its first form's kind and that nothing
60
+ else in the bar change form are gone.
61
+ - The model reads a form's » through `StackForm.menu` (or the fit's menu list), never its kind.
62
+ - Breaking: **`DockDrop` now carries the spring-loading and room fields itself.** `arm: "dwell"`, `armedHit`,
63
+ `opensRoom`, `roomHold` (ms) and `roomHit` used to come with placement's root `Target`, which now holds only `id`,
64
+ `priority`, `hit`, `hits`, `slot`, `label`, `free`, `refuse` and `bounds`; they are declared on `DockDrop`, with the same
65
+ names, types and values on every target (`DockRefusalTarget` has none of them, as before). Only a drag intent
66
+ (`@n-uf/motion/drag`'s `createDragIntent`) reads them; the landing model and `dockDrag` never do. `EDGE_ROOM_HOLD` and
67
+ `RailDropPolicy.magnet` are unchanged. No behavior changes.
68
+
69
+ ### The drag is the landing model's whole wiring
70
+
71
+ - **Added: `DockDrag.home`**, the item's own place at the lift, `{ lane, spot }` (the first spot `lanes()` marks `home`;
72
+ absent for a float). So `createLandingModel({ ...dockDrag(...), preview })` is the whole wiring. Old: the host scanned
73
+ `drag.regions.lanes[].spots[].home` for it and passed `home` by hand; a host that still passes its own `home` after the
74
+ spread keeps working (its value wins), and a host that passed none now gets the drag's.
75
+ - `./testing`, **changed (breaking, type only): `LandingRule`'s options carry `preview` in place of `placeGuides`**
76
+ (`{ mode, placeGuides? }`, motion's `DragPreview` shape), and `createLandingHost` hands the rule the drag as it is
77
+ (`{ ...drag, preview }`, its `home` included). `createLandingModel` from `@n-uf/motion/drag` is a rule as before.
78
+ - `./testing`: the reference host keeps a private copy of the refusal rank (2.5), as it can't import it any more from
79
+ `@n-uf/placement`, which dropped it (see its changelog). The reference pick is unchanged and a test holds it equal to
80
+ motion's `targetAt`.
81
+
10
82
  ## 26.11.55
11
83
 
12
84
  - Added: **`DockItem.lengths`** (`{ column?, row? }`, px along the edge, per axis), the length a person asked an item to