bpmn-js 15.1.2 → 15.2.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/assets/diagram-js.css +6 -32
- package/dist/bpmn-modeler.development.js +44 -13
- package/dist/bpmn-modeler.production.min.js +4 -4
- package/dist/bpmn-navigated-viewer.development.js +17 -13
- package/dist/bpmn-navigated-viewer.production.min.js +2 -2
- package/dist/bpmn-viewer.development.js +17 -13
- package/dist/bpmn-viewer.production.min.js +2 -2
- package/lib/features/outline/OutlineProvider.js +13 -0
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* bpmn-js - bpmn-navigated-viewer v15.
|
|
2
|
+
* bpmn-js - bpmn-navigated-viewer v15.2.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: 2023-11-
|
|
11
|
+
* Date: 2023-11-21
|
|
12
12
|
*/
|
|
13
13
|
(function (global, factory) {
|
|
14
14
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -7368,15 +7368,20 @@
|
|
|
7368
7368
|
|
|
7369
7369
|
var self = this;
|
|
7370
7370
|
|
|
7371
|
-
|
|
7371
|
+
/**
|
|
7372
|
+
* @param {SVGElement} gfx
|
|
7373
|
+
*
|
|
7374
|
+
* @return {SVGElement} outline
|
|
7375
|
+
*/
|
|
7376
|
+
function createOutline(gfx) {
|
|
7372
7377
|
var outline = create$1('rect');
|
|
7373
7378
|
|
|
7374
7379
|
attr$1(outline, assign$1({
|
|
7375
|
-
x:
|
|
7376
|
-
y:
|
|
7380
|
+
x: 0,
|
|
7381
|
+
y: 0,
|
|
7377
7382
|
rx: 4,
|
|
7378
|
-
width:
|
|
7379
|
-
height:
|
|
7383
|
+
width: 100,
|
|
7384
|
+
height: 100
|
|
7380
7385
|
}, OUTLINE_STYLE));
|
|
7381
7386
|
|
|
7382
7387
|
return outline;
|
|
@@ -7391,12 +7396,11 @@
|
|
|
7391
7396
|
var outline = query('.djs-outline', gfx);
|
|
7392
7397
|
|
|
7393
7398
|
if (!outline) {
|
|
7394
|
-
outline = self.getOutline(element) || createOutline(
|
|
7399
|
+
outline = self.getOutline(element) || createOutline();
|
|
7395
7400
|
append(gfx, outline);
|
|
7396
|
-
|
|
7397
|
-
} else {
|
|
7398
|
-
self.updateShapeOutline(outline, element);
|
|
7399
7401
|
}
|
|
7402
|
+
|
|
7403
|
+
self.updateShapeOutline(outline, element);
|
|
7400
7404
|
});
|
|
7401
7405
|
|
|
7402
7406
|
eventBus.on([ 'connection.added', 'connection.changed' ], function(event) {
|
|
@@ -7406,7 +7410,7 @@
|
|
|
7406
7410
|
var outline = query('.djs-outline', gfx);
|
|
7407
7411
|
|
|
7408
7412
|
if (!outline) {
|
|
7409
|
-
outline = createOutline(
|
|
7413
|
+
outline = createOutline();
|
|
7410
7414
|
append(gfx, outline);
|
|
7411
7415
|
}
|
|
7412
7416
|
|
|
@@ -7450,7 +7454,7 @@
|
|
|
7450
7454
|
*
|
|
7451
7455
|
* @param {SVGElement} outline
|
|
7452
7456
|
* @param {Element} connection
|
|
7453
|
-
|
|
7457
|
+
*/
|
|
7454
7458
|
Outline.prototype.updateConnectionOutline = function(outline, connection) {
|
|
7455
7459
|
var bbox = getBBox(connection);
|
|
7456
7460
|
|