@blockly/workspace-content-highlight
TypeScript icon, indicating that this package has built-in type declarations

5.0.0 • Public • Published

@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

Package Sidebar

Install

npm i @blockly/workspace-content-highlight

Weekly Downloads

76

Version

5.0.0

License

Apache-2.0

Unpacked Size

51.7 kB

Total Files

10

Last publish

Collaborators

  • google-wombot
  • samelhusseini