Skip to main content

Line

The straight line component is mainly used in various connection scenarios and supports dragging endpoints to adjust the length and direction of the straight line.This article describes the detailed configuration method of the component.

line.jpg

Private Properties​

Parameters
Description
Default value
Line StyleOptional values: straight line, dashed line, dotted linestraight line
Line Width2
Color#333333
End PointThe shape of the ends optional values: Square, CircleSquare
Start StyleShape of the left endNone
Start Color#333333
End StyleShape of the right endNone
End Color#333333

Node​

Parameters
Description
Default value
WidthOverall width200
HeightOverall height40
XHorizontal coordinate—
YVertical coordinate\ -