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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* bpmn-js - bpmn-viewer v8.
|
|
2
|
+
* bpmn-js - bpmn-viewer v8.9.0
|
|
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:
|
|
11
|
+
* Date: 2022-01-14
|
|
12
12
|
*/
|
|
13
13
|
(function (global, factory) {
|
|
14
14
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -8828,13 +8828,17 @@
|
|
|
8828
8828
|
* Scrolls the viewbox to contain the given element.
|
|
8829
8829
|
* Optionally specify a padding to be applied to the edges.
|
|
8830
8830
|
*
|
|
8831
|
-
* @param {Object} [element] the element to scroll to.
|
|
8831
|
+
* @param {Object|String} [element] the element to scroll to.
|
|
8832
8832
|
* @param {Object|Number} [padding=100] the padding to be applied. Can also specify top, bottom, left and right.
|
|
8833
8833
|
*
|
|
8834
8834
|
*/
|
|
8835
8835
|
Canvas.prototype.scrollToElement = function(element, padding) {
|
|
8836
8836
|
var defaultPadding = 100;
|
|
8837
8837
|
|
|
8838
|
+
if (typeof element === 'string') {
|
|
8839
|
+
element = this._elementRegistry.get(element);
|
|
8840
|
+
}
|
|
8841
|
+
|
|
8838
8842
|
// switch to correct Plane
|
|
8839
8843
|
var targetPlane = this.findPlane(element);
|
|
8840
8844
|
if (targetPlane !== this._activePlane) {
|