feat(nodes): add nodeOrigin prop

This commit is contained in:
moklick
2022-08-17 11:43:52 +02:00
parent d2d4b76e65
commit ab14be02f4
10 changed files with 75 additions and 7 deletions
@@ -13,6 +13,7 @@ import {
ReactFlowProps,
Viewport,
CoordinateExtent,
NodeOrigin,
} from '../../types';
export interface GraphViewProps
@@ -35,6 +36,7 @@ export interface GraphViewProps
defaultViewport: Viewport;
rfId: string;
disableKeyboardA11y: boolean;
nodeOrigin: NodeOrigin;
}
const GraphView = ({
@@ -96,6 +98,7 @@ const GraphView = ({
noPanClassName,
elevateEdgesOnSelect,
disableKeyboardA11y,
nodeOrigin,
rfId,
}: GraphViewProps) => {
useOnInitHandler(onInit);
@@ -171,6 +174,7 @@ const GraphView = ({
noPanClassName={noPanClassName}
noDragClassName={noDragClassName}
disableKeyboardA11y={disableKeyboardA11y}
nodeOrigin={nodeOrigin}
rfId={rfId}
/>
</ViewportWrapper>