@html-graph/html-graph 8.1.0 → 8.3.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.
- package/dist/html-graph.d.ts +31 -19
- package/dist/html-graph.js +1117 -1070
- package/dist/html-graph.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/html-graph.d.ts
CHANGED
|
@@ -46,6 +46,26 @@ export declare interface AnimatedLayoutAlgorithm {
|
|
|
46
46
|
calculateNextCoordinates(params: AnimatedLayoutAlgorithmParams): ReadonlyMap<Identifier, Point>;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
+
export declare type AnimatedLayoutAlgorithmConfig = {
|
|
50
|
+
readonly type: "custom";
|
|
51
|
+
readonly instance: AnimatedLayoutAlgorithm;
|
|
52
|
+
} | {
|
|
53
|
+
readonly type?: "forceDirected";
|
|
54
|
+
readonly maxTimeDeltaSec?: number;
|
|
55
|
+
readonly nodeCharge?: number;
|
|
56
|
+
readonly nodeMass?: number;
|
|
57
|
+
readonly edgeEquilibriumLength?: number;
|
|
58
|
+
readonly edgeStiffness?: number;
|
|
59
|
+
readonly seed?: string;
|
|
60
|
+
readonly convergenceVelocity?: number;
|
|
61
|
+
readonly maxForce?: number;
|
|
62
|
+
readonly nodeForceCoefficient?: number;
|
|
63
|
+
readonly barnesHut?: {
|
|
64
|
+
readonly theta?: number;
|
|
65
|
+
readonly areaRadiusThreshold?: number;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
|
|
49
69
|
export declare interface AnimatedLayoutAlgorithmParams {
|
|
50
70
|
readonly graph: Graph;
|
|
51
71
|
readonly dt: number;
|
|
@@ -53,25 +73,12 @@ export declare interface AnimatedLayoutAlgorithmParams {
|
|
|
53
73
|
}
|
|
54
74
|
|
|
55
75
|
export declare interface AnimatedLayoutConfig {
|
|
56
|
-
readonly algorithm?:
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
readonly
|
|
61
|
-
|
|
62
|
-
readonly nodeCharge?: number;
|
|
63
|
-
readonly nodeMass?: number;
|
|
64
|
-
readonly edgeEquilibriumLength?: number;
|
|
65
|
-
readonly edgeStiffness?: number;
|
|
66
|
-
readonly seed?: string;
|
|
67
|
-
readonly convergenceVelocity?: number;
|
|
68
|
-
readonly maxForce?: number;
|
|
69
|
-
readonly nodeForceCoefficient?: number;
|
|
70
|
-
readonly barnesHut?: {
|
|
71
|
-
readonly theta?: number;
|
|
72
|
-
readonly areaRadiusThreshold?: number;
|
|
73
|
-
};
|
|
74
|
-
} | undefined;
|
|
76
|
+
readonly algorithm?: AnimatedLayoutAlgorithmConfig | undefined;
|
|
77
|
+
readonly staticNodeResolver?: ((nodeId: Identifier) => boolean) | undefined;
|
|
78
|
+
readonly events?: {
|
|
79
|
+
readonly onBeforeApplied?: () => void;
|
|
80
|
+
readonly onAfterApplied?: () => void;
|
|
81
|
+
};
|
|
75
82
|
}
|
|
76
83
|
|
|
77
84
|
export declare type ArrowRenderer = (params: ArrowRenderingParams) => string;
|
|
@@ -785,6 +792,11 @@ export declare type LayoutApplyOn = {
|
|
|
785
792
|
export declare interface LayoutConfig {
|
|
786
793
|
readonly algorithm?: LayoutAlgorithmConfig | undefined;
|
|
787
794
|
readonly applyOn?: LayoutApplyOn | undefined;
|
|
795
|
+
readonly staticNodeResolver?: (nodeId: Identifier) => boolean;
|
|
796
|
+
readonly events?: {
|
|
797
|
+
readonly onBeforeApplied?: () => void;
|
|
798
|
+
readonly onAfterApplied?: () => void;
|
|
799
|
+
};
|
|
788
800
|
}
|
|
789
801
|
|
|
790
802
|
export declare type MarkNodePortRequest = {
|