Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@blockly/block-dynamic-connection

Package Overview
Dependencies
Maintainers
0
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blockly/block-dynamic-connection

A group of blocks that add connections dynamically.

  • 0.7.9
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

@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';

const myWorkspace = Blockly.inject({
    // options...
    plugins: {
      connectionPreviewer:
        BlockDynamicConnection.decoratePreviewer(
          // Replace with a custom connection previewer, or remove to decorate
          // the default one.
          Blockly.InsertionMarkerPreviewer,
        ),
    },
  };

// Add the change listener so connections will be finalized on deletion.
workspace.addChangeListener(BlockDynamicConnection.finalizeConnections);

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/JSON.

Blocks

  • dynamic_text_join replaces text_join
  • dynamic_list_create replaces lists_create_with
  • dynamic_if replaces controls_if

License

Apache 2.0

Keywords

FAQs

Package last updated on 29 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc