bpmn-js 15.2.2 → 16.1.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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * bpmn-js - bpmn-modeler v15.2.2
2
+ * bpmn-js - bpmn-modeler v16.1.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-27
11
+ * Date: 2023-12-14
12
12
  */
13
13
  (function (global, factory) {
14
14
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -2163,7 +2163,7 @@
2163
2163
  }
2164
2164
 
2165
2165
  /**
2166
- * @typedef {import('./index').InjectAnnotated } InjectAnnotated
2166
+ * @typedef {import('./index.js').InjectAnnotated } InjectAnnotated
2167
2167
  */
2168
2168
 
2169
2169
  /**
@@ -2233,9 +2233,9 @@
2233
2233
  }
2234
2234
 
2235
2235
  /**
2236
- * @typedef { import('./index').ModuleDeclaration } ModuleDeclaration
2237
- * @typedef { import('./index').ModuleDefinition } ModuleDefinition
2238
- * @typedef { import('./index').InjectorContext } InjectorContext
2236
+ * @typedef { import('./index.js').ModuleDeclaration } ModuleDeclaration
2237
+ * @typedef { import('./index.js').ModuleDefinition } ModuleDefinition
2238
+ * @typedef { import('./index.js').InjectorContext } InjectorContext
2239
2239
  */
2240
2240
 
2241
2241
  /**
@@ -2338,11 +2338,20 @@
2338
2338
  };
2339
2339
  }
2340
2340
 
2341
- function instantiate(Type) {
2341
+ /**
2342
+ * Instantiate the given type, injecting dependencies.
2343
+ *
2344
+ * @template T
2345
+ *
2346
+ * @param { Function | [...string[], Function ]} type
2347
+ *
2348
+ * @return T
2349
+ */
2350
+ function instantiate(type) {
2342
2351
  const {
2343
2352
  fn,
2344
2353
  dependencies
2345
- } = fnDef(Type);
2354
+ } = fnDef(type);
2346
2355
 
2347
2356
  // instantiate var args constructor
2348
2357
  const Constructor = Function.prototype.bind.apply(fn, [ null ].concat(dependencies));
@@ -2350,6 +2359,17 @@
2350
2359
  return new Constructor();
2351
2360
  }
2352
2361
 
2362
+ /**
2363
+ * Invoke the given function, injecting dependencies. Return the result.
2364
+ *
2365
+ * @template T
2366
+ *
2367
+ * @param { Function | [...string[], Function ]} func
2368
+ * @param { Object } [context]
2369
+ * @param { Object } [locals]
2370
+ *
2371
+ * @return {T} invocation result
2372
+ */
2353
2373
  function invoke(func, context, locals) {
2354
2374
  const {
2355
2375
  fn,
@@ -3630,10 +3650,6 @@
3630
3650
  };
3631
3651
  }
3632
3652
 
3633
- function getDefaultExportFromCjs (x) {
3634
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
3635
- }
3636
-
3637
3653
  /**
3638
3654
  * This file contains source code adapted from Snap.svg (licensed Apache-2.0).
3639
3655
  *
@@ -3698,7 +3714,7 @@
3698
3714
 
3699
3715
  count.length >= 1e3 && delete cache[count.shift()];
3700
3716
  count.push(args);
3701
- cache[args] = f.apply(0, arg);
3717
+ cache[args] = f(...arguments);
3702
3718
 
3703
3719
  return cache[args];
3704
3720
  }
@@ -3735,13 +3751,13 @@
3735
3751
  });
3736
3752
 
3737
3753
  if (name == 'm' && params.length > 2) {
3738
- data.push([b].concat(params.splice(0, 2)));
3754
+ data.push([ b, ...params.splice(0, 2) ]);
3739
3755
  name = 'l';
3740
3756
  b = b == 'm' ? 'l' : 'L';
3741
3757
  }
3742
3758
 
3743
3759
  while (params.length >= paramCounts[name]) {
3744
- data.push([b].concat(params.splice(0, paramCounts[name])));
3760
+ data.push([ b, ...params.splice(0, paramCounts[name]) ]);
3745
3761
  if (!paramCounts[name]) {
3746
3762
  break;
3747
3763
  }
@@ -3824,7 +3840,7 @@
3824
3840
 
3825
3841
  function bezierBBox(points) {
3826
3842
 
3827
- var bbox = curveBBox.apply(null, points);
3843
+ var bbox = curveBBox(...points);
3828
3844
 
3829
3845
  return rectBBox(
3830
3846
  bbox.x0,
@@ -3874,8 +3890,8 @@
3874
3890
 
3875
3891
  var z2 = z / 2,
3876
3892
  n = 12,
3877
- Tvalues = [-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],
3878
- Cvalues = [0.2491,0.2491,0.2335,0.2335,0.2032,0.2032,0.1601,0.1601,0.1069,0.1069,0.0472,0.0472],
3893
+ Tvalues = [ -.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816 ],
3894
+ Cvalues = [ 0.2491,0.2491,0.2335,0.2335,0.2032,0.2032,0.1601,0.1601,0.1069,0.1069,0.0472,0.0472 ],
3879
3895
  sum = 0;
3880
3896
 
3881
3897
  for (var i = 0; i < n; i++) {
@@ -3945,8 +3961,8 @@
3945
3961
 
3946
3962
  // As an optimization, lines will have only 1 segment
3947
3963
 
3948
- var l1 = bezlen.apply(0, bez1),
3949
- l2 = bezlen.apply(0, bez2),
3964
+ var l1 = bezlen(...bez1),
3965
+ l2 = bezlen(...bez2),
3950
3966
  n1 = isLine(bez1) ? 1 : ~~(l1 / 5) || 1,
3951
3967
  n2 = isLine(bez2) ? 1 : ~~(l2 / 5) || 1,
3952
3968
  dots1 = [],
@@ -3955,12 +3971,12 @@
3955
3971
  res = justCount ? 0 : [];
3956
3972
 
3957
3973
  for (var i = 0; i < n1 + 1; i++) {
3958
- var p = findDotsAtSegment.apply(0, bez1.concat(i / n1));
3974
+ var p = findDotsAtSegment(...bez1, i / n1);
3959
3975
  dots1.push({ x: p.x, y: p.y, t: i / n1 });
3960
3976
  }
3961
3977
 
3962
3978
  for (i = 0; i < n2 + 1; i++) {
3963
- p = findDotsAtSegment.apply(0, bez2.concat(i / n2));
3979
+ p = findDotsAtSegment(...bez2, i / n2);
3964
3980
  dots2.push({ x: p.x, y: p.y, t: i / n2 });
3965
3981
  }
3966
3982
 
@@ -4055,11 +4071,11 @@
4055
4071
  } else {
4056
4072
 
4057
4073
  if (pi[0] == 'C') {
4058
- bez1 = [x1, y1].concat(pi.slice(1));
4074
+ bez1 = [ x1, y1, ...pi.slice(1) ];
4059
4075
  x1 = bez1[6];
4060
4076
  y1 = bez1[7];
4061
4077
  } else {
4062
- bez1 = [x1, y1, x1, y1, x1m, y1m, x1m, y1m];
4078
+ bez1 = [ x1, y1, x1, y1, x1m, y1m, x1m, y1m ];
4063
4079
  x1 = x1m;
4064
4080
  y1 = y1m;
4065
4081
  }
@@ -4073,11 +4089,11 @@
4073
4089
  } else {
4074
4090
 
4075
4091
  if (pj[0] == 'C') {
4076
- bez2 = [x2, y2].concat(pj.slice(1));
4092
+ bez2 = [ x2, y2, ...pj.slice(1) ];
4077
4093
  x2 = bez2[6];
4078
4094
  y2 = bez2[7];
4079
4095
  } else {
4080
- bez2 = [x2, y2, x2, y2, x2m, y2m, x2m, y2m];
4096
+ bez2 = [ x2, y2, x2, y2, x2m, y2m, x2m, y2m ];
4081
4097
  x2 = x2m;
4082
4098
  y2 = y2m;
4083
4099
  }
@@ -4118,7 +4134,7 @@
4118
4134
  }
4119
4135
 
4120
4136
  if (!pathArray || !pathArray.length) {
4121
- return [['M', 0, 0]];
4137
+ return [ [ 'M', 0, 0 ] ];
4122
4138
  }
4123
4139
 
4124
4140
  var res = [],
@@ -4135,7 +4151,7 @@
4135
4151
  mx = x;
4136
4152
  my = y;
4137
4153
  start++;
4138
- res[0] = ['M', x, y];
4154
+ res[0] = [ 'M', x, y ];
4139
4155
  }
4140
4156
 
4141
4157
  for (var r, pa, i = start, ii = pathArray.length; i < ii; i++) {
@@ -4304,7 +4320,7 @@
4304
4320
  f2 = f1 + _120 * (sweep_flag && f2 > f1 ? 1 : -1);
4305
4321
  x2 = cx + rx * math.cos(f2);
4306
4322
  y2 = cy + ry * math.sin(f2);
4307
- res = arcToCurve(x2, y2, rx, ry, angle, 0, sweep_flag, x2old, y2old, [f2, f2old, cx, cy]);
4323
+ res = arcToCurve(x2, y2, rx, ry, angle, 0, sweep_flag, x2old, y2old, [ f2, f2old, cx, cy ]);
4308
4324
  }
4309
4325
 
4310
4326
  df = f2 - f1;
@@ -4316,18 +4332,18 @@
4316
4332
  t = math.tan(df / 4),
4317
4333
  hx = 4 / 3 * rx * t,
4318
4334
  hy = 4 / 3 * ry * t,
4319
- m1 = [x1, y1],
4320
- m2 = [x1 + hx * s1, y1 - hy * c1],
4321
- m3 = [x2 + hx * s2, y2 - hy * c2],
4322
- m4 = [x2, y2];
4335
+ m1 = [ x1, y1 ],
4336
+ m2 = [ x1 + hx * s1, y1 - hy * c1 ],
4337
+ m3 = [ x2 + hx * s2, y2 - hy * c2 ],
4338
+ m4 = [ x2, y2 ];
4323
4339
 
4324
4340
  m2[0] = 2 * m1[0] - m2[0];
4325
4341
  m2[1] = 2 * m1[1] - m2[1];
4326
4342
 
4327
4343
  if (recursive) {
4328
- return [m2, m3, m4].concat(res);
4344
+ return [ m2, m3, m4 ].concat(res);
4329
4345
  } else {
4330
- res = [m2, m3, m4].concat(res).join().split(',');
4346
+ res = [ m2, m3, m4 ].concat(res).join().split(',');
4331
4347
  var newres = [];
4332
4348
 
4333
4349
  for (var i = 0, ii = res.length; i < ii; i++) {
@@ -4344,7 +4360,7 @@
4344
4360
  // Modifications: https://github.com/timo22345
4345
4361
  function curveBBox(x0, y0, x1, y1, x2, y2, x3, y3) {
4346
4362
  var tvalues = [],
4347
- bounds = [[], []],
4363
+ bounds = [ [], [] ],
4348
4364
  a, b, c, t, t1, t2, b2ac, sqrtb2ac;
4349
4365
 
4350
4366
  for (var i = 0; i < 2; ++i) {
@@ -4412,10 +4428,10 @@
4412
4428
  bounds[0].length = bounds[1].length = jlen + 2;
4413
4429
 
4414
4430
  return {
4415
- x0: mmin.apply(0, bounds[0]),
4416
- y0: mmin.apply(0, bounds[1]),
4417
- x1: mmax.apply(0, bounds[0]),
4418
- y1: mmax.apply(0, bounds[1])
4431
+ x0: mmin(...bounds[0]),
4432
+ y0: mmin(...bounds[1]),
4433
+ x1: mmax(...bounds[0]),
4434
+ y1: mmax(...bounds[1])
4419
4435
  };
4420
4436
  }
4421
4437
 
@@ -4434,7 +4450,7 @@
4434
4450
  var nx, ny;
4435
4451
 
4436
4452
  if (!path) {
4437
- return ['C', d.x, d.y, d.x, d.y, d.x, d.y];
4453
+ return [ 'C', d.x, d.y, d.x, d.y, d.x, d.y ];
4438
4454
  }
4439
4455
 
4440
4456
  !(path[0] in { T: 1, Q: 1 }) && (d.qx = d.qy = null);
@@ -4445,7 +4461,7 @@
4445
4461
  d.Y = path[2];
4446
4462
  break;
4447
4463
  case 'A':
4448
- path = ['C'].concat(arcToCurve.apply(0, [d.x, d.y].concat(path.slice(1))));
4464
+ path = [ 'C', ...arcToCurve(d.x, d.y, ...path.slice(1)) ];
4449
4465
  break;
4450
4466
  case 'S':
4451
4467
  if (pathCommand == 'C' || pathCommand == 'S') {
@@ -4464,7 +4480,7 @@
4464
4480
  nx = d.x;
4465
4481
  ny = d.y;
4466
4482
  }
4467
- path = ['C', nx, ny].concat(path.slice(1));
4483
+ path = [ 'C', nx, ny, ...path.slice(1) ];
4468
4484
  break;
4469
4485
  case 'T':
4470
4486
  if (pathCommand == 'Q' || pathCommand == 'T') {
@@ -4483,24 +4499,24 @@
4483
4499
  d.qx = d.x;
4484
4500
  d.qy = d.y;
4485
4501
  }
4486
- path = ['C'].concat(qubicToCurve(d.x, d.y, d.qx, d.qy, path[1], path[2]));
4502
+ path = [ 'C', ...qubicToCurve(d.x, d.y, d.qx, d.qy, path[1], path[2]) ];
4487
4503
  break;
4488
4504
  case 'Q':
4489
4505
  d.qx = path[1];
4490
4506
  d.qy = path[2];
4491
- path = ['C'].concat(qubicToCurve(d.x, d.y, path[1], path[2], path[3], path[4]));
4507
+ path = [ 'C', ...qubicToCurve(d.x, d.y, path[1], path[2], path[3], path[4]) ];
4492
4508
  break;
4493
4509
  case 'L':
4494
- path = ['C'].concat(lineToCurve(d.x, d.y, path[1], path[2]));
4510
+ path = [ 'C', ...lineToCurve(d.x, d.y, path[1], path[2]) ];
4495
4511
  break;
4496
4512
  case 'H':
4497
- path = ['C'].concat(lineToCurve(d.x, d.y, path[1], d.y));
4513
+ path = [ 'C', ...lineToCurve(d.x, d.y, path[1], d.y) ];
4498
4514
  break;
4499
4515
  case 'V':
4500
- path = ['C'].concat(lineToCurve(d.x, d.y, d.x, path[1]));
4516
+ path = [ 'C', ...lineToCurve(d.x, d.y, d.x, path[1]) ];
4501
4517
  break;
4502
4518
  case 'Z':
4503
- path = ['C'].concat(lineToCurve(d.x, d.y, d.X, d.Y));
4519
+ path = [ 'C', ...lineToCurve(d.x, d.y, d.X, d.Y) ];
4504
4520
  break;
4505
4521
  }
4506
4522
 
@@ -4515,7 +4531,7 @@
4515
4531
 
4516
4532
  while (pi.length) {
4517
4533
  pathCommands[i] = 'A'; // if created multiple C:s, their original seg is saved
4518
- pp.splice(i++, 0, ['C'].concat(pi.splice(0, 6)));
4534
+ pp.splice(i++, 0, [ 'C', ...pi.splice(0, 6) ]);
4519
4535
  }
4520
4536
 
4521
4537
  pp.splice(i, 1);
@@ -4558,10 +4574,6 @@
4558
4574
  return curvedPath;
4559
4575
  }
4560
4576
 
4561
- var intersect = findPathIntersections;
4562
-
4563
- var intersectPaths = /*@__PURE__*/getDefaultExportFromCjs(intersect);
4564
-
4565
4577
  /**
4566
4578
  * Checks whether a value is an instance of Connection.
4567
4579
  *
@@ -4839,7 +4851,7 @@
4839
4851
 
4840
4852
 
4841
4853
  function getIntersections(a, b) {
4842
- return intersectPaths(a, b);
4854
+ return findPathIntersections(a, b);
4843
4855
  }
4844
4856
 
4845
4857
 
@@ -6626,32 +6638,17 @@
6626
6638
  }
6627
6639
  };
6628
6640
 
6629
- var objectRefs = {exports: {}};
6630
-
6631
- var collection = {};
6632
-
6633
- /**
6634
- * An empty collection stub. Use {@link RefsCollection.extend} to extend a
6635
- * collection with ref semantics.
6636
- *
6637
- * @class RefsCollection
6638
- */
6639
-
6640
6641
  /**
6641
6642
  * Extends a collection with {@link Refs} aware methods
6642
6643
  *
6643
- * @memberof RefsCollection
6644
- * @static
6645
- *
6646
- * @param {Array<Object>} collection
6647
- * @param {Refs} refs instance
6648
- * @param {Object} property represented by the collection
6649
- * @param {Object} target object the collection is attached to
6644
+ * @param {Array<Object>} collection
6645
+ * @param {Refs} refs instance
6646
+ * @param {Object} property represented by the collection
6647
+ * @param {Object} target object the collection is attached to
6650
6648
  *
6651
6649
  * @return {RefsCollection<Object>} the extended array
6652
6650
  */
