bpmn-js 9.4.0 → 9.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,10 @@ All notable changes to [bpmn-js](https://github.com/bpmn-io/bpmn-js) are documen
7
7
 
8
8
  ___Note:__ Yet to be released changes appear here._
9
9
 
10
+ ## 9.4.1
11
+
12
+ * `FIX`: ignore elements which cannot be colored ([#1734](https://github.com/bpmn-io/bpmn-js/pull/1734))
13
+
10
14
  ## 9.4.0
11
15
 
12
16
  * `FEAT`: allow clipboard to be serialized ([#1707](https://github.com/bpmn-io/bpmn-js/pull/1707))
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * bpmn-js - bpmn-modeler v9.4.0
2
+ * bpmn-js - bpmn-modeler v9.4.1
3
3
  *
4
4
  * Copyright (c) 2014-present, camunda Services GmbH
5
5
  *
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * Source Code: https://github.com/bpmn-io/bpmn-js
10
10
  *
11
- * Date: 2022-08-22
11
+ * Date: 2022-09-05
12
12
  */
13
13
  (function (global, factory) {
14
14
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -55388,7 +55388,8 @@
55388
55388
  }
55389
55389
 
55390
55390
  forEach$1(elements, function(element) {
55391
- var assignedDi = isConnection$3(element) ? pick(di, [ 'border-color' ]) : di;
55391
+ var assignedDi = isConnection$3(element) ? pick(di, [ 'border-color' ]) : di,
55392
+ elementDi = getDi(element);
55392
55393
 
55393
55394
  // TODO @barmac: remove once we drop bpmn.io properties
55394
55395
  ensureLegacySupport(assignedDi);
@@ -55398,13 +55399,18 @@
55398
55399
  // set label colors as bpmndi:BPMNLabel#color
55399
55400
  self._commandStack.execute('element.updateModdleProperties', {
55400
55401
  element: element,
55401
- moddleElement: getDi(element).label,
55402
+ moddleElement: elementDi.label,
55402
55403
  properties: {
55403
55404
  color: di['border-color']
55404
55405
  }
55405
55406
  });
55406
55407
  } else {
55407
55408
 
55409
+ // ignore non-compliant di
55410
+ if (!isAny(elementDi, [ 'bpmndi:BPMNEdge', 'bpmndi:BPMNShape' ])) {
55411
+ return;
55412
+ }
55413
+
55408
55414
  // set colors bpmndi:BPMNEdge or bpmndi:BPMNShape
55409
55415
  self._commandStack.execute('element.updateProperties', {
55410
55416
  element: element,