@floegence/floe-webapp-core 0.86.21 → 0.86.22
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,5 +1,5 @@
|
|
|
1
1
|
function w() {
|
|
2
|
-
const t = new Worker(new URL("../../assets/layout-worker-
|
|
2
|
+
const t = new Worker(new URL("../../assets/layout-worker-CLVTDA3E.js", import.meta.url), { type: "module" });
|
|
3
3
|
let s, u = 0;
|
|
4
4
|
const o = /* @__PURE__ */ new Map(), n = (e) => {
|
|
5
5
|
s = e, t.terminate();
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { GraphGroupLayout, GraphLayoutNode, GraphLayoutOptions, GraphPoint } from './types';
|
|
2
|
+
/** Pack complete child subtrees in submitted order, without using edges as ranks. */
|
|
3
|
+
export declare function arrangeGroupMembers(members: readonly GraphLayoutNode[], rule: GraphGroupLayout, padding: NonNullable<GraphLayoutOptions['groupPadding']>, spacing: number, translate: (node: GraphLayoutNode, dx: number, dy: number) => void, origin?: GraphPoint): {
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
};
|
|
@@ -46,6 +46,8 @@ export interface GraphLayout {
|
|
|
46
46
|
bounds: GraphBounds;
|
|
47
47
|
}
|
|
48
48
|
export interface GraphLayoutOptions {
|
|
49
|
+
/** Explicit packing of a group's direct children; independent of global direction and edges. */
|
|
50
|
+
groupLayouts?: Readonly<Record<string, GraphGroupLayout>>;
|
|
49
51
|
/** Clearance around routing obstacles in world units. Defaults to 4; never changes node geometry. */
|
|
50
52
|
edgeClearance?: number;
|
|
51
53
|
/** Desired width/height when packing disconnected objects, including group members. */
|
|
@@ -72,6 +74,12 @@ export interface GraphLayoutOptions {
|
|
|
72
74
|
position: GraphPoint;
|
|
73
75
|
};
|
|
74
76
|
}
|
|
77
|
+
export interface GraphGroupLayout {
|
|
78
|
+
/** Row fills left to right; column fills top to bottom. Omitted rules retain automatic layout. */
|
|
79
|
+
flow: 'row' | 'column';
|
|
80
|
+
/** Positive integer maximum per row/column. Omit for a single row/column. */
|
|
81
|
+
maxPerLine?: number;
|
|
82
|
+
}
|
|
75
83
|
export type GraphObjectRef = {
|
|
76
84
|
kind: 'node' | 'edge';
|
|
77
85
|
id: string;
|