Socket
Socket
Sign inDemoInstall

bpmn-auto-layout

Package Overview
Dependencies
5
Maintainers
8
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bpmn-auto-layout

Layout BPMN diagrams, generating missing DI information


Version published
Weekly downloads
3.1K
increased by87.46%
Maintainers
8
Created
Weekly downloads
 

Changelog

Source

0.5.0

  • FIX: drop broken main export
  • CHORE: require Node >= 18
  • DEPS: update to bpmn-moddle@9.0.1

Breaking Changes

  • Require Node >= 18

Readme

Source

bpmn-auto-layout

CI

Get a layouted diagram of a BPMN process without graphical representation.

Usage

This library works in Node.js and in the browser.

To layout diagrams these must have exactly one single start event.

import { layoutProcess } from 'bpmn-auto-layout';

const diagramXML = '<bpmn:defintions ...></bpmn:defintions>';

const layoutedDiagramXML = await layoutProcess(diagramXML);

console.log(layoutedDiagramXML);

Unsupported Concepts and elements

The Tool can currently not properly layout diagrams containing any of the following:

  • Pools
  • Data/Message Flows and Objects, Data Stores
  • event sub-processes

Resources

Building

npm install
npm run all

As part of the test run, visual test cases are generated to test/generated/test.html.

License

MIT

Keywords

FAQs

Last updated on 11 Mar 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc