Function: allUsedVarModels()
function allUsedVarModels(ws): IVariableModel<IVariableState>[];
Defined in: packages/blockly/core/variables.ts:49
Find all user-created variables that are in use in the workspace. For use by generators.
To get a list of all variables on a workspace, including unused variables, call getAllVariables.
Parameters
| Parameter | Type | Description |
|---|---|---|
ws | Workspace | The workspace to search for variables. |
Returns
IVariableModel<IVariableState>[]
Array of variable models.