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.
- package/CHANGELOG.md +10 -0
- package/dist/assets/diagram-js.css +80 -78
- package/dist/bpmn-modeler.development.js +53 -20
- package/dist/bpmn-modeler.production.min.js +6 -6
- package/dist/bpmn-navigated-viewer.development.js +7 -3
- package/dist/bpmn-navigated-viewer.production.min.js +2 -2
- package/dist/bpmn-viewer.development.js +7 -3
- package/dist/bpmn-viewer.production.min.js +2 -2
- package/lib/features/label-editing/LabelEditingProvider.js +1 -1
- package/lib/features/modeling/BpmnFactory.js +2 -1
- package/lib/features/modeling/cmd/SetColorHandler.js +20 -6
- package/lib/features/palette/PaletteProvider.js +1 -1
- package/package.json +2 -2
|
@@ -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'
|
|
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
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpmn-js",
|
|
3
|
-
"version": "8.
|
|
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.
|
|
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",
|