@n-uf/placement 26.11.42 → 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/CHANGELOG.md +20 -0
- package/README.md +12 -4
- package/dist/{chunk-IRPPHM2J.js → chunk-2GGJ4GVR.js} +1 -1
- package/dist/{chunk-IRPPHM2J.js.map → chunk-2GGJ4GVR.js.map} +1 -1
- package/dist/{chunk-QL2IRBIH.js → chunk-PO3ILUMO.js} +39 -12
- package/dist/chunk-PO3ILUMO.js.map +1 -0
- package/dist/desk.d.ts +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{model-BrvKHo50.d.ts → model-CSO5fk_L.d.ts} +5 -4
- package/dist/panels.d.ts +3 -3
- package/dist/scene-cases.d.ts +2 -2
- package/dist/scene-cases.js +2 -2
- package/dist/scene.d.ts +3 -3
- package/dist/scene.js +1 -1
- package/dist/stack.d.ts +1 -1
- package/dist/{target-BLAoaUI7.d.ts → target-BBOCeez2.d.ts} +7 -0
- package/dist/{targets-ClWwCzUo.d.ts → targets-C9ZVhmCl.d.ts} +1 -1
- package/dist/targets.d.ts +2 -2
- package/dist/tiling.d.ts +1 -1
- package/package.json +2 -2
- package/dist/chunk-QL2IRBIH.js.map +0 -1
package/dist/desk.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as PanelsOptions, a as PanelDef, b as PanelsState, c as PanelTargetInput, d as PanelTarget, p as panelDrop, e as PanelDrop, l as layoutPanels, f as PanelsLayout } from './targets-
|
|
1
|
+
import { P as PanelsOptions, a as PanelDef, b as PanelsState, c as PanelTargetInput, d as PanelTarget, p as panelDrop, e as PanelDrop, l as layoutPanels, f as PanelsLayout } from './targets-C9ZVhmCl.js';
|
|
2
2
|
import './geometry-Bf37LbCT.js';
|
|
3
|
-
import './target-
|
|
3
|
+
import './target-BBOCeez2.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @n-uf/placement/desk: desk presets as data on `@n-uf/placement/panels`. A preset is options for the panels engine
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { P as Point, R as Rect, S as Size } from './geometry-Bf37LbCT.js';
|
|
2
2
|
export { C as COLUMN_REACH, E as EPS, a as PLANE, b as RAIL_EDGE, c as area, d as centre, e as clamp, f as clampInto, g as contains, o as overlap, h as overlaps, r as rect, s as subtract } from './geometry-Bf37LbCT.js';
|
|
3
|
-
export { R as REFUSAL_RANK, T as Target, p as pickRank } from './target-
|
|
3
|
+
export { R as REFUSAL_RANK, T as Target, p as pickRank } from './target-BBOCeez2.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Placing a popup (a drop label, a menu, a tooltip) the way Wayland's xdg-positioner does: an anchor point on the
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { R as Rect, S as Size, P as Point } from './geometry-Bf37LbCT.js';
|
|
2
|
-
import { T as Target } from './target-
|
|
2
|
+
import { T as Target } from './target-BBOCeez2.js';
|
|
3
3
|
import { C as CrossLimits, a as StackForm, S as StackFormKind, b as StackFit, c as StackNote } from './model-X7eUaKlA.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -290,10 +290,11 @@ declare const RAIL_STRIP_MIN = 24;
|
|
|
290
290
|
declare const DEFAULT_RAIL_MAGNET = 6;
|
|
291
291
|
/**
|
|
292
292
|
* How long a rail target or a new-column line against the window's left or right edge holds before it shows with its
|
|
293
|
-
* room, ms (`Target.roomHold`):
|
|
294
|
-
*
|
|
293
|
+
* room, ms (`Target.roomHold`): none. It shows, with its room, on the frame the pointer enters it (an aiming pointer),
|
|
294
|
+
* so a toolbar held at the window's edge never jumps away across the column and back. The cost: grazing the window's
|
|
295
|
+
* edge with a held item opens its rail.
|
|
295
296
|
*/
|
|
296
|
-
declare const EDGE_ROOM_HOLD =
|
|
297
|
+
declare const EDGE_ROOM_HOLD = 0;
|
|
297
298
|
/**
|
|
298
299
|
* How an item of one kind drops into a side's rail (`Scene.railDrop[kind]`): the geometry of its drop strip. Each kind
|
|
299
300
|
* has its own; a kind with none keeps the rail targets as they were (immediate, no strip).
|
package/dist/panels.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b as PanelsState, S as Side, E as Edge, C as Clock, a as PanelDef } from './targets-
|
|
2
|
-
export { B as BAND_SIZE, g as Band, h as BandOption, i as Column, D as DEFAULT_PANELS_OPTIONS, j as DockOptions, k as EDGES, F as FLOAT_HEIGHT, m as FLOAT_MIN, n as FloatAt, G as GiveWay, I as IDENTITY_VIEW, e as PanelDrop, o as PanelKind, q as PanelPlace, r as PanelStop, s as PanelStopsOptions, d as PanelTarget, c as PanelTargetInput, f as PanelsLayout, t as PanelsNote, u as PanelsNoteCode, P as PanelsOptions, v as PanelsStart, w as Place, x as PlacedBand, y as PlacedColumn, z as PlacedPanel, A as PlacedRail, R as Reserve, H as ReserveEdge, J as SIDES, V as View, W as Where, K as activate, L as bandHeight, M as bandSize, N as close, O as columnWidth, Q as createPanels, T as defOf, U as dock, X as dockBand, Y as float, Z as floatSize, _ as focus, $ as giveWayOrder, a0 as homePlace, a1 as keep, l as layoutPanels, a2 as liftPanel, a3 as open, a4 as ownWidth, p as panelDrop, a5 as panelStops, a6 as panelTargets, a7 as pin, a8 as placeRank, a9 as resizeBand, aa as resizeColumn, ab as resizeFloat, ac as samePlaces, ad as showTabs, ae as tick, af as toPage, ag as toView, ah as toggleFold, ai as whereIs } from './targets-
|
|
1
|
+
import { b as PanelsState, S as Side, E as Edge, C as Clock, a as PanelDef } from './targets-C9ZVhmCl.js';
|
|
2
|
+
export { B as BAND_SIZE, g as Band, h as BandOption, i as Column, D as DEFAULT_PANELS_OPTIONS, j as DockOptions, k as EDGES, F as FLOAT_HEIGHT, m as FLOAT_MIN, n as FloatAt, G as GiveWay, I as IDENTITY_VIEW, e as PanelDrop, o as PanelKind, q as PanelPlace, r as PanelStop, s as PanelStopsOptions, d as PanelTarget, c as PanelTargetInput, f as PanelsLayout, t as PanelsNote, u as PanelsNoteCode, P as PanelsOptions, v as PanelsStart, w as Place, x as PlacedBand, y as PlacedColumn, z as PlacedPanel, A as PlacedRail, R as Reserve, H as ReserveEdge, J as SIDES, V as View, W as Where, K as activate, L as bandHeight, M as bandSize, N as close, O as columnWidth, Q as createPanels, T as defOf, U as dock, X as dockBand, Y as float, Z as floatSize, _ as focus, $ as giveWayOrder, a0 as homePlace, a1 as keep, l as layoutPanels, a2 as liftPanel, a3 as open, a4 as ownWidth, p as panelDrop, a5 as panelStops, a6 as panelTargets, a7 as pin, a8 as placeRank, a9 as resizeBand, aa as resizeColumn, ab as resizeFloat, ac as samePlaces, ad as showTabs, ae as tick, af as toPage, ag as toView, ah as toggleFold, ai as whereIs } from './targets-C9ZVhmCl.js';
|
|
3
3
|
import { R as Rect } from './geometry-Bf37LbCT.js';
|
|
4
4
|
export { C as COLUMN_REACH, b as RAIL_EDGE } from './geometry-Bf37LbCT.js';
|
|
5
|
-
import './target-
|
|
5
|
+
import './target-BBOCeez2.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* The panels' stored form: `storePanels(state)` gives plain JSON-safe data (`{ v: 1, … }`); `readPanels(data, defs?)`
|
package/dist/scene-cases.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
4
|
-
import './target-
|
|
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-CSO5fk_L.js';
|
|
4
|
+
import './target-BBOCeez2.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* The conformance rows' shapes. A row is plain data: a scene, the settings it runs at, the gestures a user makes, and
|
package/dist/scene-cases.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pickRank
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2GGJ4GVR.js";
|
|
4
4
|
import {
|
|
5
5
|
close,
|
|
6
6
|
dockHome,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
storeScene,
|
|
20
20
|
targets,
|
|
21
21
|
use
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-PO3ILUMO.js";
|
|
23
23
|
import "./chunk-AE3BWTAE.js";
|
|
24
24
|
import {
|
|
25
25
|
centre,
|
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-
|
|
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-
|
|
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-
|
|
5
|
+
import { T as Target } from './target-BBOCeez2.js';
|
|
6
6
|
import './model-X7eUaKlA.js';
|
|
7
7
|
|
|
8
8
|
/**
|
package/dist/scene.js
CHANGED
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-
|
|
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
|
/**
|
|
@@ -45,6 +45,13 @@ interface Target {
|
|
|
45
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
46
|
*/
|
|
47
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;
|
|
48
55
|
}
|
|
49
56
|
/**
|
|
50
57
|
* Where a refusal ranks in the pick (the drag intent's `REFUSAL_RANK`, the same value): an ordering rank, not a
|
package/dist/targets.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { T as Target } from './target-
|
|
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-
|
|
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-
|
|
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.
|
|
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.
|
|
87
|
+
"@n-uf/motion": "26.11.43"
|
|
88
88
|
},
|
|
89
89
|
"scripts": {
|
|
90
90
|
"build": "tsup && node ./scripts/check-dist.mjs",
|