refactor(provider): rename fitviewoptions to initialfitviewoptions
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user