@n-uf/placement 26.11.30 → 26.11.32
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 +53 -0
- package/README.md +38 -4
- package/dist/{chunk-5CSWQSH7.js → chunk-COK4YNMF.js} +58 -14
- package/dist/chunk-COK4YNMF.js.map +1 -0
- package/dist/{model-BxFXr9UY.d.ts → model-BSIKmANw.d.ts} +21 -2
- package/dist/scene-cases.d.ts +26 -3
- package/dist/scene-cases.js +167 -54
- package/dist/scene-cases.js.map +1 -1
- package/dist/scene.d.ts +7 -2
- package/dist/scene.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-5CSWQSH7.js.map +0 -1
package/dist/scene.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { C as ColumnPlace, l as ColumnTemplate, D as DEFAULT_FLOAT_SIZE, m as DEFAULT_HIT_BAND, n as DEFAULT_RAIL_MAGNET, o as DEFAULT_STRIP, p as DockPlace, F as FloatAnchor, q as FloatPlace, r as FloatResize, P as Place, s as RAIL_MODES, t as RAIL_STRIP_MIN, u as RAIL_VISIBILITIES, v as RailDropPolicy, w as RailPlace, x as RailSpec, y as RailVisibility, z as ResizeEdges, A as ResizeLimit, B as SIDES, G as SceneAfter, H as SceneEdgeLayout, I as SceneFloat, J as SceneItemLayout, L as SceneNote, f as SceneNoteCode, a as ScenePlace, M as SceneRailLayout, N as SceneRead, c as StoredScene, Q as StoredSceneEdge, T as StoredSceneFloat, U as StoredSceneItem, V as ZONES, W as close, X as dockHome, Y as fitResize, _ as floatAt, $ as fold, a0 as homeFor, a1 as keep, a2 as lift, a3 as moveTo, a4 as open, a5 as orient, a6 as raise, a7 as readScene, a8 as resize, a9 as setRailMode, aa as setSide, ab as storeScene, ac as use } from './model-
|
|
1
|
+
import { h as SceneItem, O as Orient, S as Scene, E as Edge, e as Side, R as RailMode, K as Kind, i as ZoneAccepts, Z as Zone, j as SolveOptions, b as SceneLayout, k as SceneTargetOptions, g as SceneRefusal, d as SceneTarget } from './model-BSIKmANw.js';
|
|
2
|
+
export { C as ColumnPlace, l as ColumnTemplate, D as DEFAULT_FLOAT_SIZE, m as DEFAULT_HIT_BAND, n as DEFAULT_RAIL_MAGNET, o as DEFAULT_STRIP, p as DockPlace, F as FloatAnchor, q as FloatPlace, r as FloatResize, P as Place, s as RAIL_MODES, t as RAIL_STRIP_MIN, u as RAIL_VISIBILITIES, v as RailDropPolicy, w as RailPlace, x as RailSpec, y as RailVisibility, z as ResizeEdges, A as ResizeLimit, B as SIDES, G as SceneAfter, H as SceneEdgeLayout, I as SceneFloat, J as SceneItemLayout, L as SceneNote, f as SceneNoteCode, a as ScenePlace, M as SceneRailLayout, N as SceneRead, c as StoredScene, Q as StoredSceneEdge, T as StoredSceneFloat, U as StoredSceneItem, V as ZONES, W as close, X as dockHome, Y as fitResize, _ as floatAt, $ as fold, a0 as homeFor, a1 as keep, a2 as lift, a3 as moveTo, a4 as open, a5 as orient, a6 as raise, a7 as readScene, a8 as resize, a9 as setRailMode, aa as setSide, ab as storeScene, ac as use } from './model-BSIKmANw.js';
|
|
3
3
|
import { S as Size, R as Rect } from './geometry-Bf37LbCT.js';
|
|
4
4
|
export { F as FloatFit, f as fitFloat } from './float-fit-DCYxRMru.js';
|
|
5
5
|
import './target-2RYYKkd1.js';
|
|
@@ -149,6 +149,11 @@ declare function refusals(scene: Scene, dragged: string, options?: SceneTargetOp
|
|
|
149
149
|
* `stops(scene, id, options?)`: the places for "Move to ›" and the arrow keys, in reading order, from the same targets
|
|
150
150
|
* (`home` and `none` left out): the left side outer to inner, the top bars, the bottom bars, the right side inner to
|
|
151
151
|
* outer, floating last. Each stop is a target, so its `after` is the move.
|
|
152
|
+
*
|
|
153
|
+
* Remembered per scene: a scene is an immutable value (every change returns a new one), so the stops of one item of one
|
|
154
|
+
* scene with the same options are solved once, and asking again (a menu redrawn, every group's list on each render) costs
|
|
155
|
+
* nothing until the scene is another object. The options count by value, `previous` by identity. The list is yours: a
|
|
156
|
+
* new array each call, over the same targets.
|
|
152
157
|
*/
|
|
153
158
|
declare function stops(scene: Scene, dragged: string, options?: SceneTargetOptions): SceneTarget[];
|
|
154
159
|
|
package/dist/scene.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@n-uf/placement",
|
|
3
|
-
"version": "26.11.
|
|
3
|
+
"version": "26.11.32",
|
|
4
4
|
"description": "Where things go: desk docks, rails and palettes, panel columns, toolbar groups, and the drop targets for each. Pure state in, rects out. No DOM, no framework, no motion.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"layout",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"tsup": "^8.5.1",
|
|
81
81
|
"typescript": "^6.0.3",
|
|
82
82
|
"vitest": "^4.1.12",
|
|
83
|
-
"@n-uf/motion": "26.11.
|
|
83
|
+
"@n-uf/motion": "26.11.32"
|
|
84
84
|
},
|
|
85
85
|
"scripts": {
|
|
86
86
|
"build": "tsup && node ./scripts/check-dist.mjs",
|