Constructor

MarkerCursor

new MarkerCursor()

Class for a marker. This is used in keyboard navigation to save a location in the Blockly AST.

Extends
Blockly.Cursor

Methods

getCurNode

getCurNode() returns Blockly.ASTNode

Gets the current location of the cursor.

Inherited from
Blockly.Cursor#getCurNode
Returns

The current field, connection, or block the cursor is on.

getDrawer

getDrawer() returns Blockly.CursorSvg

Get the current drawer for the cursor.

Inherited from
Blockly.Cursor#getDrawer
Returns

The object in charge of drawing the cursor.

hide

hide()

Hide the cursor SVG.

Inherited from
Blockly.Cursor#hide

in

in() returns null

This is a no-op since markers do not move.

Inherited from
Blockly.MarkerCursor#in
Returns

Always null.

next

next() returns null

This is a no-op since markers do not move.

Inherited from
Blockly.MarkerCursor#next
Returns

Always null.

out

out() returns null

This is a no-op since markers do not move.

Inherited from
Blockly.MarkerCursor#out
Returns

Always null.

prev

prev() returns null

This is a no-op since markers do not move.

Inherited from
Blockly.MarkerCursor#prev
Returns

Always null.

setCurNode

setCurNode(newNode)

Set the location of the cursor and call the update method. Setting isStack to true will only work if the newLocation is the top most output or previous connection on a stack.

Parameter

newNode

The new location of the cursor.

Inherited from
Blockly.Cursor#setCurNode

setDrawer

setDrawer(drawer)

Sets the object in charge of drawing the cursor.

Parameter

drawer

The object in charge of drawing the cursor.

Inherited from
Blockly.Cursor#setDrawer