Skip to content

Commit

Permalink
Updated dist
Browse files Browse the repository at this point in the history
  • Loading branch information
Paweł Jaśpiński committed Aug 18, 2021
1 parent 395e937 commit 148bb0f
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 2 deletions.
2 changes: 2 additions & 0 deletions dist/ReactFlow.esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/ReactFlow.esm.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/ReactFlow.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/ReactFlow.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ export declare type FlowExportObject<T = any> = {
zoom: number;
};
export declare type FitViewFunc = (fitViewOptions?: FitViewParams) => void;
export declare type FitViewToDimensionsFunc = (fitViewToDimensionsOptions?: FitViewToDimensionsParams) => void;
export declare type ProjectFunc = (position: XYPosition) => XYPosition;
export declare type ToObjectFunc<T = any> = () => FlowExportObject<T>;
export declare type OnLoadParams<T = any> = {
Expand Down Expand Up @@ -339,6 +340,7 @@ export interface ZoomPanHelperFunctions {
zoomTo: (zoomLevel: number) => void;
transform: (transform: FlowTransform) => void;
fitView: FitViewFunc;
fitViewToDimensions: FitViewToDimensionsFunc;
setCenter: (x: number, y: number, zoom?: number) => void;
fitBounds: (bounds: Rect, padding?: number) => void;
project: (position: XYPosition) => XYPosition;
Expand Down
1 change: 1 addition & 0 deletions src/hooks/useZoomPanHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const initialZoomPanHelper: ZoomPanHelperFunctions = {
zoomTo: (_: number) => {},
transform: (_: FlowTransform) => {},
fitView: (_: FitViewParams = { padding: DEFAULT_PADDING, includeHiddenNodes: false }) => {},
fitViewToDimensions: (_: FitViewToDimensionsParams = { height: 0, width: 0, padding: DEFAULT_PADDING, includeHiddenNodes: false }) => {},
setCenter: (_: number, __: number) => {},
fitBounds: (_: Rect) => {},
project: (position: XYPosition) => position,
Expand Down
2 changes: 2 additions & 0 deletions src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ export type FlowExportObject<T = any> = {
};

export type FitViewFunc = (fitViewOptions?: FitViewParams) => void;
export type FitViewToDimensionsFunc = (fitViewToDimensionsOptions?: FitViewToDimensionsParams) => void;
export type ProjectFunc = (position: XYPosition) => XYPosition;
export type ToObjectFunc<T = any> = () => FlowExportObject<T>;

Expand Down Expand Up @@ -382,6 +383,7 @@ export interface ZoomPanHelperFunctions {
zoomTo: (zoomLevel: number) => void;
transform: (transform: FlowTransform) => void;
fitView: FitViewFunc;
fitViewToDimensions: FitViewToDimensionsFunc;
setCenter: (x: number, y: number, zoom?: number) => void;
fitBounds: (bounds: Rect, padding?: number) => void;
project: (position: XYPosition) => XYPosition;
Expand Down

0 comments on commit 148bb0f

Please sign in to comment.