Home > @jsplumbtoolkit/core > JsPlumbToolkit > update
JsPlumbToolkit.update() method
Updates the given object, notifying any renderers to do a repaint.
Signature:
update(object: Base, updates?: ObjectData): void;
Parameters
Parameter | Type | Description |
---|---|---|
object | Base | Either a Node, Group, Port or Edge, or, as a string, the id of some Node, Group, Port or Edge. |
updates | ObjectData | An object with path->value pairs. Path can be in dotted notation. You do not actually have to supply this, although in most cases you will want to. But there are edge cases in which you might simply wish to kick off a repaint. |
Returns:
void