@blockly/block-test

6.0.8 • Public • Published

@blockly/block-test Built on Blockly

A set of Blockly test blocks.

Installation

Yarn

yarn add @blockly/block-test

npm

npm install @blockly/block-test --save

Usage

Import

import * as Blockly from 'blockly';
import {toolboxTestBlocks, toolboxTestBlocksInit} from '@blockly/block-test';

// Configure the Blockly workspace to use the test block's toolbox.
const workspace = Blockly.inject('blocklyDiv', {
  ...options
  toolbox: toolboxTestBlocks,
});

// Initalize the test block's toolbox.
toolboxTestBlocksInit(workspace);

License

Apache 2.0

Package Sidebar

Install

npm i @blockly/block-test

Weekly Downloads

278

Version

6.0.8

License

Apache 2.0

Unpacked Size

308 kB

Total Files

26

Last publish

Collaborators

  • google-wombot
  • samelhusseini