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