@n-uf/placement 26.11.38 → 26.11.39
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 +21 -0
- package/README.md +9 -3
- package/dist/{chunk-GWZ5BPIN.js → chunk-US2TGS3W.js} +77 -54
- package/dist/chunk-US2TGS3W.js.map +1 -0
- package/dist/{model-bUSbHw8v.d.ts → model-gUF8juqt.d.ts} +7 -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 +10 -3
- package/dist/scene.js +3 -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-gUF8juqt.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-gUF8juqt.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,13 @@ 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;
|
|
36
43
|
/**
|
|
37
44
|
* A left or right toolbar bar outside the inset (`isSideBar` with `outsideInset`). It lies outermost on its side,
|
|
38
45
|
* before the side's rail.
|
|
@@ -255,4 +262,4 @@ declare function refusalTargets(list: readonly SceneRefusal[]): SceneRefusalTarg
|
|
|
255
262
|
*/
|
|
256
263
|
declare function stops(scene: Scene, dragged: string, options?: SceneTargetOptions): SceneTarget[];
|
|
257
264
|
|
|
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 };
|
|
265
|
+
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, zoneIn, zoneTakes, zonesTaking };
|
package/dist/scene.js
CHANGED
|
@@ -45,9 +45,10 @@ import {
|
|
|
45
45
|
targets,
|
|
46
46
|
use,
|
|
47
47
|
virtualEdgeId,
|
|
48
|
+
zoneIn,
|
|
48
49
|
zoneTakes,
|
|
49
50
|
zonesTaking
|
|
50
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-US2TGS3W.js";
|
|
51
52
|
import {
|
|
52
53
|
fitFloat
|
|
53
54
|
} from "./chunk-AE3BWTAE.js";
|
|
@@ -100,6 +101,7 @@ export {
|
|
|
100
101
|
targets,
|
|
101
102
|
use,
|
|
102
103
|
virtualEdgeId,
|
|
104
|
+
zoneIn,
|
|
103
105
|
zoneTakes,
|
|
104
106
|
zonesTaking
|
|
105
107
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@n-uf/placement",
|
|
3
|
-
"version": "26.11.
|
|
3
|
+
"version": "26.11.39",
|
|
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.39"
|
|
88
88
|
},
|
|
89
89
|
"scripts": {
|
|
90
90
|
"build": "tsup && node ./scripts/check-dist.mjs",
|