bpmn-js 13.0.4 → 13.0.6

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.
Files changed (168) hide show
  1. package/dist/bpmn-modeler.development.js +119 -203
  2. package/dist/bpmn-modeler.production.min.js +34 -35
  3. package/dist/bpmn-navigated-viewer.development.js +36 -25
  4. package/dist/bpmn-navigated-viewer.production.min.js +5 -5
  5. package/dist/bpmn-viewer.development.js +36 -25
  6. package/dist/bpmn-viewer.production.min.js +5 -5
  7. package/lib/BaseModeler.d.ts +12 -12
  8. package/lib/BaseViewer.d.ts +160 -160
  9. package/lib/Modeler.d.ts +76 -76
  10. package/lib/NavigatedViewer.d.ts +8 -8
  11. package/lib/Viewer.d.ts +44 -44
  12. package/lib/core/index.d.ts +10 -10
  13. package/lib/draw/BpmnRenderUtil.d.ts +77 -77
  14. package/lib/draw/BpmnRenderer.d.ts +126 -124
  15. package/lib/draw/BpmnRenderer.js +5 -5
  16. package/lib/draw/PathMap.d.ts +330 -330
  17. package/lib/draw/TextRenderer.d.ts +74 -74
  18. package/lib/draw/index.d.ts +10 -10
  19. package/lib/features/align-elements/AlignElementsContextPadProvider.d.ts +32 -32
  20. package/lib/features/align-elements/AlignElementsIcons.d.ts +10 -10
  21. package/lib/features/align-elements/AlignElementsMenuProvider.d.ts +32 -32
  22. package/lib/features/align-elements/BpmnAlignElements.d.ts +9 -9
  23. package/lib/features/align-elements/index.d.ts +11 -11
  24. package/lib/features/auto-place/BpmnAutoPlace.d.ts +13 -13
  25. package/lib/features/auto-place/BpmnAutoPlaceUtil.d.ts +47 -47
  26. package/lib/features/auto-place/BpmnAutoPlaceUtil.js +2 -4
  27. package/lib/features/auto-place/index.d.ts +7 -7
  28. package/lib/features/auto-resize/BpmnAutoResize.d.ts +25 -25
  29. package/lib/features/auto-resize/BpmnAutoResizeProvider.d.ts +26 -26
  30. package/lib/features/auto-resize/index.d.ts +8 -8
  31. package/lib/features/context-pad/ContextPadProvider.d.ts +60 -60
  32. package/lib/features/context-pad/index.d.ts +7 -7
  33. package/lib/features/copy-paste/BpmnCopyPaste.d.ts +17 -17
  34. package/lib/features/copy-paste/BpmnCopyPaste.js +1 -1
  35. package/lib/features/copy-paste/ModdleCopy.d.ts +45 -45
  36. package/lib/features/copy-paste/index.d.ts +9 -9
  37. package/lib/features/di-ordering/BpmnDiOrdering.d.ts +11 -11
  38. package/lib/features/di-ordering/index.d.ts +6 -6
  39. package/lib/features/distribute-elements/BpmnDistributeElements.d.ts +10 -10
  40. package/lib/features/distribute-elements/DistributeElementsIcons.d.ts +5 -5
  41. package/lib/features/distribute-elements/DistributeElementsMenuProvider.d.ts +32 -32
  42. package/lib/features/distribute-elements/index.d.ts +9 -9
  43. package/lib/features/drilldown/DrilldownBreadcrumbs.d.ts +19 -19
  44. package/lib/features/drilldown/DrilldownCentering.d.ts +17 -17
  45. package/lib/features/drilldown/DrilldownOverlayBehavior.d.ts +18 -18
  46. package/lib/features/drilldown/SubprocessCompatibility.d.ts +21 -21
  47. package/lib/features/drilldown/index.d.ts +13 -13
  48. package/lib/features/editor-actions/BpmnEditorActions.d.ts +13 -13
  49. package/lib/features/editor-actions/index.d.ts +6 -6
  50. package/lib/features/grid-snapping/BpmnGridSnapping.d.ts +9 -9
  51. package/lib/features/grid-snapping/behavior/GridSnappingAutoPlaceBehavior.d.ts +12 -12
  52. package/lib/features/grid-snapping/behavior/GridSnappingLayoutConnectionBehavior.d.ts +27 -27
  53. package/lib/features/grid-snapping/behavior/GridSnappingParticipantBehavior.d.ts +13 -13
  54. package/lib/features/grid-snapping/behavior/index.d.ts +10 -10
  55. package/lib/features/grid-snapping/index.d.ts +11 -11
  56. package/lib/features/interaction-events/BpmnInteractionEvents.d.ts +18 -18
  57. package/lib/features/interaction-events/index.d.ts +6 -6
  58. package/lib/features/keyboard/BpmnKeyboardBindings.d.ts +15 -15
  59. package/lib/features/keyboard/index.d.ts +7 -7
  60. package/lib/features/label-editing/LabelEditingPreview.d.ts +13 -13
  61. package/lib/features/label-editing/LabelEditingProvider.d.ts +62 -62
  62. package/lib/features/label-editing/LabelUtil.d.ts +1 -1
  63. package/lib/features/label-editing/cmd/UpdateLabelHandler.d.ts +22 -22
  64. package/lib/features/label-editing/index.d.ts +9 -9
  65. package/lib/features/modeling/BpmnFactory.d.ts +73 -73
  66. package/lib/features/modeling/BpmnLayouter.d.ts +26 -26
  67. package/lib/features/modeling/BpmnUpdater.d.ts +92 -92
  68. package/lib/features/modeling/ElementFactory.d.ts +119 -119
  69. package/lib/features/modeling/Modeling.d.ts +150 -150
  70. package/lib/features/modeling/behavior/AdaptiveLabelPositioningBehavior.d.ts +20 -20
  71. package/lib/features/modeling/behavior/AppendBehavior.d.ts +6 -6
  72. package/lib/features/modeling/behavior/AssociationBehavior.d.ts +11 -11
  73. package/lib/features/modeling/behavior/AttachEventBehavior.d.ts +15 -15
  74. package/lib/features/modeling/behavior/BoundaryEventBehavior.d.ts +15 -15
  75. package/lib/features/modeling/behavior/CreateBehavior.d.ts +9 -9
  76. package/lib/features/modeling/behavior/CreateDataObjectBehavior.d.ts +15 -15
  77. package/lib/features/modeling/behavior/CreateParticipantBehavior.d.ts +19 -19
  78. package/lib/features/modeling/behavior/CreateParticipantBehavior.js +2 -4
  79. package/lib/features/modeling/behavior/DataInputAssociationBehavior.d.ts +21 -21
  80. package/lib/features/modeling/behavior/DataStoreBehavior.d.ts +19 -19
  81. package/lib/features/modeling/behavior/DeleteLaneBehavior.d.ts +15 -15
  82. package/lib/features/modeling/behavior/DetachEventBehavior.d.ts +15 -15
  83. package/lib/features/modeling/behavior/DropOnFlowBehavior.d.ts +13 -13
  84. package/lib/features/modeling/behavior/EventBasedGatewayBehavior.d.ts +11 -11
  85. package/lib/features/modeling/behavior/FixHoverBehavior.d.ts +17 -17
  86. package/lib/features/modeling/behavior/GroupBehavior.d.ts +26 -26
  87. package/lib/features/modeling/behavior/ImportDockingFix.d.ts +13 -13
  88. package/lib/features/modeling/behavior/IsHorizontalFix.d.ts +10 -10
  89. package/lib/features/modeling/behavior/LabelBehavior.d.ts +56 -56
  90. package/lib/features/modeling/behavior/LayoutConnectionBehavior.d.ts +16 -16
  91. package/lib/features/modeling/behavior/MessageFlowBehavior.d.ts +15 -15
  92. package/lib/features/modeling/behavior/ModelingFeedback.d.ts +13 -13
  93. package/lib/features/modeling/behavior/RemoveElementBehavior.d.ts +13 -13
  94. package/lib/features/modeling/behavior/RemoveEmbeddedLabelBoundsBehavior.d.ts +16 -16
  95. package/lib/features/modeling/behavior/RemoveParticipantBehavior.d.ts +15 -15
  96. package/lib/features/modeling/behavior/ReplaceConnectionBehavior.d.ts +15 -15
  97. package/lib/features/modeling/behavior/ReplaceElementBehaviour.d.ts +23 -23
  98. package/lib/features/modeling/behavior/ResizeBehavior.d.ts +57 -57
  99. package/lib/features/modeling/behavior/ResizeLaneBehavior.d.ts +16 -16
  100. package/lib/features/modeling/behavior/RootElementReferenceBehavior.d.ts +25 -25
  101. package/lib/features/modeling/behavior/SpaceToolBehavior.d.ts +10 -10
  102. package/lib/features/modeling/behavior/SubProcessPlaneBehavior.d.ts +28 -28
  103. package/lib/features/modeling/behavior/SubProcessStartEventBehavior.d.ts +15 -15
  104. package/lib/features/modeling/behavior/ToggleCollapseConnectionBehaviour.d.ts +14 -14
  105. package/lib/features/modeling/behavior/ToggleElementCollapseBehaviour.d.ts +13 -13
  106. package/lib/features/modeling/behavior/UnclaimIdBehavior.d.ts +19 -19
  107. package/lib/features/modeling/behavior/UnsetDefaultFlowBehavior.d.ts +16 -16
  108. package/lib/features/modeling/behavior/UpdateFlowNodeRefsBehavior.d.ts +17 -17
  109. package/lib/features/modeling/behavior/index.d.ts +2 -2
  110. package/lib/features/modeling/behavior/util/CategoryUtil.d.ts +49 -49
  111. package/lib/features/modeling/behavior/util/ConnectionLayoutUtil.d.ts +19 -19
  112. package/lib/features/modeling/behavior/util/GeometricUtil.d.ts +1 -1
  113. package/lib/features/modeling/behavior/util/LabelLayoutUtil.d.ts +32 -32
  114. package/lib/features/modeling/behavior/util/LayoutUtil.d.ts +48 -48
  115. package/lib/features/modeling/behavior/util/LineAttachmentUtil.d.ts +37 -37
  116. package/lib/features/modeling/behavior/util/LineIntersect.d.ts +13 -13
  117. package/lib/features/modeling/behavior/util/ResizeUtil.d.ts +1 -1
  118. package/lib/features/modeling/cmd/AddLaneHandler.d.ts +22 -22
  119. package/lib/features/modeling/cmd/IdClaimHandler.d.ts +22 -22
  120. package/lib/features/modeling/cmd/ResizeLaneHandler.d.ts +39 -39
  121. package/lib/features/modeling/cmd/SetColorHandler.d.ts +18 -18
  122. package/lib/features/modeling/cmd/SetColorHandler.js +2 -4
  123. package/lib/features/modeling/cmd/SplitLaneHandler.d.ts +22 -22
  124. package/lib/features/modeling/cmd/UpdateCanvasRootHandler.d.ts +20 -20
  125. package/lib/features/modeling/cmd/UpdateFlowNodeRefsHandler.d.ts +21 -21
  126. package/lib/features/modeling/cmd/UpdateModdlePropertiesHandler.d.ts +20 -20
  127. package/lib/features/modeling/cmd/UpdatePropertiesHandler.d.ts +60 -60
  128. package/lib/features/modeling/cmd/UpdateSemanticParentHandler.d.ts +18 -18
  129. package/lib/features/modeling/index.d.ts +27 -27
  130. package/lib/features/modeling/util/LaneUtil.d.ts +46 -46
  131. package/lib/features/modeling/util/ModelingUtil.d.ts +12 -12
  132. package/lib/features/ordering/BpmnOrderingProvider.d.ts +21 -21
  133. package/lib/features/ordering/index.d.ts +7 -7
  134. package/lib/features/palette/PaletteProvider.d.ts +34 -34
  135. package/lib/features/palette/index.d.ts +9 -9
  136. package/lib/features/popup-menu/ReplaceMenuProvider.d.ts +50 -50
  137. package/lib/features/popup-menu/index.d.ts +11 -11
  138. package/lib/features/popup-menu/util/TypeUtil.d.ts +14 -14
  139. package/lib/features/replace/BpmnReplace.d.ts +47 -47
  140. package/lib/features/replace/ReplaceOptions.d.ts +75 -75
  141. package/lib/features/replace/index.d.ts +9 -9
  142. package/lib/features/replace-preview/BpmnReplacePreview.d.ts +17 -17
  143. package/lib/features/replace-preview/index.d.ts +7 -7
  144. package/lib/features/rules/BpmnRules.d.ts +172 -172
  145. package/lib/features/rules/BpmnRules.js +2 -9
  146. package/lib/features/rules/index.d.ts +7 -7
  147. package/lib/features/search/BpmnSearchProvider.d.ts +29 -29
  148. package/lib/features/search/index.d.ts +7 -7
  149. package/lib/features/snapping/BpmnConnectSnapping.d.ts +17 -17
  150. package/lib/features/snapping/BpmnCreateMoveSnapping.d.ts +41 -41
  151. package/lib/features/snapping/BpmnSnappingUtil.d.ts +11 -11
  152. package/lib/features/snapping/index.d.ts +9 -9
  153. package/lib/features/space-tool/BpmnSpaceTool.d.ts +21 -21
  154. package/lib/features/space-tool/index.d.ts +6 -6
  155. package/lib/import/BpmnImporter.d.ts +53 -53
  156. package/lib/import/BpmnTreeWalker.d.ts +22 -22
  157. package/lib/import/Importer.d.ts +25 -25
  158. package/lib/import/Util.d.ts +1 -1
  159. package/lib/import/index.d.ts +6 -6
  160. package/lib/model/Types.d.ts +24 -24
  161. package/lib/util/CompatibilityUtil.d.ts +22 -22
  162. package/lib/util/DiUtil.d.ts +53 -53
  163. package/lib/util/DrilldownUtil.d.ts +39 -39
  164. package/lib/util/LabelUtil.d.ts +83 -89
  165. package/lib/util/LabelUtil.js +15 -15
  166. package/lib/util/ModelUtil.d.ts +40 -40
  167. package/lib/util/PoweredByUtil.d.ts +8 -8
  168. package/package.json +4 -4
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * bpmn-js - bpmn-modeler v13.0.4
2
+ * bpmn-js - bpmn-modeler v13.0.6
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-04-24
11
+ * Date: 2023-05-17
12
12
  */
