bpmn-js 17.3.0 → 17.4.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/dist/bpmn-modeler.development.js +10 -16
- package/dist/bpmn-modeler.production.min.js +10 -10
- package/dist/bpmn-navigated-viewer.development.js +2 -2
- package/dist/bpmn-navigated-viewer.production.min.js +1 -1
- package/dist/bpmn-viewer.development.js +2 -2
- package/dist/bpmn-viewer.production.min.js +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* bpmn-js - bpmn-modeler v17.
|
|
2
|
+
* bpmn-js - bpmn-modeler v17.4.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: 2024-04-
|
|
11
|
+
* Date: 2024-04-26
|
|
12
12
|
*/
|
|
13
13
|
(function (global, factory) {
|
|
14
14
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -27000,7 +27000,7 @@
|
|
|
27000
27000
|
|
|
27001
27001
|
var scale = isDefined(config && config.scale) ? config.scale : {
|
|
27002
27002
|
min: 1,
|
|
27003
|
-
max: 1
|
|
27003
|
+
max: 1
|
|
27004
27004
|
};
|
|
27005
27005
|
|
|
27006
27006
|
this._overlaysConfig = {
|
|
@@ -27994,7 +27994,8 @@
|
|
|
27994
27994
|
function getPopupStyle(props) {
|
|
27995
27995
|
return {
|
|
27996
27996
|
transform: `scale(${props.scale})`,
|
|
27997
|
-
width: `${props.width}px
|
|
27997
|
+
width: `${props.width}px`,
|
|
27998
|
+
'transform-origin': 'top left'
|
|
27998
27999
|
};
|
|
27999
28000
|
}
|
|
28000
28001
|
|
|
@@ -28057,7 +28058,7 @@
|
|
|
28057
28058
|
|
|
28058
28059
|
var scale = isDefined(config && config.scale) ? config.scale : {
|
|
28059
28060
|
min: 1,
|
|
28060
|
-
max: 1
|
|
28061
|
+
max: 1
|
|
28061
28062
|
};
|
|
28062
28063
|
|
|
28063
28064
|
this._config = {
|
|
@@ -44645,7 +44646,6 @@
|
|
|
44645
44646
|
};
|
|
44646
44647
|
|
|
44647
44648
|
/**
|
|
44648
|
-
* @typedef {import('../dragging/Dragging').default} Dragging
|
|
44649
44649
|
* @typedef {import('../../core/EventBus').default} EventBus
|
|
44650
44650
|
*
|
|
44651
44651
|
* @typedef {import('../../core/EventBus').Event} Event
|
|
@@ -44658,24 +44658,21 @@
|
|
|
44658
44658
|
* it takes care of making sure that the correct active state is set.
|
|
44659
44659
|
*
|
|
44660
44660
|
* @param {EventBus} eventBus
|
|
44661
|
-
* @param {Dragging} dragging
|
|
44662
44661
|
*/
|
|
44663
|
-
function ToolManager(eventBus
|
|
44662
|
+
function ToolManager(eventBus) {
|
|
44664
44663
|
this._eventBus = eventBus;
|
|
44665
|
-
this._dragging = dragging;
|
|
44666
44664
|
|
|
44667
44665
|
this._tools = [];
|
|
44668
44666
|
this._active = null;
|
|
44669
44667
|
}
|
|
44670
44668
|
|
|
44671
|
-
ToolManager.$inject = [ 'eventBus'
|
|
44669
|
+
ToolManager.$inject = [ 'eventBus' ];
|
|
44672
44670
|
|
|
44673
44671
|
/**
|
|
44674
44672
|
* Register a tool.
|
|
44675
44673
|
*
|
|
44676
44674
|
* @param {string} name
|
|
44677
44675
|
* @param { {
|
|
44678
|
-
* dragging: string;
|
|
44679
44676
|
* tool: string;
|
|
44680
44677
|
* } } events
|
|
44681
44678
|
*/
|
|
@@ -44687,7 +44684,6 @@
|
|
|
44687
44684
|
}
|
|
44688
44685
|
|
|
44689
44686
|
tools.push(name);
|
|
44690
|
-
|
|
44691
44687
|
this.bindEvents(name, events);
|
|
44692
44688
|
};
|
|
44693
44689
|
|
|
@@ -44710,8 +44706,7 @@
|
|
|
44710
44706
|
};
|
|
44711
44707
|
|
|
44712
44708
|
ToolManager.prototype.bindEvents = function(name, events) {
|
|
44713
|
-
var eventBus = this._eventBus
|
|
44714
|
-
dragging = this._dragging;
|
|
44709
|
+
var eventBus = this._eventBus;
|
|
44715
44710
|
|
|
44716
44711
|
var eventsToRegister = [];
|
|
44717
44712
|
|
|
@@ -44722,7 +44717,6 @@
|
|
|
44722
44717
|
if (!context.reactivate && this.isActive(name)) {
|
|
44723
44718
|
this.setActive(null);
|
|
44724
44719
|
|
|
44725
|
-
dragging.cancel();
|
|
44726
44720
|
return;
|
|
44727
44721
|
}
|
|
44728
44722
|
|
|
@@ -61422,7 +61416,7 @@
|
|
|
61422
61416
|
if (target) {
|
|
61423
61417
|
if (canExecute === 'attach') {
|
|
61424
61418
|
setMarker(target, MARKER_ATTACH);
|
|
61425
|
-
} else if (context.canExecute &&
|
|
61419
|
+
} else if (context.canExecute && parent && target.id !== parent.id) {
|
|
61426
61420
|
setMarker(target, MARKER_NEW_PARENT);
|
|
61427
61421
|
} else {
|
|
61428
61422
|
setMarker(target, context.canExecute ? MARKER_OK$1 : MARKER_NOT_OK$1);
|