bpmn-js 18.10.0 → 18.10.1

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/README.md CHANGED
@@ -74,7 +74,7 @@ bpmn-js builds on top of a few powerful tools:
74
74
  * [bpmn-moddle](https://github.com/bpmn-io/bpmn-moddle): Read / write support for BPMN 2.0 XML in the browsers
75
75
  * [diagram-js](https://github.com/bpmn-io/diagram-js): Diagram rendering and editing toolkit
76
76
 
77
- It is an extensible toolkit, complemented by many [additional utilities](https://github.com/bpmn-io/awesome-bpmn-io).
77
+ It is an extensible toolkit, complemented by many [additional utilities](https://github.com/bpmn-io/awesome-bpmn-io).
78
78
 
79
79
  ## License
80
80
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * bpmn-js - bpmn-modeler v18.10.0
2
+ * bpmn-js - bpmn-modeler v18.10.1
3
3
  *
4
4
  * Copyright (c) 2014-present, camunda Services GmbH
5
5
  *
@@ -258,7 +258,7 @@
258
258
  * @return {Boolean}
259
259
  */
260
260
  function has$1(target, key) {
261
- return nativeHasOwnProperty$1.call(target, key);
261
+ return !isNil(target) && nativeHasOwnProperty$1.call(target, key);
262
262
  }
263
263
 
264
264
  /**
@@ -347,7 +347,7 @@
347
347
  * @param {Collection<T>} collection
348
348
  * @param {Matcher<T>} matcher
349
349
  *
350
- * @return {number}
350
+ * @return {number | string | undefined}
351
351
  */
352
352
  function findIndex(collection, matcher) {
353
353
 
@@ -1990,7 +1990,7 @@
1990
1990
  */
1991
1991
 
1992
1992
  var TEXT_ENTITIES = /([&<>]{1})/g;
1993
- var ATTR_ENTITIES = /([\n\r"]{1})/g;
1993
+ var ATTR_ENTITIES = /([&<>\n\r"]{1})/g;
1994
1994
 
1995
1995
  var ENTITY_REPLACEMENT = {
1996
1996
  '&': '&amp;',
@@ -31708,7 +31708,7 @@
31708
31708
 
31709
31709
  return [
31710
31710
  [ 'M', x, y ],
31711
- [ 'm', 0, -10 ],
31711
+ [ 'm', 0, -r ],
31712
31712
  [ 'a', r, r, 0, 1, 1, 0, 2 * r ],
31713
31713
  [ 'a', r, r, 0, 1, 1, 0, -2 * r ],
31714
31714
  [ 'z' ]
@@ -32037,8 +32037,8 @@
32037
32037
 
32038
32038
  var visual = create$1('rect');
32039
32039
  attr(visual, {
32040
- x: -18 / 2,
32041
- y: -6 / 2,
32040
+ x: -width / 2,
32041
+ y: -height / 2,
32042
32042
  width: width,
32043
32043
  height: height
32044
32044
  });
@@ -32049,7 +32049,7 @@
32049
32049
  var hit = create$1('rect');
32050
32050
  attr(hit, {
32051
32051
  x: -hitWidth / 2,
32052
- y: -17 / 2,
32052
+ y: -hitHeight / 2,
32053
32053
  width: hitWidth,
32054
32054
  height: hitHeight
32055
32055
  });
@@ -60811,8 +60811,8 @@
60811
60811
  var visual = create$1('rect');
60812
60812
 
60813
60813
  attr(visual, {
60814
- x: -8 / 2 + offset.x,
60815
- y: -8 / 2 + offset.y,
60814
+ x: -HANDLE_SIZE / 2 + offset.x,
60815
+ y: -HANDLE_SIZE / 2 + offset.y,
60816
60816
  width: HANDLE_SIZE,
60817
60817
  height: HANDLE_SIZE
60818
60818
  });
@@ -60824,8 +60824,8 @@
60824
60824
  var hit = create$1('rect');
60825
60825
 
60826
60826
  attr(hit, {
60827
- x: -20 / 2 + offset.x,
60828
- y: -20 / 2 + offset.y,
60827
+ x: -HANDLE_HIT_SIZE / 2 + offset.x,
60828
+ y: -HANDLE_HIT_SIZE / 2 + offset.y,
60829
60829
  width: HANDLE_HIT_SIZE,
60830
60830
  height: HANDLE_HIT_SIZE
60831
60831
  });
@@ -60895,13 +60895,13 @@
60895
60895
  };
60896
60896
 
60897
60897
  if (direction.indexOf('e') !== -1) {
60898
- offset.x = 6;
60898
+ offset.x = -HANDLE_OFFSET;
60899
60899
  } else if (direction.indexOf('w') !== -1) {
60900
60900
  offset.x = HANDLE_OFFSET;
60901
60901
  }
60902
60902
 
60903
60903
  if (direction.indexOf('s') !== -1) {
60904
- offset.y = 6;
60904
+ offset.y = -HANDLE_OFFSET;
60905
60905
  } else if (direction.indexOf('n') !== -1) {
60906
60906
  offset.y = HANDLE_OFFSET;
60907
60907
  }
@@ -66490,8 +66490,8 @@
66490
66490
  outline = create$1('rect');
66491
66491
 
66492
66492
  attr(outline, assign$1({
66493
- x: -5,
66494
- y: -5,
66493
+ x: -DEFAULT_OFFSET,
66494
+ y: -DEFAULT_OFFSET,
66495
66495
  rx: 4,
66496
66496
  width: element.width + DEFAULT_OFFSET * 2,
66497
66497
  height: element.height + DEFAULT_OFFSET * 2
@@ -66525,8 +66525,8 @@
66525
66525
  outline = create$1('rect');
66526
66526
 
66527
66527
  attr(outline, assign$1({
66528
- x: -5,
66529
- y: -5,
66528
+ x: -DEFAULT_OFFSET,
66529
+ y: -DEFAULT_OFFSET,
66530
66530
  rx: 14,
66531
66531
  width: element.width + DEFAULT_OFFSET * 2,
66532
66532
  height: element.height + DEFAULT_OFFSET * 2