import type { Node } from '@antv/x6'; import { STATUS_COLORS } from '../../../constants/statusColors.ts'; import { SPLICE_BORDER_RADIUS } from '../../../constants/sizes.ts'; import type { EntityStatus } from '../../../types/index.ts'; interface SpliceNodeData { name: string; marking: string; id1: string; id2: string; status: EntityStatus; } export function SpliceNode({ node }: { node: Node }) { const data = node.getData() as SpliceNodeData; const colors = STATUS_COLORS[data.status]; const size = node.getSize(); return (
{data.name}
{data.marking && (
{data.marking}
)}
); }