Constructor
new Link(desktop, data, eltopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
desktop |
Simplicite.Diagram.Desktop | Desk manager |
|
data |
Object | Link data |
|
elt |
$ |
<optional> |
Optional DOM object to synchronize |
Methods
addPoint()
- Description:
Add point
closestPoint()
- Description:
Interpolation nearest point to path
draw()
- Description:
Draw
drawBridge()
- Description:
Draw bridge
drawLabel()
- Description:
Draw label
drawPath()
- Description:
Draw path
equals()
- Description:
Compare links
extremity(from, t, silent)
- Description:
Change extremity
Parameters:
Name | Type | Description |
---|---|---|
from |
boolean | From direction ? |
t |
number | Type of LINK, accept marker syntax |
silent |
boolean | no redraw/has changed |
getLines(full)
- Description:
Broken lines
Parameters:
Name | Type | Description |
---|---|---|
full |
boolean | true: get lines from internal nodes, false: outgoing points from nodes |
getOutgoingPoint()
- Description:
Normal Vector from node
leave()
- Description:
Leave
movePoint()
- Description:
Move point
path()
- Description:
Path
pointFrom(p, prct)
- Description:
Get starting point in node "from"
Parameters:
Name | Type | Description |
---|---|---|
p |
number | optional x,y in percent to change relative position into node |
prct |
boolean | true to return percents or absolute position |
pointTo(p, prct)
- Description:
Get ending point in node "to"
Parameters:
Name | Type | Description |
---|---|---|
p |
number | optional x,y in percent to change relative position into node |
prct |
boolean | true to return percents or absolute position |
position()
- Description:
Override position to move points
redraw()
- Description:
Redraw
remove()
- Description:
Remove a link
removePoint()
- Description:
Remove added point at index or position
rendering()
- Description:
Change link rendering
style()
- Description:
Style
text()
- Description:
Text
toggleMenu()
- Description:
Toggle menu
updatePath()
- Description:
Update path
(static) Simplicite.Diagram.Caption#draw()
- Description:
Draw caption within hook onDrawCaption(caption, display)