From 494eb09a21933fd490c138250b238a61a405e4be Mon Sep 17 00:00:00 2001 From: moklick Date: Sun, 17 Dec 2023 09:37:47 +0100 Subject: [PATCH] chore(examples): cleanup astro --- .../src/components/ReactFlowExample/CustomNode.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/astro-xyflow/src/components/ReactFlowExample/CustomNode.tsx b/examples/astro-xyflow/src/components/ReactFlowExample/CustomNode.tsx index 86aef137..6dc30709 100644 --- a/examples/astro-xyflow/src/components/ReactFlowExample/CustomNode.tsx +++ b/examples/astro-xyflow/src/components/ReactFlowExample/CustomNode.tsx @@ -7,7 +7,7 @@ const sourceHandleStyleB: CSSProperties = { left: 'auto', }; -const CustomNode: FC = ({ data, positionAbsolute }) => { +const CustomNode: FC = ({ data, positionAbsoluteX, positionAbsoluteY }) => { return ( <> @@ -18,7 +18,7 @@ const CustomNode: FC = ({ data, positionAbsolute }) => {
Position:{' '} - {positionAbsolute.x.toFixed(2)},{positionAbsolute.y.toFixed(2)} + {positionAbsoluteX.toFixed(2)},{positionAbsoluteY.toFixed(2)}