LinkStyle
Visual styling for a link, the visible line plus its invisible pointer
hit-area wrapper. Hand it to linkStyle (or a link record's style
field); empty-string values fall back to the CSS variables in theme.css.
Propertiesβ
className?β
optional className?: string;
Extra CSS class added to the visible line.
Defaultβ
''
color?β
optional color?: string;
Stroke color of the visible line. Any CSS color, including CSS variables. Empty inherits the theme default.
Defaultβ
''
dasharray?β
optional dasharray?: string;
Dash pattern in SVG stroke-dasharray syntax, e.g. '5,5' for a dashed line.
Defaultβ
''
linecap?β
optional linecap?: LiteralUnion<"butt" | "round" | "square">;
Stroke line cap of the line ends.
Defaultβ
''
linejoin?β
optional linejoin?: LiteralUnion<"bevel" | "round" | "miter">;
Stroke line join at the line's corners.
Defaultβ
''
sourceMarker?β
optional sourceMarker?: LinkMarker;
Marker at the source end: a LinkMarkerName, a LinkMarkerRecord, or 'none' for no marker.
Defaultβ
'none'
targetMarker?β
optional targetMarker?: LinkMarker;
Marker at the target end: a LinkMarkerName, a LinkMarkerRecord, or 'none' for no marker.
Defaultβ
'none'
width?β
optional width?: string | number;
Stroke width of the visible line, a number (px) or CSS length string. Empty inherits the theme default.
Defaultβ
''
wrapperClassName?β
optional wrapperClassName?: string;
Extra CSS class added to the wrapper.
Defaultβ
''
wrapperColor?β
optional wrapperColor?: string;
Stroke color of the wrapper. Usually transparent, set it to make the hit area visible while debugging.
Defaultβ
'transparent'
wrapperWidth?β
optional wrapperWidth?: number;
Stroke width, in px, of the transparent wrapper that widens the pointer hit area.
Defaultβ
10