@n-uf/placement 26.11.41 → 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/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-CYs16P4K.js';
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-Db9z1bWt.js';
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-Db9z1bWt.js';
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,7 +1,7 @@
1
1
  import {
2
2
  REFUSAL_RANK,
3
3
  pickRank
4
- } from "./chunk-2IZ6JZV5.js";
4
+ } from "./chunk-2GGJ4GVR.js";
5
5
  import {
6
6
  COLUMN_REACH,
7
7
  EPS,
@@ -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-Db9z1bWt.js';
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
  /**
@@ -288,6 +288,13 @@ declare const RAIL_VISIBILITIES: readonly RailVisibility[];
288
288
  declare const RAIL_STRIP_MIN = 24;
289
289
  /** How far an armed rail drop strip grows inward by default, px, so a hand that wobbles once armed keeps it. */
290
290
  declare const DEFAULT_RAIL_MAGNET = 6;
291
+ /**
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`): 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.
296
+ */
297
+ declare const EDGE_ROOM_HOLD = 0;
291
298
  /**
292
299
  * How an item of one kind drops into a side's rail (`Scene.railDrop[kind]`): the geometry of its drop strip. Each kind
293
300
  * has its own; a kind with none keeps the rail targets as they were (immediate, no strip).
@@ -925,7 +932,7 @@ interface SceneTargetOptions {
925
932
  /** As `solve`'s: edge or item ids solved without `previous`, in every `after` too. */
926
933
  readonly fresh?: readonly string[];
927
934
  }
