@n-uf/placement 26.11.43 → 26.11.44
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 +16 -0
- package/README.md +11 -0
- package/dist/{chunk-PO3ILUMO.js → chunk-32BGJAJA.js} +10 -4
- package/dist/chunk-32BGJAJA.js.map +1 -0
- package/dist/{model-CSO5fk_L.d.ts → model-BONZVBjm.d.ts} +15 -0
- package/dist/scene-cases.d.ts +1 -1
- package/dist/scene-cases.js +1 -1
- package/dist/scene.d.ts +2 -2
- package/dist/scene.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-PO3ILUMO.js.map +0 -1
|
@@ -386,10 +386,23 @@ interface Scene {
|
|
|
386
386
|
* The least the content may be. While the content is narrower than `width`, dynamic columns shrink toward their
|
|
387
387
|
* minimum, then fold whole into their side's rail: unkept before kept, the one whose newest use is oldest first, the
|
|
388
388
|
* outer first, the left first. Under `height`, a `content-short` note.
|
|
389
|
+
*
|
|
390
|
+
* `chromeWidth` (optional, px, at most `width`): a lower floor for chrome. The side edges that hold toolbars, not
|
|
391
|
+
* panels (compact rails and side toolbar bars, `isSideBar`), may take the content down to it while the columns keep
|
|
392
|
+
* their width. A compact rail or side toolbar bar counts only where its side has a column template or a declared rail
|
|
393
|
+
* to tell it from a panel column (`isSideBar`): on a side with neither it is not chrome and gets no floor benefit.
|
|
394
|
+
* A floor of 0 or less lets chrome take all the content. The columns only move aside: a toolbar rail added at an edge
|
|
395
|
+
* narrows the content, not the column. Below the floor a
|
|
396
|
+
* column shrinks, then folds, as without it. The columns alone still leave `width`. Chrome within that allowance is
|
|
397
|
+
* quiet: a content it narrows between the two floors carries no `content-narrow`, and `columnRoom` stays true, so a
|
|
398
|
+
* toolbar rail never flips a host to its narrow layout. `content-narrow` fires when the columns' own need takes the
|
|
399
|
+
* content under `width` (its `min`: `width` less what chrome takes within the allowance), or once it is under the
|
|
400
|
+
* floor. Width only: bars give way by `height` as before.
|
|
389
401
|
*/
|
|
390
402
|
readonly contentMin?: {
|
|
391
403
|
readonly width: number;
|
|
392
404
|
readonly height: number;
|
|
405
|
+
readonly chromeWidth?: number;
|
|
393
406
|
};
|
|
394
407
|
/**
|
|
395
408
|
* How a column folded by hand shows (default `"bar"`): `"bar"` sends it to its side's rail; `"ride"` draws each of its
|
|
@@ -529,6 +542,8 @@ interface SceneRailLayout {
|
|
|
529
542
|
* - `bar-shrunk`, `bar-folded`: give-way by `contentMin.height`, in give-way order: a top or bottom bar with `giveWay`
|
|
530
543
|
* shrank across (`from`, `to`), or its items stepped to the next form that fits (a panel's title bar);
|
|
531
544
|
* - `content-narrow`, `content-short`: the content is still under `contentMin` (overlay bars count against the height).
|
|
545
|
+
* With `contentMin.chromeWidth`, `content-narrow`'s `min` is `contentMin.width` less what chrome takes within its
|
|
546
|
+
* allowance; a host that says "needs at least …" reads `contentMin.width`, not the note's `min`.
|
|
532
547
|
* - `no-column-room`: not even one column at its minimum fits beside `contentMin.width` (`layout.columnRoom` false):
|
|
533
548
|
* `width` is the room the stage leaves, `need` the content's minimum plus that column and its gutter.
|
|
534
549
|
* - `content-changed`: under `previous`, `content` is not the rect `previous.content` was (`from`, `to`). A host refits
|
package/dist/scene-cases.d.ts
CHANGED
|
@@ -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-
|
|
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-BONZVBjm.js';
|
|
4
4
|
import './target-BBOCeez2.js';
|
|
5
5
|
|
|
6
6
|
/**
|
package/dist/scene-cases.js
CHANGED
package/dist/scene.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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-BONZVBjm.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-BONZVBjm.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-BBOCeez2.js';
|
package/dist/scene.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@n-uf/placement",
|
|
3
|
-
"version": "26.11.
|
|
3
|
+
"version": "26.11.44",
|
|
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.44"
|
|
88
88
|
},
|
|
89
89
|
"scripts": {
|
|
90
90
|
"build": "tsup && node ./scripts/check-dist.mjs",
|