Color schemes are imported twice in bpmn-moddel

Hi folks,

I’m studying the bpmn-moddle and wondering that the concept of colors is defined / imported twice here: https://github.com/bpmn-io/bpmn-moddle/blob/main/lib/simple.js:

import BiocPackage from '../resources/bpmn-io/json/bioc.json' with { type: 'json' };
import BpmnInColorPackage from 'bpmn-in-color-moddle/resources/bpmn-in-color.json' with { type: 'json' };

As a result the colored shape has attributes from two namespaces bioc:stroke, bioc:fill and color:background-color, color:border-color.

Is it intentional and required, or is it some kind of legacy support?

Cheers,

Simon

1 Like

Hi @zambrovski!

The bpmn-in-color specification and our own color extension are two different things. The core tooling now supports both ways of inlining colors (to maximize compatibility).

Hope this helps.

Best,
Nico

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.