@html-graph/html-graph 8.8.0 → 8.10.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 +7 -1
- package/dist/html-graph.js +1599 -1413
- package/dist/html-graph.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/html-graph.d.ts
CHANGED
|
@@ -260,6 +260,7 @@ export declare interface CanvasDefaults {
|
|
|
260
260
|
readonly focus?: {
|
|
261
261
|
readonly contentOffset?: number;
|
|
262
262
|
readonly minContentScale?: number;
|
|
263
|
+
readonly animationDuration?: number;
|
|
263
264
|
};
|
|
264
265
|
}
|
|
265
266
|
|
|
@@ -269,6 +270,7 @@ export declare class CanvasError extends Error {
|
|
|
269
270
|
|
|
270
271
|
export declare interface CenterConfig {
|
|
271
272
|
readonly contentScale?: number | undefined;
|
|
273
|
+
readonly animationDuration?: number | undefined;
|
|
272
274
|
}
|
|
273
275
|
|
|
274
276
|
export declare type CenterFn = (width: number, height: number) => Point;
|
|
@@ -431,6 +433,7 @@ export declare type FocusConfig = {
|
|
|
431
433
|
readonly contentOffset?: number | undefined;
|
|
432
434
|
readonly nodes?: Iterable<Identifier> | undefined;
|
|
433
435
|
readonly minContentScale?: number | undefined;
|
|
436
|
+
readonly animationDuration?: number | undefined;
|
|
434
437
|
} | Iterable<Identifier>;
|
|
435
438
|
|
|
436
439
|
export declare class Graph {
|
|
@@ -1032,13 +1035,15 @@ declare class ViewportController {
|
|
|
1032
1035
|
private readonly graphStore;
|
|
1033
1036
|
private readonly viewportStore;
|
|
1034
1037
|
private readonly params;
|
|
1035
|
-
|
|
1038
|
+
private readonly win;
|
|
1039
|
+
constructor(graphStore: GraphStore, viewportStore: ViewportStore, params: ViewportControllerParams, win: Window);
|
|
1036
1040
|
patchViewportMatrix(request: PatchMatrixRequest): void;
|
|
1037
1041
|
patchContentMatrix(request: PatchMatrixRequest): void;
|
|
1038
1042
|
center(target: Point, config?: CenterConfig | undefined): void;
|
|
1039
1043
|
focus(config?: FocusConfig | undefined): void;
|
|
1040
1044
|
destroy(): void;
|
|
1041
1045
|
private navigate;
|
|
1046
|
+
private animateNavigation;
|
|
1042
1047
|
}
|
|
1043
1048
|
|
|
1044
1049
|
declare interface ViewportControllerParams {
|
|
@@ -1046,6 +1051,7 @@ declare interface ViewportControllerParams {
|
|
|
1046
1051
|
readonly contentOffset: number;
|
|
1047
1052
|
readonly minContentScale: number;
|
|
1048
1053
|
readonly schedule: ScheduleFn;
|
|
1054
|
+
readonly animationDuration: number;
|
|
1049
1055
|
};
|
|
1050
1056
|
}
|
|
1051
1057
|
|