Constructor
new Element(desktop)
Parameters:
Name | Type | Description |
---|---|---|
desktop |
Simplicite.Diagram.Desktop | desk manager |
Methods
addLink()
- Description:
Add link
bindResize()
- Description:
Bind resize
bound()
- Description:
Get bounds
changed()
- Description:
Mark changed
colorPicker()
- Description:
Color picker
createLink()
- 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 |
menu()
- Description:
Menu
moveAddLink()
- Description:
Move pointer during add link
moveLinks()
- 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
removeLink()
- 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