💡 This is the legacy site for v11. If you are looking for the latest docs, please visit React Flow
Reference
EdgeMarker

EdgeMarker

Source on GitHub (opens in a new tab)

Edges can optionally have markers at the start and end of an edge. The EdgeMarker type is used to configure those markers! Check the docs for MarkerType for details on what types of edge marker are available.

export type EdgeMarker = {
  type: MarkerType;
  color?: string;
  width?: number;
  height?: number;
  markerUnits?: string;
  orient?: string;
  strokeWidth?: number;
};

Fields

#type
#color?
string
#width?
number
#height?
number
#markerUnits?
string
#orient?
string
#strokeWidth?
number