Integrate bpmn-js-in-color to my modeler


#1

Hello ,

I’m trying to integrate bpmn-js-color to my modeler

I added

import BpmnModeler from 'bpmn-js/lib/Modeler'; 

var modeler = new BpmnModeler({
 container: '#js-canvas',
   additionalModules : [
require ('bpmn-js-in-color')
  ]}
);

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

and this the browser log
1


#2

Which version of bpmn-js do you plug into? The plug-in is compatible with bpmn-js@0.x only.


#3

the version of bpmn-js is “^3.1.0”


#4

Happy to take a contribution that makes bpmn-js-in-color compatible with bpmn-js@3.


#5

I have changed bpmn-js version to 0.31.0 the last message doesn’t appear, but the tool color doesn’t display
this is my browser log
2

My html file includes

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

Thanks for your quick reply :smiley:


#6

I copied the color-picker. css and I deleted the other stylesheets the color tool appeared :smiley: