@html-graph/html-graph 7.3.0 → 7.5.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 +33 -3
- package/dist/html-graph.js +312 -256
- package/dist/html-graph.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/html-graph.d.ts
CHANGED
|
@@ -58,8 +58,17 @@ export declare interface AnimatedLayoutConfig {
|
|
|
58
58
|
readonly edgeEquilibriumLength?: number;
|
|
59
59
|
readonly edgeStiffness?: number;
|
|
60
60
|
readonly seed?: string;
|
|
61
|
+
/**
|
|
62
|
+
* @deprecated
|
|
63
|
+
* use convergenceVelocity instead
|
|
64
|
+
*/
|
|
61
65
|
readonly effectiveDistance?: number;
|
|
66
|
+
/**
|
|
67
|
+
* @deprecated
|
|
68
|
+
* use convergenceVelocity instead
|
|
69
|
+
*/
|
|
62
70
|
readonly convergenceDelta?: number;
|
|
71
|
+
readonly convergenceVelocity?: number;
|
|
63
72
|
readonly maxForce?: number;
|
|
64
73
|
readonly nodeForceCoefficient?: number;
|
|
65
74
|
readonly barnesHut?: {
|
|
@@ -315,6 +324,7 @@ export declare class CanvasBuilder {
|
|
|
315
324
|
* builds final canvas
|
|
316
325
|
*/
|
|
317
326
|
build(): Canvas;
|
|
327
|
+
private createHtmlView;
|
|
318
328
|
}
|
|
319
329
|
|
|
320
330
|
export declare class CanvasBuilderError extends Error {
|
|
@@ -411,6 +421,11 @@ declare type ConstantPriority = number;
|
|
|
411
421
|
|
|
412
422
|
declare type CustomPriority = PriorityFn;
|
|
413
423
|
|
|
424
|
+
export declare interface Dimensions {
|
|
425
|
+
readonly width: number;
|
|
426
|
+
readonly height: number;
|
|
427
|
+
}
|
|
428
|
+
|
|
414
429
|
export declare interface DirectEdgeParams {
|
|
415
430
|
readonly color?: string | undefined;
|
|
416
431
|
readonly width?: number | undefined;
|
|
@@ -747,11 +762,15 @@ declare type LayoutAlgorithmConfig = {
|
|
|
747
762
|
readonly edgeStiffness?: number;
|
|
748
763
|
/**
|
|
749
764
|
* @deprecated
|
|
750
|
-
*
|
|
751
|
-
* use convergenceDelta instead
|
|
765
|
+
* use convergenceVelocity instead
|
|
752
766
|
*/
|
|
753
767
|
readonly effectiveDistance?: number;
|
|
768
|
+
/**
|
|
769
|
+
* @deprecated
|
|
770
|
+
* use convergenceVelocity instead
|
|
771
|
+
*/
|
|
754
772
|
readonly convergenceDelta?: number;
|
|
773
|
+
readonly convergenceVelocity?: number;
|
|
755
774
|
readonly maxForce?: number;
|
|
756
775
|
readonly nodeForceCoefficient?: number;
|
|
757
776
|
readonly barnesHut?: {
|
|
@@ -1023,22 +1042,33 @@ declare type VerticalEdgeShapeConfig = {
|
|
|
1023
1042
|
|
|
1024
1043
|
export declare class Viewport {
|
|
1025
1044
|
private readonly viewportStore;
|
|
1045
|
+
readonly onBeforeUpdated: EventHandler<void>;
|
|
1026
1046
|
readonly onAfterUpdated: EventHandler<void>;
|
|
1047
|
+
readonly onAfterResize: EventHandler<void>;
|
|
1027
1048
|
constructor(viewportStore: ViewportStore);
|
|
1028
1049
|
getViewportMatrix(): TransformState;
|
|
1029
1050
|
getContentMatrix(): TransformState;
|
|
1051
|
+
getDimensions(): Dimensions;
|
|
1030
1052
|
}
|
|
1031
1053
|
|
|
1032
1054
|
declare class ViewportStore {
|
|
1055
|
+
private readonly host;
|
|
1033
1056
|
private viewportMatrix;
|
|
1034
1057
|
private contentMatrix;
|
|
1058
|
+
private readonly beforeUpdateEmitter;
|
|
1059
|
+
readonly onBeforeUpdated: EventHandler<void>;
|
|
1035
1060
|
private readonly afterUpdateEmitter;
|
|
1036
1061
|
readonly onAfterUpdated: EventHandler<void>;
|
|
1037
|
-
|
|
1062
|
+
private readonly afterResizeEmitter;
|
|
1063
|
+
readonly onAfterResize: EventHandler<void>;
|
|
1064
|
+
private observer;
|
|
1065
|
+
constructor(host: HTMLElement);
|
|
1038
1066
|
getViewportMatrix(): TransformState;
|
|
1039
1067
|
getContentMatrix(): TransformState;
|
|
1040
1068
|
patchViewportMatrix(matrix: PatchTransformRequest): void;
|
|
1041
1069
|
patchContentMatrix(matrix: PatchTransformRequest): void;
|
|
1070
|
+
getDimensions(): Dimensions;
|
|
1071
|
+
destroy(): void;
|
|
1042
1072
|
}
|
|
1043
1073
|
|
|
1044
1074
|
export declare interface ViewportTransformConfig {
|