Skip to content

Latest commit

 

History

History
 
 

content-highlight

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

@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