@n-uf/placement 26.11.56 → 26.11.58
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 +23 -0
- package/dist/index.d.ts +1 -0
- package/dist/side-zvoEwBLn.d.ts +10 -0
- package/dist/stack.d.ts +3 -4
- package/dist/stack.js.map +1 -1
- package/dist/tiling.d.ts +277 -57
- package/dist/tiling.js +367 -4
- package/dist/tiling.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,29 @@ Versions are calendar versions, `YY.M.R` (year, month of the release, counter wi
|
|
|
5
5
|
|
|
6
6
|
Unreleased entries live in `changes/` until a release joins them.
|
|
7
7
|
|
|
8
|
+
## 26.11.58
|
|
9
|
+
|
|
10
|
+
- **Added: `tilingDrag` in `./tiling`, the layout half of a tiling drag.** `tilingDrag(tree, subject, { ops, area, min, ...splitOptions, still? })`
|
|
11
|
+
works over a `TilingTree` adapter (the host's own tree and changes; geometry from its `split(tree)`, laid out with
|
|
12
|
+
`layoutSplitTree`) and gives the lift and base layouts (the base is the tree with the subject released), `home` (the
|
|
13
|
+
gap the release leaves: the subject's lift rect, or null for a member torn out of a stack that stays drawn), and
|
|
14
|
+
`after(held)` for home, a swap, a side or a join: the tree a release commits, its layout, the landing, the panes it
|
|
15
|
+
moves, or a refusal code (`self`, `still`, `missing`, `join`, `room-along`, `room-across`, `fit`). What a frame holding
|
|
16
|
+
a place draws is what its release commits. `beside` and `join` act on the released tree, `swap` on the tree with the
|
|
17
|
+
subject still in it, so a swap's partner lands in the subject's old place; home commits the lift tree itself, never
|
|
18
|
+
normalized. `splitTreeOps` is the reference adapter over `StackedSplit` (a `Split` with stacks), and
|
|
19
|
+
`tilingConformance` runs the drag's properties on any adapter. New API only: no existing output changes.
|
|
20
|
+
|
|
21
|
+
## 26.11.57
|
|
22
|
+
|
|
23
|
+
- **Added: `Side` and `Axis` in the root.** `Side` is `"top" | "right" | "bottom" | "left"` and `Axis` is `"x" | "y"`, the
|
|
24
|
+
two words every entry and `@n-uf/docking` share. `EdgeBand.side`, `MasterOptions.side`, `PaneRegion`, `PANE_SIDES`,
|
|
25
|
+
`canSplitPane`, `DropFitsOptions.side` and `splitPane` take `Side`; a split's `axis` and the `axis` argument of
|
|
26
|
+
`SplitOptions`' `fixed`, `fixedAcross` and `floor` are `Axis`. The values are the same strings as before: no layout,
|
|
27
|
+
place or id changes.
|
|
28
|
+
- **Removed (breaking): `BandSide` (`./stack`) and `PaneSide` (`./tiling`).** Both were `Side` under another name. A host
|
|
29
|
+
that imported either imports `Side` from `@n-uf/placement` instead (one-line rename; the type is the same set).
|
|
30
|
+
|
|
8
31
|
## 26.11.56
|
|
9
32
|
|
|
10
33
|
- `./stack`, **added: `fitFloat(want, stage, avoid, { stay: true })`** (`FloatFitOptions`): the float is only moved
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { R as Rect } from './geometry-L5gCoiZV.js';
|
|
2
2
|
export { E as EPS, a as PLANE, P as Point, S as Size, b as area, c as center, d as clamp, e as clampInto, f as contains, o as overlap, g as overlaps, r as rect, s as subtract } from './geometry-L5gCoiZV.js';
|
|
3
|
+
export { A as Axis, S as Side } from './side-zvoEwBLn.js';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* A drop target in the shape @n-uf/motion/drag takes: an id, a priority (1 most precise: a rail or a tab strip;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The two words every entry (and `@n-uf/docking`) shares for direction: a side of a stage or a pane, and an axis of a
|
|
3
|
+
* split or a lane. Plain string unions; the values are what hosts already write.
|
|
4
|
+
*/
|
|
5
|
+
/** A side of a stage or a pane. */
|
|
6
|
+
type Side = "top" | "right" | "bottom" | "left";
|
|
7
|
+
/** An axis: `"x"` runs left to right, `"y"` top to bottom. */
|
|
8
|
+
type Axis = "x" | "y";
|
|
9
|
+
|
|
10
|
+
export type { Axis as A, Side as S };
|
package/dist/stack.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { R as Rect } from './geometry-L5gCoiZV.js';
|
|
2
|
+
import { S as Side } from './side-zvoEwBLn.js';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* `cutEdges(stage, bands)`: the stage cut into bands along its sides, in list order. Each band takes its `size` across
|
|
@@ -19,12 +20,10 @@ import { R as Rect } from './geometry-L5gCoiZV.js';
|
|
|
19
20
|
* See docs/placement.md, Entry: stack.
|
|
20
21
|
*/
|
|
21
22
|
|
|
22
|
-
/** A side of the stage. */
|
|
23
|
-
type BandSide = "top" | "right" | "bottom" | "left";
|
|
24
23
|
/** One band of the cut. */
|
|
25
24
|
interface EdgeBand {
|
|
26
25
|
readonly id: string;
|
|
27
|
-
readonly side:
|
|
26
|
+
readonly side: Side;
|
|
28
27
|
/** Its size across (a top band's height, a left band's width), px. */
|
|
29
28
|
readonly size: number;
|
|
30
29
|
/** Space after it before the next band on that side, px (default 0); taken only when the band takes some room. */
|
|
@@ -715,4 +714,4 @@ interface FloatFitOptions {
|
|
|
715
714
|
}
|
|
716
715
|
declare function fitFloat(want: Rect, stage: Rect, avoid?: readonly Rect[], options?: FloatFitOptions): FloatFit;
|
|
717
716
|
|
|
718
|
-
export { type
|
|
717
|
+
export { type ControlLadder, type ControlLadderSpec, type CrossLimits, DEFAULT_MENU, DEFAULT_RAIL, type EdgeBand, type EdgeCut, type FitOptions, type FloatFit, type FloatFitOptions, type GroupFormKind, type LadderControl, type MainSize, type PanelFormKind, type PlacedStackItem, type StackAxis, type StackDivider, type StackFit, type StackForm, type StackFormKind, type StackGap, type StackGapOptions, type StackGapRefusal, type StackInput, type StackItem, type StackLengths, type StackMenu, type StackNote, type StackNoteCode, type StackStep, type WrapSpec, controlLadder, cutEdges, dividers, fitFloat, fitStack, formBody, formCompact, formCrossMin, formFitsCross, formFolded, formMain, formMenu, formOwnCross, formSetsCross, formStepGroup, itemSteps, resetBetween, resetLengths, resizeBetween, stackGaps, withItem, wrapCross, wrapLines, wrapRows };
|