bpmn-js 17.8.1 → 17.8.2

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * bpmn-js - bpmn-navigated-viewer v17.8.1
2
+ * bpmn-js - bpmn-navigated-viewer v17.8.2
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-05-30
11
+ * Date: 2024-06-17
12
12
  */
13
13
  (function (global, factory) {
14
14
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -504,7 +504,7 @@
504
504
  *
505
505
  * @return {T}
506
506
  */
507
- function set$2(target, path, value) {
507
+ function set$1(target, path, value) {
508
508
 
509
509
  let currentTarget = target;
510
510
 
@@ -1526,9 +1526,7 @@
1526
1526
  }
1527
1527
 
1528
1528
  function createTransform(matrix) {
1529
- if (matrix) {
1530
- return getNode().createSVGTransformFromMatrix(matrix);
1531
- } else {
1529
+ {
1532
1530
  return getNode().createSVGTransform();
1533
1531
  }
1534
1532
  }
@@ -1610,39 +1608,6 @@
1610
1608
  return output;
1611
1609
  }
1612
1610
 
1613
- /**
1614
- * innerHTML like functionality for SVG elements.
1615
- * based on innerSVG (https://code.google.com/p/innersvg)
1616
- */
1617
-
1618
-
1619
-
1620
- function set$1(element, svg) {
1621
-
1622
- var parsed = parse$1(svg);
1623
-
1624
- // clear element contents
1625
- clear$1(element);
1626
-
1627
- if (!svg) {
1628
- return;
1629
- }
1630
-
1631
- if (!isFragment(parsed)) {
1632
-
1633
- // extract <svg> from parsed document
1634
- parsed = parsed.documentElement;
1635
- }
1636
-
1637
- var nodes = slice$1(parsed.childNodes);
1638
-
1639
- // import + append each node
1640
- for (var i = 0; i < nodes.length; i++) {
1641
- appendTo(nodes[i], element);
1642
- }
1643
-
1644
- }
1645
-
1646
1611
  function get(element) {
1647
1612
  var child = element.firstChild,
1648
1613
  output = [];
@@ -1655,31 +1620,13 @@
1655
1620
  return output.join('');
1656
1621
  }
1657
1622
 
1658
- function isFragment(node) {
1659
- return node.nodeName === '#document-fragment';
1660
- }
1661
-
1662
1623
  function innerSVG(element, svg) {
1663
1624
 
1664
- if (svg !== undefined) {
1665
-
1666
- try {
1667
- set$1(element, svg);
1668
- } catch (e) {
1669
- throw new Error('error parsing SVG: ' + e.message);
1670
- }
1671
-
1672
- return element;
1673
- } else {
1625
+ {
1674
1626
  return get(element);
1675
1627
  }
1676
1628
  }
1677
1629
 
1678
-
1679
- function slice$1(arr) {
1680
- return Array.prototype.slice.call(arr);
1681
- }
1682
-
1683
1630
  function remove$2(element) {
1684
1631
  var parent = element.parentNode;
1685
1632
 
@@ -2694,7 +2641,7 @@
2694
2641
  rotate.setRotate(angle || 0, 0, 0);
2695
2642
 
2696
2643
  var scale = createTransform();
2697
- scale.setScale(amount || 1, amount || 1);
2644
+ scale.setScale(1, 1);
2698
2645
 
2699
2646
  transform$1(gfx, [ translate, rotate, scale ]);
2700
2647
  }
@@ -9129,6 +9076,7 @@
9129
9076
  * @typedef {import('../util/Types').Point} Point
9130
9077
  */
9131
9078
 
9079
+
9132
9080
  /**
9133
9081
  * @param {import('../core/EventBus').Event} event
9134
9082
  *
@@ -15368,7 +15316,7 @@
15368
15316
  return this[key];
15369
15317
  },
15370
15318
  set: function(key, value) {
15371
- set$2(this, [ key ], value);
15319
+ set$1(this, [ key ], value);
15372
15320
  }
15373
15321
  };
15374
15322
 
@@ -22749,6 +22697,7 @@
22749
22697
  */
22750
22698
 
22751
22699
 
22700
+
22752
22701
  // inlined ../../resources/logo.svg
22753
22702
  var BPMNIO_LOGO_SVG = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14.02 5.57" width="53" height="21"><path fill="currentColor" d="M1.88.92v.14c0 .41-.13.68-.4.8.33.14.46.44.46.86v.33c0 .61-.33.95-.95.95H0V0h.95c.65 0 .93.3.93.92zM.63.57v1.06h.24c.24 0 .38-.1.38-.43V.98c0-.28-.1-.4-.32-.4zm0 1.63v1.22h.36c.2 0 .32-.1.32-.39v-.35c0-.37-.12-.48-.4-.48H.63zM4.18.99v.52c0 .64-.31.98-.94.98h-.3V4h-.62V0h.92c.63 0 .94.35.94.99zM2.94.57v1.35h.3c.2 0 .3-.09.3-.37v-.6c0-.29-.1-.38-.3-.38h-.3zm2.89 2.27L6.25 0h.88v4h-.6V1.12L6.1 3.99h-.6l-.46-2.82v2.82h-.55V0h.87zM8.14 1.1V4h-.56V0h.79L9 2.4V0h.56v4h-.64zm2.49 2.29v.6h-.6v-.6zM12.12 1c0-.63.33-1 .95-1 .61 0 .95.37.95 1v2.04c0 .64-.34 1-.95 1-.62 0-.95-.37-.95-1zm.62 2.08c0 .28.13.39.33.39s.32-.1.32-.4V.98c0-.29-.12-.4-.32-.4s-.33.11-.33.4z"/><path fill="currentColor" d="M0 4.53h14.02v1.04H0zM11.08 0h.63v.62h-.63zm.63 4V1h-.63v2.98z"/></svg>';
22754
22703
 
@@ -24390,6 +24339,7 @@
24390
24339
  */
24391
24340
 
24392
24341
 
24342
+
24393
24343
  /**
24394
24344
  * @param {Point} a
24395
24345
  * @param {Point} b