bpmn-js 16.0.0 → 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.
- package/README.md +2 -11
- package/dist/bpmn-modeler.development.js +77 -138
- package/dist/bpmn-modeler.production.min.js +35 -35
- package/dist/bpmn-navigated-viewer.development.js +29 -94
- package/dist/bpmn-navigated-viewer.production.min.js +5 -5
- package/dist/bpmn-viewer.development.js +29 -94
- package/dist/bpmn-viewer.production.min.js +5 -5
- package/package.json +3 -4
package/README.md
CHANGED
|
@@ -8,8 +8,8 @@ View and edit BPMN 2.0 diagrams in the browser.
|
|
|
8
8
|
|
|
9
9
|
## Installation
|
|
10
10
|
|
|
11
|
-
Use the library [pre-packaged](https://github.com/bpmn-io/bpmn-js-examples/tree/
|
|
12
|
-
or include it [via npm](https://github.com/bpmn-io/bpmn-js-examples/tree/
|
|
11
|
+
Use the library [pre-packaged](https://github.com/bpmn-io/bpmn-js-examples/tree/main/pre-packaged)
|
|
12
|
+
or include it [via npm](https://github.com/bpmn-io/bpmn-js-examples/tree/main/bundling)
|
|
13
13
|
into your node-style web-application.
|
|
14
14
|
|
|
15
15
|
## Usage
|
|
@@ -88,15 +88,6 @@ bpmn-js builds on top of a few powerful tools:
|
|
|
88
88
|
* [bpmn-moddle](https://github.com/bpmn-io/bpmn-moddle): Read / write support for BPMN 2.0 XML in the browsers
|
|
89
89
|
* [diagram-js](https://github.com/bpmn-io/diagram-js): Diagram rendering and editing toolkit
|
|
90
90
|
|
|
91
|
-
## Contributing
|
|
92
|
-
|
|
93
|
-
Please checkout our [contributing guidelines](./.github/CONTRIBUTING.md) if you plan to
|
|
94
|
-
file an issue or pull request.
|
|
95
|
-
|
|
96
|
-
## Code of Conduct
|
|
97
|
-
|
|
98
|
-
By participating to this project, please uphold to our [Code of Conduct](https://github.com/bpmn-io/.github/blob/master/.github/CODE_OF_CONDUCT.md).
|
|
99
|
-
|
|
100
91
|
## License
|
|
101
92
|
|
|
102
93
|
Use under the terms of the [bpmn.io license](http://bpmn.io/license).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* bpmn-js - bpmn-modeler v16.
|
|
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-12-
|
|
11
|
+
* Date: 2023-12-14
|
|
12
12
|
*/
|
|
13
13
|
(function (global, factory) {
|
|
14
14
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -3650,10 +3650,6 @@
|
|
|
3650
3650
|
};
|
|
3651
3651
|
}
|
|
3652
3652
|
|
|
3653
|
-
function getDefaultExportFromCjs (x) {
|
|
3654
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
3655
|
-
}
|
|
3656
|
-
|
|
3657
3653
|
/**
|
|
3658
3654
|
* This file contains source code adapted from Snap.svg (licensed Apache-2.0).
|
|
3659
3655
|
*
|
|
@@ -3718,7 +3714,7 @@
|
|
|
3718
3714
|
|
|
3719
3715
|
count.length >= 1e3 && delete cache[count.shift()];
|
|
3720
3716
|
count.push(args);
|
|
3721
|
-
cache[args] = f
|
|
3717
|
+
cache[args] = f(...arguments);
|
|
3722
3718
|
|
|
3723
3719
|
return cache[args];
|
|
3724
3720
|
}
|
|
@@ -3755,13 +3751,13 @@
|
|
|
3755
3751
|
});
|
|
3756
3752
|
|
|
3757
3753
|
if (name == 'm' && params.length > 2) {
|
|
3758
|
-
data.push([b
|
|
3754
|
+
data.push([ b, ...params.splice(0, 2) ]);
|
|
3759
3755
|
name = 'l';
|
|
3760
3756
|
b = b == 'm' ? 'l' : 'L';
|
|
3761
3757
|
}
|
|
3762
3758
|
|
|
3763
3759
|
while (params.length >= paramCounts[name]) {
|
|
3764
|
-
data.push([b
|
|
3760
|
+
data.push([ b, ...params.splice(0, paramCounts[name]) ]);
|
|
3765
3761
|
if (!paramCounts[name]) {
|
|
3766
3762
|
break;
|
|
3767
3763
|
}
|
|
@@ -3844,7 +3840,7 @@
|
|
|
3844
3840
|
|
|
3845
3841
|
function bezierBBox(points) {
|
|
3846
3842
|
|
|
3847
|
-
var bbox = curveBBox
|
|
3843
|
+
var bbox = curveBBox(...points);
|
|
3848
3844
|
|
|
3849
3845
|
return rectBBox(
|
|
3850
3846
|
bbox.x0,
|
|
@@ -3894,8 +3890,8 @@
|
|
|
3894
3890
|
|
|
3895
3891
|
var z2 = z / 2,
|
|
3896
3892
|
n = 12,
|
|
3897
|
-
Tvalues = [-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],
|
|
3898
|
-
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 ],
|
|
3899
3895
|
sum = 0;
|
|
3900
3896
|
|
|
3901
3897
|
for (var i = 0; i < n; i++) {
|
|
@@ -3965,8 +3961,8 @@
|
|
|
3965
3961
|
|
|
3966
3962
|
// As an optimization, lines will have only 1 segment
|
|
3967
3963
|
|
|
3968
|
-
var l1 = bezlen
|
|
3969
|
-
l2 = bezlen
|
|
3964
|
+
var l1 = bezlen(...bez1),
|
|
3965
|
+
l2 = bezlen(...bez2),
|
|
3970
3966
|
n1 = isLine(bez1) ? 1 : ~~(l1 / 5) || 1,
|
|
3971
3967
|
n2 = isLine(bez2) ? 1 : ~~(l2 / 5) || 1,
|
|
3972
3968
|
dots1 = [],
|
|
@@ -3975,12 +3971,12 @@
|
|
|
3975
3971
|
res = justCount ? 0 : [];
|
|
3976
3972
|
|
|
3977
3973
|
for (var i = 0; i < n1 + 1; i++) {
|
|
3978
|
-
var p = findDotsAtSegment
|
|
3974
|
+
var p = findDotsAtSegment(...bez1, i / n1);
|
|
3979
3975
|
dots1.push({ x: p.x, y: p.y, t: i / n1 });
|
|
3980
3976
|
}
|
|
3981
3977
|
|
|
3982
3978
|
for (i = 0; i < n2 + 1; i++) {
|
|
3983
|
-
p = findDotsAtSegment
|
|
3979
|
+
p = findDotsAtSegment(...bez2, i / n2);
|
|
3984
3980
|
dots2.push({ x: p.x, y: p.y, t: i / n2 });
|
|
3985
3981
|
}
|
|
3986
3982
|
|
|
@@ -4075,11 +4071,11 @@
|
|
|
4075
4071
|
} else {
|
|
4076
4072
|
|
|
4077
4073
|
if (pi[0] == 'C') {
|
|
4078
|
-
bez1 = [x1, y1
|
|
4074
|
+
bez1 = [ x1, y1, ...pi.slice(1) ];
|
|
4079
4075
|
x1 = bez1[6];
|
|
4080
4076
|
y1 = bez1[7];
|
|
4081
4077
|
} else {
|
|
4082
|
-
bez1 = [x1, y1, x1, y1, x1m, y1m, x1m, y1m];
|
|
4078
|
+
bez1 = [ x1, y1, x1, y1, x1m, y1m, x1m, y1m ];
|
|
4083
4079
|
x1 = x1m;
|
|
4084
4080
|
y1 = y1m;
|
|
4085
4081
|
}
|
|
@@ -4093,11 +4089,11 @@
|
|
|
4093
4089
|
} else {
|
|
4094
4090
|
|
|
4095
4091
|
if (pj[0] == 'C') {
|
|
4096
|
-
bez2 = [x2, y2
|
|
4092
|
+
bez2 = [ x2, y2, ...pj.slice(1) ];
|
|
4097
4093
|
x2 = bez2[6];
|
|
4098
4094
|
y2 = bez2[7];
|
|
4099
4095
|
} else {
|
|
4100
|
-
bez2 = [x2, y2, x2, y2, x2m, y2m, x2m, y2m];
|
|
4096
|
+
bez2 = [ x2, y2, x2, y2, x2m, y2m, x2m, y2m ];
|
|
4101
4097
|
x2 = x2m;
|
|
4102
4098
|
y2 = y2m;
|
|
4103
4099
|
}
|
|
@@ -4138,7 +4134,7 @@
|
|
|
4138
4134
|
}
|
|
4139
4135
|
|
|
4140
4136
|
if (!pathArray || !pathArray.length) {
|
|
4141
|
-
return [['M', 0, 0]];
|
|
4137
|
+
return [ [ 'M', 0, 0 ] ];
|
|
4142
4138
|
}
|
|
4143
4139
|
|
|
4144
4140
|
var res = [],
|
|
@@ -4155,7 +4151,7 @@
|
|
|
4155
4151
|
mx = x;
|
|
4156
4152
|
my = y;
|
|
4157
4153
|
start++;
|
|
4158
|
-
res[0] = ['M', x, y];
|
|
4154
|
+
res[0] = [ 'M', x, y ];
|
|
4159
4155
|
}
|
|
4160
4156
|
|
|
4161
4157
|
for (var r, pa, i = start, ii = pathArray.length; i < ii; i++) {
|
|
@@ -4324,7 +4320,7 @@
|
|
|
4324
4320
|
f2 = f1 + _120 * (sweep_flag && f2 > f1 ? 1 : -1);
|
|
4325
4321
|
x2 = cx + rx * math.cos(f2);
|
|
4326
4322
|
y2 = cy + ry * math.sin(f2);
|
|
4327
|
-
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 ]);
|
|
4328
4324
|
}
|
|
4329
4325
|
|
|
4330
4326
|
df = f2 - f1;
|
|
@@ -4336,18 +4332,18 @@
|
|
|
4336
4332
|
t = math.tan(df / 4),
|
|
4337
4333
|
hx = 4 / 3 * rx * t,
|
|
4338
4334
|
hy = 4 / 3 * ry * t,
|
|
4339
|
-
m1 = [x1, y1],
|
|
4340
|
-
m2 = [x1 + hx * s1, y1 - hy * c1],
|
|
4341
|
-
m3 = [x2 + hx * s2, y2 - hy * c2],
|
|
4342
|
-
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 ];
|
|
4343
4339
|
|
|
4344
4340
|
m2[0] = 2 * m1[0] - m2[0];
|
|
4345
4341
|
m2[1] = 2 * m1[1] - m2[1];
|
|
4346
4342
|
|
|
4347
4343
|
if (recursive) {
|
|
4348
|
-
return [m2, m3, m4].concat(res);
|
|
4344
|
+
return [ m2, m3, m4 ].concat(res);
|
|
4349
4345
|
} else {
|
|
4350
|
-
res = [m2, m3, m4].concat(res).join().split(',');
|
|
4346
|
+
res = [ m2, m3, m4 ].concat(res).join().split(',');
|
|
4351
4347
|
var newres = [];
|
|
4352
4348
|
|
|
4353
4349
|
for (var i = 0, ii = res.length; i < ii; i++) {
|
|
@@ -4364,7 +4360,7 @@
|
|
|
4364
4360
|
// Modifications: https://github.com/timo22345
|
|
4365
4361
|
function curveBBox(x0, y0, x1, y1, x2, y2, x3, y3) {
|
|
4366
4362
|
var tvalues = [],
|
|
4367
|
-
bounds = [[], []],
|
|
4363
|
+
bounds = [ [], [] ],
|
|
4368
4364
|
a, b, c, t, t1, t2, b2ac, sqrtb2ac;
|
|
4369
4365
|
|
|
4370
4366
|
for (var i = 0; i < 2; ++i) {
|
|
@@ -4432,10 +4428,10 @@
|
|
|
4432
4428
|
bounds[0].length = bounds[1].length = jlen + 2;
|
|
4433
4429
|
|
|
4434
4430
|
return {
|
|
4435
|
-
x0: mmin
|
|
4436
|
-
y0: mmin
|
|
4437
|
-
x1: mmax
|
|
4438
|
-
y1: mmax
|
|
4431
|
+
x0: mmin(...bounds[0]),
|
|
4432
|
+
y0: mmin(...bounds[1]),
|
|
4433
|
+
x1: mmax(...bounds[0]),
|
|
4434
|
+
y1: mmax(...bounds[1])
|
|
4439
4435
|
};
|
|
4440
4436
|
}
|
|
4441
4437
|
|
|
@@ -4454,7 +4450,7 @@
|
|
|
4454
4450
|
var nx, ny;
|
|
4455
4451
|
|
|
4456
4452
|
if (!path) {
|
|
4457
|
-
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 ];
|
|
4458
4454
|
}
|
|
4459
4455
|
|
|
4460
4456
|
!(path[0] in { T: 1, Q: 1 }) && (d.qx = d.qy = null);
|
|
@@ -4465,7 +4461,7 @@
|
|
|
4465
4461
|
d.Y = path[2];
|
|
4466
4462
|
break;
|
|
4467
4463
|
case 'A':
|
|
4468
|
-
path = ['C'
|
|
4464
|
+
path = [ 'C', ...arcToCurve(d.x, d.y, ...path.slice(1)) ];
|
|
4469
4465
|
break;
|
|
4470
4466
|
case 'S':
|
|
4471
4467
|
if (pathCommand == 'C' || pathCommand == 'S') {
|
|
@@ -4484,7 +4480,7 @@
|
|
|
4484
4480
|
nx = d.x;
|
|
4485
4481
|
ny = d.y;
|
|
4486
4482
|
}
|
|
4487
|
-
path = ['C', nx, ny
|
|
4483
|
+
path = [ 'C', nx, ny, ...path.slice(1) ];
|
|
4488
4484
|
break;
|
|
4489
4485
|
case 'T':
|
|
4490
4486
|
if (pathCommand == 'Q' || pathCommand == 'T') {
|
|
@@ -4503,24 +4499,24 @@
|
|
|
4503
4499
|
d.qx = d.x;
|
|
4504
4500
|
d.qy = d.y;
|
|
4505
4501
|
}
|
|
4506
|
-
path = ['C'
|
|
4502
|
+
path = [ 'C', ...qubicToCurve(d.x, d.y, d.qx, d.qy, path[1], path[2]) ];
|
|
4507
4503
|
break;
|
|
4508
4504
|
case 'Q':
|
|
4509
4505
|
d.qx = path[1];
|
|
4510
4506
|
d.qy = path[2];
|
|
4511
|
-
path = ['C'
|
|
4507
|
+
path = [ 'C', ...qubicToCurve(d.x, d.y, path[1], path[2], path[3], path[4]) ];
|
|
4512
4508
|
break;
|
|
4513
4509
|
case 'L':
|
|
4514
|
-
path = ['C'
|
|
4510
|
+
path = [ 'C', ...lineToCurve(d.x, d.y, path[1], path[2]) ];
|
|
4515
4511
|
break;
|
|
4516
4512
|
case 'H':
|
|
4517
|
-
path = ['C'
|
|
4513
|
+
path = [ 'C', ...lineToCurve(d.x, d.y, path[1], d.y) ];
|
|
4518
4514
|
break;
|
|
4519
4515
|
case 'V':
|
|
4520
|
-
path = ['C'
|
|
4516
|
+
path = [ 'C', ...lineToCurve(d.x, d.y, d.x, path[1]) ];
|
|
4521
4517
|
break;
|
|
4522
4518
|
case 'Z':
|
|
4523
|
-
path = ['C'
|
|
4519
|
+
path = [ 'C', ...lineToCurve(d.x, d.y, d.X, d.Y) ];
|
|
4524
4520
|
break;
|
|
4525
4521
|
}
|
|
4526
4522
|
|
|
@@ -4535,7 +4531,7 @@
|
|
|
4535
4531
|
|
|
4536
4532
|
while (pi.length) {
|
|
4537
4533
|
pathCommands[i] = 'A'; // if created multiple C:s, their original seg is saved
|
|
4538
|
-
pp.splice(i++, 0, ['C'
|
|
4534
|
+
pp.splice(i++, 0, [ 'C', ...pi.splice(0, 6) ]);
|
|
4539
4535
|
}
|
|
4540
4536
|
|
|
4541
4537
|
pp.splice(i, 1);
|
|
@@ -4578,10 +4574,6 @@
|
|
|
4578
4574
|
return curvedPath;
|
|
4579
4575
|
}
|
|
4580
4576
|
|
|
4581
|
-
var intersect = findPathIntersections;
|
|
4582
|
-
|
|
4583
|
-
var intersectPaths = /*@__PURE__*/getDefaultExportFromCjs(intersect);
|
|
4584
|
-
|
|
4585
4577
|
/**
|
|
4586
4578
|
* Checks whether a value is an instance of Connection.
|
|
4587
4579
|
*
|
|
@@ -4859,7 +4851,7 @@
|
|
|
4859
4851
|
|
|
4860
4852
|
|
|
4861
4853
|
function getIntersections(a, b) {
|
|
4862
|
-
return
|
|
4854
|
+
return findPathIntersections(a, b);
|
|
4863
4855
|
}
|
|
4864
4856
|
|
|
4865
4857
|
|
|
@@ -6646,32 +6638,17 @@
|
|
|
6646
6638
|
}
|
|
6647
6639
|
};
|
|
6648
6640
|
|
|
6649
|
-
var objectRefs = {exports: {}};
|
|
6650
|
-
|
|
6651
|
-
var collection = {};
|
|
6652
|
-
|
|
6653
|
-
/**
|
|
6654
|
-
* An empty collection stub. Use {@link RefsCollection.extend} to extend a
|
|
6655
|
-
* collection with ref semantics.
|
|
6656
|
-
*
|
|
6657
|
-
* @class RefsCollection
|
|
6658
|
-
*/
|
|
6659
|
-
|
|
6660
6641
|
/**
|
|
6661
6642
|
* Extends a collection with {@link Refs} aware methods
|
|
6662
6643
|
*
|
|
6663
|
-
* @
|
|
6664
|
-
* @
|
|
6665
|
-
*
|
|
6666
|
-
* @param
|
|
6667
|
-
* @param {Refs} refs instance
|
|
6668
|
-
* @param {Object} property represented by the collection
|
|
6669
|
-
* @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
|
|
6670
6648
|
*
|
|
6671
6649
|
* @return {RefsCollection<Object>} the extended array
|
|
6672
6650
|
*/
|
|
6673
6651
|
function extend(collection, refs, property, target) {
|
|
6674
|
-
|
|
6675
6652
|
var inverseProperty = property.inverse;
|
|
6676
6653
|
|
|
6677
6654
|
/**
|
|
@@ -6682,7 +6659,7 @@
|
|
|
6682
6659
|
* @param {Object} element the element to remove
|
|
6683
6660
|
*/
|
|
6684
6661
|
Object.defineProperty(collection, 'remove', {
|
|
6685
|
-
value: function(element) {
|
|
6662
|
+
value: function (element) {
|
|
6686
6663
|
var idx = this.indexOf(element);
|
|
6687
6664
|
if (idx !== -1) {
|
|
6688
6665
|
this.splice(idx, 1);
|
|
@@ -6690,7 +6667,6 @@
|
|
|
6690
6667
|
// unset inverse
|
|
6691
6668
|
refs.unset(element, inverseProperty, target);
|
|
6692
6669
|
}
|
|
6693
|
-
|
|
6694
6670
|
return element;
|
|
6695
6671
|
}
|
|
6696
6672
|
});
|
|
@@ -6703,7 +6679,7 @@
|
|
|
6703
6679
|
* @param {Object} element the element to check for
|
|
6704
6680
|
*/
|
|
6705
6681
|
Object.defineProperty(collection, 'contains', {
|
|
6706
|
-
value: function(element) {
|
|
6682
|
+
value: function (element) {
|
|
6707
6683
|
return this.indexOf(element) !== -1;
|
|
6708
6684
|
}
|
|
6709
6685
|
});
|
|
@@ -6718,12 +6694,9 @@
|
|
|
6718
6694
|
* (possibly moving other elements around)
|
|
6719
6695
|
*/
|
|
6720
6696
|
Object.defineProperty(collection, 'add', {
|
|
6721
|
-
value: function(element, idx) {
|
|
6722
|
-
|
|
6697
|
+
value: function (element, idx) {
|
|
6723
6698
|
var currentIdx = this.indexOf(element);
|
|
6724
|
-
|
|
6725
6699
|
if (typeof idx === 'undefined') {
|
|
6726
|
-
|
|
6727
6700
|
if (currentIdx !== -1) {
|
|
6728
6701
|
// element already in collection (!)
|
|
6729
6702
|
return;
|
|
@@ -6735,14 +6708,12 @@
|
|
|
6735
6708
|
|
|
6736
6709
|
// handle already in collection
|
|
6737
6710
|
if (currentIdx !== -1) {
|
|
6738
|
-
|
|
6739
6711
|
// remove element from currentIdx
|
|
6740
6712
|
this.splice(currentIdx, 1);
|
|
6741
6713
|
}
|
|
6742
6714
|
|
|
6743
6715
|
// add element at idx
|
|
6744
6716
|
this.splice(idx, 0, element);
|
|
6745
|
-
|
|
6746
6717
|
if (currentIdx === -1) {
|
|
6747
6718
|
// set inverse, unless element was
|
|
6748
6719
|
// in collection already
|
|
@@ -6756,69 +6727,53 @@
|
|
|
6756
6727
|
Object.defineProperty(collection, '__refs_collection', {
|
|
6757
6728
|
value: true
|
|
6758
6729
|
});
|
|
6759
|
-
|
|
6760
6730
|
return collection;
|
|
6761
6731
|
}
|
|
6762
6732
|
|
|
6763
|
-
|
|
6733
|
+
/**
|
|
6734
|
+
* Checks if a given collection is extended
|
|
6735
|
+
*
|
|
6736
|
+
* @param {Array<Object>} collection
|
|
6737
|
+
*
|
|
6738
|
+
* @return {boolean}
|
|
6739
|
+
*/
|
|
6764
6740
|
function isExtended(collection) {
|
|
6765
6741
|
return collection.__refs_collection === true;
|
|
6766
6742
|
}
|
|
6767
6743
|
|
|
6768
|
-
collection.extend = extend;
|
|
6769
|
-
|
|
6770
|
-
collection.isExtended = isExtended;
|
|
6771
|
-
|
|
6772
|
-
var Collection = collection;
|
|
6773
|
-
|
|
6774
6744
|
function hasOwnProperty$1(e, property) {
|
|
6775
6745
|
return Object.prototype.hasOwnProperty.call(e, property.name || property);
|
|
6776
6746
|
}
|
|
6777
|
-
|
|
6778
6747
|
function defineCollectionProperty(ref, property, target) {
|
|
6779
|
-
|
|
6780
|
-
var collection = Collection.extend(target[property.name] || [], ref, property, target);
|
|
6781
|
-
|
|
6748
|
+
var collection = extend(target[property.name] || [], ref, property, target);
|
|
6782
6749
|
Object.defineProperty(target, property.name, {
|
|
6783
6750
|
enumerable: property.enumerable,
|
|
6784
6751
|
value: collection
|
|
6785
6752
|
});
|
|
6786
|
-
|
|
6787
6753
|
if (collection.length) {
|
|
6788
|
-
|
|
6789
|
-
collection.forEach(function(o) {
|
|
6754
|
+
collection.forEach(function (o) {
|
|
6790
6755
|
ref.set(o, property.inverse, target);
|
|
6791
6756
|
});
|
|
6792
6757
|
}
|
|
6793
6758
|
}
|
|
6794
|
-
|
|
6795
|
-
|
|
6796
6759
|
function defineProperty$1(ref, property, target) {
|
|
6797
|
-
|
|
6798
6760
|
var inverseProperty = property.inverse;
|
|
6799
|
-
|
|
6800
6761
|
var _value = target[property.name];
|
|
6801
|
-
|
|
6802
6762
|
Object.defineProperty(target, property.name, {
|
|
6803
6763
|
configurable: property.configurable,
|
|
6804
6764
|
enumerable: property.enumerable,
|
|
6805
|
-
|
|
6806
|
-
get: function() {
|
|
6765
|
+
get: function () {
|
|
6807
6766
|
return _value;
|
|
6808
6767
|
},
|
|
6809
|
-
|
|
6810
|
-
set: function(value) {
|
|
6811
|
-
|
|
6768
|
+
set: function (value) {
|
|
6812
6769
|
// return if we already performed all changes
|
|
6813
6770
|
if (value === _value) {
|
|
6814
6771
|
return;
|
|
6815
6772
|
}
|
|
6816
|
-
|
|
6817
6773
|
var old = _value;
|
|
6818
6774
|
|
|
6819
6775
|
// temporary set null
|
|
6820
6776
|
_value = null;
|
|
6821
|
-
|
|
6822
6777
|
if (old) {
|
|
6823
6778
|
ref.unset(old, inverseProperty, target);
|
|
6824
6779
|
}
|
|
@@ -6830,7 +6785,6 @@
|
|
|
6830
6785
|
ref.set(_value, inverseProperty, target);
|
|
6831
6786
|
}
|
|
6832
6787
|
});
|
|
6833
|
-
|
|
6834
6788
|
}
|
|
6835
6789
|
|
|
6836
6790
|
/**
|
|
@@ -6876,16 +6830,14 @@
|
|
|
6876
6830
|
*
|
|
6877
6831
|
* wheels[0].car // undefined
|
|
6878
6832
|
*/
|
|
6879
|
-
function Refs
|
|
6880
|
-
|
|
6881
|
-
|
|
6882
|
-
return new Refs$1(a, b);
|
|
6833
|
+
function Refs(a, b) {
|
|
6834
|
+
if (!(this instanceof Refs)) {
|
|
6835
|
+
return new Refs(a, b);
|
|
6883
6836
|
}
|
|
6884
6837
|
|
|
6885
6838
|
// link
|
|
6886
6839
|
a.inverse = b;
|
|
6887
6840
|
b.inverse = a;
|
|
6888
|
-
|
|
6889
6841
|
this.props = {};
|
|
6890
6842
|
this.props[a.name] = a;
|
|
6891
6843
|
this.props[b.name] = b;
|
|
@@ -6900,43 +6852,34 @@
|
|
|
6900
6852
|
* @param {Object} target
|
|
6901
6853
|
* @param {String} property
|
|
6902
6854
|
*/
|
|
6903
|
-
Refs
|
|
6855
|
+
Refs.prototype.bind = function (target, property) {
|
|
6904
6856
|
if (typeof property === 'string') {
|
|
6905
6857
|
if (!this.props[property]) {
|
|
6906
6858
|
throw new Error('no property <' + property + '> in ref');
|
|
6907
6859
|
}
|
|
6908
6860
|
property = this.props[property];
|
|
6909
6861
|
}
|
|
6910
|
-
|
|
6911
6862
|
if (property.collection) {
|
|
6912
6863
|
defineCollectionProperty(this, property, target);
|
|
6913
6864
|
} else {
|
|
6914
6865
|
defineProperty$1(this, property, target);
|
|
6915
6866
|
}
|
|
6916
6867
|
};
|
|
6917
|
-
|
|
6918
|
-
Refs$1.prototype.ensureRefsCollection = function(target, property) {
|
|
6919
|
-
|
|
6868
|
+
Refs.prototype.ensureRefsCollection = function (target, property) {
|
|
6920
6869
|
var collection = target[property.name];
|
|
6921
|
-
|
|
6922
|
-
if (!Collection.isExtended(collection)) {
|
|
6870
|
+
if (!isExtended(collection)) {
|
|
6923
6871
|
defineCollectionProperty(this, property, target);
|
|
6924
6872
|
}
|
|
6925
|
-
|
|
6926
6873
|
return collection;
|
|
6927
6874
|
};
|
|
6928
|
-
|
|
6929
|
-
Refs$1.prototype.ensureBound = function(target, property) {
|
|
6875
|
+
Refs.prototype.ensureBound = function (target, property) {
|
|
6930
6876
|
if (!hasOwnProperty$1(target, property)) {
|
|
6931
6877
|
this.bind(target, property);
|
|
6932
6878
|
}
|
|
6933
6879
|
};
|
|
6934
|
-
|
|
6935
|
-
Refs$1.prototype.unset = function(target, property, value) {
|
|
6936
|
-
|
|
6880
|
+
Refs.prototype.unset = function (target, property, value) {
|
|
6937
6881
|
if (target) {
|
|
6938
6882
|
this.ensureBound(target, property);
|
|
6939
|
-
|
|
6940
6883
|
if (property.collection) {
|
|
6941
6884
|
this.ensureRefsCollection(target, property).remove(value);
|
|
6942
6885
|
} else {
|
|
@@ -6944,12 +6887,9 @@
|
|
|
6944
6887
|
}
|
|
6945
6888
|
}
|
|
6946
6889
|
};
|
|
6947
|
-
|
|
6948
|
-
Refs$1.prototype.set = function(target, property, value) {
|
|
6949
|
-
|
|
6890
|
+
Refs.prototype.set = function (target, property, value) {
|
|
6950
6891
|
if (target) {
|
|
6951
6892
|
this.ensureBound(target, property);
|
|
6952
|
-
|
|
6953
6893
|
if (property.collection) {
|
|
6954
6894
|
this.ensureRefsCollection(target, property).add(value);
|
|
6955
6895
|
} else {
|
|
@@ -6958,15 +6898,6 @@
|
|
|
6958
6898
|
}
|
|
6959
6899
|
};
|
|
6960
6900
|
|
|
6961
|
-
var refs = Refs$1;
|
|
6962
|
-
|
|
6963
|
-
objectRefs.exports = refs;
|
|
6964
|
-
|
|
6965
|
-
objectRefs.exports.Collection = collection;
|
|
6966
|
-
|
|
6967
|
-
var objectRefsExports = objectRefs.exports;
|
|
6968
|
-
var Refs = /*@__PURE__*/getDefaultExportFromCjs(objectRefsExports);
|
|
6969
|
-
|
|
6970
6901
|
var parentRefs = new Refs({ name: 'children', enumerable: true, collection: true }, { name: 'parent' }),
|
|
6971
6902
|
labelRefs = new Refs({ name: 'labels', enumerable: true, collection: true }, { name: 'labelTarget' }),
|
|
6972
6903
|
attacherRefs = new Refs({ name: 'attachers', collection: true }, { name: 'host' }),
|
|
@@ -26371,6 +26302,10 @@
|
|
|
26371
26302
|
NavigatedViewer.prototype._navigationModules
|
|
26372
26303
|
);
|
|
26373
26304
|
|
|
26305
|
+
function getDefaultExportFromCjs (x) {
|
|
26306
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
26307
|
+
}
|
|
26308
|
+
|
|
26374
26309
|
var hammer = {exports: {}};
|
|
26375
26310
|
|
|
26376
26311
|
/*! Hammer.JS - v2.0.7 - 2016-04-22
|
|
@@ -30431,6 +30366,10 @@
|
|
|
30431
30366
|
return (entry.rank || 0) >= 0;
|
|
30432
30367
|
}
|
|
30433
30368
|
|
|
30369
|
+
if (entry.searchable === false) {
|
|
30370
|
+
return false;
|
|
30371
|
+
}
|
|
30372
|
+
|
|
30434
30373
|
const search = [
|
|
30435
30374
|
entry.description || '',
|
|
30436
30375
|
entry.label || '',
|
|
@@ -33728,7 +33667,7 @@
|
|
|
33728
33667
|
*/
|
|
33729
33668
|
function getPathIntersection(waypoints, reference) {
|
|
33730
33669
|
|
|
33731
|
-
var intersections =
|
|
33670
|
+
var intersections = findPathIntersections(circlePath(reference, INTERSECTION_THRESHOLD$1), linePath(waypoints));
|
|
33732
33671
|
|
|
33733
33672
|
var a = intersections[0],
|
|
33734
33673
|
b = intersections[intersections.length - 1],
|