blockly > MarkerManager

MarkerManager class

Class to manage the multiple markers and the cursor on a workspace.

Signature:

export declare class MarkerManager 

Remarks

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the MarkerManager class.

Properties

Property Modifiers Type Description
LOCAL_MARKER

static

readonly

(not declared) The name of the local marker.

Methods

Method Modifiers Description
getCursor() Get the cursor for the workspace.
getMarker(id) Get a single marker that corresponds to the given ID.
registerMarker(id, marker) Register the marker by adding it to the map of markers.
setCursor(cursor) Sets the cursor and initializes the drawer for use with keyboard navigation.
unregisterMarker(id) Unregister the marker by removing it from the map of markers.