13
13
  (function (global, factory) {
14
14
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -4568,7 +4568,29 @@
4568
4568
 
4569
4569
  var intersect = findPathIntersections;
4570
4570
 
4571
- var intersectPaths = intersect;
4571
+ var intersectPaths = /*@__PURE__*/getDefaultExportFromCjs(intersect);
4572
+
4573
+ /**
4574
+ * Checks whether a value is an instance of Connection.
4575
+ *
4576
+ * @param {any} value
4577
+ *
4578
+ * @return {boolean}
4579
+ */
4580
+ function isConnection(value) {
4581
+ return isObject(value) && has$1(value, 'waypoints');
4582
+ }
4583
+
4584
+ /**
4585
+ * Checks whether a value is an instance of Label.
4586
+ *
4587
+ * @param {any} value
4588
+ *
4589
+ * @return {boolean}
4590
+ */
4591
+ function isLabel(value) {
4592
+ return isObject(value) && has$1(value, 'labelTarget');
4593
+ }
4572
4594
 
4573
4595
  /**
4574
4596
  * @typedef {import('../core/Types').ElementLike} Element
@@ -4724,7 +4746,7 @@
4724
4746
  * @return {Point}
4725
4747
  */
4726
4748
  function getMid(element) {
4727
- if (isConnection$f(element)) {
4749
+ if (isConnection(element)) {
4728
4750
  return getConnectionMid(element);
4729
4751
  }
4730
4752
 
@@ -4864,10 +4886,6 @@
4864
4886
  return Math.sqrt(Math.pow(a.x - b.x, 2) + Math.pow(a.y - b.y, 2));
4865
4887
  }
4866
4888
 
4867
- function isConnection$f(element) {
4868
- return !!element.waypoints;
4869
- }
4870
-
4871
4889
  /**
4872
4890
  * @typedef {import('./Types').ConnectionLike} ConnectionLike
4873
4891
  * @typedef {import('./Types').RootLike} RootLike
@@ -6611,11 +6629,7 @@
6611
6629
  }
6612
6630
  };
6613
6631
 
6614
- var objectRefsExports = {};
6615
- var objectRefs = {
6616
- get exports(){ return objectRefsExports; },
6617
- set exports(v){ objectRefsExports = v; },
6618
- };
6632
+ var objectRefs = {exports: {}};
6619
6633
 
6620
6634
  var collection = {};
6621
6635
 
@@ -6929,12 +6943,11 @@
6929
6943
 
6930
6944
  var refs = Refs$1;
6931
6945
 
6932
- (function (module) {
6933
- module.exports = refs;
6946
+ objectRefs.exports = refs;
6934
6947
 
6935
- module.exports.Collection = collection;
6936
- } (objectRefs));
6948
+ objectRefs.exports.Collection = collection;
6937
6949
 
6950
+ var objectRefsExports = objectRefs.exports;
6938
6951
  var Refs = /*@__PURE__*/getDefaultExportFromCjs(objectRefsExports);
6939
6952
 
6940
6953
  var parentRefs = new Refs({ name: 'children', enumerable: true, collection: true }, { name: 'parent' }),
@@ -7176,6 +7189,7 @@
7176
7189
  *
7177
7190
  * @return {Root}
7178
7191
  */
7192
+
7179
7193
  /**
7180
7194
  * Creates a connection.
7181
7195
  *
@@ -7199,6 +7213,7 @@
7199
7213
  *
7200
7214
  * @return {Connection}
7201
7215
  */
7216
+
7202
7217
  /**
7203
7218
  * Creates a shape.
7204
7219
  *
@@ -7222,6 +7237,7 @@
7222
7237
  *
7223
7238
  * @return {Shape}
7224
7239
  */
7240
+
7225
7241
  /**
7226
7242
  * Creates a label.
7227
7243
  *
@@ -7241,6 +7257,7 @@
7241
7257
  *
7242
7258
  * @param {'label'} type
7243
7259
  * @param {Object} [attrs]
7260
+ *
7244
7261
  * @return {Label}
7245
7262
  */
7246
7263
  function create(type, attrs) {
@@ -7255,6 +7272,7 @@
7255
7272
  * Checks whether an object is a model instance.
7256
7273
  *
7257
7274
  * @param {any} obj
7275
+ *
7258
7276
  * @return {boolean}
7259
7277
  */
7260
7278
  function isModelElement(obj) {
@@ -17956,7 +17974,7 @@
17956
17974
  * @return {boolean}
17957
17975
  */
17958
17976
  function hasExternalLabel(element) {
17959
- return isLabel$5(element.label);
17977
+ return isLabel(element.label);
17960
17978
  }
17961
17979
 
17962
17980
  /**
@@ -18080,19 +18098,10 @@
18080
18098
  }
18081
18099
 
18082
18100
  /**
18083
- * @param {Element} element
18101
+ * @param {ModdleElement} semantic
18084
18102
  *
18085
- * @return {boolean}
18086
- */
18087
- function isLabel$5(element) {
18088
- return element && !!element.labelTarget;
18089
- }
18090
-
18091
-
18092
- /**
18093
- * @typedef { import('../model').DiagramElement } DiagramElement
18103
+ * @returns {string}
18094
18104
  */
18095
-
18096
18105
  function getLabelAttr(semantic) {
18097
18106
  if (
18098
18107
  is$1(semantic, 'bpmn:FlowElement') ||
@@ -18115,6 +18124,11 @@
18115
18124
  }
18116
18125
  }
18117
18126
 
18127
+ /**
18128
+ * @param {ModdleElement} semantic
18129
+ *
18130
+ * @returns {string}
18131
+ */
18118
18132
  function getCategoryValue(semantic) {
18119
18133
  var categoryValueRef = semantic['categoryValueRef'];
18120
18134
 
@@ -18127,9 +18141,9 @@
18127
18141
  }
18128
18142
 
18129
18143
  /**
18130
- * @param {DiagramElement} element
18144
+ * @param {Element} element
18131
18145
  *
18132
- * @return {string} label
18146
+ * @return {string}
18133
18147
  */
18134
18148
  function getLabel(element) {
18135
18149
  var semantic = element.businessObject,
@@ -18148,10 +18162,10 @@
18148
18162
 
18149
18163
 
18150
18164
  /**
18151
- * @param {DiagramElement} element
18165
+ * @param {Element} element
18152
18166
  * @param {string} text
18153
18167
  *
18154
- * @return {DiagramElement} element
18168
+ * @return {Element}
18155
18169
  */
18156
18170
  function setLabel(element, text) {
18157
18171
  var semantic = element.businessObject,
@@ -18373,7 +18387,7 @@
18373
18387
  */
18374
18388
 
18375
18389
  /**
18376
- * @typedef { import('../model').DiagramElement } DiagramElement
18390
+ * @typedef { import('../model/Types').Element } Element
18377
18391
  */
18378
18392
 
18379
18393
  /**
@@ -20214,7 +20228,7 @@
20214
20228
 
20215
20229
 
20216
20230
  /**
20217
- * @param {DiagramElement} element
20231
+ * @param {Element} element
20218
20232
  *
20219
20233
  * @return {boolean}
20220
20234
  */
@@ -20226,7 +20240,7 @@
20226
20240
  * Draw shape into parentGfx.
20227
20241
  *
20228
20242
  * @param {SVGElement} parentGfx
20229
- * @param {DiagramElement} element
20243
+ * @param {Element} element
20230
20244
  *
20231
20245
  * @return {SVGElement} mainGfx
20232
20246
  */
@@ -20242,7 +20256,7 @@
20242
20256
  * Draw connection into parentGfx.
20243
20257
  *
20244
20258
  * @param {SVGElement} parentGfx
20245
- * @param {DiagramElement} element
20259
+ * @param {Element} element
20246
20260
  *
20247
20261
  * @return {SVGElement} mainGfx
20248
20262
  */
@@ -20257,7 +20271,7 @@
20257
20271
  /**
20258
20272
  * Get shape path.
20259
20273
  *
20260
- * @param {DiagramElement} element
20274
+ * @param {Element} element
20261
20275
  *
20262
20276
  * @return {string} path
20263
20277
  */
@@ -25974,11 +25988,7 @@
25974
25988
  NavigatedViewer.prototype._navigationModules
25975
25989
  );
25976
25990
 
25977
- var hammerExports = {};
25978
- var hammer = {
25979
- get exports(){ return hammerExports; },
25980
- set exports(v){ hammerExports = v; },
25981
- };
25991
+ var hammer = {exports: {}};
25982
25992
 
25983
25993
  /*! Hammer.JS - v2.0.7 - 2016-04-22
25984
25994
  * http://hammerjs.github.io/
@@ -28623,10 +28633,11 @@
28623
28633
  window[exportName] = Hammer;
28624
28634
  }
28625
28635
 
28626
- })(window, document, 'Hammer');
28636
+ })(window, document, 'Hammer');
28627
28637
  } (hammer));
28628
28638
 
28629
- var Hammer = hammerExports;
28639
+ var hammerExports = hammer.exports;
28640
+ var Hammer = /*@__PURE__*/getDefaultExportFromCjs(hammerExports);
28630
28641
 
28631
28642
  /**
28632
28643
  * @typedef {import('didi').Injector} Injector
@@ -30770,7 +30781,7 @@
30770
30781
  let element = closest(event.delegateTarget || event.target, '.entry', true);
30771
30782
  let entryId = attr$1(element, DATA_REF);
30772
30783
 
30773
- entry = this._getEntry(entryId);
30784
+ entry = { id: entryId, ...this._getEntry(entryId) };
30774
30785
  }
30775
30786
 
30776
30787
  const handler = entry.action;
@@ -31743,7 +31754,7 @@
31743
31754
  y: sourceTrbl.top - 50 - element.height / 2
31744
31755
  };
31745
31756
 
31746
- if (isConnection$e(source)) {
31757
+ if (isConnection(source)) {
31747
31758
  position = getMid(source);
31748
31759
  position.x += 100;
31749
31760
  position.y -= 50;
@@ -31788,10 +31799,6 @@
31788
31799
  return findFreePosition(source, element, position, generateGetNextPosition(nextPositionDirection));
31789
31800
  }
31790
31801
 
31791
- function isConnection$e(element) {
31792
- return !!element.waypoints;
31793
- }
31794
-
31795
31802
  /**
31796
31803
  * @typedef {import('diagram-js/lib/core/EventBus').default} EventBus
31797
31804
  */
@@ -32229,7 +32236,7 @@
32229
32236
 
32230
32237
  forEach$1(elements, function(element) {
32231
32238
 
32232
- if (is$1(element, 'bpmn:Lane') || isLabel$5(element)) {
32239
+ if (is$1(element, 'bpmn:Lane') || isLabel(element)) {
32233
32240
  canResize = false;
32234
32241
  return;
32235
32242
  }
@@ -35243,7 +35250,7 @@
35243
35250
  hoverMid = hover && getSnapPoint(hover, event);
35244
35251
 
35245
35252
  // only snap on connections, elements can have multiple connect endpoints
35246
- if (!isConnection$d(hover) || !hoverMid || !hoverMid.x || !hoverMid.y) {
35253
+ if (!isConnection(hover) || !hoverMid || !hoverMid.x || !hoverMid.y) {
35247
35254
  return;
35248
35255
  }
35249
35256
 
@@ -35295,13 +35302,6 @@
35295
35302
 
35296
35303
  BendpointSnapping.$inject = [ 'eventBus' ];
35297
35304
 
35298
-
35299
- // helpers //////////////////////
35300
-
35301
- function isConnection$d(element) {
35302
- return element && !!element.waypoints;
35303
- }
35304
-
35305
35305
  /**
35306
35306
  * @type { import('didi').ModuleDeclaration }
35307
35307
  */
@@ -36828,11 +36828,11 @@
36828
36828
  elements = filter(elements, function(element) {
36829
36829
  var labelTarget = element.labelTarget;
36830
36830
 
36831
- return !element.parent && !(isLabel$4(element) && elements.indexOf(labelTarget) !== -1);
36831
+ return !element.parent && !(isLabel(element) && elements.indexOf(labelTarget) !== -1);
36832
36832
  });
36833
36833
 
36834
36834
  var shape = find(elements, function(element) {
36835
- return !isConnection$c(element);
36835
+ return !isConnection(element);
36836
36836
  });
36837
36837
 
36838
36838
  var attach = false,
@@ -36987,7 +36987,7 @@
36987
36987
 
36988
36988
  // update shape
36989
36989
  shape = find(elements, function(element) {
36990
- return !isConnection$c(element);
36990
+ return !isConnection(element);
36991
36991
  });
36992
36992
  }
36993
36993
 
@@ -37028,7 +37028,7 @@
37028
37028
  }
37029
37029
 
37030
37030
  var shape = find(elements, function(element) {
37031
- return !isConnection$c(element);
37031
+ return !isConnection(element);
37032
37032
  });
37033
37033
 
37034
37034
  if (!shape) {
@@ -37062,7 +37062,7 @@
37062
37062
 
37063
37063
  // center elements around cursor
37064
37064
  forEach$1(elements, function(element) {
37065
- if (isConnection$c(element)) {
37065
+ if (isConnection(element)) {
37066
37066
  element.waypoints = map$1(element.waypoints, function(waypoint) {
37067
37067
  return {
37068
37068
  x: waypoint.x - bbox.x - bbox.width / 2,
@@ -37124,16 +37124,8 @@
37124
37124
  }
37125
37125
  }
37126
37126
 
37127
- function isConnection$c(element) {
37128
- return !!element.waypoints;
37129
- }
37130
-
37131
37127
  function isSingleShape(elements) {
37132
- return elements && elements.length === 1 && !isConnection$c(elements[0]);
37133
- }
37134
-
37135
- function isLabel$4(element) {
37136
- return !!element.labelTarget;
37128
+ return elements && elements.length === 1 && !isConnection(elements[ 0 ]);
37137
37129
  }
37138
37130
 
37139
37131
  /**
@@ -37466,7 +37458,7 @@
37466
37458
  }
37467
37459
 
37468
37460
  // connections (priority = 3)
37469
- if (isConnection$b(element)) {
37461
+ if (isConnection(element)) {
37470
37462
  descriptor.priority = 3;
37471
37463
 
37472
37464
  descriptor.source = element.source.id;
@@ -37476,7 +37468,7 @@
37476
37468
  }
37477
37469
 
37478
37470
  // labels (priority = 4)
37479
- if (isLabel$3(element)) {
37471
+ if (isLabel(element)) {
37480
37472
  descriptor.priority = 4;
37481
37473
 
37482
37474
  descriptor.labelTarget = element.labelTarget.id;
@@ -37609,7 +37601,7 @@
37609
37601
 
37610
37602
  // center elements around cursor
37611
37603
  forEach$1(elements, function(element) {
37612
- if (isConnection$b(element)) {
37604
+ if (isConnection(element)) {
37613
37605
  element.waypoints = map$1(element.waypoints, function(waypoint) {
37614
37606
  return {
37615
37607
  x: waypoint.x - bbox.x - bbox.width / 2,
@@ -37662,7 +37654,7 @@
37662
37654
 
37663
37655
  var element;
37664
37656
 
37665
- if (isConnection$b(attrs)) {
37657
+ if (isConnection(attrs)) {
37666
37658
  attrs.source = cache[ descriptor.source ];
37667
37659
  attrs.target = cache[ descriptor.target ];
37668
37660
 
@@ -37673,7 +37665,7 @@
37673
37665
  return;
37674
37666
  }
37675
37667
 
37676
- if (isLabel$3(attrs)) {
37668
+ if (isLabel(attrs)) {
37677
37669
  attrs.labelTarget = cache[ attrs.labelTarget ];
37678
37670
 
37679
37671
  element = cache[ descriptor.id ] = self.createLabel(attrs);
@@ -37728,7 +37720,7 @@
37728
37720
  source,
37729
37721
  target;
37730
37722
 
37731
- if (isConnection$b(element)) {
37723
+ if (isConnection(element)) {
37732
37724
  source = find(elements, matchPattern({ id: element.source.id }));
37733
37725
  target = find(elements, matchPattern({ id: element.target.id }));
37734
37726
 
@@ -37737,7 +37729,7 @@
37737
37729
  }
37738
37730
  }
37739
37731
 
37740
- if (isLabel$3(element)) {
37732
+ if (isLabel(element)) {
37741
37733
  labelTarget = find(elements, matchPattern({ id: element.labelTarget.id }));
37742
37734
 
37743
37735
  if (!labelTarget) {
@@ -37830,7 +37822,7 @@
37830
37822
  eachElement(parents, function(element, _index, depth) {
37831
37823
 
37832
37824
  // do NOT add external labels directly
37833
- if (isLabel$3(element)) {
37825
+ if (isLabel(element)) {
37834
37826
  return;
37835
37827
  }
37836
37828
 
@@ -37928,14 +37920,6 @@
37928
37920
  return !!element.host;
37929
37921
  }
37930
37922
 
37931
- function isConnection$b(element) {
37932
- return !!element.waypoints;
37933
- }
37934
-
37935
- function isLabel$3(element) {
37936
- return !!element.labelTarget;
37937
- }
37938
-
37939
37923
  function copyWaypoints$1(element) {
37940
37924
  return map$1(element.waypoints, function(waypoint) {
37941
37925
 
@@ -38019,7 +38003,7 @@
38019
38003
 
38020
38004
  // do not copy business object + di for labels;
38021
38005
  // will be pulled from the referenced label target
38022
- if (isLabel$5(element)) {
38006
+ if (isLabel(element)) {
38023
38007
  return descriptor;
38024
38008
  }
38025
38009
 
@@ -38087,7 +38071,7 @@
38087
38071
  di = descriptor.di;
38088
38072
 
38089
38073
  // wire existing di + businessObject for external label
38090
- if (isLabel$5(descriptor)) {
38074
+ if (isLabel(descriptor)) {
38091
38075
  descriptor.businessObject = getBusinessObject(cache[ descriptor.labelTarget ]);
38092
38076
  descriptor.di = getDi(cache[ descriptor.labelTarget ]);
38093
38077
 
@@ -44168,7 +44152,7 @@
44168
44152
  ResizeHandles.prototype.addResizer = function(element) {
44169
44153
  var self = this;
44170
44154
 
44171
- if (isConnection$a(element) || !this._resize.canResize({ shape: element })) {
44155
+ if (isConnection(element) || !this._resize.canResize({ shape: element })) {
44172
44156
  return;
44173
44157
  }
44174
44158
 
@@ -44220,10 +44204,6 @@
44220
44204
  return offset;
44221
44205
  }
44222
44206
 
44223
- function isConnection$a(element) {
44224
- return !!element.waypoints;
44225
- }
44226
-
44227
44207
  /**
44228
44208
  * @type { import('didi').ModuleDeclaration }
44229
44209
  */
@@ -44583,7 +44563,7 @@
44583
44563
  // external label not yet created
44584
44564
  if (isLabelExternal(target)
44585
44565
  && !hasExternalLabel(target)
44586
- && !isLabel$5(target)) {
44566
+ && !isLabel(target)) {
44587
44567
 
44588
44568
  var externalLabelMid = getExternalLabelMid(element);
44589
44569
 
@@ -45260,7 +45240,7 @@
45260
45240
  }
45261
45241
 
45262
45242
  function shouldReplace$1(shape, host) {
45263
- return !isLabel$5(shape) &&
45243
+ return !isLabel(shape) &&
45264
45244
  isAny(shape, [ 'bpmn:IntermediateThrowEvent', 'bpmn:IntermediateCatchEvent' ]) && !!host;
45265
45245
  }
45266
45246
 
@@ -45437,8 +45417,8 @@
45437
45417
  // ignore connections, groups and labels
45438
45418
  var children = rootElement.children.filter(function(element) {
45439
45419
  return !is$1(element, 'bpmn:Group') &&
45440
- !isLabel$5(element) &&
45441
- !isConnection$9(element);
45420
+ !isLabel(element) &&
45421
+ !isConnection(element);
45442
45422
  });
45443
45423
 
45444
45424
  // ensure for available children to calculate bounds
@@ -45609,10 +45589,6 @@
45609
45589
  };
45610
45590
  }
45611
45591
 
45612
- function isConnection$9(element) {
45613
- return !!element.waypoints;
45614
- }
45615
-
45616
45592
  function findParticipant(elements) {
45617
45593
  return find(elements, function(element) {
45618
45594
  return is$1(element, 'bpmn:Participant');
@@ -46217,7 +46193,7 @@
46217
46193
  }
46218
46194
 
46219
46195
  function shouldReplace(shape, host) {
46220
- return !isLabel$5(shape) && is$1(shape, 'bpmn:BoundaryEvent') && !host;
46196
+ return !isLabel(shape) && is$1(shape, 'bpmn:BoundaryEvent') && !host;
46221
46197
  }
46222
46198
 
46223
46199
  function includes$6(array, item) {
@@ -47924,7 +47900,7 @@
47924
47900
 
47925
47901
  var element = context.shape || context.connection;
47926
47902
 
47927
- if (isLabel$5(element) || !isLabelExternal(element)) {
47903
+ if (isLabel(element) || !isLabelExternal(element)) {
47928
47904
  return;
47929
47905
  }
47930
47906
 
@@ -50463,7 +50439,7 @@
50463
50439
  shape = context.shape,
50464
50440
  shapeBo = shape.businessObject;
50465
50441
 
50466
- if (isLabel$5(shape)) {
50442
+ if (isLabel(shape)) {
50467
50443
  return;
50468
50444
  }
50469
50445
 
@@ -50912,12 +50888,12 @@
50912
50888
  position = context.position,
50913
50889
  target = context.target;
50914
50890
 
50915
- if (isConnection$8(target) && !canInsert(elements, target)) {
50891
+ if (isConnection(target) && !canInsert(elements, target)) {
50916
50892
  return false;
50917
50893
  }
50918
50894
 
50919
50895
  return every(elements, function(element) {
50920
- if (isConnection$8(element)) {
50896
+ if (isConnection(element)) {
50921
50897
  return canConnect(element.source, element.target, element);
50922
50898
  }
50923
50899
 
@@ -51026,7 +51002,7 @@
51026
51002
  * @return {boolean}
51027
51003
  */
51028
51004
  function nonExistingOrLabel(element) {
51029
- return !element || isLabel$5(element);
51005
+ return !element || isLabel(element);
51030
51006
  }
51031
51007
 
51032
51008
  function isSame$1(a, b) {
@@ -51260,15 +51236,6 @@
51260
51236
  );
51261
51237
  }
51262
51238
 
51263
- /**
51264
- * @param {Element} element
51265
- *
51266
- * @return {boolean}
51267
- */
51268
- function isConnection$8(element) {
51269
- return element.waypoints;
51270
- }
51271
-
51272
51239
  /**
51273
51240
  * @param {Element} element
51274
51241
  *
@@ -51359,7 +51326,7 @@
51359
51326
  function canDrop(element, target) {
51360
51327
 
51361
51328
  // can move labels and groups everywhere
51362
- if (isLabel$5(element) || isGroup(element)) {
51329
+ if (isLabel(element) || isGroup(element)) {
51363
51330
  return true;
51364
51331
  }
51365
51332
 
@@ -51449,7 +51416,7 @@
51449
51416
  * @return {boolean}
51450
51417
  */
51451
51418
  function isBoundaryEvent(element) {
51452
- return !isLabel$5(element) && is$1(element, 'bpmn:BoundaryEvent');
51419
+ return !isLabel(element) && is$1(element, 'bpmn:BoundaryEvent');
51453
51420
  }
51454
51421
 
51455
51422
  /**
@@ -51558,7 +51525,7 @@
51558
51525
  var element = elements[0];
51559
51526
 
51560
51527
  // do not attach labels
51561
- if (isLabel$5(element)) {
51528
+ if (isLabel(element)) {
51562
51529
  return false;
51563
51530
  }
51564
51531
 
@@ -51730,7 +51697,7 @@
51730
51697
  return false;
51731
51698
  }
51732
51699
 
51733
- if (isLabel$5(shape) || isGroup(shape)) {
51700
+ if (isLabel(shape) || isGroup(shape)) {
51734
51701
  return true;
51735
51702
  }
51736
51703
 
@@ -51911,7 +51878,7 @@
51911
51878
  // return true if shape can be inserted into connection parent
51912
51879
  return (
51913
51880
  isAny(connection, [ 'bpmn:SequenceFlow', 'bpmn:MessageFlow' ]) &&
51914
- !isLabel$5(connection) &&
51881
+ !isLabel(connection) &&
51915
51882
  is$1(shape, 'bpmn:FlowNode') &&
51916
51883
  !is$1(shape, 'bpmn:BoundaryEvent') &&
51917
51884
  canDrop(shape, connection.parent));
@@ -51934,7 +51901,7 @@
51934
51901
  * @return {boolean}
51935
51902
  */
51936
51903
  function canCopy(elements, element) {
51937
- if (isLabel$5(element)) {
51904
+ if (isLabel(element)) {
51938
51905
  return true;
51939
51906
  }
51940
51907
 
@@ -52842,12 +52809,12 @@
52842
52809
  }
52843
52810
 
52844
52811
  forEach$1(elements, function(element) {
52845
- if (!element.parent || isLabel$2(element)) {
52812
+ if (!element.parent || isLabel(element)) {
52846
52813
  return;
52847
52814
  }
52848
52815
 
52849
52816
  // handle connections separately
52850
- if (isConnection$7(element)) {
52817
+ if (isConnection(element)) {
52851
52818
  connections.push(element);
52852
52819
 
52853
52820
  return;
@@ -53018,15 +52985,15 @@
53018
52985
 
53019
52986
  // find children that are not moving or resizing
53020
52987
  var nonMovingResizingChildren = filter(children, function(child) {
53021
- return !isConnection$7(child) &&
53022
- !isLabel$2(child) &&
52988
+ return !isConnection(child) &&
52989
+ !isLabel(child) &&
53023
52990
  !includes$3(movingShapes, child) &&
53024
52991
  !includes$3(resizingShapes, child);
53025
52992
  });
53026
52993
 
53027
52994
  // find children that are moving
53028
52995
  var movingChildren = filter(children, function(child) {
53029
- return !isConnection$7(child) && !isLabel$2(child) && includes$3(movingShapes, child);
52996
+ return !isConnection(child) && !isLabel(child) && includes$3(movingShapes, child);
53030
52997
  });
53031
52998
 
53032
52999
  var minOrMax,
@@ -53160,14 +53127,6 @@
53160
53127
  return !!element.host;
53161
53128
  }
53162
53129
 
53163
- function isConnection$7(element) {
53164
- return !!element.waypoints;
53165
- }
53166
-
53167
- function isLabel$2(element) {
53168
- return !!element.labelTarget;
53169
- }
53170
-
53171
53130
  var MARKER_DRAGGING$1 = 'djs-dragging',
53172
53131
  MARKER_RESIZING = 'djs-resizing';
53173
53132
 
@@ -53326,7 +53285,7 @@
53326
53285
  });
53327
53286
  });
53328
53287
 
53329
- return isConnection$6(element)
53288
+ return isConnection(element)
53330
53289
  && (sourceIsMoving || sourceIsResizing)
53331
53290
  && (targetIsMoving || targetIsResizing);
53332
53291
  });
@@ -53456,16 +53415,6 @@
53456
53415
  'previewSupport'
53457
53416
  ];
53458
53417
 
53459
-
53460
- // helpers //////////////////////
53461
-
53462
- /**
53463
- * Checks if an element is a connection.
53464
- */
53465
- function isConnection$6(element) {
53466
- return element.waypoints;
53467
- }
53468
-
53469
53418
  /**
53470
53419
  * @type { import('didi').ModuleDeclaration }
53471
53420
  */
@@ -55505,7 +55454,7 @@
55505
55454
  BpmnUpdater.prototype.updateParent = function(element, oldParent) {
55506
55455
 
55507
55456
  // do not update BPMN 2.0 label parent
55508
- if (isLabel$5(element)) {
55457
+ if (isLabel(element)) {
55509
55458
  return;
55510
55459
  }
55511
55460
 
@@ -55570,7 +55519,7 @@
55570
55519
  });
55571
55520
  }
55572
55521
 
55573
- var target = isLabel$5(shape) ? this._getLabel(di) : di;
55522
+ var target = isLabel(shape) ? this._getLabel(di) : di;
55574
55523
 
55575
55524
  var bounds = target.bounds;
55576
55525
 
@@ -56631,7 +56580,7 @@
56631
56580
 
56632
56581
  // center elements around position
56633
56582
  forEach$1(elements, function(element) {
56634
- if (isConnection$5(element)) {
56583
+ if (isConnection(element)) {
56635
56584
  element.waypoints = map$1(element.waypoints, function(waypoint) {
56636
56585
  return {
56637
56586
  x: round$3(waypoint.x - bbox.x - bbox.width / 2 + position.x),
@@ -56651,7 +56600,7 @@
56651
56600
  var cache = {};
56652
56601
 
56653
56602
  forEach$1(elements, function(element) {
56654
- if (isConnection$5(element)) {
56603
+ if (isConnection(element)) {
56655
56604
  cache[ element.id ] = isNumber(parentIndex) ?
56656
56605
  modeling.createConnection(
56657
56606
  cache[ element.source.id ],
@@ -56678,6 +56627,10 @@
56678
56627
  createShapeHints.autoResize = false;
56679
56628
  }
56680
56629
 
56630
+ if (isLabel(element)) {
56631
+ createShapeHints = omit(createShapeHints, [ 'attach' ]);
56632
+ }
56633
+
56681
56634
  cache[ element.id ] = isNumber(parentIndex) ?
56682
56635
  modeling.createShape(
56683
56636
  element,
@@ -56695,13 +56648,7 @@
56695
56648
  });
56696
56649
 
56697
56650
  context.elements = values(cache);
56698
- };
56699
-
56700
- // helpers //////////
56701
-
56702
- function isConnection$5(element) {
56703
- return !!element.waypoints;
56704
- }
56651
+ };
56705
56652
 
56706
56653
  /**
56707
56654
  * @typedef {import('../../../model/Types').Element} Element
@@ -57024,7 +56971,7 @@
57024
56971
 
57025
56972
  // remove child shapes and connections
57026
56973
  saveClear(shape.children, function(child) {
57027
- if (isConnection$4(child)) {
56974
+ if (isConnection(child)) {
57028
56975
  modeling.removeConnection(child, { nested: true });
57029
56976
  } else {
57030
56977
  modeling.removeShape(child, { nested: true });
@@ -57072,10 +57019,6 @@
57072
57019
  return shape;
57073
57020
  };
57074
57021
 
57075
- function isConnection$4(element) {
57076
- return element.waypoints;
57077
- }
57078
-
57079
57022
  /**
57080
57023
  * @typedef {import('../Modeling').default} Modeling
57081
57024
  */
@@ -60206,13 +60149,13 @@
60206
60149
  }
60207
60150
 
60208
60151
  forEach$1(elements, function(element) {
60209
- var assignedDi = isConnection$3(element) ? pick(di, [ 'border-color' ]) : di,
60152
+ var assignedDi = isConnection(element) ? pick(di, [ 'border-color' ]) : di,
60210
60153
  elementDi = getDi(element);
60211
60154
 
60212
60155
  // TODO @barmac: remove once we drop bpmn.io properties
60213
60156
  ensureLegacySupport(assignedDi);
60214
60157
 
60215
- if (isLabel$5(element)) {
60158
+ if (isLabel(element)) {
60216
60159
 
60217
60160
  // set label colors as bpmndi:BPMNLabel#color
60218
60161
  self._commandStack.execute('element.updateModdleProperties', {
@@ -60272,10 +60215,6 @@
60272
60215
  return /^#[0-9a-fA-F]{6}$/.test(context.fillStyle) ? context.fillStyle : null;
60273
60216
  }
60274
60217
 
60275
- function isConnection$3(element) {
60276
- return !!element.waypoints;
60277
- }
60278
-
60279
60218
  /**
60280
60219
  * Add legacy properties if required.
60281
60220
  *
@@ -60338,7 +60277,7 @@
60338
60277
  businessObject = element.businessObject,
60339
60278
  newLabel = ctx.newLabel;
60340
60279
 
60341
- if (!isLabel$5(element)
60280
+ if (!isLabel(element)
60342
60281
  && isLabelExternal(element)
60343
60282
  && !hasExternalLabel(element)
60344
60283
  && !isEmptyText(newLabel)) {
@@ -60378,11 +60317,11 @@
60378
60317
  hints = ctx.hints || {};
60379
60318
 
60380
60319
  // ignore internal labels for elements except text annotations
60381
- if (!isLabel$5(label) && !is$1(label, 'bpmn:TextAnnotation')) {
60320
+ if (!isLabel(label) && !is$1(label, 'bpmn:TextAnnotation')) {
60382
60321
  return;
60383
60322
  }
60384
60323
 
60385
- if (isLabel$5(label) && isEmptyText(newLabel)) {
60324
+ if (isLabel(label) && isEmptyText(newLabel)) {
60386
60325
 
60387
60326
  if (hints.removeShape !== false) {
60388
60327
  modeling.removeShape(label, { unsetLabel: false });
@@ -62491,7 +62430,7 @@
62491
62430
 
62492
62431
  var filteredElements = filter(elements, function(element) {
62493
62432
 
62494
- if (!isConnection$2(element)) {
62433
+ if (!isConnection(element)) {
62495
62434
  return true;
62496
62435
  } else {
62497
62436
 
@@ -62509,13 +62448,6 @@
62509
62448
  return size(groupBy(elements, function(e) { return e.parent && e.parent.id; })) !== 1;
62510
62449
  }
62511
62450
 
62512
- /**
62513
- * Checks if an element is a connection.
62514
- */
62515
- function isConnection$2(element) {
62516
- return element.waypoints;
62517
- }
62518
-
62519
62451
  /**
62520
62452
  * @type { import('didi').ModuleDeclaration }
62521
62453
  */
@@ -64572,7 +64504,7 @@
64572
64504
  });
64573
64505
 
64574
64506
  // snap labels to mid only
64575
- if (isLabel$1(shape)) {
64507
+ if (isLabel(shape)) {
64576
64508
  return snapContext;
64577
64509
  }
64578
64510
 
@@ -64595,9 +64527,9 @@
64595
64527
  forEach$1(snapTargets, function(snapTarget) {
64596
64528
 
64597
64529
  // handle labels
64598
- if (isLabel$1(snapTarget)) {
64530
+ if (isLabel(snapTarget)) {
64599
64531
 
64600
- if (isLabel$1(shape)) {
64532
+ if (isLabel(shape)) {
64601
64533
  snapPoints.add('mid', mid$2(snapTarget));
64602
64534
  }
64603
64535
 
@@ -64605,7 +64537,7 @@
64605
64537
  }
64606
64538
 
64607
64539
  // handle connections
64608
- if (isConnection$1(snapTarget)) {
64540
+ if (isConnection(snapTarget)) {
64609
64541
 
64610
64542
  // ignore single segment connections
64611
64543
  if (snapTarget.waypoints.length < 3) {
@@ -64646,16 +64578,8 @@
64646
64578
 
64647
64579
  // helpers //////////
64648
64580
 
64649
- function isConnection$1(element) {
64650
- return !!element.waypoints;
64651
- }
64652
-
64653
64581
  function isHidden$1(element) {
64654
64582
  return !!element.hidden;
64655
- }
64656
-
64657
- function isLabel$1(element) {
64658
- return !!element.labelTarget;
64659
64583
  }
64660
64584
 
64661
64585
  /**
@@ -65064,18 +64988,10 @@
65064
64988
  return element.host === host;
65065
64989
  }
65066
64990
 
65067
- function isConnection(element) {
65068
- return !!element.waypoints;
65069
- }
65070
-
65071
64991
  function isHidden(element) {
65072
64992
  return !!element.hidden;
65073
64993
  }
65074
64994
 
65075
- function isLabel(element) {
65076
- return !!element.labelTarget;
65077
- }
65078
-
65079
64995
  function isHorizontal(direction) {
65080
64996
  return direction === 'n' || direction === 's';
65081
64997
  }