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

4.0.15 • 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

41

Version

4.0.15

License

Apache-2.0

Unpacked Size

4.53 MB

Total Files

10

Last publish

Collaborators

  • google-wombot
  • samelhusseini