0.0.2 • Published 3 years ago
blockly-local-variable v0.0.2
What's this?
A plugin for managing local declarations. Keep in mind that this plugin is independent of Blockly's default variable, and declared variables cannot be accessed by field_variable.
Installation
npm install blockly-local-variable
Usage
import {DeclarationListDirector, DeclarationListBuilder} from 'blockly-local-variable';
...
const localVariableListBuilder = new DeclarationListBuilder("LocalVariable");
const localVariableListDirector = new DeclarationListDirector(localVariableListBuilder);
localVariableListDirector.construct(workspace);
Now, you can use custum category named "LOCAL_VARIABLR".