Element

Simplicite.Diagram. Element

Default element of diagram

Constructor

new Element(desktop)

Parameters:
Name Type Description
desktop Simplicite.Diagram.Desktop

desk manager

Methods

Description:
  • Add link

bindResize()

Description:
  • Bind resize

bound()

Description:
  • Get bounds

changed()

Description:
  • Mark changed

colorPicker()

Description:
  • Color picker

Description:
  • Create link

draw()

Description:
  • Draw element

isInside(x, y)

Description:
  • Is inside?

Parameters:
Name Type Description
x number

Horizontal coordinate

y number

Vertical coordinate

Description:
  • Menu

Description:
  • Move pointer during add link

Description:
  • Move link

position(x, y, rel)

Description:
  • Set/get position of element

Parameters:
Name Type Description
x number

Horizontal coordinate

y number

Vertical coordinate

rel boolean

Relative?

redraw()

Description:
  • Redraw element

remove()

Description:
  • Remove element

Description:
  • Remove link

resize()

Description:
  • Resize in direction

select()

Description:
  • Select

size(w, h)

Description:
  • Set/Get size of element

Parameters:
Name Type Description
w number

Width

h number

Height

textSize()

Description:
  • Text size

unwrapText()

Description:
  • Get wrapped back as string

wrapText()

Description:
  • Wrap text