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. */ /** When `true`, the flow will be zoomed and panned to fit all the nodes initially provided. */
fitView?: boolean; 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 */ /** Initial minimum zoom level */
initialMinZoom?: number; initialMinZoom?: number;
/** Initial maximum zoom level */ /** Initial maximum zoom level */
@@ -93,7 +93,7 @@ export function ReactFlowProvider({
initialHeight: height, initialHeight: height,
initialMinZoom: minZoom, initialMinZoom: minZoom,
initialMaxZoom: maxZoom, initialMaxZoom: maxZoom,
fitViewOptions, initialFitViewOptions: fitViewOptions,
fitView, fitView,
nodeOrigin, nodeOrigin,
nodeExtent, nodeExtent,
@@ -53,7 +53,7 @@ export function Wrapper({
initialWidth={width} initialWidth={width}
initialHeight={height} initialHeight={height}
fitView={fitView} fitView={fitView}
fitViewOptions={fitViewOptions} initialFitViewOptions={fitViewOptions}
initialMinZoom={minZoom} initialMinZoom={minZoom}
initialMaxZoom={maxZoom} initialMaxZoom={maxZoom}
nodeOrigin={nodeOrigin} nodeOrigin={nodeOrigin}