Class: FlyoutCursor

Constructor

FlyoutCursor

new FlyoutCursor()

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

Extends
Blockly.Cursor

Property

colour

unknown

The colour of the marker.

Inherited from
Blockly.Marker#colour

Methods

dispose

dispose()

Dispose of this marker.

Inherited from
Blockly.Marker#dispose

draw

package

draw()

Redraw the current marker.

Inherited from
Blockly.Marker#draw

getCurNode

getCurNode() returns Blockly.ASTNode

Gets the current location of the marker.

Inherited from
Blockly.Marker#getCurNode
Returns

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

getDrawer

getDrawer() returns Blockly.blockRendering.MarkerSvg

Get the current drawer for the marker.

Inherited from
Blockly.Marker#getDrawer
Returns

The object in charge of drawing the marker.

hide

hide()

Hide the marker SVG.

Inherited from
Blockly.Marker#hide

in

protected

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

protected

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.

onBlocklyAction

onBlocklyAction(action) returns boolean

Handles the given action. This is only triggered when keyboard navigation is enabled.

Parameter

action

The action to be handled.

Value must not be null.

Inherited from
Blockly.FlyoutCursor#onBlocklyAction
Implements
Blockly.IBlocklyActionable#onBlocklyAction
Returns

True if the action has been handled, false otherwise.

out

protected

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

protected

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 marker 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 marker.

Inherited from
Blockly.Marker#setCurNode

setDrawer

setDrawer(drawer)

Sets the object in charge of drawing the marker.

Parameter

drawer

The object in charge of drawing the marker.

Inherited from
Blockly.Marker#setDrawer