@floegence/floe-webapp-core 0.86.21 → 0.86.23
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/assets/layout-worker-CFMp3t5w.js +1952 -0
- package/dist/components/graph/GraphCanvas.d.ts +1 -1
- package/dist/components/graph/GraphCanvas.js +107 -104
- package/dist/components/graph/GraphMinimap.d.ts +2 -0
- package/dist/components/graph/GraphMinimap.js +30 -30
- package/dist/components/graph/engine.d.ts +5 -1
- package/dist/components/graph/engine.js +42 -26
- package/dist/components/graph/group-layout.d.ts +6 -0
- package/dist/components/graph/layout.d.ts +3 -1
- package/dist/components/graph/routing.d.ts +1 -1
- package/dist/components/graph/types.d.ts +11 -0
- package/package.json +1 -1
- package/dist/assets/layout-worker-BK6m515B.js +0 -1875
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { ELK } from 'elkjs/lib/elk-api';
|
|
2
|
-
import type { GraphInput, GraphLayout, GraphLayoutOptions } from './types';
|
|
2
|
+
import type { GraphInput, GraphEdge, GraphLayout, GraphLayoutEdge, GraphLayoutOptions, GraphRoutingOptions } from './types';
|
|
3
3
|
export declare function validateGraphInput(input: GraphInput): void;
|
|
4
4
|
/** Normalizes geometry around the supplied ELK engine; browser layout runs in its worker. */
|
|
5
5
|
export declare function computeGraphLayout(input: GraphInput, options: GraphLayoutOptions, engine: Pick<ELK, 'layout'>): Promise<GraphLayout>;
|
|
6
|
+
/** Route an edge subset against authoritative fixed geometry without running placement. */
|
|
7
|
+
export declare function computeGraphRoutes(geometry: Pick<GraphLayout, 'nodes' | 'bounds'>, edges: readonly GraphEdge[], options?: GraphRoutingOptions): Promise<readonly GraphLayoutEdge[]>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { GraphLayout, GraphLayoutOptions } from './types';
|
|
2
2
|
/** Joint orthogonal routing through the final rectangular geometry. */
|
|
3
|
-
export declare function routeGraphGeometry(layout: GraphLayout, options?: Pick<GraphLayoutOptions, 'edgeClearance'>): Promise<GraphLayout>;
|
|
3
|
+
export declare function routeGraphGeometry(layout: GraphLayout, options?: Pick<GraphLayoutOptions, 'edgeClearance' | 'routing'>): Promise<GraphLayout>;
|
|
@@ -46,6 +46,10 @@ export interface GraphLayout {
|
|
|
46
46
|
bounds: GraphBounds;
|
|
47
47
|
}
|
|
48
48
|
export interface GraphLayoutOptions {
|
|
49
|
+
/** Keep topology for placement while deferring final paths to engine.route. Defaults to all. */
|
|
50
|
+
routing?: 'all' | 'none';
|
|
51
|
+
/** Explicit packing of a group's direct children; independent of global direction and edges. */
|
|
52
|
+
groupLayouts?: Readonly<Record<string, GraphGroupLayout>>;
|
|
49
53
|
/** Clearance around routing obstacles in world units. Defaults to 4; never changes node geometry. */
|
|
50
54
|
edgeClearance?: number;
|
|
51
55
|
/** Desired width/height when packing disconnected objects, including group members. */
|
|
@@ -72,6 +76,13 @@ export interface GraphLayoutOptions {
|
|
|
72
76
|
position: GraphPoint;
|
|
73
77
|
};
|
|
74
78
|
}
|
|
79
|
+
export type GraphRoutingOptions = Pick<GraphLayoutOptions, 'edgeClearance'>;
|
|
80
|
+
export interface GraphGroupLayout {
|
|
81
|
+
/** Row fills left to right; column fills top to bottom. Omitted rules retain automatic layout. */
|
|
82
|
+
flow: 'row' | 'column';
|
|
83
|
+
/** Positive integer maximum per row/column. Omit for a single row/column. */
|
|
84
|
+
maxPerLine?: number;
|
|
85
|
+
}
|
|
75
86
|
export type GraphObjectRef = {
|
|
76
87
|
kind: 'node' | 'edge';
|
|
77
88
|
id: string;
|