Skip to main content

Home > blockly > Marker

Marker class

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

Signature:

export declare class Marker 

Properties

PropertyModifiersTypeDescription
colourstring | nullThe colour of the marker.
curNodeprotectedIFocusableNode | nullThe current location of the marker.
typestringThe type of the marker.

Methods

MethodModifiersDescription
dispose()Dispose of this marker.
getCurNode()Gets the current location of the marker.
getSourceBlock()Returns the block that this marker's current node is a child of.
getSourceBlockFromNode(node)Returns the block that the given node is a child of.
setCurNode(newNode)Set the location of the marker and call the update method.