Skip to main content

Home > blockly > LineCursor > setCurNode

LineCursor.setCurNode() method

Set the location of the cursor and draw it.

Overrides normal Marker setCurNode logic to call this.drawMarker() instead of this.drawer.draw() directly.

Signature:

setCurNode(newNode: IFocusableNode): void;

Parameters

ParameterTypeDescription
newNodeIFocusableNodeThe new location of the cursor.

Returns:

void