@n-uf/docking 26.11.57 → 26.11.59
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 +90 -0
- package/dist/{chunk-JBKUC72Z.js → chunk-Y3RK6BQT.js} +708 -387
- package/dist/chunk-Y3RK6BQT.js.map +1 -0
- package/dist/{drag-CyrphFye.d.ts → drag-DpoWfEc7.d.ts} +30 -8
- package/dist/index.d.ts +32 -9
- package/dist/index.js +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +12 -9
- package/dist/testing.js.map +1 -1
- package/package.json +4 -4
- package/dist/chunk-JBKUC72Z.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,96 @@ 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.59
|
|
11
|
+
|
|
12
|
+
- **One aim order for `targets()` and `lanes()`.** Both now cut where one place along an edge meets the next by one
|
|
13
|
+
rule (`aimCut`): a panel column takes a panel by halves of what is drawn, as before; a bar or a toolbar rail takes the
|
|
14
|
+
nearest landing, halfway across the gap between the two landings either side of a neighbor, at the grab where they
|
|
15
|
+
overlap. `lanes()` cut this way already; `targets()` cut a toolbar's neighbor at its middle, so a host reading the
|
|
16
|
+
tiles and one reading the lanes could put a toolbar on opposite sides of the same neighbor for the same pointer. The
|
|
17
|
+
tiles now follow the lanes, across zones and past fixed items too (one place in the edge's order is one stretch, as a
|
|
18
|
+
sliding spot is): dragged over a neighbor of its own length, a toolbar takes that neighbor's place, and
|
|
19
|
+
home holds its own place only up to the cut beside it. A slot that lands within half a pitch of the item's own place
|
|
20
|
+
(pushing a neighbor) is home's, as in the lanes. A toolbar tray at a column's foot cuts by halves, like its column, as
|
|
21
|
+
before.
|
|
22
|
+
- **Two docks at one landing: the zone beside the stretch.** Where a sliding spot's start (or another of its snap points)
|
|
23
|
+
is also a center dock's landing, the dock in the zone of the neighbor before the stretch wins, so a drop flush after
|
|
24
|
+
the last start-zone toolbar stays in the start zone.
|
|
25
|
+
- New: `DockDropOptions.grab` (where the pointer holds the item, as `DockLaneOptions.grab`): the tiles cut overlapping
|
|
26
|
+
landings there, as the lanes do; without it, the item's middle. `DockDropOptions.pitch` (as `DockLaneOptions.pitch`,
|
|
27
|
+
which `lanes()` passes on): half of it is how far past an overlap the cut may move, in both paths.
|
|
28
|
+
- **Stops are the places; the pointer takes the nearest.** A place whose landing is never the nearest to any pointer
|
|
29
|
+
(behind a fixed run, say) has no hit in `targets()` and a spot with no stretch in `lanes()` (its guide still drawn);
|
|
30
|
+
`stops()` still lists it, at its landing, so "Move to ›" and the arrow keys keep every place they had.
|
|
31
|
+
- **A sliding spot's target holds its stretch.** Its `hit` now runs over the spot's stretch of the lane, not over its
|
|
32
|
+
whole range of landings, which ran into the neighbors' stretches.
|
|
33
|
+
- **Three layouts, one job each.** On a bar or a toolbar rail which places exist and fit is read in the room, growth
|
|
34
|
+
off (the gap beside a grown row stays a place); where the aim cut between two places lies is halfway between their
|
|
35
|
+
landings, each in the layout its own drop commits (a grower as that commit draws it), in the tiles and the lanes
|
|
36
|
+
alike, never from insertion lines; what is drawn is `shown(frame)`. A place over free room cuts from its range's
|
|
37
|
+
ends, the room its drop makes, so beside a growing neighbor (a title, a stretchable panel) whose slack a dock takes,
|
|
38
|
+
the slack is reachable: the place after it starts halfway from the landing before the neighbor. The tiles order
|
|
39
|
+
places by their landings, not by their zone pieces, so where a grower moves a landing past another place's (a center
|
|
40
|
+
dock beside stretchable panels), both paths agree. A place is unreachable only where its landing is another's.
|
|
41
|
+
- **A place whose cuts cross moves no other cut.** Where a place's cut after it would lie before its cut before it (a
|
|
42
|
+
sliding spot where the item lands in a shorter form, between two docks that overlap), it is nearer no pointer: both
|
|
43
|
+
paths leave it out of the cutting, its neighbors cut between themselves, and it keeps a spot with no stretch (a stop).
|
|
44
|
+
Before, the lanes kept their cuts in order by pushing the next cut on, so the place after the crossed one started late.
|
|
45
|
+
- Changed (behavior): **a sliding or pitched dock counts the dropped item as just used**, as every target's drop
|
|
46
|
+
already did ("a dropped item counts as just used"): one model on both paths. So on a full bar, after a slide, the
|
|
47
|
+
neighbor that gives way is the one the solver gives up first for the freshly used item: the least used goes to the »
|
|
48
|
+
where a neighbor used to step down to a shorter form to make a single start (a toolbar dropped beside two others on a
|
|
49
|
+
bar with room for only two keeps the bar, and the least used of the two moves to the »). A slide's commit and the
|
|
50
|
+
tile's for the same place now agree on which neighbor that is.
|
|
51
|
+
- **The grab's share reads the held item.** `targets()` reads `DockDropOptions.grab` as a share of the item's length as
|
|
52
|
+
held (a movable grower at its natural length), as `lanes()` does.
|
|
53
|
+
- **Stops list every place that fits on a bar.** A slot of a bar or a toolbar rail whose stretch clipping left under a
|
|
54
|
+
pixel is a stop too, as one the aim cuts leave none.
|
|
55
|
+
- Changed (breaking for conformance): the row `R4-bar-gaps-split-at-the-middle` is renamed
|
|
56
|
+
`R4-bar-items-take-the-nearest-landing` (a toolbar over a neighbor of its length stays before it on either side of
|
|
57
|
+
its middle); `R7-end-zone-pushes-fixed-behind-a-movable-leading` now expects the drop after Zoom, as the trailing row
|
|
58
|
+
does, since the nearest landing over Zoom is Zoom's place. A host that lists either row by id or by its old outcome
|
|
59
|
+
updates it.
|
|
60
|
+
|
|
61
|
+
## 26.11.58
|
|
62
|
+
|
|
63
|
+
- Fixed: **no guide lies over a movable grower while another item is held beside it.** The marks read a grower as the
|
|
64
|
+
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
|
|
65
|
+
hatch of the place after it are cut there, not where its natural length ends. A growing fixed title's slack stays free
|
|
66
|
+
room for the marks, as before. Drop room still counts a grower at its natural length.
|
|
67
|
+
- Fixed: **a movable grower floats at its natural size, under the hand.** A form that grows without a body (a toolbar
|
|
68
|
+
that grows on a bar) is not sized by hand (`sizedByHand`: a form that grows and shows a body, a panel's card): its
|
|
69
|
+
float takes its `floatSizes` or its natural size, never `DEFAULT_FLOAT_SIZE` or a rect left from its grown length, and
|
|
70
|
+
`fitResize` and `orientFloat` treat it as a toolbar group: a float of a movable toolbar grower is not resizable by hand
|
|
71
|
+
(`fitResize` gives null), since its size comes from its forms. A float of it keeps the hand's share of the grown rect
|
|
72
|
+
it was pressed on, so it lies under the pointer, and every frame of its drag lands as its release commits.
|
|
73
|
+
- Added: **a movable item that grows takes its bar's free span.** An item that isn't fixed, drawn in a form with
|
|
74
|
+
`main.grows` on a bar (a top or bottom bar, a compact rail, a side toolbar bar; never a panel column, whose cards grow
|
|
75
|
+
as before), no longer just takes the fit's spare length end to end: the zones are laid with every growing item at its
|
|
76
|
+
natural length, then each free stretch goes to the movable growers in the zones beside it (a start-zone grower the
|
|
77
|
+
stretch after its zone, an end-zone one the stretch before, a center one fills the stretches on both sides), so a
|
|
78
|
+
centered item that doesn't grow stays put. Its asked length on a bar (`DockItem.lengths.row`) is replaced by the free
|
|
79
|
+
span (it only weighs the shares where two growers border one stretch). A fixed grower on such a bar (a title, say)
|
|
80
|
+
keeps its natural length. No new field: `main.grows` says it.
|
|
81
|
+
- Added: **for drop room a movable grower counts at its natural length**, as a growing title does: every drop-room
|
|
82
|
+
reading of a bar (its zone extents, slot lines, cards, the dragged item's own place, an empty zone's probe, and
|
|
83
|
+
`zoneExtents`) is taken in one layout, the window solved with every movable grower's growth off (once per drag), so
|
|
84
|
+
what its growth pushes along (a toolbar after it in its zone) counts where it would lie without it. The targets,
|
|
85
|
+
refusals and zone extents beside a grower are those of the same state with the growth off (a center drop beside it
|
|
86
|
+
is no longer lost, a bar with a centered fixed item takes it).
|
|
87
|
+
- Added: **dragged, a movable grower previews and lands at its natural length.** Its drop layouts (a target's `after`,
|
|
88
|
+
`dockDrag`'s `after(held)` and its `landing`, a lane spot's landing, the held item's size) are the drop's state solved
|
|
89
|
+
with its growth off: it and its bar's neighbors lie at its natural length, with no hole in its zone, and solving the
|
|
90
|
+
state grows it. This is the one exception to "a held frame and its commit read one layout". States with no movable
|
|
91
|
+
grower on a bar lay out, target and land exactly as before.
|
|
92
|
+
- Added: **`DockItem.countsAsDocked`, so a side strip no longer switches on the inset of `insetWhen: "docked"`.** The
|
|
93
|
+
declaration says whether an item counts as a docked panel; left out, the old rule holds (not closed, not fixed, its first
|
|
94
|
+
column form `open`, `header` or `rail`). It overrides that either way: `false` on a narrow column that only moves the
|
|
95
|
+
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
|
|
96
|
+
strip lies flush at the window's side; `true` counts an item of another form. With a docked panel open as well the
|
|
97
|
+
inset is on, as before. It is a declaration like `pushable`: `readDockState` takes it from `base`, `storeDockState`
|
|
98
|
+
never writes it. A state that declares none lays out exactly as before.
|
|
99
|
+
|
|
10
100
|
## 26.11.57
|
|
11
101
|
|
|
12
102
|
- **Keep-clear rects anchored to the layout's content** (new, additive). A `DockState.keepClear` entry may now be
|