Constructor

FlyoutCursor

new FlyoutCursor()

Class for a flyout cursor. This controls how a user navigates blocks in the flyout.

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 a flyout cursor can not go in.

Inherited from
Blockly.FlyoutCursor#in
Returns

Always null.

next

next() returns Blockly.ASTNode

Find the next connection, field, or block.

Inherited from
Blockly.FlyoutCursor#next
Returns

The next element, or null if the current node is not set or there is no next value.

out

out() returns null

This is a no-op since a flyout cursor can not go out.

Inherited from
Blockly.FlyoutCursor#out
Returns

Always null.

prev

prev() returns Blockly.ASTNode

Find the previous connection, field, or block.

Inherited from
Blockly.FlyoutCursor#prev
Returns

The previous element, or null if the current node is not set or there is no previous value.

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