import React, { memo, FC, CSSProperties } from 'react'; import { Handle, NodeProps, Position } from 'reactflow'; const infoStyle: CSSProperties = { fontSize: 11 }; const idStyle: CSSProperties = { fontSize: 10, color: '#888899', position: 'absolute', top: 2, left: 2, }; const DebugNode: FC = ({ zIndex, xPos, yPos, id }) => { return ( <>
{id}
x:{Math.round(xPos || 0)} y:{Math.round(yPos || 0)} z:{zIndex}
); }; export default memo(DebugNode);