@n-uf/placement 26.11.36 → 26.11.37

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.
@@ -205,6 +205,18 @@ interface Edge {
205
205
  * its toolbars step down before an item moved in from another bar would.
206
206
  */
207
207
  readonly priority?: number;
208
+ /**
209
+ * Hidden: kept in the scene with its items, but not in the window (a bar a host doesn't draw, a rail it has turned
210
+ * off). View state: the host decides it each time it builds the scene, and the store never writes it. A hidden edge
211
+ * takes no room, and everything else lays out exactly as if it weren't in the scene; `solve` leaves it and its items
212
+ * out of the layout (no `edges[id]`, no `items[id]`, as for an item placed nowhere), so nothing reads a rect of it.
213
+ * Its items take no part in give-way or folds. It has no targets and no refusals for any kind, no keyboard stops, and
214
+ * its items have none either (dragging one gives nothing); `moveTo` into it is refused as into an edge that doesn't
215
+ * take the kind. Its items stay in it, and `storeScene` / `readScene` keep them. A column a drop makes never takes a
216
+ * hidden edge's id; where a drop makes or removes a column on its side, the side is numbered again with the hidden
217
+ * edge back at its own place. Side columns, rails and bars alike.
218
+ */
219
+ readonly hidden?: boolean;
208
220
  }
209
221
  /** What a side's new columns are made from. */
210
222
  interface ColumnTemplate {
@@ -755,8 +767,10 @@ declare function dockHome(scene: Scene, id: string, start: Scene): Scene;
755
767
  * side, ring and limits come from `base`, its order of items and its `size` from the store; a static edge stored on
756
768
  * the other side of its axis is moved there (`setSide`, as its side's outermost edge). Dynamic columns
757
769
  * (`column: true`) are the store's: one `base` lacks is made from `base.columns[side]`, its ring is the stored one, and
758
- * columns left empty are deleted, the rings closed up. No float has a pinned field: one an old store has is listed and
759
- * ignored.
770
+ * columns left empty are deleted, the rings closed up. `Edge.hidden` is view state, not stored: the host decides it
771
+ * each time it builds the scene (from the window's width, say). A hidden edge's items are stored like any edge's;
772
+ * `hidden` itself is not written, and read back it comes from `base` only (a stored `hidden` is ignored and listed as
773
+ * `edge:<id>:hidden`). No float has a pinned field: one an old store has is listed and ignored.
760
774
  *
761
775
  * Reading is lenient: anything but an object of version 1 gives `base` back with the reason in `error`. Inside one,
762
776
  * whatever can't be used is dropped and listed in `dropped` (an unknown edge `edge:<id>`, an unknown or repeated item,
@@ -1,6 +1,6 @@
1
1
  import { P as Point, R as Rect } from './geometry-Bf37LbCT.js';
2
2
  import { S as StackFormKind } from './model-X7eUaKlA.js';
3
- import { S as Scene, a as ScenePlace, b as SceneLayout, c as StoredScene, Z as Zone, d as Side, e as SceneNoteCode, f as SceneTarget, g as SceneRefusal } from './model-fnbEHD6c.js';
3
+ import { S as Scene, a as ScenePlace, b as SceneLayout, c as StoredScene, Z as Zone, d as Side, e as SceneNoteCode, f as SceneTarget, g as SceneRefusal } from './model-CuE-ML-f.js';
4
4
  import './target-fhD5UVlt.js';
5
5
 
6
6
  /**
@@ -16,7 +16,7 @@ import {
16
16
  storeScene,
17
17
  targets,
18
18
  use
19
- } from "./chunk-SW3PZACP.js";
19
+ } from "./chunk-2PWDUBPG.js";
20
20
  import "./chunk-AE3BWTAE.js";
21
21
  import {
22
22
  centre,
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-fnbEHD6c.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-fnbEHD6c.js';
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-CuE-ML-f.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-CuE-ML-f.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-fhD5UVlt.js';
package/dist/scene.js CHANGED
@@ -47,7 +47,7 @@ import {
47
47
  virtualEdgeId,
48
48
  zoneTakes,
49
49
  zonesTaking
50
- } from "./chunk-SW3PZACP.js";
50
+ } from "./chunk-2PWDUBPG.js";
51
51
  import {
52
52
  fitFloat
53
53
  } from "./chunk-AE3BWTAE.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@n-uf/placement",
3
- "version": "26.11.36",
3
+ "version": "26.11.37",
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.36"
87
+ "@n-uf/motion": "26.11.37"
88
88
  },
89
89
  "scripts": {
90
90
  "build": "tsup && node ./scripts/check-dist.mjs",