bpmn-js 8.8.3 → 8.9.0

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.
@@ -105,7 +105,7 @@ export default function LabelEditingProvider(
105
105
 
106
106
  function activateDirectEdit(element, force) {
107
107
  if (force ||
108
- isAny(element, [ 'bpmn:Task', 'bpmn:TextAnnotation', 'bpmn:Group' ]) ||
108
+ isAny(element, [ 'bpmn:Task', 'bpmn:TextAnnotation' ]) ||
109
109
  isCollapsedSubProcess(element)) {
110
110
 
111
111
  directEditing.activate(element);
@@ -112,7 +112,8 @@ BpmnFactory.prototype.createDiWaypoint = function(point) {
112
112
 
113
113
  BpmnFactory.prototype.createDiEdge = function(semantic, waypoints, attrs) {
114
114
  return this.create('bpmndi:BPMNEdge', assign({
115
- bpmnElement: semantic
115
+ bpmnElement: semantic,
116
+ waypoint: this.createDiWaypoints(waypoints)
116
117
  }, attrs));
117
118
  };
118
119
 
@@ -63,12 +63,26 @@ SetColorHandler.prototype.postExecute = function(context) {
63
63
  // TODO @barmac: remove once we drop bpmn.io properties
64
64
  ensureLegacySupport(assignedDi);
65
65
 
66
- self._commandStack.execute('element.updateProperties', {
67
- element: element,
68
- properties: {
69
- di: assignedDi
70
- }
71
- });
66
+ if (element.labelTarget) {
67
+
68
+ // set label colors as bpmndi:BPMNLabel#color
69
+ self._commandStack.execute('element.updateModdleProperties', {
70
+ element: element,
71
+ moddleElement: element.businessObject.di.label,
72
+ properties: {
73
+ color: di['background-color']
74
+ }
75
+ });
76
+ } else {
77
+
78
+ // set colors bpmndi:BPMNEdge or bpmndi:BPMNShape
79
+ self._commandStack.execute('element.updateProperties', {
80
+ element: element,
81
+ properties: {
82
+ di: assignedDi
83
+ }
84
+ });
85
+ }
72
86
  });
73
87
 
74
88
  };
@@ -88,7 +88,7 @@ PaletteProvider.prototype.getPaletteEntries = function(element) {
88
88
 
89
89
  create.start(event, [ subProcess, startEvent ], {
90
90
  hints: {
91
- autoSelect: [ startEvent ]
91
+ autoSelect: [ subProcess ]
92
92
  }
93
93
  });
94
94
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpmn-js",
3
- "version": "8.8.3",
3
+ "version": "8.9.0",
4
4
  "description": "A bpmn 2.0 toolkit and web modeler",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -100,7 +100,7 @@
100
100
  "dependencies": {
101
101
  "bpmn-moddle": "^7.1.2",
102
102
  "css.escape": "^1.5.1",
103
- "diagram-js": "^7.6.3",
103
+ "diagram-js": "^7.8.2",
104
104
  "diagram-js-direct-editing": "^1.6.3",
105
105
  "ids": "^1.0.0",
106
106
  "inherits": "^2.0.4",