@intentic/extension-ui 1.238.0 → 1.239.0
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.
|
@@ -10,6 +10,9 @@ declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_se
|
|
|
10
10
|
minZoom?: number;
|
|
11
11
|
readableZoom?: number;
|
|
12
12
|
magnify?: boolean;
|
|
13
|
+
edgeShape?: `curve` | `elbow`;
|
|
14
|
+
rankSep?: number;
|
|
15
|
+
nodeSep?: number;
|
|
13
16
|
} & {
|
|
14
17
|
modelValue?: string | undefined;
|
|
15
18
|
}) & {
|
|
@@ -3,6 +3,8 @@ export interface DagNode<T = unknown> {
|
|
|
3
3
|
readonly data: T;
|
|
4
4
|
readonly tooltip?: string;
|
|
5
5
|
readonly dimmed?: boolean;
|
|
6
|
+
readonly width?: number;
|
|
7
|
+
readonly height?: number;
|
|
6
8
|
}
|
|
7
9
|
export interface DagEdge {
|
|
8
10
|
readonly from: string;
|
|
@@ -16,9 +18,18 @@ export interface DagLayoutOptions {
|
|
|
16
18
|
readonly direction: `LR` | `TB`;
|
|
17
19
|
readonly nodeWidth: number;
|
|
18
20
|
readonly nodeHeight: number;
|
|
21
|
+
readonly rankSep?: number;
|
|
22
|
+
readonly nodeSep?: number;
|
|
19
23
|
}
|
|
20
24
|
export declare const layoutSignature: (nodes: readonly DagNode<never>[], edges: readonly DagEdge[], options: DagLayoutOptions) => string;
|
|
21
|
-
export
|
|
22
|
-
x: number;
|
|
23
|
-
y: number;
|
|
24
|
-
}
|
|
25
|
+
export interface DagPoint {
|
|
26
|
+
readonly x: number;
|
|
27
|
+
readonly y: number;
|
|
28
|
+
}
|
|
29
|
+
export interface DagPlacement {
|
|
30
|
+
readonly nodes: ReadonlyMap<string, DagPoint>;
|
|
31
|
+
readonly lanes: ReadonlyMap<string, readonly DagPoint[]>;
|
|
32
|
+
}
|
|
33
|
+
export declare const laneKey: (from: string, to: string) => string;
|
|
34
|
+
export declare const layoutDag: (nodes: readonly DagNode<never>[], edges: readonly DagEdge[], options: DagLayoutOptions) => DagPlacement;
|
|
35
|
+
export declare const lanePath: (from: DagPoint, to: DagPoint, via?: readonly DagPoint[], radius?: number) => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intentic/extension-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.239.0",
|
|
4
4
|
"description": "The UI kit intentic extensions render with, host-provided at runtime (the app's own components via the import map), so extension UI is always native to the shell",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|