Home > @i2analyze/notebook-sdk > app > INodeEditor
app.INodeEditor interface
A set of methods for modifying the appearance of a node.
Signature:
interface INodeEditor extends IElementEditorBase
Extends: IElementEditorBase
Introduced: version 1.2
Methods
| Method | Description |
|---|---|
| clearBadges() | Clears all badge icons on the element. (Inherited from IElementEditorBase) |
| setBadge(slot, href, description) | Sets a badge icon in the given slot on the element. (Inherited from IElementEditorBase) |
| setBadge(slot, href) | Clears the badge icon in the given slot on the element. (Inherited from IElementEditorBase) |
| setBorderColor(color) | Sets or resets the border color of the node. |
| setBorderStyle(lineStyle) | Sets or resets the border style of the node. |
| setBorderWidth(width) | Sets or resets the border width of the node. |
| setCenter(position) | Moves the node to be centered at a particular position on the chart. |
| setColor(color) | Sets or resets the color of the element. |
| setImage(href, description) | Sets the image for the node. |
| setImage(href) | Resets the image for the node to the default one, which might be the entity type icon or a source reference image. |
| setLabel(label) | Sets or resets the label of the element. (Inherited from IElementEditorBase) |
| setSize(size) | Sets or resets the size of the node. |