FitViewOptions
When calling fitView
these options can be used to customize the behaviour. For example, the duration
option can be used to transform the viewport smoothly over a given amount of time.
export type FitViewOptions = {
padding?: number;
includeHiddenNodes?: boolean;
minZoom?: number;
maxZoom?: number;
duration?: number;
nodes?: (Node | { id: Node['id'] })[];
};
Fields
Name | Type |
---|---|
# padding? | number |
# includeHiddenNodes? | boolean |
# minZoom? | number |
# maxZoom? | number |
# duration? | number |
# nodes? |