Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 971 Bytes

File metadata and controls

42 lines (30 loc) · 971 Bytes

@blockly/workspace-content-highlight Built on Blockly

A Blockly plugin that highlights the content on the workspace.

Installation

Yarn

yarn add @blockly/workspace-content-highlight

npm

npm install @blockly/workspace-content-highlight --save

Usage

import * as Blockly from 'blockly';
import {ContentHighlight} from '@blockly/workspace-content-highlight';

// Inject Blockly.
const workspace = Blockly.inject('blocklyDiv', {
  toolbox: toolboxCategories,
});

// Initialize plugin.
const contentHighlight = new ContentHighlight(workspace);
contentHighlight.init();

API

  • init: Initializes the content highlight.
  • dispose: Disposes of content highlight.

License

Apache 2.0