Stay organized with collections Save and categorize content based on your preferences.

blockly > Procedures > ObservableProcedureMap

Procedures.ObservableProcedureMap class

Signature:

export declare class ObservableProcedureMap extends Map<string, IProcedureModel> implements IProcedureMap 

Extends: Map<string, IProcedureModel>

Implements: IProcedureMap

Constructors

Constructor Modifiers Description
(constructor)(workspace) Constructs a new instance of the ObservableProcedureMap class

Methods

Method Modifiers Description
add(proc) Adds the given ProcedureModel to the map of procedure models, so that blocks can find it.
clear() Removes all ProcedureModels from the procedure map.
delete(id) Deletes the ProcedureModel with the given ID from the procedure map (if it exists).
getProcedures() Returns all of the procedures stored in this map.
set(id, proc) Adds the given procedure model to the procedure map.