Skip to main content

@blockly/workspace-content-highlight

Built with 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

A Blockly workspace plugin that adds a highlight around the content area.

Classes​

ClassDescription
ContentHighlightA plugin that highlights the area where content exists on the workspace.