@n-uf/placement 26.11.52 → 26.11.54
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 +89 -1
- package/README.md +27 -58
- package/dist/{chunk-VLTYJHUA.js → chunk-2UVUFEBP.js} +4 -8
- package/dist/{chunk-VLTYJHUA.js.map → chunk-2UVUFEBP.js.map} +1 -1
- package/dist/{geometry-Bf37LbCT.d.ts → geometry-L5gCoiZV.d.ts} +2 -8
- package/dist/index.d.ts +64 -42
- package/dist/index.js +6 -66
- package/dist/index.js.map +1 -1
- package/dist/popup.d.ts +49 -0
- package/dist/popup.js +58 -0
- package/dist/popup.js.map +1 -0
- package/dist/stack.d.ts +529 -228
- package/dist/stack.js +701 -28
- package/dist/stack.js.map +1 -1
- package/dist/tiling.d.ts +48 -5
- package/dist/tiling.js +198 -19
- package/dist/tiling.js.map +1 -1
- package/package.json +9 -36
- package/dist/chunk-2GGJ4GVR.js +0 -9
- package/dist/chunk-2GGJ4GVR.js.map +0 -1
- package/dist/chunk-3ZICYLWL.js +0 -791
- package/dist/chunk-3ZICYLWL.js.map +0 -1
- package/dist/chunk-67D32MZ4.js +0 -4178
- package/dist/chunk-67D32MZ4.js.map +0 -1
- package/dist/chunk-AE3BWTAE.js +0 -838
- package/dist/chunk-AE3BWTAE.js.map +0 -1
- package/dist/chunk-JVAR67OL.js +0 -172
- package/dist/chunk-JVAR67OL.js.map +0 -1
- package/dist/chunk-NF7RYK3U.js +0 -429
- package/dist/chunk-NF7RYK3U.js.map +0 -1
- package/dist/chunk-R3AAANRY.js +0 -220
- package/dist/chunk-R3AAANRY.js.map +0 -1
- package/dist/chunk-TWI644JK.js +0 -221
- package/dist/chunk-TWI644JK.js.map +0 -1
- package/dist/constructions-Cbz7uEAZ.d.ts +0 -251
- package/dist/desk.d.ts +0 -51
- package/dist/desk.js +0 -111
- package/dist/desk.js.map +0 -1
- package/dist/dock.d.ts +0 -25
- package/dist/dock.js +0 -397
- package/dist/dock.js.map +0 -1
- package/dist/float-fit-DCYxRMru.d.ts +0 -37
- package/dist/lanes-DIwUqchd.d.ts +0 -1321
- package/dist/model-X7eUaKlA.d.ts +0 -337
- package/dist/panels.d.ts +0 -60
- package/dist/panels.js +0 -99
- package/dist/panels.js.map +0 -1
- package/dist/regions-Db_RyT4P.d.ts +0 -48
- package/dist/scene-cases.d.ts +0 -888
- package/dist/scene-cases.js +0 -3149
- package/dist/scene-cases.js.map +0 -1
- package/dist/scene.d.ts +0 -290
- package/dist/scene.js +0 -128
- package/dist/scene.js.map +0 -1
- package/dist/target-BBOCeez2.d.ts +0 -69
- package/dist/targets-C9ZVhmCl.d.ts +0 -621
- package/dist/targets.d.ts +0 -212
- package/dist/targets.js +0 -447
- package/dist/targets.js.map +0 -1
- package/dist/toolbar.d.ts +0 -167
- package/dist/toolbar.js +0 -55
- package/dist/toolbar.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@n-uf/placement",
|
|
3
|
-
"version": "26.11.
|
|
4
|
-
"description": "Where things
|
|
3
|
+
"version": "26.11.54",
|
|
4
|
+
"description": "Where things fit: the stage cut into edge bands, the items along one edge fitted with their forms, one edge's drop places, floats kept clear, panes tiled and popups positioned. Pure geometry in, rects out. No DOM, no framework, no motion.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"layout",
|
|
7
|
-
"
|
|
8
|
-
"dock",
|
|
7
|
+
"geometry",
|
|
9
8
|
"panels",
|
|
10
|
-
"palettes",
|
|
11
9
|
"toolbar",
|
|
12
10
|
"overflow",
|
|
13
|
-
"
|
|
11
|
+
"tiling",
|
|
14
12
|
"drop-targets",
|
|
15
13
|
"positioner",
|
|
16
14
|
"popup"
|
|
@@ -32,42 +30,18 @@
|
|
|
32
30
|
"types": "./dist/index.d.ts",
|
|
33
31
|
"default": "./dist/index.js"
|
|
34
32
|
},
|
|
35
|
-
"./dock": {
|
|
36
|
-
"types": "./dist/dock.d.ts",
|
|
37
|
-
"default": "./dist/dock.js"
|
|
38
|
-
},
|
|
39
|
-
"./toolbar": {
|
|
40
|
-
"types": "./dist/toolbar.d.ts",
|
|
41
|
-
"default": "./dist/toolbar.js"
|
|
42
|
-
},
|
|
43
|
-
"./targets": {
|
|
44
|
-
"types": "./dist/targets.d.ts",
|
|
45
|
-
"default": "./dist/targets.js"
|
|
46
|
-
},
|
|
47
|
-
"./panels": {
|
|
48
|
-
"types": "./dist/panels.d.ts",
|
|
49
|
-
"default": "./dist/panels.js"
|
|
50
|
-
},
|
|
51
|
-
"./desk": {
|
|
52
|
-
"types": "./dist/desk.d.ts",
|
|
53
|
-
"default": "./dist/desk.js"
|
|
54
|
-
},
|
|
55
33
|
"./stack": {
|
|
56
34
|
"types": "./dist/stack.d.ts",
|
|
57
35
|
"default": "./dist/stack.js"
|
|
58
36
|
},
|
|
59
|
-
"./scene": {
|
|
60
|
-
"types": "./dist/scene.d.ts",
|
|
61
|
-
"default": "./dist/scene.js"
|
|
62
|
-
},
|
|
63
|
-
"./scene/cases": {
|
|
64
|
-
"types": "./dist/scene-cases.d.ts",
|
|
65
|
-
"default": "./dist/scene-cases.js"
|
|
66
|
-
},
|
|
67
37
|
"./tiling": {
|
|
68
38
|
"types": "./dist/tiling.d.ts",
|
|
69
39
|
"default": "./dist/tiling.js"
|
|
70
40
|
},
|
|
41
|
+
"./popup": {
|
|
42
|
+
"types": "./dist/popup.d.ts",
|
|
43
|
+
"default": "./dist/popup.js"
|
|
44
|
+
},
|
|
71
45
|
"./package.json": "./package.json"
|
|
72
46
|
},
|
|
73
47
|
"publishConfig": {
|
|
@@ -83,8 +57,7 @@
|
|
|
83
57
|
"@types/node": "^25.5.0",
|
|
84
58
|
"tsup": "^8.5.1",
|
|
85
59
|
"typescript": "^6.0.3",
|
|
86
|
-
"vitest": "^4.1.12"
|
|
87
|
-
"@n-uf/motion": "26.11.52"
|
|
60
|
+
"vitest": "^4.1.12"
|
|
88
61
|
},
|
|
89
62
|
"scripts": {
|
|
90
63
|
"build": "tsup && node ./scripts/check-dist.mjs",
|
package/dist/chunk-2GGJ4GVR.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/target.ts"],"sourcesContent":["import type { Rect } from \"./geometry\";\n\n/**\n * A drop target in the shape @n-uf/motion/drag takes: an id, a priority (1 most precise: a rail or a tab strip;\n * 2 a slot; 3 a broad area such as floating anywhere), the zone the pointer hits, and optionally where the item\n * lands, a label and whether it lands freely (no room is made for it). `hits`, when given, is the whole zone as several\n * rects (a zone that isn't one rect), `hit` the largest of them: the pointer is in the zone when it is in any of them.\n * `arm: \"dwell\"` marks a spring-loaded target (the drag intent arms it once the pointer dwells in it), `armedHit` its\n * zone once armed.\n */\nexport interface Target {\n readonly id: string;\n readonly priority: 1 | 2 | 3;\n readonly hit: Rect;\n readonly hits?: readonly Rect[];\n /** Spring-loaded: no target until the pointer dwells in it. */\n readonly arm?: \"dwell\";\n /** Its zone once armed (the strip grown by its magnet). */\n readonly armedHit?: Rect;\n readonly slot?: Rect;\n readonly label?: string;\n readonly free?: boolean;\n /**\n * A refusal, not a target: it takes part in the pick under the pointer, ranked after every target of priority 1 and 2\n * and before priority 3 (`REFUSAL_RANK`, whatever its `priority`), but nothing lands on it (`refusalTargets`).\n */\n readonly refuse?: true;\n /**\n * The drawn space the zone belongs to (the window's stage): the zone, and a drag intent's band and gap grace about\n * it, hold only points strictly inside it. The window's boundary belongs only to the targets drawn against it: the\n * scene gives `bounds` to every refusal and to the float (whole-plane), never to a gap or a slot, so a pointer clamped\n * onto the window's edge picks a gap that reaches it, else nothing. That relies on the host clamping exactly onto the\n * stage's edge (`x + width`, `y + height`): a host that clamps to `width - 0.5` still picks inside the window.\n */\n readonly bounds?: Rect;\n /**\n * Its room opens as it shows: the scene sets it on a target whose slot overlaps an item its drop moves (a rail pushing\n * a column, a new-column line, a bar's strip over the columns), and on a rail drop strip's targets, whose room opens\n * once armed. The drag intent then shows it and makes its room in one frame. Until it shows, a release still lands on\n * it.\n */\n readonly opensRoom?: true;\n /**\n * With `opensRoom`, how long it holds before it shows with its room, ms, in place of the drag intent's `roomAfter`. The\n * scene sets it to `EDGE_ROOM_HOLD` on a rail target or a new-column line against the window's left or right edge.\n */\n readonly roomHold?: number;\n /**\n * With `opensRoom`, the zone it holds once its room is open: while the target shows with its room open, a drag intent\n * holds it wherever the pointer is in this rect. The scene sets it to the smallest rect holding `hit` and the slot (the\n * landing rect) on every target whose drop changes an edge's thickness (a side's width or a bar's height): strips,\n * new-column lines, rails and gaps. A rail drop strip (`armedHit`) doesn't carry it.\n */\n readonly roomHit?: Rect;\n}\n\n/**\n * Where a refusal ranks in the pick (the drag intent's `REFUSAL_RANK`, the same value): an ordering rank, not a\n * priority. Priorities stay the integers 1, 2 and 3; a refusal's tier is `refuse: true`, ordered by this rank on the\n * same scale: after every target of priority 1 and 2, so a real target wins wherever the two meet or overlap, and\n * before priority 3 (the float).\n */\nexport const REFUSAL_RANK = 2.5;\n\n/** A target's rank in the pick: its `priority`, a refusal's {@link REFUSAL_RANK}. Lower wins. */\nexport const pickRank = (t: { readonly priority: number; readonly refuse?: true }): number => (t.refuse === true ? REFUSAL_RANK : t.priority);\n"],"mappings":";AA8DO,IAAM,eAAe;AAGrB,IAAM,WAAW,CAAC,MAAsE,EAAE,WAAW,OAAO,eAAe,EAAE;","names":[]}
|