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
| Parameter | Type | Description |
|---|---|---|
| newNode | IFocusableNode | The new location of the cursor. |
Returns:
void