@n-uf/docking 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.
@@ -1,4 +1,4 @@
1
- import { Size, Rect, Target, Point } from '@n-uf/placement';
1
+ import { Side, Size, Rect, Target, Point, Axis } from '@n-uf/placement';
2
2
  import { CrossLimits, StackForm, StackFormKind, StackFit, StackNote } from '@n-uf/placement/stack';
3
3
 
4
4
  /**
@@ -12,8 +12,7 @@ import { CrossLimits, StackForm, StackFormKind, StackFit, StackNote } from '@n-u
12
12
 
13
13
  /** The host's kinds of item, such as "panel" and "group". An edge takes only the kinds it lists. */
14
14
  type Kind = string;
15
- /** A side of the stage. Left and right edges are columns (they run down); top and bottom edges are bars (they run across). */
16
- type Side = "top" | "right" | "bottom" | "left";
15
+
17
16
  declare const SIDES: readonly Side[];
18
17
  /** Where an item sits along its edge: packed from the start, centered in the spare length, or packed from the end. */
19
18
  type Zone = "start" | "center" | "end";
@@ -85,6 +84,15 @@ interface DockItem {
85
84
  * `DockEdge.zoneAccepts`: `readDockState` takes it from `base`, `storeDockState` never writes it.
86
85
  */
87
86
  readonly pushable?: boolean;
87
+ /**
88
+ * Whether it counts as a docked panel for `DockState.insetWhen: "docked"` (the inset applies only while one is docked
89
+ * beside the content). Left out, the rule is the old one: not closed, not fixed, its first column form is `open`,
90
+ * `header` or `rail`. It overrides that either way: `false` on a side strip (a narrow column that only moves the
91
+ * content aside and is no panel card) leaves the inset off while it is open alone; `true` on an item whose first form
92
+ * is none of those kinds counts it. A closed or fixed item never counts. A declaration of the state like `pushable`:
93
+ * `readDockState` takes it from `base`, `storeDockState` never writes it.
94
+ */
95
+ readonly countsAsDocked?: boolean;
88
96
  /** Closed: it keeps its place in its edge (or its float rect) but takes no room and has no targets. */
89
97
  readonly closed?: boolean;
90
98
  /**
@@ -125,7 +133,8 @@ interface DockItem {
125
133
  * Its size as a float, per orient: `floatAt` with no rect uses the one for the orient it floats in, and a float drop or
126
134
  * a hand resize sets it for the orient the float is in, so a float turned to the other orient (`orientFloat`) takes that
127
135
  * orient's size and, turned back, its own again. Without one for an orient, a float takes its first form's natural size
128
- * along that orient (`floatSizeOf`), or `DEFAULT_FLOAT_SIZE` when that form grows (a panel's card).
136
+ * along that orient (`floatSizeOf`), or `DEFAULT_FLOAT_SIZE` when that form is sized by hand (a form that grows and
137
+ * shows a body, a panel's card).
129
138
  */
130
139
  readonly floatSizes?: {
131
140
  readonly row?: Size;
@@ -404,6 +413,45 @@ interface DockFloat {
404
413
  type KeepClear = Rect & {
405
414
  readonly for?: "all" | "floats";
406
415
  };
416
+ /**
417
+ * A region of the layout a keep-clear rect can be anchored to: `"content"` is `DockLayout.content`, what the cut leaves
418
+ * for the pages (not `lanes()`' float content).
419
+ */
420
+ type KeepClearRegion = "content";
421
+ /**
422
+ * A keep-clear rect anchored to a region of the layout ({@link KeepClearRegion}): `size` px deep at the region's `side`,
423
+ * along its whole length, clamped to the region (an empty region gives no rect). `solve` resolves it once the edges
424
+ * and the content are final, before the floats, and writes it to `DockLayout.keepClear` with its `id`, so it moves with
425
+ * the content a drop opens or closes (an overlay strip a host draws at the content's right edge). Nothing that sizes
426
+ * the content reads it. A declaration, like `pushable`: `readDockState` takes it from `base`, `storeDockState` never
427
+ * writes it. A rect that truly lies in stage coordinates stays a {@link KeepClear}.
428
+ */
429
+ interface AnchoredKeepClear {
430
+ readonly region: KeepClearRegion;
431
+ readonly side: Side;
432
+ /** How deep it is, px, from `side` into the region. */
433
+ readonly size: number;
434
+ /** Who keeps clear of it, as for {@link KeepClear}. */
435
+ readonly for: "all" | "floats";
436
+ /** The host's name for it: it comes back on its `DockLayout.keepClear` entry. */
437
+ readonly id?: string;
438
+ /**
439
+ * The least region it applies in, px: while the region as solved is narrower than `width` or shorter than `height`
440
+ * (each optional), the entry is inactive: it keeps nothing clear and is absent from `DockLayout.keepClear`, so a host
441
+ * draws its overlay exactly when the entry is there. Read once the content is final, like the rest of the entry.
442
+ */
443
+ readonly minRegion?: {
444
+ readonly width?: number;
445
+ readonly height?: number;
446
+ };
447
+ }
448
+ /** An anchored keep-clear rect as laid out (`DockLayout.keepClear`). */
449
+ interface DockKeepClearLayout {
450
+ /** Stage px, inside its region. */
451
+ readonly rect: Rect;
452
+ readonly for: "all" | "floats";
453
+ readonly id?: string;
454
+ }
407
455
  interface DockState {
408
456
  /** The window's inner rect. */
409
457
  readonly stage: Rect;
@@ -415,9 +463,11 @@ interface DockState {
415
463
  readonly floatKinds: readonly Kind[];
416
464
  /**
417
465
  * Rects the state keeps clear of (a title the host draws itself, a status line): by default floats and drop targets
418
- * both; an entry with `for: "floats"` (a spine drawn over a column) only floats. See {@link KeepClear}.
466
+ * both; an entry with `for: "floats"` (a spine drawn over a column) only floats. See {@link KeepClear}. An entry
467
+ * with a `region` is anchored to the layout ({@link AnchoredKeepClear}): `solve` resolves it into
468
+ * `DockLayout.keepClear`, and every reader takes it from the layout it names.
419
469
  */
420
- readonly keepClear?: readonly KeepClear[];
470
+ readonly keepClear?: readonly (KeepClear | AnchoredKeepClear)[];
421
471
  /** Spots where a release cancels: `targets` gives a `none` target over each. */
422
472
  readonly blocked?: readonly Rect[];
423
473
  /** Per side (left, right): what a new column is made from. A side without one gets no new columns. */
@@ -504,8 +554,10 @@ interface DockState {
504
554
  /**
505
555
  * When `inset` applies (default `"always"`): `"docked"` keeps it only while a panel is docked beside the content (an
506
556
  * open panel column or a rail showing panels: a left or right edge that takes something, with an item that isn't
507
- * closed or fixed and whose first column form is `open`, `header` or `rail`). Bars, toolbar groups and an anchor
508
- * never count, wherever they sit; with no panel there, the content is the whole stage.
557
+ * closed or fixed and whose first column form is `open`, `header` or `rail`; the item's `countsAsDocked` overrides
558
+ * that either way: `false` for a side strip that only moves the content aside, `true` to count an item of another
559
+ * form). Bars, toolbar groups and an anchor never count, wherever they sit; with no panel there, the content is the
560
+ * whole stage.
509
561
  */
510
562
  readonly insetWhen?: "always" | "docked";
511
563
  /** Space after each left or right edge and each rail that takes room, toward the content, px (default 0). */
@@ -723,6 +775,12 @@ interface DockLayout {
723
775
  * every column can fold into its rail. A host shows its narrow fallback (one panel over the content) while it is `false`.
724
776
  */
725
777
  readonly columnRoom?: boolean;
778
+ /**
779
+ * The state's anchored keep-clear rects ({@link AnchoredKeepClear}) resolved in this layout, in the state's order, each
780
+ * with its `id`; one whose region is empty has none. Only with a state that declares one: a state with fixed rects
781
+ * only has no `keepClear` here. A host draws an anchored strip from it.
782
+ */
783
+ readonly keepClear?: readonly DockKeepClearLayout[];
726
784
  readonly notes: readonly DockNote[];
727
785
  }
728
786
  interface SolveOptions {
@@ -785,8 +843,9 @@ interface FloatResize {
785
843
  * `"docked"` says so. Such a float never grows over what it covers: a dragged edge that lies inside an obstacle stays
786
844
  * where it is drawn (`"docked"`), so a resize never covers more than the float did. `limits` says which of these bound it.
787
845
  *
788
- * Null for anything but a float drawn at its first form when that form grows (a panel's card): a toolbar group's size
789
- * comes from its forms, and so does a folded float's bar. Pure: it solves the state once, for what is drawn now.
846
+ * Null for anything but a float drawn at its first form when that form is sized by hand (`sizedByHand`: a panel's
847
+ * card): a toolbar group's size comes from its forms (one that grows on a bar too), and so does a folded float's bar.
848
+ * Pure: it solves the state once, for what is drawn now.
790
849
  */
791
850
  declare function fitResize(state: DockState, id: string, rect: Rect, moving: ResizeEdges): FloatResize | null;
792
851
 
@@ -1293,7 +1352,7 @@ interface DockLane {
1293
1352
  readonly id: string;
1294
1353
  readonly rect: Rect;
1295
1354
  /** The axis its spots run along. */
1296
- readonly axis: "x" | "y";
1355
+ readonly axis: Axis;
1297
1356
  readonly spots: readonly DockSpot[];
1298
1357
  readonly refused: readonly LaneRefusal[];
1299
1358
  /**
@@ -1443,8 +1502,6 @@ interface DockAfter extends DropResult {
1443
1502
  /** A spot's: its lane's spots with their stretches cut in `layout` (along a held lane, the spot ranges as drawn). */
1444
1503
  readonly spots?: readonly DockSpot[];
1445
1504
  }
1446
- /** A place guide as a frame draws it: a lane's mark in the layout its guide stands for. */
1447
- type DockGuide = DockLaneMark;
1448
1505
  /** One lane a frame shows guides for, with the held place its guide stands for (`@n-uf/motion/drag`'s `LandingGuideRef`). */
1449
1506
  interface DockGuideRef {
1450
1507
  readonly lane: string;
@@ -1487,8 +1544,8 @@ interface DockDrag {
1487
1544
  * commits. A null held place is rest. A host that draws no room for a spot (a mode that never makes one) passes room false.
1488
1545
  */
1489
1546
  shown(frame: Pick<DockGuideFrame, "held" | "room">): DockLayout;
1490
- /** The guides of a frame, cut in `shown(frame)`: each lane's marks from the held place it names, the Near lane's winning where they meet. */
1491
- guides(frame: DockGuideFrame): DockGuide[];
1547
+ /** The guides of a frame (a lane's marks as the frame draws them), cut in `shown(frame)`: each lane's marks from the held place it names, the Near lane's winning where they meet. */
1548
+ guides(frame: DockGuideFrame): DockLaneMark[];
1492
1549
  }
1493
1550
  /**
1494
1551
  * The drag of `dragged` in `state`: `lanes()`'s regions as seen, and `after(held)`, THE layout of each held place. The
@@ -1498,4 +1555,4 @@ interface DockDrag {
1498
1555
  */
1499
1556
  declare function dockDrag(state: DockState, dragged: string, options?: DockLaneOptions): DockDrag;
1500
1557
 
1501
- export { type LaneRefusal as $, type DockMark as A, type DockNote as B, type ColumnPlace as C, type DockItem as D, type DockNoteCode as E, type FloatAnchorAt as F, type DockPlace as G, type DockRailLayout as H, type DockRegions as I, type DockSpot as J, type Kind as K, type DockStateRead as L, type DropPlace as M, type DropResult as N, type Orient as O, EDGE_ROOM_HOLD as P, type EmptyLanes as Q, type RailMode as R, type Side as S, FLOAT_ANCHORS as T, type FloatAnchorOffset as U, type FloatPlace as V, type FloatResize as W, HATCH_EDGE as X, HATCH_END as Y, type ZoneAccepts as Z, type KeepClear as _, type FloatAnchor as a, type LaneSlide as a0, type Place as a1, RAIL_MODES as a2, RAIL_STRIP_MIN as a3, RAIL_VISIBILITIES as a4, type RailDropPolicy as a5, type RailPlace as a6, type RailSpec as a7, type RailVisibility as a8, type ResizeEdges as a9, resizeEdge as aA, resizeFloat as aB, setRailMode as aC, setSide as aD, storeDockState as aE, type ResizeLimit as aa, SIDES as ab, SPOT_PITCH as ac, type StoredDockState as ad, type StoredDockStateEdge as ae, type StoredDockStateFloat as af, type StoredDockStateItem as ag, ZONES as ah, canFold as ai, closeItem as aj, dockDrag as ak, dockHome as al, fitResize as am, floatAt as an, foldItem as ao, homeFor as ap, keepItem as aq, lanes as ar, liftItem as as, markUsed as at, mergeSideColumns as au, moveTo as av, openItem as aw, orientFloat as ax, raiseFloat as ay, readDockState as az, type Zone as b, type DockState as c, type DockEdge as d, type SolveOptions as e, type DockLayout as f, type DockRefusal as g, type DockDropOptions as h, type DockDrop as i, type ColumnTemplate as j, DEFAULT_FLOAT_SIZE as k, DEFAULT_HIT_BAND as l, DEFAULT_RAIL_MAGNET as m, DEFAULT_STRIP as n, type DockAfter as o, type DockDrag as p, type DockEdgeLayout as q, type DockFloat as r, type DockGuide as s, type DockGuideFrame as t, type DockGuideRef as u, type DockHeld as v, type DockItemLayout as w, type DockLane as x, type DockLaneMark as y, type DockLaneOptions as z };
1558
+ export { type KeepClearRegion as $, type AnchoredKeepClear as A, type DockMark as B, type ColumnPlace as C, type DockItem as D, type DockNote as E, type FloatAnchorAt as F, type DockNoteCode as G, type DockPlace as H, type DockRailLayout as I, type DockRegions as J, type Kind as K, type DockSpot as L, type DockStateRead as M, type DropPlace as N, type Orient as O, type DropResult as P, EDGE_ROOM_HOLD as Q, type RailMode as R, type SolveOptions as S, type EmptyLanes as T, FLOAT_ANCHORS as U, type FloatAnchorOffset as V, type FloatPlace as W, type FloatResize as X, HATCH_EDGE as Y, type ZoneAccepts as Z, HATCH_END as _, type FloatAnchor as a, type LaneRefusal as a0, type LaneSlide as a1, type Place as a2, RAIL_MODES as a3, RAIL_STRIP_MIN as a4, RAIL_VISIBILITIES as a5, type RailDropPolicy as a6, type RailPlace as a7, type RailSpec as a8, type RailVisibility as a9, readDockState as aA, resizeEdge as aB, resizeFloat as aC, setRailMode as aD, setSide as aE, storeDockState as aF, type ResizeEdges as aa, type ResizeLimit as ab, SIDES as ac, SPOT_PITCH as ad, type StoredDockState as ae, type StoredDockStateEdge as af, type StoredDockStateFloat as ag, type StoredDockStateItem as ah, ZONES as ai, canFold as aj, closeItem as ak, dockDrag as al, dockHome as am, fitResize as an, floatAt as ao, foldItem as ap, homeFor as aq, keepItem as ar, lanes as as, liftItem as at, markUsed as au, mergeSideColumns as av, moveTo as aw, openItem as ax, orientFloat as ay, raiseFloat as az, type Zone as b, type DockState as c, type KeepClear as d, type DockEdge as e, type DockLayout as f, type DockRefusal as g, type DockDropOptions as h, type DockDrop as i, type ColumnTemplate as j, DEFAULT_FLOAT_SIZE as k, DEFAULT_HIT_BAND as l, DEFAULT_RAIL_MAGNET as m, DEFAULT_STRIP as n, type DockAfter as o, type DockDrag as p, type DockEdgeLayout as q, type DockFloat as r, type DockGuideFrame as s, type DockGuideRef as t, type DockHeld as u, type DockItemLayout as v, type DockKeepClearLayout as w, type DockLane as x, type DockLaneMark as y, type DockLaneOptions as z };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
- import { F as FloatAnchorAt, a as FloatAnchor, D as DockItem, K as Kind, Z as ZoneAccepts, b as Zone, O as Orient, c as DockState, d as DockEdge, S as Side, R as RailMode, e as SolveOptions, f as DockLayout, g as DockRefusal, h as DockDropOptions, i as DockDrop } from './drag-CbIEY9Zm.js';
2
- export { C as ColumnPlace, j as ColumnTemplate, k as DEFAULT_FLOAT_SIZE, l as DEFAULT_HIT_BAND, m as DEFAULT_RAIL_MAGNET, n as DEFAULT_STRIP, o as DockAfter, p as DockDrag, q as DockEdgeLayout, r as DockFloat, s as DockGuide, t as DockGuideFrame, u as DockGuideRef, v as DockHeld, w as DockItemLayout, x as DockLane, y as DockLaneMark, z as DockLaneOptions, A as DockMark, B as DockNote, E as DockNoteCode, G as DockPlace, H as DockRailLayout, I as DockRegions, J as DockSpot, L as DockStateRead, M as DropPlace, N as DropResult, P as EDGE_ROOM_HOLD, Q as EmptyLanes, T as FLOAT_ANCHORS, U as FloatAnchorOffset, V as FloatPlace, W as FloatResize, X as HATCH_EDGE, Y as HATCH_END, _ as KeepClear, $ as LaneRefusal, a0 as LaneSlide, a1 as Place, a2 as RAIL_MODES, a3 as RAIL_STRIP_MIN, a4 as RAIL_VISIBILITIES, a5 as RailDropPolicy, a6 as RailPlace, a7 as RailSpec, a8 as RailVisibility, a9 as ResizeEdges, aa as ResizeLimit, ab as SIDES, ac as SPOT_PITCH, ad as StoredDockState, ae as StoredDockStateEdge, af as StoredDockStateFloat, ag as StoredDockStateItem, ah as ZONES, ai as canFold, aj as closeItem, ak as dockDrag, al as dockHome, am as fitResize, an as floatAt, ao as foldItem, ap as homeFor, aq as keepItem, ar as lanes, as as liftItem, at as markUsed, au as mergeSideColumns, av as moveTo, aw as openItem, ax as orientFloat, ay as raiseFloat, az as readDockState, aA as resizeEdge, aB as resizeFloat, aC as setRailMode, aD as setSide, aE as storeDockState } from './drag-CbIEY9Zm.js';
3
- import { Size, Point, Rect, Target } from '@n-uf/placement';
1
+ import { F as FloatAnchorAt, a as FloatAnchor, D as DockItem, K as Kind, Z as ZoneAccepts, b as Zone, O as Orient, c as DockState, d as KeepClear, A as AnchoredKeepClear, e as DockEdge, R as RailMode, S as SolveOptions, f as DockLayout, g as DockRefusal, h as DockDropOptions, i as DockDrop } from './drag-BGcY5DGm.js';
2
+ export { C as ColumnPlace, j as ColumnTemplate, k as DEFAULT_FLOAT_SIZE, l as DEFAULT_HIT_BAND, m as DEFAULT_RAIL_MAGNET, n as DEFAULT_STRIP, o as DockAfter, p as DockDrag, q as DockEdgeLayout, r as DockFloat, s as DockGuideFrame, t as DockGuideRef, u as DockHeld, v as DockItemLayout, w as DockKeepClearLayout, x as DockLane, y as DockLaneMark, z as DockLaneOptions, B as DockMark, E as DockNote, G as DockNoteCode, H as DockPlace, I as DockRailLayout, J as DockRegions, L as DockSpot, M as DockStateRead, N as DropPlace, P as DropResult, Q as EDGE_ROOM_HOLD, T as EmptyLanes, U as FLOAT_ANCHORS, V as FloatAnchorOffset, W as FloatPlace, X as FloatResize, Y as HATCH_EDGE, _ as HATCH_END, $ as KeepClearRegion, a0 as LaneRefusal, a1 as LaneSlide, a2 as Place, a3 as RAIL_MODES, a4 as RAIL_STRIP_MIN, a5 as RAIL_VISIBILITIES, a6 as RailDropPolicy, a7 as RailPlace, a8 as RailSpec, a9 as RailVisibility, aa as ResizeEdges, ab as ResizeLimit, ac as SIDES, ad as SPOT_PITCH, ae as StoredDockState, af as StoredDockStateEdge, ag as StoredDockStateFloat, ah as StoredDockStateItem, ai as ZONES, aj as canFold, ak as closeItem, al as dockDrag, am as dockHome, an as fitResize, ao as floatAt, ap as foldItem, aq as homeFor, ar as keepItem, as as lanes, at as liftItem, au as markUsed, av as mergeSideColumns, aw as moveTo, ax as openItem, ay as orientFloat, az as raiseFloat, aA as readDockState, aB as resizeEdge, aC as resizeFloat, aD as setRailMode, aE as setSide, aF as storeDockState } from './drag-BGcY5DGm.js';
3
+ import { Size, Point, Rect, Side, Target } from '@n-uf/placement';
4
+ export { Axis, Side } from '@n-uf/placement';
4
5
  import '@n-uf/placement/stack';
5
6
 
6
7
  /**
@@ -38,6 +39,8 @@ declare const zonesTaking: (edge: ZoneDecl, kind: Kind) => Zone[];
38
39
  declare const edgeTakes: (edge: ZoneDecl, kind: Kind) => boolean;
39
40
  /** How the rails of `side` show their items (`DockState.railModes`, default `"titles"`); top and bottom have no rails. */
40
41
  declare const railModeOf: (state: DockState, side: Side) => RailMode;
42
+ /** Whether a keep-clear entry is anchored to a region of the layout (`AnchoredKeepClear`), not a fixed rect. */
43
+ declare const isAnchoredKeepClear: (c: KeepClear | AnchoredKeepClear) => c is AnchoredKeepClear;
41
44
  /**
42
45
  * The zone `item` lies in on `edge`: its own (`align`) where the edge takes its kind there, else the first zone that
43
46
  * does; one the edge takes nowhere, in its own. A fixed item lies in its own where the edge has that zone (`zones`),
@@ -76,8 +79,8 @@ declare const floatOrientOf: (item: DockItem) => Orient;
76
79
  declare const declaresFloatSizes: (item: DockItem) => boolean;
77
80
  /**
78
81
  * A float's size along `orient` (default `floatOrientOf`) when nothing else gives one: the item's `floatSizes` for that
79
- * orient, else its first form's natural size along `orient`, or `DEFAULT_FLOAT_SIZE` when that form grows (a panel's
80
- * card has no natural float length) or the item has no form there.
82
+ * orient, else its first form's natural size along `orient`, or `DEFAULT_FLOAT_SIZE` when that form is sized by hand (a
83
+ * form that grows and shows a body, a panel's card, has no natural float length) or the item has no form there.
81
84
  */
82
85
  declare function floatSizeOf(item: DockItem, orient?: Orient): Size;
83
86
 
@@ -168,7 +171,7 @@ declare function reservedRect(state: DockState, l: DockLayout, id: string): Rect
168
171
  * `column:<side>` (a side's column lines) and `rail:<side>` (its rail): `virtualEdgeId`.
169
172
  */
170
173
 
171
- type ColumnSide = "left" | "right";
174
+ type ColumnSide = Extract<Side, "left" | "right">;
172
175
  /** A `DropPlace`, as much of it as an id reads (this module imports no more of the state, so `solve` may use it). */
173
176
  type PlaceLike = {
174
177
  readonly kind: "gap";
@@ -338,4 +341,4 @@ declare function refusalTargets(list: readonly DockRefusal[]): DockRefusalTarget
338
341
  */
339
342
  declare function stops(state: DockState, dragged: string, options?: DockDropOptions): DockDrop[];
340
343
 
341
- export { type DockDivider, DockDrop, DockDropOptions, DockEdge, DockItem, DockLayout, DockRefusal, type DockRefusalTarget, DockState, FloatAnchor, FloatAnchorAt, Kind, Orient, RailMode, Side, SolveOptions, type TargetIdParts, Zone, ZoneAccepts, anchorName, declaresFloatSizes, dividers, edgeTakes, floatOrientOf, floatSizeOf, heldRect, isOutsideSideBar, isSideBar, isSideColumn, namesZone, parseTargetId, placeTargetId, railModeOf, refusalTargets, refusals, reservedRect, resetBetween, resetLengths, resizeBetween, solve, stops, targetId, targets, virtualEdgeId, zoneIn, zoneTakes, zonesTaking };
344
+ export { AnchoredKeepClear, type DockDivider, DockDrop, DockDropOptions, DockEdge, DockItem, DockLayout, DockRefusal, type DockRefusalTarget, DockState, FloatAnchor, FloatAnchorAt, KeepClear, Kind, Orient, RailMode, SolveOptions, type TargetIdParts, Zone, ZoneAccepts, anchorName, declaresFloatSizes, dividers, edgeTakes, floatOrientOf, floatSizeOf, heldRect, isAnchoredKeepClear, isOutsideSideBar, isSideBar, isSideColumn, namesZone, parseTargetId, placeTargetId, railModeOf, refusalTargets, refusals, reservedRect, resetBetween, resetLengths, resizeBetween, solve, stops, targetId, targets, virtualEdgeId, zoneIn, zoneTakes, zonesTaking };
package/dist/index.js CHANGED
@@ -28,6 +28,7 @@ import {
28
28
  foldItem,
29
29
  heldRect,
30
30
  homeFor,
31
+ isAnchoredKeepClear,
31
32
  isOutsideSideBar,
32
33
  isSideBar,
33
34
  isSideColumn,
@@ -64,7 +65,7 @@ import {
64
65
  zoneIn,
65
66
  zoneTakes,
66
67
  zonesTaking
67
- } from "./chunk-FSNFXRYM.js";
68
+ } from "./chunk-7QOY2URO.js";
68
69
  export {
69
70
  DEFAULT_FLOAT_SIZE,
70
71
  DEFAULT_HIT_BAND,
@@ -95,6 +96,7 @@ export {
95
96
  foldItem,
96
97
  heldRect,
97
98
  homeFor,
99
+ isAnchoredKeepClear,
98
100
  isOutsideSideBar,
99
101
  isSideBar,
100
102
  isSideColumn,
package/dist/testing.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { Point, Rect } from '@n-uf/placement';
1
+ import { Point, Rect, Side } from '@n-uf/placement';
2
2
  import { StackFormKind } from '@n-uf/placement/stack';
3
- import { c as DockState, M as DropPlace, f as DockLayout, ad as StoredDockState, b as Zone, S as Side, E as DockNoteCode, i as DockDrop, g as DockRefusal, z as DockLaneOptions, v as DockHeld, u as DockGuideRef, I as DockRegions, J as DockSpot } from './drag-CbIEY9Zm.js';
3
+ import { c as DockState, N as DropPlace, f as DockLayout, ae as StoredDockState, b as Zone, G as DockNoteCode, i as DockDrop, g as DockRefusal, z as DockLaneOptions, u as DockHeld, t as DockGuideRef, J as DockRegions, L as DockSpot } from './drag-BGcY5DGm.js';
4
4
  import { LandingGeometry, LandingRegions } from '@n-uf/motion/drag';
5
5
 
6
6
  /**
@@ -125,8 +125,8 @@ interface LayoutExpect {
125
125
  }
126
126
  /**
127
127
  * What a page's DOM must be. The elements are the session's: `data-drag-session="<kind>"` on the root during a drag
128
- * only, `[data-drag-slot][data-drag-target]` for the slot (the attribute holds the target's id), `[data-drag-marker]`
129
- * for the insertion line, `[data-drag-held]` for the held item, `[data-drag-refusal]` for a refusal shown at the pointer
128
+ * only, `[data-drag-slot][data-drag-target]` for the slot (the attribute holds the target's id; a landing draws that one
129
+ * mark, so a page shows no `[data-drag-marker]` insertion line beside it), `[data-drag-held]` for the held item, `[data-drag-refusal]` for a refusal shown at the pointer
130
130
  * ("Can't go here", never a mark over the refused place; the attribute holds the refusal's id). A drawn item's element is found by `item`: the host's
131
131
  * `itemSelector(id)`, by default `[data-dock-item="<id>"]` (a rect check reads it).
132
132
  */
package/dist/testing.js CHANGED
@@ -18,7 +18,7 @@ import {
18
18
  stops,
19
19
  storeDockState,
20
20
  targets
21
- } from "./chunk-FSNFXRYM.js";
21
+ } from "./chunk-7QOY2URO.js";
22
22
 
23
23
  // src/testing/rows-docking.ts
24
24
  import { rect as r } from "@n-uf/placement";
@@ -414,7 +414,7 @@ var DOCKING_ROWS = [
414
414
  expectDom: [
415
415
  { at: 2, attr: { "data-drag-session": "panel" }, note: "the root says a panel is dragged" },
416
416
  { at: 2, select: "[data-drag-slot][data-drag-target]", count: 1, attr: { "data-drag-target": "gap:column:start:0" }, note: "one slot, on the top gap" },
417
- { at: 2, select: "[data-drag-marker]", count: 1, note: "its insertion line" },
417
+ { at: 2, select: "[data-drag-marker]", count: 0, note: "no insertion line beside it: a gap landing draws one mark, the slot" },
418
418
  { at: 2, select: "[data-drag-held]", count: 1, note: "the held item" },
419
419
  { at: 3, attr: { "data-drag-session": null }, note: "the session ends with the drop" },
420
420
  { at: 3, select: "[data-drag-slot]", count: 0, note: "no slot after the drop" }