@n-uf/docking 26.11.59 → 26.11.61
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 +27 -0
- package/dist/{chunk-Y3RK6BQT.js → chunk-Y2IM76RG.js} +330 -198
- package/dist/chunk-Y2IM76RG.js.map +1 -0
- package/dist/{drag-DpoWfEc7.d.ts → drag-B8JbX6Sq.d.ts} +120 -25
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +1 -1
- package/package.json +4 -4
- package/dist/chunk-Y3RK6BQT.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,33 @@ 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.61
|
|
11
|
+
|
|
12
|
+
No changes in `@n-uf/docking`. Released in step with `@n-uf/motion` and `@n-uf/placement`, which share the version.
|
|
13
|
+
|
|
14
|
+
## 26.11.60
|
|
15
|
+
|
|
16
|
+
- **The grab is a function of the laid form** ([decision 0013](https://github.com/n-uf/motion/blob/main/docs/decisions/0013-grab-as-a-function-of-the-form.md)).
|
|
17
|
+
`DockLaneOptions.grab` and `DockDropOptions.grab` (and the `grab` a target's `after(point, grab)` takes) are now a
|
|
18
|
+
`DockGrab`: a point, as before, or `(form, size) => Point | undefined`, where `form` is the laid item's layout entry
|
|
19
|
+
with the place it lies in (`DockGrabForm`, `DockGrabPlace`: a float, a spot on an edge, or a side's rail with its side
|
|
20
|
+
and orient) and the point is in the laid rect's own coordinates. A host whose grip lies elsewhere in each form (a
|
|
21
|
+
row's at its left end, an icons column's at its top) keeps the pressed spot of the grip under the pointer when the
|
|
22
|
+
form changes. A plain point becomes the library's own twin function at the lift, so every reader (the float, a
|
|
23
|
+
sliding spot, the aim cuts) reads one function, and a plain point lands exactly as before. A function gives the press
|
|
24
|
+
point at the item's own form and size, may give `undefined` for a form it can't place yet (the twin answers), and is
|
|
25
|
+
pure for the drag: one closure per drag, remembered by identity.
|
|
26
|
+
- New: `DockAfter.grab`, on every held place, never absent: where the pointer holds the item in the form that place
|
|
27
|
+
shows (a float's and a sliding spot's the grab they landed with, a fixed spot's the grab in its landing's form, rest's
|
|
28
|
+
the press point, which a host seeds `holdItem` with). The held copy is drawn at the pointer less it.
|
|
29
|
+
`DropResult.grab` (optional) says the grab a float's or a sliding spot's drop landed with.
|
|
30
|
+
- A float and a sliding spot whose landing lies in another form than the grab was read in are aimed once more with the
|
|
31
|
+
grab in that form, never again; on a sliding spot only the grab's part along the lane moves the landing. A fixed spot
|
|
32
|
+
doesn't move for the grab; the cut between two overlapping landings lies halfway between the points the pointer would
|
|
33
|
+
hold in each, the grab read in each landing's own form.
|
|
34
|
+
- Types: `options.grab` is now a union; code that reads it back as a point narrows it first. Passing a point needs no
|
|
35
|
+
change.
|
|
36
|
+
|
|
10
37
|
## 26.11.59
|
|
11
38
|
|
|
12
39
|
- **One aim order for `targets()` and `lanes()`.** Both now cut where one place along an edge meets the next by one
|