@n-uf/placement 26.11.41 → 26.11.43

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/dist/scene.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { F as FloatAnchorAt, h as FloatAnchor, K as Kind, i as ZoneAccepts, Z as Zone, j as SceneItem, O as Orient, S as Scene, E as Edge, d as Side, R as RailMode, k as SolveOptions, b as SceneLayout, g as SceneRefusal, l as SceneTargetOptions, f as SceneTarget } from './model-C-Z5PDBp.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-C-Z5PDBp.js';
1
+ import { F as FloatAnchorAt, h as FloatAnchor, K as Kind, i as ZoneAccepts, Z as Zone, j as SceneItem, O as Orient, S as Scene, E as Edge, d as Side, R as RailMode, k as SolveOptions, b as SceneLayout, g as SceneRefusal, l as SceneTargetOptions, f as SceneTarget } from './model-CSO5fk_L.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 EDGE_ROOM_HOLD, s as FLOAT_ANCHORS, t as FloatAnchorOffset, u as FloatPlace, v as FloatResize, P as Place, w as RAIL_MODES, x as RAIL_STRIP_MIN, y as RAIL_VISIBILITIES, z as RailDropPolicy, A as RailPlace, B as RailSpec, G as RailVisibility, H as ResizeEdges, I as ResizeLimit, J as SIDES, L as SceneAfter, M as SceneChrome, N as SceneEdgeLayout, Q as SceneFloat, T as SceneItemLayout, U as SceneNote, e as SceneNoteCode, a as ScenePlace, V as SceneRailLayout, W as SceneRead, c as StoredScene, X as StoredSceneEdge, Y as StoredSceneFloat, _ as StoredSceneItem, $ as ZONES, a0 as canFold, a1 as close, a2 as dockHome, a3 as fitResize, a4 as floatAt, a5 as fold, a6 as homeFor, a7 as keep, a8 as lift, a9 as moveTo, aa as open, ab as orient, ac as raise, ad as readScene, ae as resize, af as setRailMode, ag as setSide, ah as storeScene, ai as use } from './model-CSO5fk_L.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
- import { T as Target } from './target-Db9z1bWt.js';
5
+ import { T as Target } from './target-BBOCeez2.js';
6
6
  import './model-X7eUaKlA.js';
7
7
 
8
8
  /**
@@ -235,7 +235,7 @@ declare function placeTargetId(place: PlaceLike, item: string): string | null;
235
235
  declare function targets(scene: Scene, dragged: string, options?: SceneTargetOptions): SceneTarget[];
236
236
  /**
237
237
  * `refusals(scene, dragged, options?)`: the places a drop of `dragged` is refused, so a host can say so at the pointer
238
- * (a tint and "No room here") instead of showing a slot elsewhere: each slot the filter removed, over its own tile,
238
+ * ("Can't go here"; the place itself is never drawn) instead of showing a slot elsewhere: each slot the filter removed, over its own tile,
239
239
  * `not-accepted` where the edge or zone doesn't take the kind, `no-room` where the drop wouldn't fit. An edge that takes
240
240
  * the kind in no zone is one refusal over its drawn rect (fixed items included) less what targets own; every refusal
241
241
  * lies in the stage, a zone's inside its edge's ends. A release over a refusal commits nothing: the item goes home.
package/dist/scene.js CHANGED
@@ -3,6 +3,7 @@ import {
3
3
  DEFAULT_HIT_BAND,
4
4
  DEFAULT_RAIL_MAGNET,
5
5
  DEFAULT_STRIP,
6
+ EDGE_ROOM_HOLD,
6
7
  FLOAT_ANCHORS,
7
8
  RAIL_MODES,
8
9
  RAIL_STRIP_MIN,
@@ -49,7 +50,7 @@ import {
49
50
  zoneIn,
50
51
  zoneTakes,
51
52
  zonesTaking
52
- } from "./chunk-NRARI4Q2.js";
53
+ } from "./chunk-PO3ILUMO.js";
53
54
  import {
54
55
  fitFloat
55
56
  } from "./chunk-AE3BWTAE.js";
@@ -59,6 +60,7 @@ export {
59
60
  DEFAULT_HIT_BAND,
60
61
  DEFAULT_RAIL_MAGNET,
61
62
  DEFAULT_STRIP,
63
+ EDGE_ROOM_HOLD,
62
64
  FLOAT_ANCHORS,
63
65
  RAIL_MODES,
64
66
  RAIL_STRIP_MIN,
package/dist/stack.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { d as StackInput, F as FitOptions, b as StackFit, e as StackItem } from './model-X7eUaKlA.js';
2
2
  export { C as CrossLimits, D as DEFAULT_MENU, f as DEFAULT_RAIL, G as GroupFormKind, M as MainSize, P as PanelFormKind, g as PlacedStackItem, h as StackAxis, a as StackForm, S as StackFormKind, i as StackMenu, c as StackNote, j as StackNoteCode, k as StackStep, W as WrapSpec, l as formCrossMin, m as formFitsCross, n as formMain, o as formSetsCross, w as withItem, p as wrapCross, q as wrapLines, r as wrapRows } from './model-X7eUaKlA.js';
3
3
  import { R as Rect, P as Point, S as Size } from './geometry-Bf37LbCT.js';
4
- import { T as Target } from './target-Db9z1bWt.js';
4
+ import { T as Target } from './target-BBOCeez2.js';
5
5
  import { F as FloatFit$1 } from './float-fit-DCYxRMru.js';
6
6
 
7
7
  /**
@@ -33,6 +33,25 @@ interface Target {
33
33
  * stage's edge (`x + width`, `y + height`): a host that clamps to `width - 0.5` still picks inside the window.
34
34
  */
