@phun-ky/arclace / ArcConnectionOptionsType
Type Alias: ArcConnectionOptionsType
ArcConnectionOptionsType =
object
Defined in: src/types.ts:48
Options for a single connection.
Properties
anchors?
optionalanchors?:boolean
Defined in: src/types.ts:104
Draw a dot where the line touches each element. Defaults to false.
animated?
optionalanimated?:boolean
Defined in: src/types.ts:99
Animate the dashes from start to end. Implies dashed. Requires the stylesheet. Defaults to false.
arrow?
optionalarrow?:ArcArrowType
Defined in: src/types.ts:72
Where to draw arrow heads. Defaults to 'none'.
className?
optionalclassName?:string
Defined in: src/types.ts:109
Extra class names added to the connection's <g> element.
color?
optionalcolor?:string
Defined in: src/types.ts:83
Line color. Any CSS color. Defaults to currentColor of the container, or --arc-color when the stylesheet is loaded.
curvature?
optionalcurvature?:number
Defined in: src/types.ts:134
bezier only: multiplies how far the curve bulges out from the elements. Defaults to 1.
dashed?
optionaldashed?:boolean
Defined in: src/types.ts:93
Draw a dashed line. Defaults to false.
endSide?
optionalendSide?:ArcSideOptionType
Defined in: src/types.ts:67
The side of the end element the line arrives at. Defaults to 'auto'.
gap?
optionalgap?:number
Defined in: src/types.ts:115
Distance in pixels between the element's edge and the line's end. Defaults to 0.
id?
optionalid?:string
Defined in: src/types.ts:52
A unique id for the connection. Generated when omitted.
label?
optionallabel?:string
Defined in: src/types.ts:77
Text drawn at the middle of the line.
offset?
optionaloffset?:number
Defined in: src/types.ts:146
orthogonal only: how far in pixels the line travels straight out of an element before it turns. Defaults to 20.
radius?
optionalradius?:number
Defined in: src/types.ts:140
orthogonal only: corner radius in pixels. Use 0 for sharp corners. Defaults to 8.
spacing?
optionalspacing?:number
Defined in: src/types.ts:128
Preferred distance in pixels between spread end points. Shrinks to fit the side. Defaults to 16.
spread?
optionalspread?:boolean
Defined in: src/types.ts:122
When several connections share the same side of an element, spread their end points along that side instead of stacking them in the middle. Defaults to true.
startSide?
optionalstartSide?:ArcSideOptionType
Defined in: src/types.ts:62
The side of the start element the line leaves from. Defaults to 'auto'.
strokeWidth?
optionalstrokeWidth?:number
Defined in: src/types.ts:88
Line width in pixels. Defaults to 2.
type?
optionaltype?:ArcPathType
Defined in: src/types.ts:57
How the line is drawn. Defaults to 'bezier'.