Element

Simplicite.Diagram. Element

new Element(desktop)

Description:
  • Default element of diagram

Parameters:
Name Type Description
desktop Simplicite.Diagram.Desktop

desk manager

Methods

Description:
  • Add link

(static) bindResize()

Description:
  • Bind resize

(static) bound()

Description:
  • Get bounds

(static) changed()

Description:
  • Mark changed

(static) colorPicker()

Description:
  • Color picker

Description:
  • Create link

(static) draw()

Description:
  • Draw element

(static) isInside(x, y)

Description:
  • Is inside?

Parameters:
Name Type Description
x number

Horizontal coordinate

y number

Vertical coordinate

(static) menu()

Description:
  • Menu

Description:
  • Move pointer during add link

Description:
  • Move link

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

(static) redraw()

Description:
  • Redraw element

(static) remove()

Description:
  • Remove element

Description:
  • Remove link

(static) resize()

Description:
  • Resize in direction

(static) select()

Description:
  • Select

(static) size(w, h)

Description:
  • Set/Get size of element

Parameters:
Name Type Description
w number

Width

h number

Height

(static) textSize()

Description:
  • Text size

(static) unwrapText()

Description:
  • Get wrapped back as string

(static) wrapText()

Description:
  • Wrap text