@n-uf/placement 26.11.38 → 26.11.40
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 +33 -0
- package/README.md +15 -3
- package/dist/{chunk-GWZ5BPIN.js → chunk-PADZWK3H.js} +81 -54
- package/dist/chunk-PADZWK3H.js.map +1 -0
- package/dist/{model-bUSbHw8v.d.ts → model-YDXCs2N_.d.ts} +9 -2
- package/dist/scene-cases.d.ts +1 -1
- package/dist/scene-cases.js +2 -1
- package/dist/scene-cases.js.map +1 -1
- package/dist/scene.d.ts +19 -3
- package/dist/scene.js +5 -1
- package/package.json +2 -2
- package/dist/chunk-GWZ5BPIN.js.map +0 -1
package/dist/scene.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FloatAnchorAt, h as FloatAnchor, K as Kind, i as ZoneAccepts, j as SceneItem, O as Orient, S as Scene, E as Edge, d as Side, R as RailMode, Z as Zone, k as SolveOptions, b as SceneLayout, g as SceneRefusal, l as SceneTargetOptions, f as SceneTarget } from './model-
|
|
2
|
-
export { C as ColumnPlace, m as ColumnTemplate, D as DEFAULT_FLOAT_SIZE, n as DEFAULT_HIT_BAND, o as DEFAULT_RAIL_MAGNET, p as DEFAULT_STRIP, q as DockPlace, r as FLOAT_ANCHORS, s as FloatAnchorOffset, t as FloatPlace, u as FloatResize, P as Place, v as RAIL_MODES, w as RAIL_STRIP_MIN, x as RAIL_VISIBILITIES, y as RailDropPolicy, z as RailPlace, A as RailSpec, B as RailVisibility, G as ResizeEdges, H as ResizeLimit, I as SIDES, J as SceneAfter, L as SceneChrome, M as SceneEdgeLayout, N as SceneFloat, Q as SceneItemLayout, T as SceneNote, e as SceneNoteCode, a as ScenePlace, U as SceneRailLayout, V as SceneRead, c as StoredScene, W as StoredSceneEdge, X as StoredSceneFloat, Y as StoredSceneItem, _ as ZONES, $ as canFold, a0 as close, a1 as dockHome, a2 as fitResize, a3 as floatAt, a4 as fold, a5 as homeFor, a6 as keep, a7 as lift, a8 as moveTo, a9 as open, aa as orient, ab as raise, ac as readScene, ad as resize, ae as setRailMode, af as setSide, ag as storeScene, ah as use } from './model-
|
|
1
|
+
import { F as FloatAnchorAt, h as FloatAnchor, K as Kind, i as ZoneAccepts, j as SceneItem, O as Orient, S as Scene, E as Edge, d as Side, R as RailMode, Z as Zone, k as SolveOptions, b as SceneLayout, g as SceneRefusal, l as SceneTargetOptions, f as SceneTarget } from './model-YDXCs2N_.js';
|
|
2
|
+
export { C as ColumnPlace, m as ColumnTemplate, D as DEFAULT_FLOAT_SIZE, n as DEFAULT_HIT_BAND, o as DEFAULT_RAIL_MAGNET, p as DEFAULT_STRIP, q as DockPlace, r as FLOAT_ANCHORS, s as FloatAnchorOffset, t as FloatPlace, u as FloatResize, P as Place, v as RAIL_MODES, w as RAIL_STRIP_MIN, x as RAIL_VISIBILITIES, y as RailDropPolicy, z as RailPlace, A as RailSpec, B as RailVisibility, G as ResizeEdges, H as ResizeLimit, I as SIDES, J as SceneAfter, L as SceneChrome, M as SceneEdgeLayout, N as SceneFloat, Q as SceneItemLayout, T as SceneNote, e as SceneNoteCode, a as ScenePlace, U as SceneRailLayout, V as SceneRead, c as StoredScene, W as StoredSceneEdge, X as StoredSceneFloat, Y as StoredSceneItem, _ as ZONES, $ as canFold, a0 as close, a1 as dockHome, a2 as fitResize, a3 as floatAt, a4 as fold, a5 as homeFor, a6 as keep, a7 as lift, a8 as moveTo, a9 as open, aa as orient, ab as raise, ac as readScene, ad as resize, ae as setRailMode, af as setSide, ag as storeScene, ah as use } from './model-YDXCs2N_.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 { T as Target } from './target-Db9z1bWt.js';
|
|
@@ -33,6 +33,22 @@ declare const edgeTakes: (edge: {
|
|
|
33
33
|
}, kind: Kind) => boolean;
|
|
34
34
|
/** How the rails of `side` show their items (`Scene.railModes`, default `"titles"`); top and bottom have no rails. */
|
|
35
35
|
declare const railModeOf: (scene: Scene, side: Side) => RailMode;
|
|
36
|
+
/**
|
|
37
|
+
* The zone `item` lies in on `edge`: its own (`align`) where the edge takes its kind there, else the first zone that
|
|
38
|
+
* does. A fixed item, or one the edge takes nowhere, lies in its own. The item's zone is its own fact, not the edge's:
|
|
39
|
+
* this is where it is laid out and targeted, while its stored `align` stays as it was, so it is back in its own zone
|
|
40
|
+
* on an edge that takes it there.
|
|
41
|
+
*/
|
|
42
|
+
declare function zoneIn(edge: Edge, item: SceneItem): Zone;
|
|
43
|
+
/**
|
|
44
|
+
* Whether a drop on `edge` names a zone for `kind`: the edge offers a choice, more than one of its zones taking the
|
|
45
|
+
* kind. Only then does the zone a drop gives become the item's `align`; on a one-zone edge (a rail that takes the kind
|
|
46
|
+
* at its start only) the item keeps its own, and lies in that one zone there (`zoneIn`).
|
|
47
|
+
*/
|
|
48
|
+
declare const namesZone: (edge: {
|
|
49
|
+
readonly accepts: readonly Kind[];
|
|
50
|
+
readonly zoneAccepts?: ZoneAccepts;
|
|
51
|
+
}, kind: Kind) => boolean;
|
|
36
52
|
/**
|
|
37
53
|
* A left or right toolbar bar outside the inset (`isSideBar` with `outsideInset`). It lies outermost on its side,
|
|
38
54
|
* before the side's rail.
|
|
@@ -255,4 +271,4 @@ declare function refusalTargets(list: readonly SceneRefusal[]): SceneRefusalTarg
|
|
|
255
271
|
*/
|
|
256
272
|
declare function stops(scene: Scene, dragged: string, options?: SceneTargetOptions): SceneTarget[];
|
|
257
273
|
|
|
258
|
-
export { Edge, FloatAnchor, FloatAnchorAt, Kind, Orient, RailMode, Scene, SceneItem, SceneLayout, SceneRefusal, type SceneRefusalTarget, SceneTarget, SceneTargetOptions, Side, SolveOptions, type TargetIdParts, Zone, ZoneAccepts, anchorName, edgeTakes, floatOrientOf, floatSizeOf, isOutsideSideBar, isSideBar, parseTargetId, placeTargetId, railModeOf, refusalTargets, refusals, reservedRect, solve, stops, targetId, targets, virtualEdgeId, zoneTakes, zonesTaking };
|
|
274
|
+
export { Edge, FloatAnchor, FloatAnchorAt, Kind, Orient, RailMode, Scene, SceneItem, SceneLayout, SceneRefusal, type SceneRefusalTarget, SceneTarget, SceneTargetOptions, Side, SolveOptions, type TargetIdParts, Zone, ZoneAccepts, anchorName, edgeTakes, floatOrientOf, floatSizeOf, isOutsideSideBar, isSideBar, namesZone, parseTargetId, placeTargetId, railModeOf, refusalTargets, refusals, reservedRect, solve, stops, targetId, targets, virtualEdgeId, zoneIn, zoneTakes, zonesTaking };
|
package/dist/scene.js
CHANGED
|
@@ -25,6 +25,7 @@ import {
|
|
|
25
25
|
keep,
|
|
26
26
|
lift,
|
|
27
27
|
moveTo,
|
|
28
|
+
namesZone,
|
|
28
29
|
open,
|
|
29
30
|
orient,
|
|
30
31
|
parseTargetId,
|
|
@@ -45,9 +46,10 @@ import {
|
|
|
45
46
|
targets,
|
|
46
47
|
use,
|
|
47
48
|
virtualEdgeId,
|
|
49
|
+
zoneIn,
|
|
48
50
|
zoneTakes,
|
|
49
51
|
zonesTaking
|
|
50
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-PADZWK3H.js";
|
|
51
53
|
import {
|
|
52
54
|
fitFloat
|
|
53
55
|
} from "./chunk-AE3BWTAE.js";
|
|
@@ -80,6 +82,7 @@ export {
|
|
|
80
82
|
keep,
|
|
81
83
|
lift,
|
|
82
84
|
moveTo,
|
|
85
|
+
namesZone,
|
|
83
86
|
open,
|
|
84
87
|
orient,
|
|
85
88
|
parseTargetId,
|
|
@@ -100,6 +103,7 @@ export {
|
|
|
100
103
|
targets,
|
|
101
104
|
use,
|
|
102
105
|
virtualEdgeId,
|
|
106
|
+
zoneIn,
|
|
103
107
|
zoneTakes,
|
|
104
108
|
zonesTaking
|
|
105
109
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@n-uf/placement",
|
|
3
|
-
"version": "26.11.
|
|
3
|
+
"version": "26.11.40",
|
|
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",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"tsup": "^8.5.1",
|
|
85
85
|
"typescript": "^6.0.3",
|
|
86
86
|
"vitest": "^4.1.12",
|
|
87
|
-
"@n-uf/motion": "26.11.
|
|
87
|
+
"@n-uf/motion": "26.11.40"
|
|
88
88
|
},
|
|
89
89
|
"scripts": {
|
|
90
90
|
"build": "tsup && node ./scripts/check-dist.mjs",
|