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-viewer v15.
|
|
2
|
+
* bpmn-js - bpmn-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() :
|
|
@@ -7347,15 +7347,20 @@
|
|
|
7347
7347
|
|
|
7348
7348
|
var self = this;
|
|
7349
7349
|
|
|
7350
|
-
|
|
7350
|
+
/**
|
|
7351
|
+
* @param {SVGElement} gfx
|
|
7352
|
+
*
|
|
7353
|
+
* @return {SVGElement} outline
|
|
7354
|
+
*/
|
|
7355
|
+
function createOutline(gfx) {
|
|
7351
7356
|
var outline = create$1('rect');
|
|
7352
7357
|
|
|
7353
7358
|
attr$1(outline, assign$1({
|
|
7354
|
-
x:
|
|
7355
|
-
y:
|
|
7359
|
+
x: 0,
|
|
7360
|
+
y: 0,
|
|
7356
7361
|
rx: 4,
|
|
7357
|
-
width:
|
|
7358
|
-
height:
|
|
7362
|
+
width: 100,
|
|
7363
|
+
height: 100
|
|
7359
7364
|
}, OUTLINE_STYLE));
|
|
7360
7365
|
|
|
7361
7366
|
return outline;
|
|
@@ -7370,12 +7375,11 @@
|
|
|
7370
7375
|
var outline = query('.djs-outline', gfx);
|
|
7371
7376
|
|
|
7372
7377
|
if (!outline) {
|
|
7373
|
-
outline = self.getOutline(element) || createOutline(
|
|
7378
|
+
outline = self.getOutline(element) || createOutline();
|
|
7374
7379
|
append(gfx, outline);
|
|
7375
|
-
|
|
7376
|
-
} else {
|
|
7377
|
-
self.updateShapeOutline(outline, element);
|
|
7378
7380
|
}
|
|
7381
|
+
|
|
7382
|
+
self.updateShapeOutline(outline, element);
|
|
7379
7383
|
});
|
|
7380
7384
|
|
|
7381
7385
|
eventBus.on([ 'connection.added', 'connection.changed' ], function(event) {
|
|
@@ -7385,7 +7389,7 @@
|
|
|
7385
7389
|
var outline = query('.djs-outline', gfx);
|
|
7386
7390
|
|
|
7387
7391
|
if (!outline) {
|
|
7388
|
-
outline = createOutline(
|
|
7392
|
+
outline = createOutline();
|
|
7389
7393
|
append(gfx, outline);
|
|
7390
7394
|
}
|
|
7391
7395
|
|
|
@@ -7429,7 +7433,7 @@
|
|
|
7429
7433
|
*
|
|
7430
7434
|
* @param {SVGElement} outline
|
|
7431
7435
|
* @param {Element} connection
|
|
7432
|
-
|
|
7436
|
+
*/
|
|
7433
7437
|
Outline.prototype.updateConnectionOutline = function(outline, connection) {
|
|
7434
7438
|
var bbox = getBBox(connection);
|
|
7435
7439
|
|