dmn-js

在浏览器中查看和编辑 DMN 图表。「View and edit DMN diagrams in the browser.」

Github星跟蹤圖

Starting with dmn-js@8 the library displays and saves DMN 1.3 diagrams only. To open older DMN files, migrate them before loading them with dmn-js.

dmn-js - DMN for the web

Build Status

View and edit DMN 1.3 diagrams in the browser.

Installation

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

Usage

To get started, create a dmn-js instance
and render DMN 1.3 diagrams in the browser:

var xml; // my DMN 1.3 xml
var viewer = new DmnJS({
  container: 'body'
});

viewer.importXML(xml, function(err) {

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

Checkout our examples for
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 DmnJS();

// 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:

npm install
npm run all

Run tests in individual packages:

npm run dev -- dmn-js

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

dmn-js builds on top of a few additional powerful tools:

  • dmn-moddle: Read / write support for DMN 1.3 XML
  • diagram-js: Diagram rendering and editing toolkit
  • table-js: Table rendering and editing toolkit

License

Use under the terms of the bpmn.io license.

主要指標

概覽
名稱與所有者bpmn-io/dmn-js
主編程語言JavaScript
編程語言JavaScript (語言數: 3)
平台
許可證Other
所有者活动
創建於2015-06-05 08:30:47
推送於2025-04-07 08:34:50
最后一次提交
發布數197
最新版本名稱v17.2.0 (發布於 2025-03-12 16:27:29)
第一版名稱v0.1.0 (發布於 )
用户参与
星數322
關注者數24
派生數142
提交數1.9k
已啟用問題?
問題數544
打開的問題數53
拉請求數310
打開的拉請求數2
關閉的拉請求數83
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?