@n-uf/placement 26.11.23 → 26.11.24

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,6 +1,6 @@
1
1
  import { P as Point, R as Rect } from './geometry-mL-GTRti.js';
2
2
  import { S as StackFormKind } from './model-DPTu2EtG.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 } from './targets-DgmHP5PY.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 } from './targets-DwwIWPpN.js';
4
4
  import './target-D3PiLg44.js';
5
5
 
6
6
  /**
@@ -13,7 +13,7 @@ import {
13
13
  storeScene,
14
14
  targets,
15
15
  use
16
- } from "./chunk-6WFVXHA3.js";
16
+ } from "./chunk-XUC5BU4N.js";
17
17
  import "./chunk-RL3QB5SM.js";
18
18
  import {
19
19
  rect
package/dist/scene.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { S as Scene, g as SolveOptions, b as SceneLayout } from './targets-DgmHP5PY.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, w as SceneRefusal, f as SceneTarget, x as SceneTargetOptions, d as Side, c as StoredScene, y as StoredSceneEdge, z as StoredSceneFloat, A as StoredSceneItem, B as ZONES, Z as Zone, G as ZoneAccepts, H as close, I as dockHome, J as floatAt, L as floatOrientOf, M as floatSizeOf, N as fold, Q as homeFor, T as isOutsideSideBar, U as keep, V as lift, W as moveTo, X as open, Y as orient, _ as raise, $ as readScene, a0 as refusals, a1 as reservedRect, a2 as resize, a3 as setSide, a4 as stops, a5 as storeScene, a6 as targets, a7 as use, a8 as zoneTakes, a9 as zonesTaking } from './targets-DgmHP5PY.js';
1
+ import { S as Scene, g as SolveOptions, b as SceneLayout } from './targets-DwwIWPpN.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, w as SceneRefusal, f as SceneTarget, x as SceneTargetOptions, d as Side, c as StoredScene, y as StoredSceneEdge, z as StoredSceneFloat, A as StoredSceneItem, B as ZONES, Z as Zone, G as ZoneAccepts, H as close, I as dockHome, J as floatAt, L as floatOrientOf, M as floatSizeOf, N as fold, Q as homeFor, T as isOutsideSideBar, U as isSideBar, V as keep, W as lift, X as moveTo, Y as open, _ as orient, $ as raise, a0 as readScene, a1 as refusals, a2 as reservedRect, a3 as resize, a4 as setSide, a5 as stops, a6 as storeScene, a7 as targets, a8 as use, a9 as zoneTakes, aa as zonesTaking } from './targets-DwwIWPpN.js';
3
3
  import './geometry-mL-GTRti.js';
4
4
  import './target-D3PiLg44.js';
5
5
  import './model-DPTu2EtG.js';
package/dist/scene.js CHANGED
@@ -12,6 +12,7 @@ import {
12
12
  fold,
13
13
  homeFor,
14
14
  isOutsideSideBar,
15
+ isSideBar,
15
16
  keep,
16
17
  lift,
17
18
  moveTo,
@@ -30,7 +31,7 @@ import {
30
31
  use,
31
32
  zoneTakes,
32
33
  zonesTaking
33
- } from "./chunk-6WFVXHA3.js";
34
+ } from "./chunk-XUC5BU4N.js";
34
35
  import "./chunk-RL3QB5SM.js";
35
36
  import "./chunk-QMTNB2C3.js";
36
37
  export {
@@ -47,6 +48,7 @@ export {
47
48
  fold,
48
49
  homeFor,
49
50
  isOutsideSideBar,
51
+ isSideBar,
50
52
  keep,
51
53
  lift,
52
54
  moveTo,
@@ -419,12 +419,16 @@ declare const DEFAULT_HIT_BAND = 24;
419
419
  /** A float's size when neither the item nor the call gives one, px. */
420
420
  declare const DEFAULT_FLOAT_SIZE: Size;
421
421
  /**
422
- * A left or right toolbar bar outside the inset: told from a column edge by its kinds, it takes something and nothing
423
- * the side's columns or its rail take (`Scene.columns[side].accepts`, `Scene.rails[side].accepts`); an anchor takes
424
- * nothing. A side with neither a column template nor a rail has nothing to tell them apart by, so no edge there is a
425
- * bar. It lies outermost on its side, before the side's rail.
422
+ * A left or right toolbar bar outside the inset (`isSideBar` with `outsideInset`). It lies outermost on its side,
423
+ * before the side's rail.
426
424
  */
427
425
  declare function isOutsideSideBar(scene: Scene, e: Edge): boolean;
426
+ /**
427
+ * A left or right toolbar bar: told from a column edge by its kinds, it takes something and nothing the side's columns
428
+ * or its rail take (`Scene.columns[side].accepts`, `Scene.rails[side].accepts`); an anchor takes nothing. A side with
429
+ * neither a column template nor a rail has nothing to tell them apart by, so no edge there is a bar.
430
+ */
431
+ declare function isSideBar(scene: Scene, e: Edge): boolean;
428
432
  /**
429
433
  * The orient a float of `item` takes when it names none: its `floatOrient`, else the axis of its first form (the first
430
434
  * of `forms.row` / `forms.column` it declares with any form), else column.
@@ -716,4 +720,4 @@ declare function refusals(scene: Scene, dragged: string, options?: SceneTargetOp
716
720
  */
717
721
  declare function stops(scene: Scene, dragged: string, options?: SceneTargetOptions): SceneTarget[];
718
722
 
719
- export { readScene as $, type StoredSceneItem as A, ZONES as B, type ColumnPlace as C, DEFAULT_FLOAT_SIZE as D, type Edge as E, type FloatAnchor as F, type ZoneAccepts as G, close as H, dockHome as I, floatAt as J, type Kind as K, floatOrientOf as L, floatSizeOf as M, fold as N, type Orient as O, type Place as P, homeFor as Q, type RailPlace as R, type Scene as S, isOutsideSideBar as T, keep as U, lift as V, moveTo as W, open as X, orient as Y, type Zone as Z, raise as _, type ScenePlace as a, refusals as a0, reservedRect as a1, resize as a2, setSide as a3, stops as a4, storeScene as a5, targets as a6, use as a7, zoneTakes as a8, zonesTaking as a9, 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 SceneRefusal as w, type SceneTargetOptions as x, type StoredSceneEdge as y, type StoredSceneFloat as z };
723
+ export { raise as $, type StoredSceneItem as A, ZONES as B, type ColumnPlace as C, DEFAULT_FLOAT_SIZE as D, type Edge as E, type FloatAnchor as F, type ZoneAccepts as G, close as H, dockHome as I, floatAt as J, type Kind as K, floatOrientOf as L, floatSizeOf as M, fold as N, type Orient as O, type Place as P, homeFor as Q, type RailPlace as R, type Scene as S, isOutsideSideBar as T, isSideBar as U, keep as V, lift as W, moveTo as X, open as Y, type Zone as Z, orient as _, type ScenePlace as a, readScene as a0, refusals as a1, reservedRect as a2, resize as a3, setSide as a4, stops as a5, storeScene as a6, targets as a7, use as a8, zoneTakes as a9, zonesTaking as aa, 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 SceneRefusal as w, type SceneTargetOptions as x, type StoredSceneEdge as y, type StoredSceneFloat as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@n-uf/placement",
3
- "version": "26.11.23",
3
+ "version": "26.11.24",
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",