bpmn-js

BPMN 2.0 渲染工具包和 Web 建模器。(A BPMN 2.0 rendering toolkit and web modeler.)

Github星跟蹤圖

bpmn-js - BPMN 2.0 for the web

Build Status

View and edit BPMN 2.0 diagrams in the browser.

bpmn-js screencast

Installation

Use the library pre-packaged
or include it via npm
into your node-style web-application.

Usage

To get started, create a bpmn-js instance
and render BPMN 2.0 diagrams in the browser:

var xml; // my BPMN 2.0 xml
var viewer = new BpmnJS({
  container: 'body'
});

viewer.importXML(xml, function(err) {

  if (err) {
    console.log('error rendering', err);
  } else {
    console.log('rendered');
  }
});

Checkout our examples for many
more supported usage scenarios.

Dynamic Attach/Detach

You may attach or detach the viewer dynamically to any element on the page, too:

var viewer = new BpmnJS();

// attach it to some element
viewer.attachTo('#container');

// detach the panel
viewer.detach();

Resources

Building the Project

Perform the following steps to build the library, including running all tests:

cd bpmn-js
npm install
npm run all

You may need to perform additional project setup when
building the latest development snapshot.

Please checkout our contributing guidelines if you plan to
file an issue or pull request.

bpmn-js builds on top of a few powerful tools:

  • bpmn-moddle: Read / write support for BPMN 2.0 XML in the browsers
  • diagram-js: Diagram rendering and editing toolkit

License

Use under the terms of the bpmn.io license.

主要指標

概覽
名稱與所有者bpmn-io/bpmn-js
主編程語言JavaScript
編程語言JavaScript (語言數: 4)
平台Cross-platform, Linux, Mac, Web browsers, Windows
許可證Other
所有者活动
創建於2014-03-10 12:57:00
推送於2025-04-22 14:21:12
最后一次提交
發布數370
最新版本名稱v18.5.0 (發布於 )
第一版名稱v0.0.1 (發布於 )
用户参与
星數9k
關注者數226
派生數1.4k
提交數3.2k
已啟用問題?
問題數1410
打開的問題數132
拉請求數673
打開的拉請求數7
關閉的拉請求數195
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?