928
- /** Where a drop of the dragged item is refused: a host shows "no room here" at the pointer, with no slot anywhere. */
935
+ /** Where a drop of the dragged item is refused: a host draws nothing there and may say "Can't go here" at the pointer. */
929
936
  interface SceneRefusal {
930
937
  /**
931
938
  * `refuse:<edge>:<zone>`, with `:<n>` after it for a zone's second refused tile and on, numbered by where they lie
@@ -959,4 +966,4 @@ interface SceneRefusal {
959
966
  readonly bounds?: Rect;
960
967
  }
961
968
 
962
- export { canFold as $, type RailSpec as A, type RailVisibility as B, type ColumnPlace as C, DEFAULT_FLOAT_SIZE as D, type Edge as E, type FloatAnchorAt as F, type ResizeEdges as G, type ResizeLimit as H, SIDES as I, type SceneAfter as J, type Kind as K, type SceneChrome as L, type SceneEdgeLayout as M, type SceneFloat as N, type Orient as O, type Place as P, type SceneItemLayout as Q, type RailMode as R, type Scene as S, type SceneNote as T, type SceneRailLayout as U, type SceneRead as V, type StoredSceneEdge as W, type StoredSceneFloat as X, type StoredSceneItem as Y, type Zone as Z, ZONES as _, type ScenePlace as a, close as a0, dockHome as a1, fitResize as a2, floatAt as a3, fold as a4, homeFor as a5, keep as a6, lift as a7, moveTo as a8, open as a9, orient as aa, raise as ab, readScene as ac, resize as ad, setRailMode as ae, setSide as af, storeScene as ag, use as ah, type SceneLayout as b, type StoredScene as c, type Side as d, type SceneNoteCode as e, type SceneTarget as f, type SceneRefusal as g, type FloatAnchor as h, type ZoneAccepts as i, type SceneItem as j, type SolveOptions as k, type SceneTargetOptions as l, type ColumnTemplate as m, DEFAULT_HIT_BAND as n, DEFAULT_RAIL_MAGNET as o, DEFAULT_STRIP as p, type DockPlace as q, FLOAT_ANCHORS as r, type FloatAnchorOffset as s, type FloatPlace as t, type FloatResize as u, RAIL_MODES as v, RAIL_STRIP_MIN as w, RAIL_VISIBILITIES as x, type RailDropPolicy as y, type RailPlace as z };
969
+ export { ZONES as $, type RailPlace as A, type RailSpec as B, type ColumnPlace as C, DEFAULT_FLOAT_SIZE as D, type Edge as E, type FloatAnchorAt as F, type RailVisibility as G, type ResizeEdges as H, type ResizeLimit as I, SIDES as J, type Kind as K, type SceneAfter as L, type SceneChrome as M, type SceneEdgeLayout as N, type Orient as O, type Place as P, type SceneFloat as Q, type RailMode as R, type Scene as S, type SceneItemLayout as T, type SceneNote as U, type SceneRailLayout as V, type SceneRead as W, type StoredSceneEdge as X, type StoredSceneFloat as Y, type Zone as Z, type StoredSceneItem as _, type ScenePlace as a, canFold as a0, close as a1, dockHome as a2, fitResize as a3, floatAt as a4, fold as a5, homeFor as a6, keep as a7, lift as a8, moveTo as a9, open as aa, orient as ab, raise as ac, readScene as ad, resize as ae, setRailMode as af, setSide as ag, storeScene as ah, use as ai, type SceneLayout as b, type StoredScene as c, type Side as d, type SceneNoteCode as e, type SceneTarget as f, type SceneRefusal as g, type FloatAnchor as h, type ZoneAccepts as i, type SceneItem as j, type SolveOptions as k, type SceneTargetOptions as l, type ColumnTemplate as m, DEFAULT_HIT_BAND as n, DEFAULT_RAIL_MAGNET as o, DEFAULT_STRIP as p, type DockPlace as q, EDGE_ROOM_HOLD as r, FLOAT_ANCHORS as s, type FloatAnchorOffset as t, type FloatPlace as u, type FloatResize as v, RAIL_MODES as w, RAIL_STRIP_MIN as x, RAIL_VISIBILITIES as y, type RailDropPolicy as z };
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-CYs16P4K.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-CYs16P4K.js';
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-Db9z1bWt.js';
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?)`
@@ -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-C-Z5PDBp.js';
4
- import './target-Db9z1bWt.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-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
@@ -127,7 +127,7 @@ interface LayoutExpect {
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
128
  * only, `[data-drag-slot][data-drag-target]` for the slot (the attribute holds the target's id), `[data-drag-marker]`
129
129
  * for the insertion line, `[data-drag-held]` for the held item, `[data-drag-refusal]` for a refusal shown at the pointer
130
- * ("No room here"; the attribute holds the refusal's id). A drawn item's element is found by `item`: the host's
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
  */
133
133
  interface DomCheck {
@@ -360,7 +360,7 @@ declare function pickTarget<T extends {
360
360
  /**
361
361
  * The pick rule with the scene's refusals (`refusals(scene, dragged)`), the drag intent's way: the refusals take part in
362
362
  * the pick as refusal targets (`refusalTargets`), and where one is what the rule picks nothing is picked, so a release
363
- * there commits nothing and the item goes home ("No room here"). Every host aims and drops with it: the reference host,
363
+ * there commits nothing and the item goes home ("Can't go here"). Every host aims and drops with it: the reference host,
364
364
  * and a page's host for `resolvePlace`.
365
365
  */
366
366
  declare function withRefusals(pick: PickRule, refused: readonly SceneRefusal[]): PickRule;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pickRank
3
- } from "./chunk-2IZ6JZV5.js";
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-NRARI4Q2.js";
22
+ } from "./chunk-PO3ILUMO.js";
23
23
  import "./chunk-AE3BWTAE.js";
24
24
  import {
25
25
  centre,
@@ -749,7 +749,7 @@ var RULE_ROWS = [
749
749
  {
750
750
  id: "C25",
751
751
  title: "Targets by kind: a panel in a toolbar",
752
- expect: 'An edge takes only the kinds it lists: a panel held over the toolbar is offered no gap there and no float either: the toolbar refuses it ("No room here"), and a release there puts it back, the toolbar as it was.',
752
+ expect: `An edge takes only the kinds it lists: a panel held over the toolbar is offered no gap there and no float either: the toolbar refuses it ("Can't go here" at the pointer, nothing drawn on the bar), and a release there puts it back, the toolbar as it was.`,
753
753
  group: "kinds",
754
754
  scene: doc(),
755
755
  // (600, 50) is a real gap for a group (the toolbar's center gap): the control row below lets a group go there.
@@ -1425,7 +1425,7 @@ var GESTURE_ROWS = [
1425
1425
  {
1426
1426
  id: "P13-kinds",
1427
1427
  title: "Targets by kind: a panel",
1428
- expect: `Lifting a panel offers panel columns, rails, new-column lines and the float target, never a toolbar's gaps: over the tools bar it is refused ("No room here"), and a release there puts it back.`,
1428
+ expect: `Lifting a panel offers panel columns, rails, new-column lines and the float target, never a toolbar's gaps: over the tools bar it is refused ("Can't go here" at the pointer, nothing drawn on the bar), and a release there puts it back.`,
1429
1429
  group: "gestures",
1430
1430
  scene: {
1431
1431
  ...win(),