import type { ComponentType } from 'react'; import type { EdgeProps, EdgeTypes } from '../../types'; import { BezierEdgeInternal, StraightEdgeInternal, StepEdgeInternal, SmoothStepEdgeInternal, SimpleBezierEdgeInternal, } from '../Edges'; export const builtinEdgeTypes: EdgeTypes = { default: BezierEdgeInternal as ComponentType, straight: StraightEdgeInternal as ComponentType, step: StepEdgeInternal as ComponentType, smoothstep: SmoothStepEdgeInternal as ComponentType, simplebezier: SimpleBezierEdgeInternal as ComponentType, }; export const nullPosition = { sourceX: null, sourceY: null, targetX: null, targetY: null, sourcePosition: null, targetPosition: null, };