@n-uf/placement 26.11.47 → 26.11.49

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
@@ -3,6 +3,69 @@
3
3
  Versions are calendar versions, `YY.M.R` (year, month of the release, counter within the month), shared with
4
4
  `@n-uf/motion`: both packages carry the same version, and a release bumps both.
5
5
 
6
+ ## 26.11.49
7
+
8
+ The gutter between a column and the pages is open space. With `@n-uf/motion` 26.11.49. Host notes: none; a host
9
+ that grew `Regions.content` itself to open the gutter no longer needs to.
10
+
11
+ - `./scene`, **`Regions.content` is the float region** (fix): `lanes()` gave a landing model `content` as the pages
12
+ rect, so the gutter between a column and the pages was neither open nor blocked and counted as refused: with one
13
+ column per side a flick released there landed nowhere. `content` is now where a float can land (`floatRegion`, the
14
+ stage less its float insets), and `blocked` keeps every drawn edge, docked item, chrome and drawn rail out of it, so
15
+ the gutter is open and a release there floats, while anything docked stays refused.
16
+ - The README is a short page of the current state; the full reference is
17
+ [docs/placement-reference.md](https://github.com/n-uf/motion/blob/main/docs/placement-reference.md).
18
+
19
+ ## 26.11.48
20
+
21
+ A place guide at every spot that says only "you can drop here", and a fix to the grab's cut (R12). With
22
+ `@n-uf/motion` 26.11.48.
23
+
24
+ Host notes:
25
+ - `LaneMark.kind` and `LandingCaseGuide.kind` gain `"hatch"`: a host with an exhaustive `switch` adds a case. A hatch is
26
+ a cue, never a measure: a striped end inside a box (`HATCH_END`), or a thin striped edge (`HATCH_EDGE`) along a band's
27
+ window side. Draw it in the guides' color, never the accent; inset boxes and ends 2 px, keep a thin edge's thickness,
28
+ and keep every guide 2 px inside the window.
29
+ - Mark ids gain suffixes: `:before` / `:after` (a room box beside the held item, a striped end's side of its box),
30
+ `#<n>` for pieces. Key drawings by id as before; don't parse them.
31
+ - As seen (no `spot`) the lifted item is drawn nowhere, so its own place is free room in its lane. Draw the held lane's
32
+ guides from `lanes()` with `spot` (a landing model's `regionsFor`), where every lane's marks lie in that spot's layout.
33
+ - Pass the press's grab to `lanes()` (both calls, as since 26.11.46): the new `landing-grip-*` rows need it.
34
+
35
+ Changes:
36
+ - `./scene`, **the grab moves no hop past a long neighbor** (fix, R12): 26.11.46 and 26.11.47 cut every pair of spots
37
+ on a bar or a toolbar rail at the grab, so a toolbar held by its grip hopped a long neighbor early on a bar and late
38
+ on a rail (the landing up to about 90 px from the pointer). Landings with a gap between them are cut halfway across
39
+ it, whatever the grab; only overlapping landings (spots a pitch apart) are cut at the grab, kept within half a pitch
40
+ of their overlap, so a pointer back at its press point still lands home.
41
+ - `./scene`, **a mark at every spot but the held one's** (fix): the room beside the held item is a box from a pitch
42
+ (was: only from the item's length, so blank); a growing item on a bar or a toolbar rail (a title filling its bar)
43
+ counts at its natural length, so its slack is marked; the lifted item's own place is free room in its lane as seen;
44
+ with a held spot whose room moves a whole edge, marks lie on the edge as drawn.
45
+ - `./scene`, **the cues** (additive kind `hatch`): room that fits is a box; room that partly fits (from a pitch,
46
+ shorter than the item) is a box with a fixed striped end inside it (`HATCH_END`) at each side whose neighbor gives
47
+ way, nothing drawn on the neighbor; room under a pitch, or none (touching items, a lane's end flush), is a 2 px line.
48
+ A panel column keeps its lines. No mark covers a docked item, the held item or a float; nothing in a refused stretch.
49
+ - `./scene`, **guides follow the layout drawn** (fix): no two edge lanes' marks overlap (at a corner a lane not drawn
50
+ gives way to a drawn one; between two not drawn the bar owns it). A virtual lane is drawn over what it would push.
51
+ - `./scene`, **`LaneOptions.emptyLanes`** (additive, `"real" | "edge"`, default `"real"`): how an empty lane is drawn.
52
+ `"real"`: a box at its real size, the band it would open (an empty side rail's lies over the column's outer strip,
53
+ which moves aside); `"edge"`: a thin striped strip (`HATCH_EDGE`) on the lane's window side (its own side where it
54
+ has one). Either way its lane (the hit strip) stays one rail wide, and its marks are cut around every item docked in
55
+ a bar or a toolbar rail: an empty lane's box never covers a toolbar.
56
+ - `./scene`, **home within half a pitch** (fix): on a bar or a toolbar rail, the item's own place is one landing for
57
+ half a pitch around it; another spot landing that near (a center dock beside a place near the bar's middle) is
58
+ home's, so away and back to the press point lands home. Panel columns are unchanged.
59
+ - `./scene`, **a rail drop strip's lane is the strip** (fix, `Scene.railDrop`): a side's rail lane was the hull of its
60
+ hit and landing, the whole column where one is docked there, over the column's own lane; it is now the strip at the
61
+ window's side (`railStripWidth`), so a plain drop in that column goes by halves (R8). It is marked `Lane.owns`
62
+ (additive): the strip owns its rect, and a landing model gives it the pointer inside it over a column it overlaps
63
+ (a flush window's), once the pointer came into it, so a panel settled in the strip lands in the rail.
64
+ - `./scene/cases`, **absolute R12 rows** (additive): `landing-grip-past-long-neighbor`, `landing-grip-across-items` and
65
+ `landing-grip-up-the-rail` slide a toolbar held by its grip past or across neighbors at 0.15 px/ms, within 48 px of
66
+ the pointer (56 on the frame before a hop, `LandingCase.moving.trailBeforeHop`, additive). They need `GRIP_SINCE`
67
+ (26.11.48): a host on an older version skips them; on 26.11.46 or 26.11.47 they fail.
68
+
6
69
  ## 26.11.47
7
70
 
8
71
  Landing rows for hosts with their own geometry, and a docs correction. No layout, target or `lanes()` change. Host