Skip to main content

Home > @jsplumbtoolkit/browser-ui > Surface > repaint

Surface.repaint() method#

Repaint the given vertex.

Signature:

repaint(obj: string | Vertex | Element, alsoResetToLayoutPosition?: boolean): void;

Parameters#

ParameterTypeDescription
objstring | Vertex | ElementID of the vertex, or the Vertex object, or the DOM element representing it.
alsoResetToLayoutPositionbooleanDefaults to false. If true, the DOM element representing the Vertex is first repositioned to where the layout thinks it should be. This parameter is mostly intended for internal use.

Returns:

void