Link

Simplicite.Diagram. Link

Description:
  • Link constructor

Parameters:
Name Type Attributes Description
desktop Simplicite.Diagram.Desktop

Desk manager

data Object

Link data { object, id, template, points... }

elt $ <optional>

DOM object to synchronize

Methods

(static) addPoint()

Description:
  • Add point

(static) closestPoint()

Description:
  • Interpolation nearest point to path

(static) draw()

Description:
  • Draw

(static) drawBridge()

Description:
  • Draw bridge

(static) drawLabel()

Description:
  • Draw label

(static) drawPath()

Description:
  • Draw path

(static) equals()

Description:
  • Compare links

(static) 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

(static) getLines(full)

Description:
  • Broken lines

Parameters:
Name Type Description
full boolean

true: get lines from internal nodes, false: outgoing points from nodes

(static) getOutgoingPoint()

Description:
  • Normal Vector from node

(static) leave()

Description:
  • Leave

(static) movePoint()

Description:
  • Move point

(static) path()

Description:
  • Path

(static) 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

(static) 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

(static) position()

Description:
  • Override position to move points

(static) redraw()

Description:
  • Redraw

(static) remove()

Description:
  • Remove a link

(static) removePoint()

Description:
  • Remove added point at index or position

(static) rendering()

Description:
  • Change link rendering

(static) style()

Description:
  • Style

(static) text()

Description:
  • Text

(static) toggleMenu()

Description:
  • Toggle menu

(static) updatePath()

Description:
  • Update path