@html-graph/html-graph 7.5.0 → 7.7.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 +14 -2
- package/dist/html-graph.js +708 -686
- package/dist/html-graph.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/html-graph.d.ts
CHANGED
|
@@ -43,7 +43,11 @@ declare interface AddPortRequest {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
export declare interface AnimatedLayoutAlgorithm {
|
|
46
|
-
|
|
46
|
+
/**
|
|
47
|
+
* TODO: v8
|
|
48
|
+
* make single parameter object
|
|
49
|
+
*/
|
|
50
|
+
calculateNextCoordinates(graph: Graph, dt: number, viewport: Viewport): ReadonlyMap<Identifier, Point>;
|
|
47
51
|
}
|
|
48
52
|
|
|
49
53
|
export declare interface AnimatedLayoutConfig {
|
|
@@ -745,7 +749,11 @@ export declare class InteractiveEdgeShape implements StructuredEdgeShape {
|
|
|
745
749
|
}
|
|
746
750
|
|
|
747
751
|
export declare interface LayoutAlgorithm {
|
|
748
|
-
|
|
752
|
+
/**
|
|
753
|
+
* TODO: v8
|
|
754
|
+
* make single parameter object
|
|
755
|
+
*/
|
|
756
|
+
calculateCoordinates(graph: Graph, viewport: Viewport): ReadonlyMap<Identifier, Point>;
|
|
749
757
|
}
|
|
750
758
|
|
|
751
759
|
declare type LayoutAlgorithmConfig = {
|
|
@@ -1049,6 +1057,8 @@ export declare class Viewport {
|
|
|
1049
1057
|
getViewportMatrix(): TransformState;
|
|
1050
1058
|
getContentMatrix(): TransformState;
|
|
1051
1059
|
getDimensions(): Dimensions;
|
|
1060
|
+
createContentCoords(viewportCoords: Point): Point;
|
|
1061
|
+
createViewportCoords(contentCoords: Point): Point;
|
|
1052
1062
|
}
|
|
1053
1063
|
|
|
1054
1064
|
declare class ViewportStore {
|
|
@@ -1068,6 +1078,8 @@ declare class ViewportStore {
|
|
|
1068
1078
|
patchViewportMatrix(matrix: PatchTransformRequest): void;
|
|
1069
1079
|
patchContentMatrix(matrix: PatchTransformRequest): void;
|
|
1070
1080
|
getDimensions(): Dimensions;
|
|
1081
|
+
createContentCoords(viewportCoords: Point): Point;
|
|
1082
|
+
createViewportCoords(contentCoords: Point): Point;
|
|
1071
1083
|
destroy(): void;
|
|
1072
1084
|
}
|
|
1073
1085
|
|