refactor(provider): rename fitviewoptions to initialfitviewoptions

This commit is contained in:
moklick
2025-04-15 13:09:19 +02:00
parent 4236adbc46
commit 9878e93601
2 changed files with 4 additions and 4 deletions
@@ -22,9 +22,9 @@ export type ReactFlowProviderProps = {
/** When `true`, the flow will be zoomed and panned to fit all the nodes initially provided. */
fitView?: boolean;
/**
* You can provide an object of options to customize the fitView behavior.
* You can provide an object of options to customize the initial fitView behavior.
*/
fitViewOptions?: FitViewOptions;
initialFitViewOptions?: FitViewOptions;
/** Initial minimum zoom level */
initialMinZoom?: number;
/** Initial maximum zoom level */
@@ -93,7 +93,7 @@ export function ReactFlowProvider({
initialHeight: height,
initialMinZoom: minZoom,
initialMaxZoom: maxZoom,
fitViewOptions,
initialFitViewOptions: fitViewOptions,
fitView,
nodeOrigin,
nodeExtent,
@@ -53,7 +53,7 @@ export function Wrapper({
initialWidth={width}
initialHeight={height}
fitView={fitView}
fitViewOptions={fitViewOptions}
initialFitViewOptions={fitViewOptions}
initialMinZoom={minZoom}
initialMaxZoom={maxZoom}
nodeOrigin={nodeOrigin}