blockly-plugin-stats-for-nerds
v1.0.2
Published
A Blockly plugin that displays workspace Stats For Nerds!
Downloads
6
Maintainers
Readme
blockly-plugin-stats-for-nerds
A Blockly plugin that displays workspace Stats For Nerds!
Installation
npm install blockly-plugin-stats-for-nerds
Usage
import * as Blockly from 'blockly';
import {StatsForNerdsPlugin} from 'blockly-plugin-stats-for-nerds/src/index';
// Inject Blockly.
const workspace = Blockly.inject('blocklyDiv', {
toolbox: toolboxCategories,
});
// Initialize plugin.
const plugin = new StatsForNerdsPlugin(workspace);
plugin.init();
Initialzing this plugin adds a context menu option on the workspace named "Toggle Stats For Nerds". When it is toggled on, it is displayed on the top-right corner of the workspace.
License
Apache 2.0