new Node(desktop, data, elt)
- Description:
Node constructor
Parameters:
Name | Type | Description |
---|---|---|
desktop |
Simplicite.Diagram.Desktop | desk manager |
data |
Object | Node data { object, id, template, contents... } |
elt |
$ | optional DOM object to synchronize |
Methods
(static) attach()
- Description:
Attach node to a container
(static) bind()
- Description:
Bind
(static) collapseContents()
- Description:
Collapse contents
(static) collapseFields()
- Description:
Collapse fields
(static) detach()
- Description:
Detach from container
(static) draw()
- Description:
Draw
(static) drawItem()
- Description:
Draw item
(static) isContentVisible()
- Description:
Is content visible?
(static) isItemVisible()
- Description:
Is item visible?
(static) load()
- Description:
Load node with data
(static) position(x, y, rel, attach)
- Description:
Set/get position of element
Parameters:
Name | Type | Description |
---|---|---|
x |
number | Horizontal coordinate |
y |
number | Vertical coordinate |
rel |
boolean | Relative? |
attach |
boolean | Attach to parent container? |
(static) redraw()
- Description:
Redraw
(static) remove()
- Description:
Remove
(static) setLabel(label)
- Description:
Set label
Parameters:
Name | Type | Description |
---|---|---|
label |
strng | Label |
(static) size(w, h)
- Description:
Set/Get size of node
Parameters:
Name | Type | Description |
---|---|---|
w |
number | Width |
h |
number | Height |
(static) style()
- Description:
Style
(static) toggleMenu()
- Description:
Toggle menu