@blockly/block-dynamic-connection

    0.1.30 • Public • Published

    @blockly/block-dynamic-connection Built on Blockly

    A group of Blockly blocks that add and remove connections dynamically.

    Installation

    npm install @blockly/block-dynamic-connection --save
    

    Usage

    import * as Blockly from 'blockly';
    import * as BlockDynamicConnection from '@blockly/block-dynamic-connection';

    API

    • overrideOldBlockDefinitions: Replaces the Blockly default blocks with the dynamic connection blocks. This enables projects to use the dynamic block plugin without changing existing XML. Note that if you enable this, you will never be able to switch back to non-dynamic connections, because this changes the way mutations are serialized.

    XML

    <block type="dynamic_text_join"></block>
    <block type="dynamic_list_create"></block>
    <block type="dynamic_if"></block>

    License

    Apache 2.0

    Install

    npm i @blockly/block-dynamic-connection

    DownloadsWeekly Downloads

    64

    Version

    0.1.30

    License

    Apache-2.0

    Unpacked Size

    80.6 kB

    Total Files

    11

    Last publish

    Collaborators

    • google-wombot
    • samelhusseini