@html-graph/html-graph 8.9.0 → 8.11.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 -2
- package/dist/html-graph.js +237 -208
- package/dist/html-graph.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/html-graph.d.ts
CHANGED
|
@@ -258,8 +258,14 @@ export declare interface CanvasDefaults {
|
|
|
258
258
|
readonly priority?: Priority;
|
|
259
259
|
};
|
|
260
260
|
readonly focus?: {
|
|
261
|
+
readonly contentPadding?: number;
|
|
262
|
+
/**
|
|
263
|
+
* @deprecated
|
|
264
|
+
* use contentPadding instead
|
|
265
|
+
*/
|
|
261
266
|
readonly contentOffset?: number;
|
|
262
267
|
readonly minContentScale?: number;
|
|
268
|
+
readonly animationDuration?: number;
|
|
263
269
|
};
|
|
264
270
|
}
|
|
265
271
|
|
|
@@ -269,6 +275,7 @@ export declare class CanvasError extends Error {
|
|
|
269
275
|
|
|
270
276
|
export declare interface CenterConfig {
|
|
271
277
|
readonly contentScale?: number | undefined;
|
|
278
|
+
readonly animationDuration?: number | undefined;
|
|
272
279
|
}
|
|
273
280
|
|
|
274
281
|
export declare type CenterFn = (width: number, height: number) => Point;
|
|
@@ -428,9 +435,15 @@ export declare class EventSubject<T> implements EventEmitter<T>, EventHandler<T>
|
|
|
428
435
|
}
|
|
429
436
|
|
|
430
437
|
export declare type FocusConfig = {
|
|
438
|
+
readonly contentPadding?: number | undefined;
|
|
439
|
+
/**
|
|
440
|
+
* @deprecated
|
|
441
|
+
* use contentPadding instead
|
|
442
|
+
*/
|
|
431
443
|
readonly contentOffset?: number | undefined;
|
|
432
444
|
readonly nodes?: Iterable<Identifier> | undefined;
|
|
433
445
|
readonly minContentScale?: number | undefined;
|
|
446
|
+
readonly animationDuration?: number | undefined;
|
|
434
447
|
} | Iterable<Identifier>;
|
|
435
448
|
|
|
436
449
|
export declare class Graph {
|
|
@@ -1032,20 +1045,23 @@ declare class ViewportController {
|
|
|
1032
1045
|
private readonly graphStore;
|
|
1033
1046
|
private readonly viewportStore;
|
|
1034
1047
|
private readonly params;
|
|
1035
|
-
|
|
1048
|
+
private readonly win;
|
|
1049
|
+
constructor(graphStore: GraphStore, viewportStore: ViewportStore, params: ViewportControllerParams, win: Window);
|
|
1036
1050
|
patchViewportMatrix(request: PatchMatrixRequest): void;
|
|
1037
1051
|
patchContentMatrix(request: PatchMatrixRequest): void;
|
|
1038
1052
|
center(target: Point, config?: CenterConfig | undefined): void;
|
|
1039
1053
|
focus(config?: FocusConfig | undefined): void;
|
|
1040
1054
|
destroy(): void;
|
|
1041
1055
|
private navigate;
|
|
1056
|
+
private animateNavigation;
|
|
1042
1057
|
}
|
|
1043
1058
|
|
|
1044
1059
|
declare interface ViewportControllerParams {
|
|
1045
1060
|
readonly focus: {
|
|
1046
|
-
readonly
|
|
1061
|
+
readonly contentPadding: number;
|
|
1047
1062
|
readonly minContentScale: number;
|
|
1048
1063
|
readonly schedule: ScheduleFn;
|
|
1064
|
+
readonly animationDuration: number;
|
|
1049
1065
|
};
|
|
1050
1066
|
}
|
|
1051
1067
|
|