6653
6651
  function extend(collection, refs, property, target) {
6654
-
6655
6652
  var inverseProperty = property.inverse;
6656
6653
 
6657
6654
  /**
@@ -6662,7 +6659,7 @@
6662
6659
  * @param {Object} element the element to remove
6663
6660
  */
6664
6661
  Object.defineProperty(collection, 'remove', {
6665
- value: function(element) {
6662
+ value: function (element) {
6666
6663
  var idx = this.indexOf(element);
6667
6664
  if (idx !== -1) {
6668
6665
  this.splice(idx, 1);
@@ -6670,7 +6667,6 @@
6670
6667
  // unset inverse
6671
6668
  refs.unset(element, inverseProperty, target);
6672
6669
  }
6673
-
6674
6670
  return element;
6675
6671
  }
6676
6672
  });
@@ -6683,7 +6679,7 @@
6683
6679
  * @param {Object} element the element to check for
6684
6680
  */
6685
6681
  Object.defineProperty(collection, 'contains', {
6686
- value: function(element) {
6682
+ value: function (element) {
6687
6683
  return this.indexOf(element) !== -1;
6688
6684
  }
6689
6685
  });
@@ -6698,12 +6694,9 @@
6698
6694
  * (possibly moving other elements around)
6699
6695
  */
6700
6696
  Object.defineProperty(collection, 'add', {
6701
- value: function(element, idx) {
6702
-
6697
+ value: function (element, idx) {
6703
6698
  var currentIdx = this.indexOf(element);
6704
-
6705
6699
  if (typeof idx === 'undefined') {
6706
-
6707
6700
  if (currentIdx !== -1) {
6708
6701
  // element already in collection (!)
6709
6702
  return;
@@ -6715,14 +6708,12 @@
6715
6708
 
6716
6709
  // handle already in collection
6717
6710
  if (currentIdx !== -1) {
6718
-
6719
6711
  // remove element from currentIdx
6720
6712
  this.splice(currentIdx, 1);
6721
6713
  }
6722
6714
 
6723
6715
  // add element at idx
6724
6716
  this.splice(idx, 0, element);
6725
-
6726
6717
  if (currentIdx === -1) {
6727
6718
  // set inverse, unless element was
6728
6719
  // in collection already
@@ -6736,69 +6727,53 @@
6736
6727
  Object.defineProperty(collection, '__refs_collection', {
6737
6728
  value: true
6738
6729
  });
6739
-
6740
6730
  return collection;
6741
6731
  }
6742
6732
 
6743
-
6733
+ /**
6734
+ * Checks if a given collection is extended
6735
+ *
6736
+ * @param {Array<Object>} collection
6737
+ *
6738
+ * @return {boolean}
6739
+ */
6744
6740
  function isExtended(collection) {
6745
6741
  return collection.__refs_collection === true;
6746
6742
  }
6747
6743
 
6748
- collection.extend = extend;
6749
-
6750
- collection.isExtended = isExtended;
6751
-
6752
- var Collection = collection;
6753
-
6754
6744
  function hasOwnProperty$1(e, property) {
6755
6745
  return Object.prototype.hasOwnProperty.call(e, property.name || property);
6756
6746
  }
6757
-
6758
6747
  function defineCollectionProperty(ref, property, target) {
6759
-
6760
- var collection = Collection.extend(target[property.name] || [], ref, property, target);
6761
-
6748
+ var collection = extend(target[property.name] || [], ref, property, target);
6762
6749
  Object.defineProperty(target, property.name, {
6763
6750
  enumerable: property.enumerable,
6764
6751
  value: collection
6765
6752
  });
6766
-
6767
6753
  if (collection.length) {
6768
-
6769
- collection.forEach(function(o) {
6754
+ collection.forEach(function (o) {
6770
6755
  ref.set(o, property.inverse, target);
6771
6756
  });
6772
6757
  }
6773
6758
  }
6774
-
6775
-
6776
6759
  function defineProperty$1(ref, property, target) {
6777
-
6778
6760
  var inverseProperty = property.inverse;
6779
-
6780
6761
  var _value = target[property.name];
6781
-
6782
6762
  Object.defineProperty(target, property.name, {
6783
6763
  configurable: property.configurable,
6784
6764
  enumerable: property.enumerable,
6785
-
6786
- get: function() {
6765
+ get: function () {
6787
6766
  return _value;
6788
6767
  },
6789
-
6790
- set: function(value) {
6791
-
6768
+ set: function (value) {
6792
6769
  // return if we already performed all changes
6793
6770
  if (value === _value) {
6794
6771
  return;
6795
6772
  }
6796
-
6797
6773
  var old = _value;
6798
6774
 
6799
6775
  // temporary set null
6800
6776
  _value = null;
6801
-
6802
6777
  if (old) {
6803
6778
  ref.unset(old, inverseProperty, target);
6804
6779
  }
@@ -6810,7 +6785,6 @@
6810
6785
  ref.set(_value, inverseProperty, target);
6811
6786
  }
6812
6787
  });
6813
-
6814
6788
  }
6815
6789
 
6816
6790
  /**
@@ -6856,16 +6830,14 @@
6856
6830
  *
6857
6831
  * wheels[0].car // undefined
6858
6832
  */
6859
- function Refs$1(a, b) {
6860
-
6861
- if (!(this instanceof Refs$1)) {
6862
- return new Refs$1(a, b);
6833
+ function Refs(a, b) {
6834
+ if (!(this instanceof Refs)) {
6835
+ return new Refs(a, b);
6863
6836
  }
6864
6837
 
6865
6838
  // link
6866
6839
  a.inverse = b;
6867
6840
  b.inverse = a;
6868
-
6869
6841
  this.props = {};
6870
6842
  this.props[a.name] = a;
6871
6843
  this.props[b.name] = b;
@@ -6880,43 +6852,34 @@
6880
6852
  * @param {Object} target
6881
6853
  * @param {String} property
6882
6854
  */
6883
- Refs$1.prototype.bind = function(target, property) {
6855
+ Refs.prototype.bind = function (target, property) {
6884
6856
  if (typeof property === 'string') {
6885
6857
  if (!this.props[property]) {
6886
6858
  throw new Error('no property <' + property + '> in ref');
6887
6859
  }
6888
6860
  property = this.props[property];
6889
6861
  }
6890
-
6891
6862
  if (property.collection) {
6892
6863
  defineCollectionProperty(this, property, target);
6893
6864
  } else {
6894
6865
  defineProperty$1(this, property, target);
6895
6866
  }
6896
6867
  };
6897
-
6898
- Refs$1.prototype.ensureRefsCollection = function(target, property) {
6899
-
6868
+ Refs.prototype.ensureRefsCollection = function (target, property) {
6900
6869
  var collection = target[property.name];
6901
-
6902
- if (!Collection.isExtended(collection)) {
6870
+ if (!isExtended(collection)) {
6903
6871
  defineCollectionProperty(this, property, target);
6904
6872
  }
6905
-
6906
6873
  return collection;
6907
6874
  };
6908
-
6909
- Refs$1.prototype.ensureBound = function(target, property) {
6875
+ Refs.prototype.ensureBound = function (target, property) {
6910
6876
  if (!hasOwnProperty$1(target, property)) {
6911
6877
  this.bind(target, property);
6912
6878
  }
6913
6879
  };
6914
-
6915
- Refs$1.prototype.unset = function(target, property, value) {
6916
-
6880
+ Refs.prototype.unset = function (target, property, value) {
6917
6881
  if (target) {
6918
6882
  this.ensureBound(target, property);
6919
-
6920
6883
  if (property.collection) {
6921
6884
  this.ensureRefsCollection(target, property).remove(value);
6922
6885
  } else {
@@ -6924,12 +6887,9 @@
6924
6887
  }
6925
6888
  }
6926
6889
  };
6927
-
6928
- Refs$1.prototype.set = function(target, property, value) {
6929
-
6890
+ Refs.prototype.set = function (target, property, value) {
6930
6891
  if (target) {
6931
6892
  this.ensureBound(target, property);
6932
-
6933
6893
  if (property.collection) {
6934
6894
  this.ensureRefsCollection(target, property).add(value);
6935
6895
  } else {
@@ -6938,15 +6898,6 @@
6938
6898
  }
6939
6899
  };
6940
6900
 
6941
- var refs = Refs$1;
6942
-
6943
- objectRefs.exports = refs;
6944
-
6945
- objectRefs.exports.Collection = collection;
6946
-
6947
- var objectRefsExports = objectRefs.exports;
6948
- var Refs = /*@__PURE__*/getDefaultExportFromCjs(objectRefsExports);
6949
-
6950
6901
  var parentRefs = new Refs({ name: 'children', enumerable: true, collection: true }, { name: 'parent' }),
6951
6902
  labelRefs = new Refs({ name: 'labels', enumerable: true, collection: true }, { name: 'labelTarget' }),
6952
6903
  attacherRefs = new Refs({ name: 'attachers', collection: true }, { name: 'host' }),
@@ -17751,6 +17702,26 @@
17751
17702
  return true;
17752
17703
  }
17753
17704
 
17705
+ /**
17706
+ * @param {Element} element
17707
+ *
17708
+ * @return {boolean}
17709
+ */
17710
+ function isHorizontal$4(element) {
17711
+
17712
+ if (!is$1(element, 'bpmn:Participant') && !is$1(element, 'bpmn:Lane')) {
17713
+ return undefined;
17714
+ }
17715
+
17716
+ var isHorizontal = getDi(element).isHorizontal;
17717
+
17718
+ if (isHorizontal === undefined) {
17719
+ return true;
17720
+ }
17721
+
17722
+ return isHorizontal;
17723
+ }
17724
+
17754
17725
  /**
17755
17726
  * @param {Element} element
17756
17727
  *
@@ -19289,10 +19260,12 @@
19289
19260
  }
19290
19261
 
19291
19262
  function renderLaneLabel(parentGfx, text, element, attrs = {}) {
19263
+ var isHorizontalLane = isHorizontal$4(element);
19264
+
19292
19265
  var textBox = renderLabel(parentGfx, text, {
19293
19266
  box: {
19294
19267
  height: 30,
19295
- width: getHeight(element, attrs),
19268
+ width: isHorizontalLane ? getHeight(element, attrs) : getWidth(element, attrs),
19296
19269
  },
19297
19270
  align: 'center-middle',
19298
19271
  style: {
@@ -19300,9 +19273,10 @@
19300
19273
  }
19301
19274
  });
19302
19275
 
19303
- var top = -1 * getHeight(element, attrs);
19304
-
19305
- transform(textBox, 0, -top, 270);
19276
+ if (isHorizontalLane) {
19277
+ var top = -1 * getHeight(element, attrs);
19278
+ transform(textBox, 0, -top, 270);
19279
+ }
19306
19280
  }
19307
19281
 
19308
19282
  function renderActivity(parentGfx, element, attrs = {}) {
@@ -20020,12 +19994,13 @@
20020
19994
  var participant = renderLane(parentGfx, element, attrs);
20021
19995
 
20022
19996
  var expandedParticipant = isExpanded(element);
19997
+ var horizontalParticipant = isHorizontal$4(element);
20023
19998
 
20024
19999
  var semantic = getBusinessObject(element),
20025
20000
  name = semantic.get('name');
20026
20001
 
20027
20002
  if (expandedParticipant) {
20028
- drawLine(parentGfx, [
20003
+ var waypoints = horizontalParticipant ? [
20029
20004
  {
20030
20005
  x: 30,
20031
20006
  y: 0
@@ -20034,20 +20009,43 @@
20034
20009
  x: 30,
20035
20010
  y: getHeight(element, attrs)
20036
20011
  }
20037
- ], {
20012
+ ] : [
20013
+ {
20014
+ x: 0,
20015
+ y: 30
20016
+ },
20017
+ {
20018
+ x: getWidth(element, attrs),
20019
+ y: 30
20020
+ }
20021
+ ];
20022
+
20023
+ drawLine(parentGfx, waypoints, {
20038
20024
  stroke: getStrokeColor$1(element, defaultStrokeColor, attrs.stroke),
20039
20025
  strokeWidth: PARTICIPANT_STROKE_WIDTH
20040
20026
  });
20041
20027
 
20042
20028
  renderLaneLabel(parentGfx, name, element, attrs);
20043
20029
  } else {
20044
- renderLabel(parentGfx, name, {
20045
- box: getBounds$1(element, attrs),
20030
+ var bounds = getBounds$1(element, attrs);
20031
+
20032
+ if (!horizontalParticipant) {
20033
+ bounds.height = getWidth(element, attrs);
20034
+ bounds.width = getHeight(element, attrs);
20035
+ }
20036
+
20037
+ var textBox = renderLabel(parentGfx, name, {
20038
+ box: bounds,
20046
20039
  align: 'center-middle',
20047
20040
  style: {
20048
20041
  fill: getLabelColor(element, defaultLabelColor, defaultStrokeColor, attrs.stroke)
20049
20042
  }
20050
20043
  });
20044
+
20045
+ if (!horizontalParticipant) {
20046
+ var top = -1 * getHeight(element, attrs);
20047
+ transform(textBox, 0, -top, 270);
20048
+ }
20051
20049
  }
20052
20050
 
20053
20051
  if (semantic.get('participantMultiplicity')) {
@@ -26304,6 +26302,10 @@
26304
26302
  NavigatedViewer.prototype._navigationModules
26305
26303
  );
26306
26304
 
26305
+ function getDefaultExportFromCjs (x) {
26306
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
26307
+ }
26308
+
26307
26309
  var hammer = {exports: {}};
26308
26310
 
26309
26311
  /*! Hammer.JS - v2.0.7 - 2016-04-22
@@ -30364,6 +30366,10 @@
30364
30366
  return (entry.rank || 0) >= 0;
30365
30367
  }
30366
30368
 
30369
+ if (entry.searchable === false) {
30370
+ return false;
30371
+ }
30372
+
30367
30373
  const search = [
30368
30374
  entry.description || '',
30369
30375
  entry.label || '',
@@ -33661,7 +33667,7 @@
33661
33667
  */
33662
33668
  function getPathIntersection(waypoints, reference) {
33663
33669
 
33664
- var intersections = intersectPaths(circlePath(reference, INTERSECTION_THRESHOLD$1), linePath(waypoints));
33670
+ var intersections = findPathIntersections(circlePath(reference, INTERSECTION_THRESHOLD$1), linePath(waypoints));
33665
33671
 
33666
33672
  var a = intersections[0],
33667
33673
  b = intersections[intersections.length - 1],
@@ -39426,10 +39432,15 @@
39426
39432
  bo = getBusinessObject(shape),
39427
39433
  di = getDi(shape);
39428
39434
 
39429
- if (isAny(bo, elementTypesToUpdate) && !di.get('isHorizontal')) {
39435
+ if (isAny(bo, elementTypesToUpdate)) {
39436
+ var isHorizontal = di.get('isHorizontal');
39437
+
39438
+ if (isHorizontal === undefined) {
39439
+ isHorizontal = true;
39440
+ }
39430
39441
 
39431
39442
  // set attribute directly to avoid modeling#updateProperty side effects
39432
- di.set('isHorizontal', true);
39443
+ di.set('isHorizontal', isHorizontal);
39433
39444
  }
39434
39445
  });
39435
39446
 
@@ -56818,7 +56829,7 @@
56818
56829
  */
56819
56830
  var START_EVENT = [
56820
56831
  {
56821
- label: 'Start Event',
56832
+ label: 'Start event',
56822
56833
  actionName: 'replace-with-none-start',
56823
56834
  className: 'bpmn-icon-start-event-none',
56824
56835
  target: {
@@ -56826,7 +56837,7 @@
56826
56837
  }
56827
56838
  },
56828
56839
  {
56829
- label: 'Intermediate Throw Event',
56840
+ label: 'Intermediate throw event',
56830
56841
  actionName: 'replace-with-none-intermediate-throwing',
56831
56842
  className: 'bpmn-icon-intermediate-event-none',
56832
56843
  target: {
@@ -56834,7 +56845,7 @@
56834
56845
  }
56835
56846
  },
56836
56847
  {
56837
- label: 'End Event',
56848
+ label: 'End event',
56838
56849
  actionName: 'replace-with-none-end',
56839
56850
  className: 'bpmn-icon-end-event-none',
56840
56851
  target: {
@@ -56842,7 +56853,7 @@
56842
56853
  }
56843
56854
  },
56844
56855
  {
56845
- label: 'Message Start Event',
56856
+ label: 'Message start event',
56846
56857
  actionName: 'replace-with-message-start',
56847
56858
  className: 'bpmn-icon-start-event-message',
56848
56859
  target: {
@@ -56851,7 +56862,7 @@
56851
56862
  }
56852
56863
  },
56853
56864
  {
56854
- label: 'Timer Start Event',
56865
+ label: 'Timer start event',
56855
56866
  actionName: 'replace-with-timer-start',
56856
56867
  className: 'bpmn-icon-start-event-timer',
56857
56868
  target: {
@@ -56860,7 +56871,7 @@
56860
56871
  }
56861
56872
  },
56862
56873
  {
56863
- label: 'Conditional Start Event',
56874
+ label: 'Conditional start event',
56864
56875
  actionName: 'replace-with-conditional-start',
56865
56876
  className: 'bpmn-icon-start-event-condition',
56866
56877
  target: {
@@ -56869,7 +56880,7 @@
56869
56880
  }
56870
56881
  },
56871
56882
  {
56872
- label: 'Signal Start Event',
56883
+ label: 'Signal start event',
56873
56884
  actionName: 'replace-with-signal-start',
56874
56885
  className: 'bpmn-icon-start-event-signal',
56875
56886
  target: {
@@ -56884,7 +56895,7 @@
56884
56895
  */
56885
56896
  var START_EVENT_SUB_PROCESS = [
56886
56897
  {
56887
- label: 'Start Event',
56898
+ label: 'Start event',
56888
56899
  actionName: 'replace-with-none-start',
56889
56900
  className: 'bpmn-icon-start-event-none',
56890
56901
  target: {
@@ -56892,7 +56903,7 @@
56892
56903
  }
56893
56904
  },
56894
56905
  {
56895
- label: 'Intermediate Throw Event',
56906
+ label: 'Intermediate throw event',
56896
56907
  actionName: 'replace-with-none-intermediate-throwing',
56897
56908
  className: 'bpmn-icon-intermediate-event-none',
56898
56909
  target: {
@@ -56900,7 +56911,7 @@
56900
56911
  }
56901
56912
  },
56902
56913
  {
56903
- label: 'End Event',
56914
+ label: 'End event',
56904
56915
  actionName: 'replace-with-none-end',
56905
56916
  className: 'bpmn-icon-end-event-none',
56906
56917
  target: {
@@ -56914,7 +56925,7 @@
56914
56925
  */
56915
56926
  var INTERMEDIATE_EVENT = [
56916
56927
  {
56917
- label: 'Start Event',
56928
+ label: 'Start event',
56918
56929
  actionName: 'replace-with-none-start',
56919
56930
  className: 'bpmn-icon-start-event-none',
56920
56931
  target: {
@@ -56922,7 +56933,7 @@
56922
56933
  }
56923
56934
  },
56924
56935
  {
56925
- label: 'Intermediate Throw Event',
56936
+ label: 'Intermediate throw event',
56926
56937
  actionName: 'replace-with-none-intermediate-throw',
56927
56938
  className: 'bpmn-icon-intermediate-event-none',
56928
56939
  target: {
@@ -56930,7 +56941,7 @@
56930
56941
  }
56931
56942
  },
56932
56943
  {
56933
- label: 'End Event',
56944
+ label: 'End event',
56934
56945
  actionName: 'replace-with-none-end',
56935
56946
  className: 'bpmn-icon-end-event-none',
56936
56947
  target: {
@@ -56938,7 +56949,7 @@
56938
56949
  }
56939
56950
  },
56940
56951
  {
56941
- label: 'Message Intermediate Catch Event',
56952
+ label: 'Message intermediate catch event',
56942
56953
  actionName: 'replace-with-message-intermediate-catch',
56943
56954
  className: 'bpmn-icon-intermediate-event-catch-message',
56944
56955
  target: {
@@ -56947,7 +56958,7 @@
56947
56958
  }
56948
56959
  },
56949
56960
  {
56950
- label: 'Message Intermediate Throw Event',
56961
+ label: 'Message intermediate throw event',
56951
56962
  actionName: 'replace-with-message-intermediate-throw',
56952
56963
  className: 'bpmn-icon-intermediate-event-throw-message',
56953
56964
  target: {
@@ -56956,7 +56967,7 @@
56956
56967
  }
56957
56968
  },
56958
56969
  {
56959
- label: 'Timer Intermediate Catch Event',
56970
+ label: 'Timer intermediate catch event',
56960
56971
  actionName: 'replace-with-timer-intermediate-catch',
56961
56972
  className: 'bpmn-icon-intermediate-event-catch-timer',
56962
56973
  target: {
@@ -56965,7 +56976,7 @@
56965
56976
  }
56966
56977
  },
56967
56978
  {
56968
- label: 'Escalation Intermediate Throw Event',
56979
+ label: 'Escalation intermediate throw event',
56969
56980
  actionName: 'replace-with-escalation-intermediate-throw',
56970
56981
  className: 'bpmn-icon-intermediate-event-throw-escalation',
56971
56982
  target: {
@@ -56974,7 +56985,7 @@
56974
56985
  }
56975
56986
  },
56976
56987
  {
56977
- label: 'Conditional Intermediate Catch Event',
56988
+ label: 'Conditional intermediate catch event',
56978
56989
  actionName: 'replace-with-conditional-intermediate-catch',
56979
56990
  className: 'bpmn-icon-intermediate-event-catch-condition',
56980
56991
  target: {
@@ -56983,7 +56994,7 @@
56983
56994
  }
56984
56995
  },
56985
56996
  {
56986
- label: 'Link Intermediate Catch Event',
56997
+ label: 'Link intermediate catch event',
56987
56998
  actionName: 'replace-with-link-intermediate-catch',
56988
56999
  className: 'bpmn-icon-intermediate-event-catch-link',
56989
57000
  target: {
@@ -56995,7 +57006,7 @@
56995
57006
  }
56996
57007
  },
56997
57008
  {
56998
- label: 'Link Intermediate Throw Event',
57009
+ label: 'Link intermediate throw event',
56999
57010
  actionName: 'replace-with-link-intermediate-throw',
57000
57011
  className: 'bpmn-icon-intermediate-event-throw-link',
57001
57012
  target: {
@@ -57007,7 +57018,7 @@
57007
57018
  }
57008
57019
  },
57009
57020
  {
57010
- label: 'Compensation Intermediate Throw Event',
57021
+ label: 'Compensation intermediate throw event',
57011
57022
  actionName: 'replace-with-compensation-intermediate-throw',
57012
57023
  className: 'bpmn-icon-intermediate-event-throw-compensation',
57013
57024
  target: {
@@ -57016,7 +57027,7 @@
57016
57027
  }
57017
57028
  },
57018
57029
  {
57019
- label: 'Signal Intermediate Catch Event',
57030
+ label: 'Signal intermediate catch event',
57020
57031
  actionName: 'replace-with-signal-intermediate-catch',
57021
57032
  className: 'bpmn-icon-intermediate-event-catch-signal',
57022
57033
  target: {
@@ -57025,7 +57036,7 @@
57025
57036
  }
57026
57037
  },
57027
57038
  {
57028
- label: 'Signal Intermediate Throw Event',
57039
+ label: 'Signal intermediate throw event',
57029
57040
  actionName: 'replace-with-signal-intermediate-throw',
57030
57041
  className: 'bpmn-icon-intermediate-event-throw-signal',
57031
57042
  target: {
@@ -57040,7 +57051,7 @@
57040
57051
  */
57041
57052
  var END_EVENT = [
57042
57053
  {
57043
- label: 'Start Event',
57054
+ label: 'Start event',
57044
57055
  actionName: 'replace-with-none-start',
57045
57056
  className: 'bpmn-icon-start-event-none',
57046
57057
  target: {
@@ -57048,7 +57059,7 @@
57048
57059
  }
57049
57060
  },
57050
57061
  {
57051
- label: 'Intermediate Throw Event',
57062
+ label: 'Intermediate throw event',
57052
57063
  actionName: 'replace-with-none-intermediate-throw',
57053
57064
  className: 'bpmn-icon-intermediate-event-none',
57054
57065
  target: {
@@ -57056,7 +57067,7 @@
57056
57067
  }
57057
57068
  },
57058
57069
  {
57059
- label: 'End Event',
57070
+ label: 'End event',
57060
57071
  actionName: 'replace-with-none-end',
57061
57072
  className: 'bpmn-icon-end-event-none',
57062
57073
  target: {
@@ -57064,7 +57075,7 @@
57064
57075
  }
57065
57076
  },
57066
57077
  {
57067
- label: 'Message End Event',
57078
+ label: 'Message end event',
57068
57079
  actionName: 'replace-with-message-end',
57069
57080
  className: 'bpmn-icon-end-event-message',
57070
57081
  target: {
@@ -57073,7 +57084,7 @@
57073
57084
  }
57074
57085
  },
57075
57086
  {
57076
- label: 'Escalation End Event',
57087
+ label: 'Escalation end event',
57077
57088
  actionName: 'replace-with-escalation-end',
57078
57089
  className: 'bpmn-icon-end-event-escalation',
57079
57090
  target: {
@@ -57082,7 +57093,7 @@
57082
57093
  }
57083
57094
  },
57084
57095
  {
57085
- label: 'Error End Event',
57096
+ label: 'Error end event',
57086
57097
  actionName: 'replace-with-error-end',
57087
57098
  className: 'bpmn-icon-end-event-error',
57088
57099
  target: {
@@ -57091,7 +57102,7 @@
57091
57102
  }
57092
57103
  },
57093
57104
  {
57094
- label: 'Cancel End Event',
57105
+ label: 'Cancel end event',
57095
57106
  actionName: 'replace-with-cancel-end',
57096
57107
  className: 'bpmn-icon-end-event-cancel',
57097
57108
  target: {
@@ -57100,7 +57111,7 @@
57100
57111
  }
57101
57112
  },
57102
57113
  {
57103
- label: 'Compensation End Event',
57114
+ label: 'Compensation end event',
57104
57115
  actionName: 'replace-with-compensation-end',
57105
57116
  className: 'bpmn-icon-end-event-compensation',
57106
57117
  target: {
@@ -57109,7 +57120,7 @@
57109
57120
  }
57110
57121
  },
57111
57122
  {
57112
- label: 'Signal End Event',
57123
+ label: 'Signal end event',
57113
57124
  actionName: 'replace-with-signal-end',
57114
57125
  className: 'bpmn-icon-end-event-signal',
57115
57126
  target: {
@@ -57118,7 +57129,7 @@
57118
57129
  }
57119
57130
  },
57120
57131
  {
57121
- label: 'Terminate End Event',
57132
+ label: 'Terminate end event',
57122
57133
  actionName: 'replace-with-terminate-end',
57123
57134
  className: 'bpmn-icon-end-event-terminate',
57124
57135
  target: {
@@ -57133,7 +57144,7 @@
57133
57144
  */
57134
57145
  var GATEWAY = [
57135
57146
  {
57136
- label: 'Exclusive Gateway',
57147
+ label: 'Exclusive gateway',
57137
57148
  actionName: 'replace-with-exclusive-gateway',
57138
57149
  className: 'bpmn-icon-gateway-xor',
57139
57150
  target: {
@@ -57141,7 +57152,7 @@
57141
57152
  }
57142
57153
  },
57143
57154
  {
57144
- label: 'Parallel Gateway',
57155
+ label: 'Parallel gateway',
57145
57156
  actionName: 'replace-with-parallel-gateway',
57146
57157
  className: 'bpmn-icon-gateway-parallel',
57147
57158
  target: {
@@ -57149,7 +57160,7 @@
57149
57160
  }
57150
57161
  },
57151
57162
  {
57152
- label: 'Inclusive Gateway',
57163
+ label: 'Inclusive gateway',
57153
57164
  actionName: 'replace-with-inclusive-gateway',
57154
57165
  className: 'bpmn-icon-gateway-or',
57155
57166
  target: {
@@ -57157,7 +57168,7 @@
57157
57168
  }
57158
57169
  },
57159
57170
  {
57160
- label: 'Complex Gateway',
57171
+ label: 'Complex gateway',
57161
57172
  actionName: 'replace-with-complex-gateway',
57162
57173
  className: 'bpmn-icon-gateway-complex',
57163
57174
  target: {
@@ -57165,7 +57176,7 @@
57165
57176
  }
57166
57177
  },
57167
57178
  {
57168
- label: 'Event based Gateway',
57179
+ label: 'Event-based gateway',
57169
57180
  actionName: 'replace-with-event-based-gateway',
57170
57181
  className: 'bpmn-icon-gateway-eventbased',
57171
57182
  target: {
@@ -57214,7 +57225,7 @@
57214
57225
  }
57215
57226
  },
57216
57227
  {
57217
- label: 'Event Sub Process',
57228
+ label: 'Event sub-process',
57218
57229
  actionName: 'replace-with-event-subprocess',
57219
57230
  className: 'bpmn-icon-event-subprocess-expanded',
57220
57231
  target: {
@@ -57224,7 +57235,7 @@
57224
57235
  }
57225
57236
  },
57226
57237
  {
57227
- label: 'Sub Process (collapsed)',
57238
+ label: 'Sub-process (collapsed)',
57228
57239
  actionName: 'replace-with-collapsed-subprocess',
57229
57240
  className: 'bpmn-icon-subprocess-collapsed',
57230
57241
  target: {
@@ -57248,7 +57259,7 @@
57248
57259
  }
57249
57260
  },
57250
57261
  {
57251
- label: 'Sub Process',
57262
+ label: 'Sub-process',
57252
57263
  actionName: 'replace-with-subprocess',
57253
57264
  className: 'bpmn-icon-subprocess-expanded',
57254
57265
  target: {
@@ -57257,7 +57268,7 @@
57257
57268
  }
57258
57269
  },
57259
57270
  {
57260
- label: 'Event Sub Process',
57271
+ label: 'Event sub-process',
57261
57272
  actionName: 'replace-with-event-subprocess',
57262
57273
  className: 'bpmn-icon-event-subprocess-expanded',
57263
57274
  target: {
@@ -57286,7 +57297,7 @@
57286
57297
  }
57287
57298
  },
57288
57299
  {
57289
- label: 'User Task',
57300
+ label: 'User task',
57290
57301
  actionName: 'replace-with-user-task',
57291
57302
  className: 'bpmn-icon-user',
57292
57303
  target: {
@@ -57294,7 +57305,7 @@
57294
57305
  }
57295
57306
  },
57296
57307
  {
57297
- label: 'Service Task',
57308
+ label: 'Service task',
57298
57309
  actionName: 'replace-with-service-task',
57299
57310
  className: 'bpmn-icon-service',
57300
57311
  target: {
@@ -57302,7 +57313,7 @@
57302
57313
  }
57303
57314
  },
57304
57315
  {
57305
- label: 'Send Task',
57316
+ label: 'Send task',
57306
57317
  actionName: 'replace-with-send-task',
57307
57318
  className: 'bpmn-icon-send',
57308
57319
  target: {
@@ -57310,7 +57321,7 @@
57310
57321
  }
57311
57322
  },
57312
57323
  {
57313
- label: 'Receive Task',
57324
+ label: 'Receive task',
57314
57325
  actionName: 'replace-with-receive-task',
57315
57326
  className: 'bpmn-icon-receive',
57316
57327
  target: {
@@ -57318,7 +57329,7 @@
57318
57329
  }
57319
57330
  },
57320
57331
  {
57321
- label: 'Manual Task',
57332
+ label: 'Manual task',
57322
57333
  actionName: 'replace-with-manual-task',
57323
57334
  className: 'bpmn-icon-manual',
57324
57335
  target: {
@@ -57326,7 +57337,7 @@
57326
57337
  }
57327
57338
  },
57328
57339
  {
57329
- label: 'Business Rule Task',
57340
+ label: 'Business rule task',
57330
57341
  actionName: 'replace-with-rule-task',
57331
57342
  className: 'bpmn-icon-business-rule',
57332
57343
  target: {
@@ -57334,7 +57345,7 @@
57334
57345
  }
57335
57346
  },
57336
57347
  {
57337
- label: 'Script Task',
57348
+ label: 'Script task',
57338
57349
  actionName: 'replace-with-script-task',
57339
57350
  className: 'bpmn-icon-script',
57340
57351
  target: {
@@ -57342,7 +57353,7 @@
57342
57353
  }
57343
57354
  },
57344
57355
  {
57345
- label: 'Call Activity',
57356
+ label: 'Call activity',
57346
57357
  actionName: 'replace-with-call-activity',
57347
57358
  className: 'bpmn-icon-call-activity',
57348
57359
  target: {
@@ -57350,7 +57361,7 @@
57350
57361
  }
57351
57362
  },
57352
57363
  {
57353
- label: 'Sub Process (collapsed)',
57364
+ label: 'Sub-process (collapsed)',
57354
57365
  actionName: 'replace-with-collapsed-subprocess',
57355
57366
  className: 'bpmn-icon-subprocess-collapsed',
57356
57367
  target: {
@@ -57359,7 +57370,7 @@
57359
57370
  }
57360
57371
  },
57361
57372
  {
57362
- label: 'Sub Process (expanded)',
57373
+ label: 'Sub-process (expanded)',
57363
57374
  actionName: 'replace-with-expanded-subprocess',
57364
57375
  className: 'bpmn-icon-subprocess-expanded',
57365
57376
  target: {
@@ -57374,7 +57385,7 @@
57374
57385
  */
57375
57386
  var DATA_OBJECT_REFERENCE = [
57376
57387
  {
57377
- label: 'Data Store Reference',
57388
+ label: 'Data store reference',
57378
57389
  actionName: 'replace-with-data-store-reference',
57379
57390
  className: 'bpmn-icon-data-store',
57380
57391
  target: {
@@ -57388,7 +57399,7 @@
57388
57399
  */
57389
57400
  var DATA_STORE_REFERENCE = [
57390
57401
  {
57391
- label: 'Data Object Reference',
57402
+ label: 'Data object reference',
57392
57403
  actionName: 'replace-with-data-object-reference',
57393
57404
  className: 'bpmn-icon-data-object',
57394
57405
  target: {
@@ -57402,7 +57413,7 @@
57402
57413
  */
57403
57414
  var BOUNDARY_EVENT = [
57404
57415
  {
57405
- label: 'Message Boundary Event',
57416
+ label: 'Message boundary event',
57406
57417
  actionName: 'replace-with-message-boundary',
57407
57418
  className: 'bpmn-icon-intermediate-event-catch-message',
57408
57419
  target: {
@@ -57412,7 +57423,7 @@
57412
57423
  }
57413
57424
  },
57414
57425
  {
57415
- label: 'Timer Boundary Event',
57426
+ label: 'Timer boundary event',
57416
57427
  actionName: 'replace-with-timer-boundary',
57417
57428
  className: 'bpmn-icon-intermediate-event-catch-timer',
57418
57429
  target: {
@@ -57422,7 +57433,7 @@
57422
57433
  }
57423
57434
  },
57424
57435
  {
57425
- label: 'Escalation Boundary Event',
57436
+ label: 'Escalation boundary event',
57426
57437
  actionName: 'replace-with-escalation-boundary',
57427
57438
  className: 'bpmn-icon-intermediate-event-catch-escalation',
57428
57439
  target: {
@@ -57432,7 +57443,7 @@
57432
57443
  }
57433
57444
  },
57434
57445
  {
57435
- label: 'Conditional Boundary Event',
57446
+ label: 'Conditional boundary event',
57436
57447
  actionName: 'replace-with-conditional-boundary',
57437
57448
  className: 'bpmn-icon-intermediate-event-catch-condition',
57438
57449
  target: {
@@ -57442,7 +57453,7 @@
57442
57453
  }
57443
57454
  },
57444
57455
  {
57445
- label: 'Error Boundary Event',
57456
+ label: 'Error boundary event',
57446
57457
  actionName: 'replace-with-error-boundary',
57447
57458
  className: 'bpmn-icon-intermediate-event-catch-error',
57448
57459
  target: {
@@ -57452,7 +57463,7 @@
57452
57463
  }
57453
57464
  },
57454
57465
  {
57455
- label: 'Cancel Boundary Event',
57466
+ label: 'Cancel boundary event',
57456
57467
  actionName: 'replace-with-cancel-boundary',
57457
57468
  className: 'bpmn-icon-intermediate-event-catch-cancel',
57458
57469
  target: {
@@ -57462,7 +57473,7 @@
57462
57473
  }
57463
57474
  },
57464
57475
  {
57465
- label: 'Signal Boundary Event',
57476
+ label: 'Signal boundary event',
57466
57477
  actionName: 'replace-with-signal-boundary',
57467
57478
  className: 'bpmn-icon-intermediate-event-catch-signal',
57468
57479
  target: {
@@ -57472,7 +57483,7 @@
57472
57483
  }
57473
57484
  },
57474
57485
  {
57475
- label: 'Compensation Boundary Event',
57486
+ label: 'Compensation boundary event',
57476
57487
  actionName: 'replace-with-compensation-boundary',
57477
57488
  className: 'bpmn-icon-intermediate-event-catch-compensation',
57478
57489
  target: {
@@ -57482,7 +57493,7 @@
57482
57493
  }
57483
57494
  },
57484
57495
  {
57485
- label: 'Message Boundary Event (non-interrupting)',
57496
+ label: 'Message boundary event (non-interrupting)',
57486
57497
  actionName: 'replace-with-non-interrupting-message-boundary',
57487
57498
  className: 'bpmn-icon-intermediate-event-catch-non-interrupting-message',
57488
57499
  target: {
@@ -57492,7 +57503,7 @@
57492
57503
  }
57493
57504
  },
57494
57505
  {
57495
- label: 'Timer Boundary Event (non-interrupting)',
57506
+ label: 'Timer boundary event (non-interrupting)',
57496
57507
  actionName: 'replace-with-non-interrupting-timer-boundary',
57497
57508
  className: 'bpmn-icon-intermediate-event-catch-non-interrupting-timer',
57498
57509
  target: {
@@ -57502,7 +57513,7 @@
57502
57513
  }
57503
57514
  },
57504
57515
  {
57505
- label: 'Escalation Boundary Event (non-interrupting)',
57516
+ label: 'Escalation boundary event (non-interrupting)',
57506
57517
  actionName: 'replace-with-non-interrupting-escalation-boundary',
57507
57518
  className: 'bpmn-icon-intermediate-event-catch-non-interrupting-escalation',
57508
57519
  target: {
@@ -57512,7 +57523,7 @@
57512
57523
  }
57513
57524
  },
57514
57525
  {
57515
- label: 'Conditional Boundary Event (non-interrupting)',
57526
+ label: 'Conditional boundary event (non-interrupting)',
57516
57527
  actionName: 'replace-with-non-interrupting-conditional-boundary',
57517
57528
  className: 'bpmn-icon-intermediate-event-catch-non-interrupting-condition',
57518
57529
  target: {
@@ -57522,7 +57533,7 @@
57522
57533
  }
57523
57534
  },
57524
57535
  {
57525
- label: 'Signal Boundary Event (non-interrupting)',
57536
+ label: 'Signal boundary event (non-interrupting)',
57526
57537
  actionName: 'replace-with-non-interrupting-signal-boundary',
57527
57538
  className: 'bpmn-icon-intermediate-event-catch-non-interrupting-signal',
57528
57539
  target: {
@@ -57538,7 +57549,7 @@
57538
57549
  */
57539
57550
  var EVENT_SUB_PROCESS_START_EVENT = [
57540
57551
  {
57541
- label: 'Message Start Event',
57552
+ label: 'Message start event',
57542
57553
  actionName: 'replace-with-message-start',
57543
57554
  className: 'bpmn-icon-start-event-message',
57544
57555
  target: {
@@ -57548,7 +57559,7 @@
57548
57559
  }
57549
57560
  },
57550
57561
  {
57551
- label: 'Timer Start Event',
57562
+ label: 'Timer start event',
57552
57563
  actionName: 'replace-with-timer-start',
57553
57564
  className: 'bpmn-icon-start-event-timer',
57554
57565
  target: {
@@ -57558,7 +57569,7 @@
57558
57569
  }
57559
57570
  },
57560
57571
  {
57561
- label: 'Conditional Start Event',
57572
+ label: 'Conditional start event',
57562
57573
  actionName: 'replace-with-conditional-start',
57563
57574
  className: 'bpmn-icon-start-event-condition',
57564
57575
  target: {
@@ -57568,7 +57579,7 @@
57568
57579
  }
57569
57580
  },
57570
57581
  {
57571
- label: 'Signal Start Event',
57582
+ label: 'Signal start event',
57572
57583
  actionName: 'replace-with-signal-start',
57573
57584
  className: 'bpmn-icon-start-event-signal',
57574
57585
  target: {
@@ -57578,7 +57589,7 @@
57578
57589
  }
57579
57590
  },
57580
57591
  {
57581
- label: 'Error Start Event',
57592
+ label: 'Error start event',
57582
57593
  actionName: 'replace-with-error-start',
57583
57594
  className: 'bpmn-icon-start-event-error',
57584
57595
  target: {
@@ -57588,7 +57599,7 @@
57588
57599
  }
57589
57600
  },
57590
57601
  {
57591
- label: 'Escalation Start Event',
57602
+ label: 'Escalation start event',
57592
57603
  actionName: 'replace-with-escalation-start',
57593
57604
  className: 'bpmn-icon-start-event-escalation',
57594
57605
  target: {
@@ -57598,7 +57609,7 @@
57598
57609
  }
57599
57610
  },
57600
57611
  {
57601
- label: 'Compensation Start Event',
57612
+ label: 'Compensation start event',
57602
57613
  actionName: 'replace-with-compensation-start',
57603
57614
  className: 'bpmn-icon-start-event-compensation',
57604
57615
  target: {
@@ -57608,7 +57619,7 @@
57608
57619
  }
57609
57620
  },
57610
57621
  {
57611
- label: 'Message Start Event (non-interrupting)',
57622
+ label: 'Message start event (non-interrupting)',
57612
57623
  actionName: 'replace-with-non-interrupting-message-start',
57613
57624
  className: 'bpmn-icon-start-event-non-interrupting-message',
57614
57625
  target: {
@@ -57618,7 +57629,7 @@
57618
57629
  }
57619
57630
  },
57620
57631
  {
57621
- label: 'Timer Start Event (non-interrupting)',
57632
+ label: 'Timer start event (non-interrupting)',
57622
57633
  actionName: 'replace-with-non-interrupting-timer-start',
57623
57634
  className: 'bpmn-icon-start-event-non-interrupting-timer',
57624
57635
  target: {
@@ -57628,7 +57639,7 @@
57628
57639
  }
57629
57640
  },
57630
57641
  {
57631
- label: 'Conditional Start Event (non-interrupting)',
57642
+ label: 'Conditional start event (non-interrupting)',
57632
57643
  actionName: 'replace-with-non-interrupting-conditional-start',
57633
57644
  className: 'bpmn-icon-start-event-non-interrupting-condition',
57634
57645
  target: {
@@ -57638,7 +57649,7 @@
57638
57649
  }
57639
57650
  },
57640
57651
  {
57641
- label: 'Signal Start Event (non-interrupting)',
57652
+ label: 'Signal start event (non-interrupting)',
57642
57653
  actionName: 'replace-with-non-interrupting-signal-start',
57643
57654
  className: 'bpmn-icon-start-event-non-interrupting-signal',
57644
57655
  target: {
@@ -57648,7 +57659,7 @@
57648
57659
  }
57649
57660
  },
57650
57661
  {
57651
- label: 'Escalation Start Event (non-interrupting)',
57662
+ label: 'Escalation start event (non-interrupting)',
57652
57663
  actionName: 'replace-with-non-interrupting-escalation-start',
57653
57664
  className: 'bpmn-icon-start-event-non-interrupting-escalation',
57654
57665
  target: {
@@ -57664,17 +57675,17 @@
57664
57675
  */
57665
57676
  var SEQUENCE_FLOW = [
57666
57677
  {
57667
- label: 'Sequence Flow',
57678
+ label: 'Sequence flow',
57668
57679
  actionName: 'replace-with-sequence-flow',
57669
57680
  className: 'bpmn-icon-connection'
57670
57681
  },
57671
57682
  {
57672
- label: 'Default Flow',
57683
+ label: 'Default flow',
57673
57684
  actionName: 'replace-with-default-flow',
57674
57685
  className: 'bpmn-icon-default-flow'
57675
57686
  },
57676
57687
  {
57677
- label: 'Conditional Flow',
57688
+ label: 'Conditional flow',
57678
57689
  actionName: 'replace-with-conditional-flow',
57679
57690
  className: 'bpmn-icon-conditional-flow'
57680
57691
  }
@@ -57685,7 +57696,7 @@
57685
57696
  */
57686
57697
  var PARTICIPANT = [
57687
57698
  {
57688
- label: 'Expanded Pool',
57699
+ label: 'Expanded pool/participant',
57689
57700
  actionName: 'replace-with-expanded-pool',
57690
57701
  className: 'bpmn-icon-participant',
57691
57702
  target: {
@@ -57695,7 +57706,7 @@
57695
57706
  },
57696
57707
  {
57697
57708
  label: function(element) {
57698
- var label = 'Empty Pool';
57709
+ var label = 'Empty pool/participant';
57699
57710
 
57700
57711
  if (element.children && element.children.length) {
57701
57712
  label += ' (removes content)';
@@ -57976,7 +57987,7 @@
57976
57987
  // collapsed sub process cannot be replaced with itself
57977
57988
  if (is$1(businessObject, 'bpmn:SubProcess') && !isExpanded(target)) {
57978
57989
  filteredReplaceOptions = filter(filteredReplaceOptions, function(replaceOption) {
57979
- return replaceOption.label !== 'Sub Process (collapsed)';
57990
+ return replaceOption.label !== 'Sub-process (collapsed)';
57980
57991
  });
57981
57992
  }
57982
57993
 
@@ -58219,7 +58230,7 @@
58219
58230
  return {
58220
58231
  'toggle-parallel-mi' : {
58221
58232
  className: 'bpmn-icon-parallel-mi-marker',
58222
- title: translate('Parallel Multi Instance'),
58233
+ title: translate('Parallel multi-instance'),
58223
58234
  active: isParallel,
58224
58235
  action: toggleLoopEntry,
58225
58236
  options: {
@@ -58229,7 +58240,7 @@
58229
58240
  },
58230
58241
  'toggle-sequential-mi': {
58231
58242
  className: 'bpmn-icon-sequential-mi-marker',
58232
- title: translate('Sequential Multi Instance'),
58243
+ title: translate('Sequential multi-instance'),
58233
58244
  active: isSequential,
58234
58245
  action: toggleLoopEntry,
58235
58246
  options: {
@@ -58317,7 +58328,7 @@
58317
58328
  return {
58318
58329
  'toggle-participant-multiplicity': {
58319
58330
  className: 'bpmn-icon-parallel-mi-marker',
58320
- title: translate('Participant Multiplicity'),
58331
+ title: translate('Participant multiplicity'),
58321
58332
  active: !!participantMultiplicity,
58322
58333
  action: toggleParticipantMultiplicity,
58323
58334
  }
@@ -58376,7 +58387,7 @@
58376
58387
  return {
58377
58388
  'toggle-non-interrupting': {
58378
58389
  imageHtml: icon,
58379
- title: translate('Toggle Non-Interrupting'),
58390
+ title: translate('Toggle non-interrupting'),
58380
58391
  active: isNonInterrupting,
58381
58392
  action: function() {
58382
58393
  self._modeling.updateProperties(element, {
@@ -58602,18 +58613,13 @@
58602
58613
  *
58603
58614
  * @param {string} type
58604
58615
  * @param {string} className
58605
- * @param {string} [title]
58616
+ * @param {string} title
58606
58617
  * @param {Object} [options]
58607
58618
  *
58608
58619
  * @return {ContextPadEntry}
58609
58620
  */
58610
58621
  function appendAction(type, className, title, options) {
58611
58622
 
58612
- if (typeof title !== 'string') {
58613
- options = title;
58614
- title = translate('Append {type}', { type: type.replace(/^bpmn:/, '') });
58615
- }
58616
-
58617
58623
  function appendStart(event, element) {
58618
58624
 
58619
58625
  var shape = elementFactory.createShape(assign$1({ type: type }, options));
@@ -58679,7 +58685,7 @@
58679
58685
  'lane-insert-above': {
58680
58686
  group: 'lane-insert-above',
58681
58687
  className: 'bpmn-icon-lane-insert-above',
58682
- title: translate('Add Lane above'),
58688
+ title: translate('Add lane above'),
58683
58689
  action: {
58684
58690
  click: function(event, element) {
58685
58691
  modeling.addLane(element, 'top');
@@ -58695,7 +58701,7 @@
58695
58701
  'lane-divide-two': {
58696
58702
  group: 'lane-divide',
58697
58703
  className: 'bpmn-icon-lane-divide-two',
58698
- title: translate('Divide into two Lanes'),
58704
+ title: translate('Divide into two lanes'),
58699
58705
  action: {
58700
58706
  click: splitLaneHandler(2)
58701
58707
  }
@@ -58708,7 +58714,7 @@
58708
58714
  'lane-divide-three': {
58709
58715
  group: 'lane-divide',
58710
58716
  className: 'bpmn-icon-lane-divide-three',
58711
- title: translate('Divide into three Lanes'),
58717
+ title: translate('Divide into three lanes'),
58712
58718
  action: {
58713
58719
  click: splitLaneHandler(3)
58714
58720
  }
@@ -58721,7 +58727,7 @@
58721
58727
  'lane-insert-below': {
58722
58728
  group: 'lane-insert-below',
58723
58729
  className: 'bpmn-icon-lane-insert-below',
58724
- title: translate('Add Lane below'),
58730
+ title: translate('Add lane below'),
58725
58731
  action: {
58726
58732
  click: function(event, element) {
58727
58733
  modeling.addLane(element, 'bottom');
@@ -58740,30 +58746,30 @@
58740
58746
  'append.receive-task': appendAction(
58741
58747
  'bpmn:ReceiveTask',
58742
58748
  'bpmn-icon-receive-task',
58743
- translate('Append ReceiveTask')
58749
+ translate('Append receive task')
58744
58750
  ),
58745
58751
  'append.message-intermediate-event': appendAction(
58746
58752
  'bpmn:IntermediateCatchEvent',
58747
58753
  'bpmn-icon-intermediate-event-catch-message',
58748
- translate('Append MessageIntermediateCatchEvent'),
58754
+ translate('Append message intermediate catch event'),
58749
58755
  { eventDefinitionType: 'bpmn:MessageEventDefinition' }
58750
58756
  ),
58751
58757
  'append.timer-intermediate-event': appendAction(
58752
58758
  'bpmn:IntermediateCatchEvent',
58753
58759
  'bpmn-icon-intermediate-event-catch-timer',
58754
- translate('Append TimerIntermediateCatchEvent'),
58760
+ translate('Append timer intermediate catch event'),
58755
58761
  { eventDefinitionType: 'bpmn:TimerEventDefinition' }
58756
58762
  ),
58757
58763
  'append.condition-intermediate-event': appendAction(
58758
58764
  'bpmn:IntermediateCatchEvent',
58759
58765
  'bpmn-icon-intermediate-event-catch-condition',
58760
- translate('Append ConditionIntermediateCatchEvent'),
58766
+ translate('Append conditional intermediate catch event'),
58761
58767
  { eventDefinitionType: 'bpmn:ConditionalEventDefinition' }
58762
58768
  ),
58763
58769
  'append.signal-intermediate-event': appendAction(
58764
58770
  'bpmn:IntermediateCatchEvent',
58765
58771
  'bpmn-icon-intermediate-event-catch-signal',
58766
- translate('Append SignalIntermediateCatchEvent'),
58772
+ translate('Append signal intermediate catch event'),
58767
58773
  { eventDefinitionType: 'bpmn:SignalEventDefinition' }
58768
58774
  )
58769
58775
  });
@@ -58793,22 +58799,22 @@
58793
58799
  'append.end-event': appendAction(
58794
58800
  'bpmn:EndEvent',
58795
58801
  'bpmn-icon-end-event-none',
58796
- translate('Append EndEvent')
58802
+ translate('Append end event')
58797
58803
  ),
58798
58804
  'append.gateway': appendAction(
58799
58805
  'bpmn:ExclusiveGateway',
58800
58806
  'bpmn-icon-gateway-none',
58801
- translate('Append Gateway')
58807
+ translate('Append gateway')
58802
58808
  ),
58803
58809
  'append.append-task': appendAction(
58804
58810
  'bpmn:Task',
58805
58811
  'bpmn-icon-task',
58806
- translate('Append Task')
58812
+ translate('Append task')
58807
58813
  ),
58808
58814
  'append.intermediate-event': appendAction(
58809
58815
  'bpmn:IntermediateThrowEvent',
58810
58816
  'bpmn-icon-intermediate-event-none',
58811
- translate('Append Intermediate/Boundary Event')
58817
+ translate('Append intermediate/boundary event')
58812
58818
  )
58813
58819
  });
58814
58820
  }
@@ -58845,7 +58851,7 @@
58845
58851
  'append.text-annotation': appendAction(
58846
58852
  'bpmn:TextAnnotation',
58847
58853
  'bpmn-icon-text-annotation',
58848
- translate('Append TextAnnotation')
58854
+ translate('Append text annotation')
58849
58855
  )
58850
58856
  });
58851
58857
  }
@@ -58862,7 +58868,7 @@
58862
58868
  'append.text-annotation': appendAction(
58863
58869
  'bpmn:TextAnnotation',
58864
58870
  'bpmn-icon-text-annotation',
58865
- translate('Append TextAnnotation')
58871
+ translate('Append text annotation')
58866
58872
  ),
58867
58873
 
58868
58874
  'connect': {
@@ -58872,8 +58878,8 @@
58872
58878
  'Connect using ' +
58873
58879
  (businessObject.isForCompensation
58874
58880
  ? ''
58875
- : 'Sequence/MessageFlow or ') +
58876
- 'Association'
58881
+ : 'sequence/message flow or ') +
58882
+ 'association'
58877
58883
  ),
58878
58884
  action: {
58879
58885
  click: startConnect,
@@ -58888,7 +58894,7 @@
58888
58894
  'connect': {
58889
58895
  group: 'connect',
58890
58896
  className: 'bpmn-icon-connection-multi',
58891
- title: translate('Connect using Association'),
58897
+ title: translate('Connect using association'),
58892
58898
  action: {
58893
58899
  click: startConnect,
58894
58900
  dragstart: startConnect,
@@ -58902,7 +58908,7 @@
58902
58908
  'connect': {
58903
58909
  group: 'connect',
58904
58910
  className: 'bpmn-icon-connection-multi',
58905
- title: translate('Connect using DataInputAssociation'),
58911
+ title: translate('Connect using data input association'),
58906
58912
  action: {
58907
58913
  click: startConnect,
58908
58914
  dragstart: startConnect
@@ -58916,7 +58922,7 @@
58916
58922
  'append.text-annotation': appendAction(
58917
58923
  'bpmn:TextAnnotation',
58918
58924
  'bpmn-icon-text-annotation',
58919
- translate('Append TextAnnotation')
58925
+ translate('Append text annotation')
58920
58926
  )
58921
58927
  });
58922
58928
  }
@@ -62076,13 +62082,47 @@
62076
62082
 
62077
62083
  // adjust for expanded pools AND lanes
62078
62084
  if (is$1(element, 'bpmn:Lane') || isExpandedPool(element)) {
62085
+ var isHorizontalLane = isHorizontal$4(element);
62079
62086
 
62080
- assign$1(bounds, {
62087
+ var laneBounds = isHorizontalLane ? {
62081
62088
  width: bbox.height,
62082
62089
  height: 30 * zoom,
62083
62090
  x: bbox.x - bbox.height / 2 + (15 * zoom),
62084
62091
  y: mid.y - (30 * zoom) / 2
62092
+ } : {
62093
+ width: bbox.width,
62094
+ height: 30 * zoom
62095
+ };
62096
+
62097
+ assign$1(bounds, laneBounds);
62098
+
62099
+ assign$1(style, {
62100
+ fontSize: defaultFontSize + 'px',
62101
+ lineHeight: defaultLineHeight,
62102
+ paddingTop: (7 * zoom) + 'px',
62103
+ paddingBottom: (7 * zoom) + 'px',
62104
+ paddingLeft: (5 * zoom) + 'px',
62105
+ paddingRight: (5 * zoom) + 'px',
62106
+ transform: isHorizontalLane ? 'rotate(-90deg)' : null
62085
62107
  });
62108
+ }
62109
+
62110
+
62111
+ // internal labels for collapsed participants
62112
+ if (isCollapsedPool(element)) {
62113
+ var isHorizontalPool = isHorizontal$4(element);
62114
+
62115
+ var poolBounds = isHorizontalPool ? {
62116
+ width: bbox.width,
62117
+ height: bbox.height
62118
+ } : {
62119
+ width: bbox.height,
62120
+ height: bbox.width,
62121
+ x: mid.x - bbox.height / 2,
62122
+ y: mid.y - bbox.width / 2
62123
+ };
62124
+
62125
+ assign$1(bounds, poolBounds);
62086
62126
 
62087
62127
  assign$1(style, {
62088
62128
  fontSize: defaultFontSize + 'px',
@@ -62091,15 +62131,14 @@
62091
62131
  paddingBottom: (7 * zoom) + 'px',
62092
62132
  paddingLeft: (5 * zoom) + 'px',
62093
62133
  paddingRight: (5 * zoom) + 'px',
62094
- transform: 'rotate(-90deg)'
62134
+ transform: isHorizontalPool ? null : 'rotate(-90deg)'
62095
62135
  });
62096
62136
  }
62097
62137
 
62098
62138
 
62099
- // internal labels for tasks and collapsed call activities,
62100
- // sub processes and participants
62139
+ // internal labels for tasks and collapsed call activities
62140
+ // and sub processes
62101
62141
  if (isAny(element, [ 'bpmn:Task', 'bpmn:CallActivity' ]) ||
62102
- isCollapsedPool(element) ||
62103
62142
  isCollapsedSubProcess(element)) {
62104
62143
 
62105
62144
  assign$1(bounds, {
@@ -64752,12 +64791,10 @@
64752
64791
  create.start(event, shape);
64753
64792
  }
64754
64793
 
64755
- var shortType = type.replace(/^bpmn:/, '');
64756
-
64757
64794
  return {
64758
64795
  group: group,
64759
64796
  className: className,
64760
- title: title || translate('Create {type}', { type: shortType }),
64797
+ title: title,
64761
64798
  action: {
64762
64799
  dragstart: createListener,
64763
64800
  click: createListener
@@ -64795,7 +64832,7 @@
64795
64832
  'hand-tool': {
64796
64833
  group: 'tools',
64797
64834
  className: 'bpmn-icon-hand-tool',
64798
- title: translate('Activate the hand tool'),
64835
+ title: translate('Activate hand tool'),
64799
64836
  action: {
64800
64837
  click: function(event) {
64801
64838
  handTool.activateHand(event);
@@ -64805,7 +64842,7 @@
64805
64842
  'lasso-tool': {
64806
64843
  group: 'tools',
64807
64844
  className: 'bpmn-icon-lasso-tool',
64808
- title: translate('Activate the lasso tool'),
64845
+ title: translate('Activate lasso tool'),
64809
64846
  action: {
64810
64847
  click: function(event) {
64811
64848
  lassoTool.activateSelection(event);
@@ -64815,7 +64852,7 @@
64815
64852
  'space-tool': {
64816
64853
  group: 'tools',
64817
64854
  className: 'bpmn-icon-space-tool',
64818
- title: translate('Activate the create/remove space tool'),
64855
+ title: translate('Activate create/remove space tool'),
64819
64856
  action: {
64820
64857
  click: function(event) {
64821
64858
  spaceTool.activateSelection(event);
@@ -64825,7 +64862,7 @@
64825
64862
  'global-connect-tool': {
64826
64863
  group: 'tools',
64827
64864
  className: 'bpmn-icon-connection-multi',
64828
- title: translate('Activate the global connect tool'),
64865
+ title: translate('Activate global connect tool'),
64829
64866
  action: {
64830
64867
  click: function(event) {
64831
64868
  globalConnect.start(event);
@@ -64838,36 +64875,36 @@
64838
64875
  },
64839
64876
  'create.start-event': createAction(
64840
64877
  'bpmn:StartEvent', 'event', 'bpmn-icon-start-event-none',
64841
- translate('Create StartEvent')
64878
+ translate('Create start event')
64842
64879
  ),
64843
64880
  'create.intermediate-event': createAction(
64844
64881
  'bpmn:IntermediateThrowEvent', 'event', 'bpmn-icon-intermediate-event-none',
64845
- translate('Create Intermediate/Boundary Event')
64882
+ translate('Create intermediate/boundary event')
64846
64883
  ),
64847
64884
  'create.end-event': createAction(
64848
64885
  'bpmn:EndEvent', 'event', 'bpmn-icon-end-event-none',
64849
- translate('Create EndEvent')
64886
+ translate('Create end event')
64850
64887
  ),
64851
64888
  'create.exclusive-gateway': createAction(
64852
64889
  'bpmn:ExclusiveGateway', 'gateway', 'bpmn-icon-gateway-none',
64853
- translate('Create Gateway')
64890
+ translate('Create gateway')
64854
64891
  ),
64855
64892
  'create.task': createAction(
64856
64893
  'bpmn:Task', 'activity', 'bpmn-icon-task',
64857
- translate('Create Task')
64894
+ translate('Create task')
64858
64895
  ),
64859
64896
  'create.data-object': createAction(
64860
64897
  'bpmn:DataObjectReference', 'data-object', 'bpmn-icon-data-object',
64861
- translate('Create DataObjectReference')
64898
+ translate('Create data object reference')
64862
64899
  ),
64863
64900
  'create.data-store': createAction(
64864
64901
  'bpmn:DataStoreReference', 'data-store', 'bpmn-icon-data-store',
64865
- translate('Create DataStoreReference')
64902
+ translate('Create data store reference')
64866
64903
  ),
64867
64904
  'create.subprocess-expanded': {
64868
64905
  group: 'activity',
64869
64906
  className: 'bpmn-icon-subprocess-expanded',
64870
- title: translate('Create expanded SubProcess'),
64907
+ title: translate('Create expanded sub-process'),
64871
64908
  action: {
64872
64909
  dragstart: createSubprocess,
64873
64910
  click: createSubprocess
@@ -64876,7 +64913,7 @@
64876
64913
  'create.participant-expanded': {
64877
64914
  group: 'collaboration',
64878
64915
  className: 'bpmn-icon-participant',
64879
- title: translate('Create Pool/Participant'),
64916
+ title: translate('Create pool/participant'),
64880
64917
  action: {
64881
64918
  dragstart: createParticipant,
64882
64919
  click: createParticipant
@@ -64884,7 +64921,7 @@
64884
64921
  },
64885
64922
  'create.group': createAction(
64886
64923
  'bpmn:Group', 'artifact', 'bpmn-icon-group',
64887
- translate('Create Group')
64924
+ translate('Create group')
64888
64925
  ),
64889
64926
  });
64890
64927