@html-graph/html-graph 8.10.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.
@@ -258,6 +258,11 @@ 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;
263
268
  readonly animationDuration?: number;
@@ -430,6 +435,11 @@ export declare class EventSubject<T> implements EventEmitter<T>, EventHandler<T>
430
435
  }
431
436
 
432
437
  export declare type FocusConfig = {
438
+ readonly contentPadding?: number | undefined;
439
+ /**
440
+ * @deprecated
441
+ * use contentPadding instead
442
+ */
433
443
  readonly contentOffset?: number | undefined;
434
444
  readonly nodes?: Iterable<Identifier> | undefined;
435
445
  readonly minContentScale?: number | undefined;
@@ -1048,7 +1058,7 @@ declare class ViewportController {
1048
1058
 
1049
1059
  declare interface ViewportControllerParams {
1050
1060
  readonly focus: {
1051
- readonly contentOffset: number;
1061
+ readonly contentPadding: number;
1052
1062
  readonly minContentScale: number;
1053
1063
  readonly schedule: ScheduleFn;
1054
1064
  readonly animationDuration: number;