0.0.2 • Published 3 years ago

blockly-local-variable v0.0.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

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".

Reference

https://yukiya383.github.io/blockly-local-variable/