@grafloria/element 0.4.56 → 0.4.57

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grafloria/element",
3
- "version": "0.4.56",
3
+ "version": "0.4.57",
4
4
  "type": "module",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -12,6 +12,12 @@
12
12
  import type { DiagramModel, GridPackEngine, GroupModel, NodeModel } from '@grafloria/engine';
13
13
  import type { DashboardGridGeometry, WorldRect } from './grid-mapping.js';
14
14
  import type { DashboardGridApi, DashboardGridOptions } from './grid-binder.js';
15
+ /**
16
+ * Small overshoots CLAMP onto the board instead of counting as off-board — the
17
+ * plan prototype cannot leave its board at all (cells clamp at the edges), so a
18
+ * 60 px slip past the frame must not dim or delete.
19
+ */
20
+ export declare const EDGE_GRACE = 60;
15
21
  export interface BoardCtx {
16
22
  readonly api: DashboardGridApi;
17
23
  readonly group: GroupModel;
@@ -1,2 +1,7 @@
1
- export {};
1
+ /**
2
+ * Small overshoots CLAMP onto the board instead of counting as off-board — the
3
+ * plan prototype cannot leave its board at all (cells clamp at the edges), so a
4
+ * 60 px slip past the frame must not dim or delete.
5
+ */
6
+ export const EDGE_GRACE = 60;
2
7
  //# sourceMappingURL=board-ctx.js.map
@@ -55,6 +55,7 @@ import { type CellRect, type WorldRect } from './grid-mapping.js';
55
55
  import { type BesideSide } from './zones.js';
56
56
  import { type ResizeEdges } from './edges.js';
57
57
  import { type DragHandleOption } from './grip.js';
58
+ export { TEAR_OUT_MIN_ROWS } from './tear-out.js';
58
59
  export { EDGE_GRIP, anyEdge, type ResizeEdges } from './edges.js';
59
60
  export { GRIP_CLASS, DRAG_HANDLE_CLASS, CAPTION_BAND, normalizeDragHandle, dragHandleSelector, gripOf, syncGrip, gripHostOf, pressOnDragHandle, type DragGripOptions, type DragHandleOption } from './grip.js';
60
61
  export { SequenceCommand, SetGroupCellCommand } from './commit.js';
@@ -574,8 +575,6 @@ export interface TearOutPlan {
574
575
  collapse: Command[];
575
576
  };
576
577
  }
577
- /** A torn-out page never arrives shorter than this: a strip with no room under it is not a group. */
578
- export declare const TEAR_OUT_MIN_ROWS = 2;
579
578
  /**
580
579
  * A WIDGET dropped on a tab strip becomes a new tab there (a tab dropped on
581
580
  * one joins; a widget wraps into a page of its own first). The dashboard
@@ -592,7 +591,7 @@ export interface TabDropHooks {
592
591
  /** The commands that make `widgetId` a new tab of `containerId` at `index`; `displaced` are this board's survivors. Empty = refused. */
593
592
  dropIntoStrip(widgetId: string, containerId: string, index: number, sourceBoardId: string, displaced: Command[]): Command[];
594
593
  }
595
- interface AdoptOptions {
594
+ export interface AdoptOptions {
596
595
  /**
597
596
  * 'shrink': take the cell under the pointer at the height that FITS there
598
597
  * (down to TEAR_OUT_MIN_ROWS) before looking for another row — a torn-out
@@ -610,7 +609,7 @@ interface AdoptOptions {
610
609
  side: BesideSide;
611
610
  };
612
611
  }
613
- interface AdoptedLeg {
612
+ export interface AdoptedLeg {
614
613
  groupId: string;
615
614
  /** Drive the target engine from the source binder's pointer stream. `push`: the tile means it — solid tiles under the wanted cell are pushed (D2). */
616
615
  move(world: {