1.0.2 • Published 1 year ago

blockly-plugin-stats-for-nerds v1.0.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

blockly-plugin-stats-for-nerds Built on Blockly

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

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago