@html-graph/html-graph 8.2.0 → 8.4.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 +12 -0
- package/dist/html-graph.js +656 -499
- package/dist/html-graph.umd.cjs +1 -1
- package/package.json +2 -2
package/dist/html-graph.d.ts
CHANGED
|
@@ -75,6 +75,10 @@ export declare interface AnimatedLayoutAlgorithmParams {
|
|
|
75
75
|
export declare interface AnimatedLayoutConfig {
|
|
76
76
|
readonly algorithm?: AnimatedLayoutAlgorithmConfig | undefined;
|
|
77
77
|
readonly staticNodeResolver?: ((nodeId: Identifier) => boolean) | undefined;
|
|
78
|
+
readonly events?: {
|
|
79
|
+
readonly onBeforeApplied?: () => void;
|
|
80
|
+
readonly onAfterApplied?: () => void;
|
|
81
|
+
};
|
|
78
82
|
}
|
|
79
83
|
|
|
80
84
|
export declare type ArrowRenderer = (params: ArrowRenderingParams) => string;
|
|
@@ -772,6 +776,10 @@ declare type LayoutAlgorithmConfig = {
|
|
|
772
776
|
readonly theta?: number;
|
|
773
777
|
readonly areaRadiusThreshold?: number;
|
|
774
778
|
};
|
|
779
|
+
} | {
|
|
780
|
+
readonly type: "hierarchical";
|
|
781
|
+
readonly layerWidth?: number;
|
|
782
|
+
readonly layerSpace?: number;
|
|
775
783
|
};
|
|
776
784
|
|
|
777
785
|
export declare interface LayoutAlgorithmParams {
|
|
@@ -789,6 +797,10 @@ export declare interface LayoutConfig {
|
|
|
789
797
|
readonly algorithm?: LayoutAlgorithmConfig | undefined;
|
|
790
798
|
readonly applyOn?: LayoutApplyOn | undefined;
|
|
791
799
|
readonly staticNodeResolver?: (nodeId: Identifier) => boolean;
|
|
800
|
+
readonly events?: {
|
|
801
|
+
readonly onBeforeApplied?: () => void;
|
|
802
|
+
readonly onAfterApplied?: () => void;
|
|
803
|
+
};
|
|
792
804
|
}
|
|
793
805
|
|
|
794
806
|
export declare type MarkNodePortRequest = {
|