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

@hanica-dwa/sijs-block-diagram-renderer

Package Overview
Dependencies
Maintainers
12
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hanica-dwa/sijs-block-diagram-renderer

The rendering module for the sijs block diagram module

  • 1.3.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
12
Created
Source

sijs-block-diagram-renderer

This module provides an example of how to implement a custom render module. In this case the module adds a new diagram type, and 2 new shapes. The Block Diagram Renderer module gets it's data for rendering the different Shapes from the Block Diagram Manipulation module.

Getting started

To use the Block Diagram Render Module the user needs to use the 'registerModule()' function provided by the Diagram Renderer. By registering the module at the Diagram Renderer the user will be able to use all the features provided by the Block Diagram module. After registering the module the Diagram Renderer will make sure all the correct methods from the Block Diagram Renderer are called.

Registering the render module

  newRenderer.registerModule(new BlockDiagramRenderAPI());

Module features

The Block Diagram Render Module uses the same setup as the Diagram Renderer module for rendering shapes. Meaning it creates a SVG element based on the dataObject provided by the manipulation module. The shapes that this module is capable of rendering are 'Block' and 'BlockWithText' shape. This module provides no rendering methods for custom lines.

Developing

This module depends on the DiagramManipulator, DiagramRenderer and BlockDiagramManipulation module.

  1. Install the dependencies.
    npm i
  2. Run the tests.
    npm run test
  3. Build the module.
    npm run build
  4. Publish the module.

FAQs

Package last updated on 13 Jun 2020

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