Skip to main content

Exported types

Public TypeScript types from @tisoap/react-flow-smart-edge:

Options and configuration

TypeDescription
GetSmartEdgeOptionsOptions object for getSmartEdge
ConfigureSmartEdgeOptionsOptions for createSmartEdge
SmartEdgeOptionsOptions passed to SmartEdge
SmartEdgePresetPreset name union ("bezier" | "straight" | …)

Editable edges

TypeDescription
SmartEditableEdgeDataShape of edge.data for editable edges
ControlPointDataSingle waypoint: { id, x, y, active }
GetSmartEdgeWaypointsParamsParams for getSmartEdgeWaypoints

Pluggable functions

TypeDescription
SVGDrawFunctionCustom SVG path drawer
SmoothStepOptionsOptions for svgDrawSmoothStepLinePath
PathFindingFunctionCustom pathfinding
FloatingEdgeParamsReturn type of getFloatingEdgeParams

Geometry

TypeDescription
AvoidAreaAlias of React Flow Rect for avoidAreas
Grid, GridNodePathfinding grid types
XYPositionRe-exported from @xyflow/react

Components

TypeDescription
SmartFloatingConnectionLinePropsProps for SmartFloatingConnectionLine

Import types with import type:

import type {
GetSmartEdgeOptions,
AvoidArea,
ControlPointData,
} from "@tisoap/react-flow-smart-edge";