35
35
  readonly bounds?: Rect;
36
+ /**
37
+ * Its room opens as it shows: the scene sets it on a target whose slot overlaps an item its drop moves (a rail pushing
38
+ * a column, a new-column line, a bar's strip over the columns), and on a rail drop strip's targets, whose room opens
39
+ * once armed. The drag intent then shows it and makes its room in one frame. Until it shows, a release still lands on
40
+ * it.
41
+ */
42
+ readonly opensRoom?: true;
43
+ /**
44
+ * With `opensRoom`, how long it holds before it shows with its room, ms, in place of the drag intent's `roomAfter`. The
45
+ * scene sets it to `EDGE_ROOM_HOLD` on a rail target or a new-column line against the window's left or right edge.
46
+ */
47
+ readonly roomHold?: number;
48
+ /**
49
+ * With `opensRoom`, the zone it holds once its room is open: while the target shows with its room open, a drag intent
50
+ * holds it wherever the pointer is in this rect. The scene sets it to the smallest rect holding `hit` and the slot (the
51
+ * landing rect) on every target whose drop changes an edge's thickness (a side's width or a bar's height): strips,
52
+ * new-column lines, rails and gaps. A rail drop strip (`armedHit`) doesn't carry it.
53
+ */
54
+ readonly roomHit?: Rect;
36
55
  }
37
56
  /**
38
57
  * Where a refusal ranks in the pick (the drag intent's `REFUSAL_RANK`, the same value): an ordering rank, not a
@@ -1,5 +1,5 @@
1
1
  import { S as Size, R as Rect, P as Point } from './geometry-Bf37LbCT.js';
2
- import { T as Target } from './target-Db9z1bWt.js';
2
+ import { T as Target } from './target-BBOCeez2.js';
3
3
 
4
4
  /**
5
5
  * The panels model: plain data and the pure changes on it.
package/dist/targets.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { T as Target } from './target-Db9z1bWt.js';
1
+ import { T as Target } from './target-BBOCeez2.js';
2
2
  import { R as Rect, P as Point, S as Size } from './geometry-Bf37LbCT.js';
3
3
  import { D as DeskState, g as Layout, a as Construction, O as Options } from './constructions-Cbz7uEAZ.js';
4
4
  import { Place, Arrangement, HostId, HostSpec, GroupSize } from './toolbar.js';
5
- import { d as PanelTarget, s as PanelStopsOptions, r as PanelStop } from './targets-CYs16P4K.js';
5
+ import { d as PanelTarget, s as PanelStopsOptions, r as PanelStop } from './targets-C9ZVhmCl.js';
6
6
  import { P as PaneSide, a as PaneCenter, b as PaneRegion } from './regions-Db_RyT4P.js';
7
7
 
8
8
  /**
package/dist/tiling.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { R as Rect, S as Size } from './geometry-Bf37LbCT.js';
2
2
  import { b as PaneRegion, P as PaneSide } from './regions-Db_RyT4P.js';
3
3
  export { c as PANE_REGION_DEFAULTS, d as PANE_SIDES, a as PaneCenter, e as PaneRegionOptions, p as paneCenter, f as paneRegion } from './regions-Db_RyT4P.js';
4
- import { T as Target } from './target-Db9z1bWt.js';
4
+ import { T as Target } from './target-BBOCeez2.js';
5
5
 
6
6
  /**
7
7
  * The order layouts: panes in order and an area in, a rect per pane out. Pure rect functions; a drop on one reorders
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@n-uf/placement",
3
- "version": "26.11.41",
3
+ "version": "26.11.43",
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.41"
87
+ "@n-uf/motion": "26.11.43"
88
88
  },
89
89
  "scripts": {
90
90
  "build": "tsup && node ./scripts/check-dist.mjs",