@n-uf/placement 26.11.46 → 26.11.47

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,24 @@
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.47
7
+
8
+ Landing rows for hosts with their own geometry, and a docs correction. No layout, target or `lanes()` change. Host
9
+ notes: a host whose window differs from a row's (its own gaps or paddings) returns `before` from `play`, its layout at
10
+ the press; without it the back-home rows compare with the row's window as before.
11
+
12
+ - `./scene/cases`, **`LandingCase.home`** and **`LandingPlay.before`** (additive): `home` checks that after the release
13
+ the item lies where it lay at the press, on the same edge, in the same order there and at the same rect, against the
14
+ play's `before` (else the row's scene as solved). `landing-back-home-bar` and `landing-back-home-rail` use it instead
15
+ of pixel values of the row's window, so a host whose rail has a gap no longer fails the rail row by that gap.
16
+ `landingIssues` takes `before` as an optional fourth argument; the reference host reports it.
17
+ - `./scene`, **`Scene.barZones`** (docs): what it does under a landing model, which the 26.11.45 notes didn't say. It
18
+ moves each zone's extent, so it changes which zone a pointer picks among `targets()` and, since a zone left with no
19
+ room gets no drop, which of a bar's drops exist and where its refused stretches lie. `lanes()` cuts between spots by
20
+ their landings, not by zones: under a landing model it changes which spots, refused stretches and place guides a
21
+ bar has, never the rule that cuts between spots (the cuts follow whichever spots exist). It is not needed for the
22
+ landing model.
23
+
6
24
  ## 26.11.46
7
25
 
8
26
  A fix for hosts on the landing model. Host notes: pass the drag's grab to `lanes()` (`{ previous, grab }`, and the
package/README.md CHANGED
@@ -999,7 +999,11 @@ what it shows and what a drag reads. A declaration, never stored.
999
999
 
1000
1000
  **Nearest bar zones.** With `Scene.barZones: "nearest"`, a bar's start, center and end zones meet halfway between the
1001
1001
  landing rects either side of each boundary, not at thirds, so the pointer picks the zone whose landing is nearest it. A
1002
- declaration, never stored.
1002
+ declaration, never stored. It moves each zone's extent: it changes which zone a pointer picks among `targets()` (what a
1003
+ drag intent reads) and, since a zone left with no room gets no drop, which of a bar's drops exist and where its refused
1004
+ stretches lie. Under a landing model `lanes()` cuts between spots by their landings, not by zones, so there it changes
1005
+ which spots and refused stretches (and so which place guides) a bar has, never the rule that cuts between spots (the
1006
+ cuts follow whichever spots exist).
1003
1007
 
1004
1008
  **Space kept on a zone's open side.** `SceneItem.space` is free space an item keeps before it in a start zone or after it
1005
1009
  in an end zone, out of the edge's spare length (shared out when items ask for more). A dock move sets it with
@@ -1665,8 +1669,11 @@ never shown, how far the landing may trail the pointer, or no further than the s
1665
1669
  margin), on the last frame and in the layout after the release. They cover the rail repro, the window's edge (on it
1666
1670
  and up to 48 px past it docks, beyond is nowhere), a fast pass over a bar, lane to lane at a corner, a fast hand along
1667
1671
  a free stretch and across docked items, and a toolbar taken away by one end and brought back to its press point,
1668
- which lands home. A host implements `play(row)`: its frames (`LandingCaseFrame`) and the layout
1669
- after. `runLandingCases(rows, host)` says what differs. Placement doesn't import motion, so the reference host takes
1672
+ which lands home. A host implements `play(row)`: its frames (`LandingCaseFrame`), the layout after and, where its
1673
+ geometry differs from the row's window (its own gaps or paddings), `before`, its layout at the press (taken before the
1674
+ pointer moves, never after the release): a row's `home` (the item ends where it lay at the press: same edge, same order,
1675
+ same rect) compares with it, so no pixel value of the row's window is asserted. `runLandingCases(rows, host)` says what
1676
+ differs. Placement doesn't import motion, so the reference host takes
1670
1677
  the model as an input, as the scene host takes the pick rule:
1671
1678
 
1672
1679
  ```ts
@@ -3600,4 +3600,4 @@ export {
3600
3600
  SPOT_PITCH,
3601
3601
  lanes
3602
3602
  };
3603
- //# sourceMappingURL=chunk-A4DQQX7W.js.map
3603
+ //# sourceMappingURL=chunk-VNOEEI4L.js.map