Class: Line

ge.path.Line(dataopt, nullable)

new Line(dataopt, nullable)

Line.
Parameters:
Name Type Attributes Description
data object <optional>
<nullable>
JSON data.
Properties
Name Type Attributes Default Description
loopStart number <optional>
<nullable>
180 Loop start angle in degrees.
loopEnd number <optional>
<nullable>
270 Loop end angle in degrees.
arrow boolean <optional>
<nullable>
false
arrowLength number <optional>
<nullable>
10
arrowAngle number <optional>
<nullable>
15
Source:

Methods

arrowPath(src, dst) → {string}

Return arrow path.
Parameters:
Name Type Description
src ge.Point Link source.
dst ge.Point Link target.
Source:
Returns:
SVG path.
Type
string

path(link) → {string}

Return text path and set link path.
Parameters:
Name Type Description
link ge.Link Link data.
Source:
Returns:
SVG path.
Type
string