import type { LinePoint } from '@openmaic/dsl'; type NonEmptyLinePoint = Exclude; interface LinePointMarkerProps { id: string; position: 'start' | 'end'; type: NonEmptyLinePoint; baseSize: number; color?: string; } const pathMap: Record = { dot: 'm0 5a5 5 0 1 0 10 0a5 5 0 1 0 -10 0z', arrow: 'M0,0 L10,5 0,10 Z', }; const rotateMap: Record = { 'arrow-start': 180, 'arrow-end': 0, }; export function LinePointMarker({ id, position, type, baseSize, color }: LinePointMarkerProps) { const path = pathMap[type]; const rotate = rotateMap[`${type}-${position}`] || 0; const size = baseSize < 2 ? 2 : baseSize; return ( ); }