Constructor
new Note(desktop, data, eltopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
desktop |
Simplicite.Diagram.Desktop | desk manager |
|
data |
Object | optional { text, x, y, w, h, id } |
|
elt |
$ |
<optional> |
optional DOM object to synchronize |
Methods
bind()
- Description:
Bind
draw()
- Description:
Draw
edit()
- Description:
Edit note
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
remove()
- Description:
Remove
size(w, h)
- Description:
Set/Get size of note
Parameters:
Name | Type | Description |
---|---|---|
w |
number | Width |
h |
number | Height |
style()
- Description:
Style
toggleMenu()
- Description:
Toggle menu