This package has been deprecated

Author message:

Replaced with built in color support in bpmn-js@8.7+; See also bpmn-js-color-picker

bpmn-js-in-color

0.2.0 • Public • Published

Note: This example exists for educational purposes only.

Consider using our built-in color support to display colors saved in your BPMN 2.0 diagrams.

bpmn-js in color

This example show cases how to extend bpmn-js with colors based on the BPMN in Color proposal.

bpmn-js in color

Features

  • Recognize and display BPMN in Color meta-data
  • Change color of elements via context pad

Use Extension

Fetch bpmn-js-in-color as a dependency:

npm install bpmn-io/bpmn-js-in-color --save

Extend your BPMN modeler with colors:

var BpmnModeler = require('bpmn-js/lib/Modeler');
 
var modeler = new BpmnModeler({
  additionalModules: [
    require('bpmn-js-in-color')
  ]
});

Add diagram-js, bpmn-font and color picker stylesheets:

<link rel="stylesheet" href="vendor/diagram-js.css" />
<link rel="stylesheet" href="vendor/bpmn-font/css/bpmn-embedded.css" />
<link rel="stylesheet" href="vendor/colors/color-picker.css" />

Build Demo

To run the live demo in the ./example directory (as shown in the screenshot above) execute:

npm run dev

Useful Resources

Package Sidebar

Install

npm i bpmn-js-in-color

Weekly Downloads

4

Version

0.2.0

License

MIT

Unpacked Size

43.3 kB

Total Files

9

Last publish

Collaborators

  • nikku