@html-graph/html-graph 7.1.1 → 7.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 +18 -0
- package/dist/html-graph.js +1390 -957
- package/dist/html-graph.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/html-graph.d.ts
CHANGED
|
@@ -60,6 +60,12 @@ export declare interface AnimatedLayoutConfig {
|
|
|
60
60
|
readonly seed?: string;
|
|
61
61
|
readonly effectiveDistance?: number;
|
|
62
62
|
readonly convergenceDelta?: number;
|
|
63
|
+
readonly maxForce?: number;
|
|
64
|
+
readonly nodeForceCoefficient?: number;
|
|
65
|
+
readonly barnesHut?: {
|
|
66
|
+
readonly theta?: number;
|
|
67
|
+
readonly areaRadiusThreshold?: number;
|
|
68
|
+
};
|
|
63
69
|
} | undefined;
|
|
64
70
|
}
|
|
65
71
|
|
|
@@ -467,6 +473,7 @@ export declare interface DraggableNodesConfig {
|
|
|
467
473
|
readonly mouseUpEventVerifier?: MouseEventVerifier;
|
|
468
474
|
};
|
|
469
475
|
readonly events?: {
|
|
476
|
+
readonly onNodeDragStarted?: (nodeId: Identifier) => void;
|
|
470
477
|
readonly onNodeDrag?: (nodeId: Identifier) => void;
|
|
471
478
|
readonly onNodeDragFinished?: (nodeId: Identifier) => void;
|
|
472
479
|
};
|
|
@@ -738,8 +745,19 @@ declare type LayoutAlgorithmConfig = {
|
|
|
738
745
|
readonly nodeMass?: number;
|
|
739
746
|
readonly edgeEquilibriumLength?: number;
|
|
740
747
|
readonly edgeStiffness?: number;
|
|
748
|
+
/**
|
|
749
|
+
* @deprecated
|
|
750
|
+
* this parameter results in slow convergence
|
|
751
|
+
* use convergenceDelta instead
|
|
752
|
+
*/
|
|
741
753
|
readonly effectiveDistance?: number;
|
|
742
754
|
readonly convergenceDelta?: number;
|
|
755
|
+
readonly maxForce?: number;
|
|
756
|
+
readonly nodeForceCoefficient?: number;
|
|
757
|
+
readonly barnesHut?: {
|
|
758
|
+
readonly theta?: number;
|
|
759
|
+
readonly areaRadiusThreshold?: number;
|
|
760
|
+
};
|
|
743
761
|
};
|
|
744
762
|
|
|
745
763
|
export declare type LayoutApplyOn = {
|