@n-uf/placement 26.11.19 → 26.11.20
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 +18 -0
- package/README.md +27 -6
- package/dist/{chunk-NCHRKLT3.js → chunk-GCSVZGVX.js} +14 -14
- package/dist/chunk-GCSVZGVX.js.map +1 -0
- package/dist/{model-irGEua8T.d.ts → model-DU7MovDa.d.ts} +1 -1
- package/dist/scene-cases.d.ts +35 -3
- package/dist/scene-cases.js +74 -35
- package/dist/scene-cases.js.map +1 -1
- package/dist/scene.d.ts +3 -3
- package/dist/scene.js +1 -1
- package/dist/stack.d.ts +2 -2
- package/dist/{targets-50bCVu3K.d.ts → targets-CYJN0Hba.d.ts} +7 -5
- package/package.json +1 -1
- package/dist/chunk-NCHRKLT3.js.map +0 -1
package/dist/scene.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { S as Scene, g as SolveOptions,
|
|
2
|
-
export { C as ColumnPlace, h as ColumnTemplate, D as DEFAULT_FLOAT_SIZE, i as DEFAULT_HIT_BAND, j as DEFAULT_STRIP, k as DockPlace, E as Edge, F as FloatAnchor, l as FloatPlace, K as Kind, O as Orient, P as Place, R as RailPlace, m as RailSpec, n as SIDES, o as SceneAfter, p as SceneEdgeLayout, q as SceneFloat, r as SceneItem, s as SceneItemLayout, t as SceneNote,
|
|
1
|
+
import { S as Scene, g as SolveOptions, b as SceneLayout } from './targets-CYJN0Hba.js';
|
|
2
|
+
export { C as ColumnPlace, h as ColumnTemplate, D as DEFAULT_FLOAT_SIZE, i as DEFAULT_HIT_BAND, j as DEFAULT_STRIP, k as DockPlace, E as Edge, F as FloatAnchor, l as FloatPlace, K as Kind, O as Orient, P as Place, R as RailPlace, m as RailSpec, n as SIDES, o as SceneAfter, p as SceneEdgeLayout, q as SceneFloat, r as SceneItem, s as SceneItemLayout, t as SceneNote, e as SceneNoteCode, a as ScenePlace, u as SceneRailLayout, v as SceneRead, f as SceneTarget, w as SceneTargetOptions, d as Side, c as StoredScene, x as StoredSceneEdge, y as StoredSceneFloat, z as StoredSceneItem, A as ZONES, Z as Zone, B as ZoneAccepts, G as close, H as dockHome, I as floatAt, J as fold, L as homeFor, M as keep, N as lift, Q as moveTo, T as open, U as orient, V as raise, W as readScene, X as reservedRect, Y as resize, _ as setSide, $ as stops, a0 as storeScene, a1 as targets, a2 as use, a3 as zoneTakes, a4 as zonesTaking } from './targets-CYJN0Hba.js';
|
|
3
3
|
import './geometry-mL-GTRti.js';
|
|
4
4
|
import './target-D3PiLg44.js';
|
|
5
|
-
import './model-
|
|
5
|
+
import './model-DU7MovDa.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* `solve(scene, { previous })`: the whole window's layout from one scene.
|
package/dist/scene.js
CHANGED
package/dist/stack.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as StackInput, F as FitOptions,
|
|
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,
|
|
1
|
+
import { d as StackInput, F as FitOptions, b as StackFit, e as StackItem } from './model-DU7MovDa.js';
|
|
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, W as WrapSpec, k as formCrossMin, l as formFitsCross, m as formMain, n as formSetsCross, w as withItem, o as wrapCross, p as wrapLines, q as wrapRows } from './model-DU7MovDa.js';
|
|
3
3
|
import { R as Rect, P as Point, S as Size } from './geometry-mL-GTRti.js';
|
|
4
4
|
import { T as Target } from './target-D3PiLg44.js';
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { R as Rect, S as Size, P as Point } from './geometry-mL-GTRti.js';
|
|
2
2
|
import { T as Target } from './target-D3PiLg44.js';
|
|
3
|
-
import { C as CrossLimits, a as StackForm,
|
|
3
|
+
import { C as CrossLimits, a as StackForm, S as StackFormKind, b as StackFit, c as StackNote } from './model-DU7MovDa.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* The scene's shapes: one model of a whole window. A scene is a stage (the window's inner rect), the edges along its
|
|
@@ -370,8 +370,9 @@ interface SceneLayout {
|
|
|
370
370
|
/** The rails shown (a side with a folded column). */
|
|
371
371
|
readonly rails: Readonly<Partial<Record<"left" | "right", SceneRailLayout>>>;
|
|
372
372
|
/**
|
|
373
|
-
* With `contentMin` and dynamic columns: whether one column at its
|
|
374
|
-
* with a `no-column-room` note).
|
|
373
|
+
* With `contentMin` and a dynamic column (or, before any exists, a `columns` template): whether one column at its
|
|
374
|
+
* minimum fits beside the content's minimum (`false` with a `no-column-room` note). Anchors and rails don't count:
|
|
375
|
+
* every column can fold into its rail. A host shows its narrow fallback (one panel over the content) while it is `false`.
|
|
375
376
|
*/
|
|
376
377
|
readonly columnRoom?: boolean;
|
|
377
378
|
readonly notes: readonly SceneNote[];
|
|
@@ -457,7 +458,8 @@ declare function resize(scene: Scene, edgeId: string, size: number): Scene;
|
|
|
457
458
|
/**
|
|
458
459
|
* The edge moved to the other side of its axis (left ⇄ right, top ⇄ bottom), as its side's outermost edge: ring 0, before
|
|
459
460
|
* that side's other edges (whose rings close up behind it; the side it left closes up too). Its items, size and options
|
|
460
|
-
* go with it. Unchanged for an unknown edge, the side it is on, or a side across its axis.
|
|
461
|
+
* go with it. Unchanged for an unknown edge, the side it is on, or a side across its axis. Like every change it does not
|
|
462
|
+
* tick the use clock: a host that moves an edge by hand calls `use()` on its items afterwards, as a drop does.
|
|
461
463
|
*/
|
|
462
464
|
declare function setSide(scene: Scene, edgeId: string, side: Side): Scene;
|
|
463
465
|
/**
|
|
@@ -645,4 +647,4 @@ declare function reservedRect(scene: Scene, l: SceneLayout, id: string): Rect;
|
|
|
645
647
|
*/
|
|
646
648
|
declare function stops(scene: Scene, dragged: string, options?: SceneTargetOptions): SceneTarget[];
|
|
647
649
|
|
|
648
|
-
export { stops as $, ZONES as A, type ZoneAccepts as B, type ColumnPlace as C, DEFAULT_FLOAT_SIZE as D, type Edge as E, type FloatAnchor as F, close as G, dockHome as H, floatAt as I, fold as J, type Kind as K, homeFor as L, keep as M, lift as N, type Orient as O, type Place as P, moveTo as Q, type RailPlace as R, type Scene as S, open as T, orient as U, raise as V, readScene as W, reservedRect as X, resize as Y, type Zone as Z, setSide as _, type ScenePlace as a, storeScene as a0, targets as a1, use as a2, zoneTakes as a3, zonesTaking as a4, type
|
|
650
|
+
export { stops as $, ZONES as A, type ZoneAccepts as B, type ColumnPlace as C, DEFAULT_FLOAT_SIZE as D, type Edge as E, type FloatAnchor as F, close as G, dockHome as H, floatAt as I, fold as J, type Kind as K, homeFor as L, keep as M, lift as N, type Orient as O, type Place as P, moveTo as Q, type RailPlace as R, type Scene as S, open as T, orient as U, raise as V, readScene as W, reservedRect as X, resize as Y, type Zone as Z, setSide as _, type ScenePlace as a, storeScene as a0, targets as a1, use as a2, zoneTakes as a3, zonesTaking as a4, type SceneLayout as b, type StoredScene as c, type Side as d, type SceneNoteCode as e, type SceneTarget as f, type SolveOptions as g, type ColumnTemplate as h, DEFAULT_HIT_BAND as i, DEFAULT_STRIP as j, type DockPlace as k, type FloatPlace as l, type RailSpec as m, SIDES as n, type SceneAfter as o, type SceneEdgeLayout as p, type SceneFloat as q, type SceneItem as r, type SceneItemLayout as s, type SceneNote as t, type SceneRailLayout as u, type SceneRead as v, type SceneTargetOptions as w, type StoredSceneEdge as x, type StoredSceneFloat as y, type StoredSceneItem as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@n-uf/placement",
|
|
3
|
-
"version": "26.11.
|
|
3
|
+
"version": "26.11.20",
|
|
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",
|