ow-eengine-power 2.5.3 → 2.5.4
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/dist/OW_EEngine_Power.js +141 -145
- package/dist/OW_EEngine_Power.umd.cjs +7 -7
- package/package.json +1 -1
package/dist/OW_EEngine_Power.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var T = (s, t, e) =>
|
|
1
|
+
var nf = Object.defineProperty;
|
|
2
|
+
var of = (s, t, e) => t in s ? nf(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
|
|
3
|
+
var T = (s, t, e) => of(s, typeof t != "symbol" ? t + "" : t, e);
|
|
4
4
|
import * as g from "cesium";
|
|
5
|
-
import { Color as Ji, HeightReference as
|
|
6
|
-
function
|
|
5
|
+
import { Color as Ji, HeightReference as af, LabelStyle as ff } from "cesium";
|
|
6
|
+
function uf(s, t, e = {}) {
|
|
7
7
|
const {
|
|
8
8
|
color: r = Ji.WHITE,
|
|
9
9
|
width: i = 3,
|
|
@@ -92,7 +92,7 @@ function Qs(s, t, e, r = {}) {
|
|
|
92
92
|
labelColor: o = Ji.WHITE,
|
|
93
93
|
fontSize: f = 16,
|
|
94
94
|
pixelOffset: u = [0, -20],
|
|
95
|
-
heightReference: l =
|
|
95
|
+
heightReference: l = af.NONE
|
|
96
96
|
} = r;
|
|
97
97
|
return s.entities.add({
|
|
98
98
|
position: t,
|
|
@@ -108,7 +108,7 @@ function Qs(s, t, e, r = {}) {
|
|
|
108
108
|
font: `${f}px sans-serif`,
|
|
109
109
|
fillColor: o,
|
|
110
110
|
pixelOffset: new g.Cartesian2(...u),
|
|
111
|
-
style:
|
|
111
|
+
style: ff.FILL_AND_OUTLINE,
|
|
112
112
|
outlineWidth: 2,
|
|
113
113
|
outlineColor: Ji.BLACK,
|
|
114
114
|
heightReference: l,
|
|
@@ -168,7 +168,7 @@ function hn(s, t) {
|
|
|
168
168
|
var e = { type: "FeatureCollection" };
|
|
169
169
|
return t.id && (e.id = t.id), t.bbox && (e.bbox = t.bbox), e.features = s, e;
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function hf(s, t, e) {
|
|
172
172
|
e === void 0 && (e = {});
|
|
173
173
|
var r = {
|
|
174
174
|
type: "MultiLineString",
|
|
@@ -190,7 +190,7 @@ function wn(s, t) {
|
|
|
190
190
|
throw new Error(t + " units is invalid");
|
|
191
191
|
return s / e;
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function lf(s, t) {
|
|
194
194
|
return ln(wn(s, t));
|
|
195
195
|
}
|
|
196
196
|
function ln(s) {
|
|
@@ -393,7 +393,7 @@ function ua(s, t) {
|
|
|
393
393
|
}
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
|
-
function
|
|
396
|
+
function cf(s, t) {
|
|
397
397
|
ua(s, function(e, r, i) {
|
|
398
398
|
var n = 0;
|
|
399
399
|
if (e.geometry) {
|
|
@@ -447,7 +447,7 @@ function Mr(s) {
|
|
|
447
447
|
return s;
|
|
448
448
|
throw new Error("coord must be GeoJSON Point or an Array of numbers");
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function pf(s) {
|
|
451
451
|
if (Array.isArray(s))
|
|
452
452
|
return s;
|
|
453
453
|
if (s.type === "Feature") {
|
|
@@ -467,7 +467,7 @@ function bo(s, t, e) {
|
|
|
467
467
|
if (!s.geometry || s.geometry.type !== t)
|
|
468
468
|
throw new Error("Invalid input to " + e + ": must be a " + t + ", given " + s.geometry.type);
|
|
469
469
|
}
|
|
470
|
-
function
|
|
470
|
+
function gf(s, t) {
|
|
471
471
|
return s.type === "FeatureCollection" ? "FeatureCollection" : s.type === "GeometryCollection" ? "GeometryCollection" : s.type === "Feature" && s.geometry !== null ? s.geometry.type : s.type;
|
|
472
472
|
}
|
|
473
473
|
var Es = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
@@ -476,14 +476,14 @@ function ir(s, t, e) {
|
|
|
476
476
|
var r = Mr(s), i = Mr(t), n = Ti(i[1] - r[1]), o = Ti(i[0] - r[0]), f = Ti(r[1]), u = Ti(i[1]), l = Math.pow(Math.sin(n / 2), 2) + Math.pow(Math.sin(o / 2), 2) * Math.cos(f) * Math.cos(u);
|
|
477
477
|
return fo(2 * Math.atan2(Math.sqrt(l), Math.sqrt(1 - l)), e.units);
|
|
478
478
|
}
|
|
479
|
-
function
|
|
479
|
+
function df(s) {
|
|
480
480
|
if (!s)
|
|
481
481
|
throw new Error("geojson is required");
|
|
482
482
|
switch (s.type) {
|
|
483
483
|
case "Feature":
|
|
484
484
|
return ha(s);
|
|
485
485
|
case "FeatureCollection":
|
|
486
|
-
return
|
|
486
|
+
return mf(s);
|
|
487
487
|
case "Point":
|
|
488
488
|
case "LineString":
|
|
489
489
|
case "Polygon":
|
|
@@ -518,7 +518,7 @@ function la(s) {
|
|
|
518
518
|
}) : t[e] = la(r) : t[e] = r;
|
|
519
519
|
}), t;
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function mf(s) {
|
|
522
522
|
var t = { type: "FeatureCollection" };
|
|
523
523
|
return Object.keys(s).forEach(function(e) {
|
|
524
524
|
switch (e) {
|
|
@@ -551,24 +551,24 @@ function Qn(s, t, e, r) {
|
|
|
551
551
|
}
|
|
552
552
|
function cn(s, t, e) {
|
|
553
553
|
if (e === void 0 && (e = {}), e.final === !0)
|
|
554
|
-
return
|
|
554
|
+
return yf(s, t);
|
|
555
555
|
var r = Mr(s), i = Mr(t), n = Ti(r[0]), o = Ti(i[0]), f = Ti(r[1]), u = Ti(i[1]), l = Math.sin(o - n) * Math.cos(u), a = Math.cos(f) * Math.sin(u) - Math.sin(f) * Math.cos(u) * Math.cos(o - n);
|
|
556
556
|
return ln(Math.atan2(l, a));
|
|
557
557
|
}
|
|
558
|
-
function
|
|
558
|
+
function yf(s, t) {
|
|
559
559
|
var e = cn(t, s);
|
|
560
560
|
return e = (e + 180) % 360, e;
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function vf(s, t) {
|
|
563
563
|
var e = ir(s, t), r = cn(s, t), i = Qn(s, e / 2, r);
|
|
564
564
|
return i;
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function _f(s, t) {
|
|
567
567
|
t === void 0 && (t = {});
|
|
568
568
|
var e = Jn(s), r = (e[0] + e[2]) / 2, i = (e[1] + e[3]) / 2;
|
|
569
569
|
return be([r, i], t.properties, t);
|
|
570
570
|
}
|
|
571
|
-
function
|
|
571
|
+
function Cf(s, t) {
|
|
572
572
|
if (!s)
|
|
573
573
|
throw new Error("targetPoint is required");
|
|
574
574
|
if (!t)
|
|
@@ -577,16 +577,16 @@ function Wf(s, t) {
|
|
|
577
577
|
return jn(t, function(n, o) {
|
|
578
578
|
var f = ir(s, n);
|
|
579
579
|
f < r && (i = o, r = f);
|
|
580
|
-
}), e =
|
|
580
|
+
}), e = df(t.features[i]), e.properties.featureIndex = i, e.properties.distanceToPoint = r, e;
|
|
581
581
|
}
|
|
582
|
-
function
|
|
582
|
+
function Wf(s, t, e) {
|
|
583
583
|
e === void 0 && (e = {});
|
|
584
584
|
var r = Mr(s), i = Mr(t);
|
|
585
585
|
i[0] += i[0] - r[0] > 180 ? -360 : r[0] - i[0] > 180 ? 360 : 0;
|
|
586
|
-
var n =
|
|
586
|
+
var n = If(r, i), o = aa(n, "meters", e.units);
|
|
587
587
|
return o;
|
|
588
588
|
}
|
|
589
|
-
function
|
|
589
|
+
function If(s, t, e) {
|
|
590
590
|
e = e === void 0 ? de : Number(e);
|
|
591
591
|
var r = e, i = s[1] * Math.PI / 180, n = t[1] * Math.PI / 180, o = n - i, f = Math.abs(t[0] - s[0]) * Math.PI / 180;
|
|
592
592
|
f > Math.PI && (f -= 2 * Math.PI);
|
|
@@ -600,12 +600,12 @@ function Dr(s, t, e) {
|
|
|
600
600
|
throw new Error("line is required");
|
|
601
601
|
Array.isArray(t) ? t = he(t) : t.type === "LineString" ? t = yr(t) : bo(t, "LineString", "line");
|
|
602
602
|
var r = 1 / 0, i = s.geometry.coordinates;
|
|
603
|
-
return
|
|
604
|
-
var o = n.geometry.coordinates[0], f = n.geometry.coordinates[1], u =
|
|
603
|
+
return cf(t, function(n) {
|
|
604
|
+
var o = n.geometry.coordinates[0], f = n.geometry.coordinates[1], u = Tf(i, o, f, e);
|
|
605
605
|
u < r && (r = u);
|
|
606
606
|
}), aa(r, "degrees", e.units);
|
|
607
607
|
}
|
|
608
|
-
function
|
|
608
|
+
function Tf(s, t, e, r) {
|
|
609
609
|
var i = [e[0] - t[0], e[1] - t[1]], n = [s[0] - t[0], s[1] - t[1]], o = Do(n, i);
|
|
610
610
|
if (o <= 0)
|
|
611
611
|
return Yn(s, t, { method: r.method, units: "degrees" });
|
|
@@ -619,7 +619,7 @@ function Do(s, t) {
|
|
|
619
619
|
return s[0] * t[0] + s[1] * t[1];
|
|
620
620
|
}
|
|
621
621
|
function Yn(s, t, e) {
|
|
622
|
-
return e.method === "planar" ?
|
|
622
|
+
return e.method === "planar" ? Wf(s, t, e) : ir(s, t, e);
|
|
623
623
|
}
|
|
624
624
|
function pa(s, t, e, r) {
|
|
625
625
|
if (r = r || {}, !fa(r)) throw new Error("options is invalid");
|
|
@@ -651,33 +651,33 @@ function pn(s) {
|
|
|
651
651
|
function $n(s, t) {
|
|
652
652
|
return s[0] * t[1] - t[0] * s[1];
|
|
653
653
|
}
|
|
654
|
-
function
|
|
654
|
+
function Lf(s, t) {
|
|
655
655
|
return [s[0] + t[0], s[1] + t[1]];
|
|
656
656
|
}
|
|
657
|
-
function
|
|
657
|
+
function Af(s, t) {
|
|
658
658
|
return [s[0] - t[0], s[1] - t[1]];
|
|
659
659
|
}
|
|
660
|
-
function
|
|
660
|
+
function wf(s, t) {
|
|
661
661
|
return [s * t[0], s * t[1]];
|
|
662
662
|
}
|
|
663
|
-
function
|
|
664
|
-
var e = s[0], r = pn(s), i = t[0], n = pn(t), o = $n(r, n), f =
|
|
663
|
+
function Ef(s, t) {
|
|
664
|
+
var e = s[0], r = pn(s), i = t[0], n = pn(t), o = $n(r, n), f = Af(i, e), u = $n(f, n), l = u / o, a = Lf(e, wf(l, r));
|
|
665
665
|
return a;
|
|
666
666
|
}
|
|
667
|
-
function
|
|
667
|
+
function Pf(s, t) {
|
|
668
668
|
var e = pn(s), r = pn(t);
|
|
669
669
|
return $n(e, r) === 0;
|
|
670
670
|
}
|
|
671
|
-
function
|
|
672
|
-
return
|
|
671
|
+
function Sf(s, t) {
|
|
672
|
+
return Pf(s, t) ? !1 : Ef(s, t);
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function Nf(s, t, e) {
|
|
675
675
|
if (e = e || {}, !fa(e)) throw new Error("options is invalid");
|
|
676
676
|
var r = e.units;
|
|
677
677
|
if (!s) throw new Error("geojson is required");
|
|
678
678
|
if (t == null || isNaN(t))
|
|
679
679
|
throw new Error("distance is required");
|
|
680
|
-
var i =
|
|
680
|
+
var i = gf(s), n = s.properties;
|
|
681
681
|
switch (i) {
|
|
682
682
|
case "LineString":
|
|
683
683
|
return Mo(s, t, r);
|
|
@@ -687,29 +687,29 @@ function bf(s, t, e) {
|
|
|
687
687
|
o.push(
|
|
688
688
|
Mo(f, t, r).geometry.coordinates
|
|
689
689
|
);
|
|
690
|
-
}),
|
|
690
|
+
}), hf(o, n);
|
|
691
691
|
default:
|
|
692
692
|
throw new Error("geometry " + i + " is not supported");
|
|
693
693
|
}
|
|
694
694
|
}
|
|
695
695
|
function Mo(s, t, e) {
|
|
696
|
-
var r = [], i =
|
|
696
|
+
var r = [], i = lf(t, e), n = pf(s), o = [];
|
|
697
697
|
return n.forEach(function(f, u) {
|
|
698
698
|
if (u !== n.length - 1) {
|
|
699
|
-
var l =
|
|
699
|
+
var l = bf(
|
|
700
700
|
f,
|
|
701
701
|
n[u + 1],
|
|
702
702
|
i
|
|
703
703
|
);
|
|
704
704
|
if (r.push(l), u > 0) {
|
|
705
|
-
var a = r[u - 1], c =
|
|
705
|
+
var a = r[u - 1], c = Sf(l, a);
|
|
706
706
|
c !== !1 && (a[1] = c, l[0] = c), o.push(a[0]), u === n.length - 2 && (o.push(l[0]), o.push(l[1]));
|
|
707
707
|
}
|
|
708
708
|
n.length === 2 && (o.push(l[0]), o.push(l[1]));
|
|
709
709
|
}
|
|
710
710
|
}), he(o, s.properties);
|
|
711
711
|
}
|
|
712
|
-
function
|
|
712
|
+
function bf(s, t, e) {
|
|
713
713
|
var r = Math.sqrt(
|
|
714
714
|
(s[0] - t[0]) * (s[0] - t[0]) + (s[1] - t[1]) * (s[1] - t[1])
|
|
715
715
|
), i = s[0] + e * (t[1] - s[1]) / r, n = t[0] + e * (t[1] - s[1]) / r, o = s[1] + e * (s[0] - t[0]) / r, f = t[1] + e * (s[0] - t[0]) / r;
|
|
@@ -2911,7 +2911,7 @@ var k = function(s) {
|
|
|
2911
2911
|
var n = this.array_[r];
|
|
2912
2912
|
return this.array_[r] = i, n;
|
|
2913
2913
|
}, t.prototype.iterator = function() {
|
|
2914
|
-
return new
|
|
2914
|
+
return new Df(this);
|
|
2915
2915
|
}, t.prototype.get = function(r) {
|
|
2916
2916
|
if (r < 0 || r >= this.size())
|
|
2917
2917
|
throw new po();
|
|
@@ -2932,7 +2932,7 @@ var k = function(s) {
|
|
|
2932
2932
|
}
|
|
2933
2933
|
return n;
|
|
2934
2934
|
}, t;
|
|
2935
|
-
}(Ye),
|
|
2935
|
+
}(Ye), Df = function(s) {
|
|
2936
2936
|
function t(e) {
|
|
2937
2937
|
s.call(this), this.arrayList_ = e, this.position_ = 0;
|
|
2938
2938
|
}
|
|
@@ -3261,7 +3261,7 @@ jr.prototype.values = function() {
|
|
|
3261
3261
|
};
|
|
3262
3262
|
jr.prototype.entrySet = function() {
|
|
3263
3263
|
};
|
|
3264
|
-
var
|
|
3264
|
+
var Mf = function(s) {
|
|
3265
3265
|
function t() {
|
|
3266
3266
|
s.apply(this, arguments);
|
|
3267
3267
|
}
|
|
@@ -3305,9 +3305,9 @@ var go = function(s) {
|
|
|
3305
3305
|
i.push(r.array_[n]);
|
|
3306
3306
|
return i;
|
|
3307
3307
|
}, t.prototype.iterator = function() {
|
|
3308
|
-
return new
|
|
3308
|
+
return new Rf(this);
|
|
3309
3309
|
}, t;
|
|
3310
|
-
}(Nn),
|
|
3310
|
+
}(Nn), Rf = function(s) {
|
|
3311
3311
|
function t(e) {
|
|
3312
3312
|
s.call(this), this.hashSet_ = e, this.position_ = 0;
|
|
3313
3313
|
}
|
|
@@ -3339,7 +3339,7 @@ function Bo(s) {
|
|
|
3339
3339
|
function jt() {
|
|
3340
3340
|
this.root_ = null, this.size_ = 0;
|
|
3341
3341
|
}
|
|
3342
|
-
jt.prototype = new
|
|
3342
|
+
jt.prototype = new Mf();
|
|
3343
3343
|
jt.prototype.get = function(s) {
|
|
3344
3344
|
for (var t = this.root_; t !== null; ) {
|
|
3345
3345
|
var e = s.compareTo(t.key);
|
|
@@ -3903,18 +3903,18 @@ dn.prototype.interfaces_ = function() {
|
|
|
3903
3903
|
dn.prototype.getClass = function() {
|
|
3904
3904
|
return dn;
|
|
3905
3905
|
};
|
|
3906
|
-
function
|
|
3906
|
+
function Bf() {
|
|
3907
3907
|
}
|
|
3908
|
-
function
|
|
3908
|
+
function Of() {
|
|
3909
3909
|
}
|
|
3910
|
-
var
|
|
3910
|
+
var Ff = function() {
|
|
3911
3911
|
};
|
|
3912
|
+
function xf() {
|
|
3913
|
+
}
|
|
3912
3914
|
function kf() {
|
|
3913
3915
|
}
|
|
3914
3916
|
function Vf() {
|
|
3915
3917
|
}
|
|
3916
|
-
function Gf() {
|
|
3917
|
-
}
|
|
3918
3918
|
var Me = function() {
|
|
3919
3919
|
}, mo = { NEWLINE: { configurable: !0 }, SIMPLE_ORDINATE_FORMAT: { configurable: !0 } };
|
|
3920
3920
|
Me.prototype.interfaces_ = function() {
|
|
@@ -3930,16 +3930,16 @@ Me.chars = function(t, e) {
|
|
|
3930
3930
|
};
|
|
3931
3931
|
Me.getStackTrace = function() {
|
|
3932
3932
|
if (arguments.length === 1) {
|
|
3933
|
-
var t = arguments[0], e = new
|
|
3933
|
+
var t = arguments[0], e = new xf(), r = new Bf();
|
|
3934
3934
|
return t.printStackTrace(r), e.toString();
|
|
3935
3935
|
} else if (arguments.length === 2) {
|
|
3936
3936
|
var i = arguments[0], n = arguments[1], o = "";
|
|
3937
|
-
new
|
|
3938
|
-
for (var f = new
|
|
3937
|
+
new Of(Me.getStackTrace(i));
|
|
3938
|
+
for (var f = new Vf(), u = 0; u < n; u++)
|
|
3939
3939
|
try {
|
|
3940
3940
|
o += f.readLine() + Me.NEWLINE;
|
|
3941
3941
|
} catch (l) {
|
|
3942
|
-
if (l instanceof
|
|
3942
|
+
if (l instanceof kf)
|
|
3943
3943
|
Q.shouldNeverReachHere();
|
|
3944
3944
|
else
|
|
3945
3945
|
throw l;
|
|
@@ -3971,7 +3971,7 @@ mo.NEWLINE.get = function() {
|
|
|
3971
3971
|
return zt.getProperty("line.separator");
|
|
3972
3972
|
};
|
|
3973
3973
|
mo.SIMPLE_ORDINATE_FORMAT.get = function() {
|
|
3974
|
-
return new
|
|
3974
|
+
return new Ff();
|
|
3975
3975
|
};
|
|
3976
3976
|
Object.defineProperties(Me, mo);
|
|
3977
3977
|
var Pt = function() {
|
|
@@ -5146,7 +5146,7 @@ Ia.serialVersionUID.get = function() {
|
|
|
5146
5146
|
return -6820524753094096e3;
|
|
5147
5147
|
};
|
|
5148
5148
|
Object.defineProperties(tt, Ia);
|
|
5149
|
-
var
|
|
5149
|
+
var Gf = ["Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon"], Mn = function(t) {
|
|
5150
5150
|
this.geometryFactory = t || new tt();
|
|
5151
5151
|
};
|
|
5152
5152
|
Mn.prototype.read = function(t) {
|
|
@@ -5155,7 +5155,7 @@ Mn.prototype.read = function(t) {
|
|
|
5155
5155
|
var r = e.type;
|
|
5156
5156
|
if (!ii[r])
|
|
5157
5157
|
throw new Error("Unknown GeoJSON type: " + e.type);
|
|
5158
|
-
return
|
|
5158
|
+
return Gf.indexOf(r) !== -1 ? ii[r].apply(this, [e.coordinates]) : r === "GeometryCollection" ? ii[r].apply(this, [e.geometries]) : ii[r].apply(this, [e]);
|
|
5159
5159
|
};
|
|
5160
5160
|
Mn.prototype.write = function(t) {
|
|
5161
5161
|
var e = t.getGeometryType();
|
|
@@ -6061,7 +6061,7 @@ Dt.prototype.interfaces_ = function() {
|
|
|
6061
6061
|
Dt.prototype.getClass = function() {
|
|
6062
6062
|
return Dt;
|
|
6063
6063
|
};
|
|
6064
|
-
var
|
|
6064
|
+
var Xf = function(s) {
|
|
6065
6065
|
function t() {
|
|
6066
6066
|
var e = arguments[0], r = arguments[1];
|
|
6067
6067
|
s.call(this, e, r);
|
|
@@ -6075,7 +6075,7 @@ var Yf = function(s) {
|
|
|
6075
6075
|
}, t.prototype.getClass = function() {
|
|
6076
6076
|
return t;
|
|
6077
6077
|
}, t;
|
|
6078
|
-
}(Dt),
|
|
6078
|
+
}(Dt), Yf = function(s) {
|
|
6079
6079
|
function t() {
|
|
6080
6080
|
var e = arguments[0], r = arguments[1];
|
|
6081
6081
|
s.call(this, e, r);
|
|
@@ -6084,7 +6084,7 @@ var Yf = function(s) {
|
|
|
6084
6084
|
var r = this, i = new k(), n = this._startDe;
|
|
6085
6085
|
do {
|
|
6086
6086
|
if (n.getMinEdgeRing() === null) {
|
|
6087
|
-
var o = new
|
|
6087
|
+
var o = new Xf(n, r._geometryFactory);
|
|
6088
6088
|
i.add(o);
|
|
6089
6089
|
}
|
|
6090
6090
|
n = n.getNext();
|
|
@@ -6649,7 +6649,7 @@ ve.prototype.buildMaximalEdgeRings = function(t) {
|
|
|
6649
6649
|
for (var e = this, r = new k(), i = t.iterator(); i.hasNext(); ) {
|
|
6650
6650
|
var n = i.next();
|
|
6651
6651
|
if (n.isInResult() && n.getLabel().isArea() && n.getEdgeRing() === null) {
|
|
6652
|
-
var o = new
|
|
6652
|
+
var o = new Yf(n, e._geometryFactory);
|
|
6653
6653
|
r.add(o), o.setInResult();
|
|
6654
6654
|
}
|
|
6655
6655
|
}
|
|
@@ -7061,7 +7061,7 @@ xt.compareDoubles = function(t, e) {
|
|
|
7061
7061
|
return t > e ? 1 : t < e ? -1 : 0;
|
|
7062
7062
|
};
|
|
7063
7063
|
xn.IntersectsOp.get = function() {
|
|
7064
|
-
return
|
|
7064
|
+
return zf;
|
|
7065
7065
|
};
|
|
7066
7066
|
xn.serialVersionUID.get = function() {
|
|
7067
7067
|
return -3886435814360241e3;
|
|
@@ -7070,7 +7070,7 @@ xn.DEFAULT_NODE_CAPACITY.get = function() {
|
|
|
7070
7070
|
return 10;
|
|
7071
7071
|
};
|
|
7072
7072
|
Object.defineProperties(xt, xn);
|
|
7073
|
-
var
|
|
7073
|
+
var zf = function() {
|
|
7074
7074
|
}, hs = function() {
|
|
7075
7075
|
};
|
|
7076
7076
|
hs.prototype.distance = function(t, e) {
|
|
@@ -8979,7 +8979,7 @@ Qt.prototype.interfaces_ = function() {
|
|
|
8979
8979
|
Qt.prototype.getClass = function() {
|
|
8980
8980
|
return Qt;
|
|
8981
8981
|
};
|
|
8982
|
-
var
|
|
8982
|
+
var Uf = function(s) {
|
|
8983
8983
|
function t() {
|
|
8984
8984
|
s.call(this), this._resultAreaEdgeList = null, this._label = null, this._SCANNING_FOR_INCOMING = 1, this._LINKING_TO_OUTGOING = 2;
|
|
8985
8985
|
}
|
|
@@ -9137,7 +9137,7 @@ var qf = function(s) {
|
|
|
9137
9137
|
s.apply(this, arguments);
|
|
9138
9138
|
}
|
|
9139
9139
|
return s && (t.__proto__ = s), t.prototype = Object.create(s && s.prototype), t.prototype.constructor = t, t.prototype.createNode = function(r) {
|
|
9140
|
-
return new Fn(r, new
|
|
9140
|
+
return new Fn(r, new Uf());
|
|
9141
9141
|
}, t.prototype.interfaces_ = function() {
|
|
9142
9142
|
return [];
|
|
9143
9143
|
}, t.prototype.getClass = function() {
|
|
@@ -11914,7 +11914,7 @@ Ht.prototype.getClass = function() {
|
|
|
11914
11914
|
Ht.isAdjacentSegments = function(t, e) {
|
|
11915
11915
|
return Math.abs(t - e) === 1;
|
|
11916
11916
|
};
|
|
11917
|
-
var
|
|
11917
|
+
var qf = function(s) {
|
|
11918
11918
|
function t() {
|
|
11919
11919
|
s.call(this), this.events = new k(), this.nOverlaps = null;
|
|
11920
11920
|
}
|
|
@@ -12011,7 +12011,7 @@ Ys.prototype.interfaces_ = function() {
|
|
|
12011
12011
|
Ys.prototype.getClass = function() {
|
|
12012
12012
|
return Ys;
|
|
12013
12013
|
};
|
|
12014
|
-
var
|
|
12014
|
+
var Hf = function(s) {
|
|
12015
12015
|
function t() {
|
|
12016
12016
|
s.call(this), this._item = null;
|
|
12017
12017
|
var e = arguments[0], r = arguments[1], i = arguments[2];
|
|
@@ -12026,7 +12026,7 @@ var Zf = function(s) {
|
|
|
12026
12026
|
}, t.prototype.getClass = function() {
|
|
12027
12027
|
return t;
|
|
12028
12028
|
}, t;
|
|
12029
|
-
}(Mi),
|
|
12029
|
+
}(Mi), Zf = function(s) {
|
|
12030
12030
|
function t() {
|
|
12031
12031
|
s.call(this), this._node1 = null, this._node2 = null;
|
|
12032
12032
|
var e = arguments[0], r = arguments[1];
|
|
@@ -12058,7 +12058,7 @@ Ri.prototype.buildTree = function() {
|
|
|
12058
12058
|
Ri.prototype.insert = function(t, e, r) {
|
|
12059
12059
|
if (this._root !== null)
|
|
12060
12060
|
throw new Error("Index cannot be added to once it has been queried");
|
|
12061
|
-
this._leaves.add(new
|
|
12061
|
+
this._leaves.add(new Hf(t, e, r));
|
|
12062
12062
|
};
|
|
12063
12063
|
Ri.prototype.query = function(t, e, r) {
|
|
12064
12064
|
this.init(), this._root.query(t, e, r);
|
|
@@ -12083,7 +12083,7 @@ Ri.prototype.buildLevel = function(t, e) {
|
|
|
12083
12083
|
if (n === null)
|
|
12084
12084
|
e.add(i);
|
|
12085
12085
|
else {
|
|
12086
|
-
var o = new
|
|
12086
|
+
var o = new Zf(t.get(r), t.get(r + 1));
|
|
12087
12087
|
e.add(o);
|
|
12088
12088
|
}
|
|
12089
12089
|
}
|
|
@@ -12274,7 +12274,7 @@ var Ps = function(s) {
|
|
|
12274
12274
|
var o = this._nodes.addNode(i), f = o.getLabel();
|
|
12275
12275
|
f === null ? o._label = new ct(r, n) : f.setLocation(r, n);
|
|
12276
12276
|
}, t.prototype.createEdgeSetIntersector = function() {
|
|
12277
|
-
return new
|
|
12277
|
+
return new qf();
|
|
12278
12278
|
}, t.prototype.addSelfIntersectionNodes = function(r) {
|
|
12279
12279
|
for (var i = this, n = this._edges.iterator(); n.hasNext(); )
|
|
12280
12280
|
for (var o = n.next(), f = o.getLabel().getLocation(r), u = o.eiList.iterator(); u.hasNext(); ) {
|
|
@@ -12929,7 +12929,7 @@ function xo(s, t, e) {
|
|
|
12929
12929
|
var r = s.s = t + e, i = r - t, n = r - i;
|
|
12930
12930
|
s.t = t - n + (e - i);
|
|
12931
12931
|
}
|
|
12932
|
-
var Tt = 1e-6, gt = Math.PI, Vi = gt / 2, ko = gt / 4, Hi = gt * 2, pr = 180 / gt, ei = gt / 180, ie = Math.abs,
|
|
12932
|
+
var Tt = 1e-6, gt = Math.PI, Vi = gt / 2, ko = gt / 4, Hi = gt * 2, pr = 180 / gt, ei = gt / 180, ie = Math.abs, Kf = Math.atan, vs = Math.atan2, Rt = Math.cos, Bt = Math.sin, As = Math.sqrt;
|
|
12933
12933
|
function Ga(s) {
|
|
12934
12934
|
return s > 1 ? 0 : s < -1 ? gt : Math.acos(s);
|
|
12935
12935
|
}
|
|
@@ -12984,7 +12984,7 @@ function Xo(s, t) {
|
|
|
12984
12984
|
for (t.polygonStart(); ++e < r; ) eo(s[e], t, 1);
|
|
12985
12985
|
t.polygonEnd();
|
|
12986
12986
|
}
|
|
12987
|
-
function
|
|
12987
|
+
function jf(s, t) {
|
|
12988
12988
|
s && Vo.hasOwnProperty(s.type) ? Vo[s.type](s, t) : Cn(s, t);
|
|
12989
12989
|
}
|
|
12990
12990
|
Pr();
|
|
@@ -13025,7 +13025,7 @@ function so(s, t) {
|
|
|
13025
13025
|
return [s > gt ? s - Hi : s < -gt ? s + Hi : s, t];
|
|
13026
13026
|
}
|
|
13027
13027
|
so.invert = so;
|
|
13028
|
-
function
|
|
13028
|
+
function Jf(s, t, e) {
|
|
13029
13029
|
return (s %= Hi) ? t || e ? Xa(zo(s), Uo(t, e)) : zo(s) : t || e ? Uo(t, e) : so;
|
|
13030
13030
|
}
|
|
13031
13031
|
function Yo(s) {
|
|
@@ -13054,7 +13054,7 @@ function Uo(s, t) {
|
|
|
13054
13054
|
];
|
|
13055
13055
|
}, o;
|
|
13056
13056
|
}
|
|
13057
|
-
function
|
|
13057
|
+
function Qf(s, t, e, r, i, n) {
|
|
13058
13058
|
if (e) {
|
|
13059
13059
|
var o = Rt(t), f = Bt(t), u = r * e;
|
|
13060
13060
|
i == null ? (i = t + r * Hi, n = t - u / 2) : (i = qo(o, i), n = qo(o, n), (r > 0 ? i < n : i > n) && (i += r * Hi));
|
|
@@ -13086,7 +13086,7 @@ function Ya() {
|
|
|
13086
13086
|
}
|
|
13087
13087
|
};
|
|
13088
13088
|
}
|
|
13089
|
-
function
|
|
13089
|
+
function $f(s, t, e, r, i, n) {
|
|
13090
13090
|
var o = s[0], f = s[1], u = t[0], l = t[1], a = 0, c = 1, p = u - o, d = l - f, h;
|
|
13091
13091
|
if (h = e - o, !(!p && h > 0)) {
|
|
13092
13092
|
if (h /= p, p < 0) {
|
|
@@ -13180,8 +13180,8 @@ function Ho(s) {
|
|
|
13180
13180
|
function Ua(s, t) {
|
|
13181
13181
|
return s < t ? -1 : s > t ? 1 : s >= t ? 0 : NaN;
|
|
13182
13182
|
}
|
|
13183
|
-
function
|
|
13184
|
-
return s.length === 1 && (s =
|
|
13183
|
+
function tu(s) {
|
|
13184
|
+
return s.length === 1 && (s = eu(s)), {
|
|
13185
13185
|
left: function(t, e, r, i) {
|
|
13186
13186
|
for (r == null && (r = 0), i == null && (i = t.length); r < i; ) {
|
|
13187
13187
|
var n = r + i >>> 1;
|
|
@@ -13198,12 +13198,12 @@ function eu(s) {
|
|
|
13198
13198
|
}
|
|
13199
13199
|
};
|
|
13200
13200
|
}
|
|
13201
|
-
function
|
|
13201
|
+
function eu(s) {
|
|
13202
13202
|
return function(t, e) {
|
|
13203
13203
|
return Ua(s(t), e);
|
|
13204
13204
|
};
|
|
13205
13205
|
}
|
|
13206
|
-
|
|
13206
|
+
tu(Ua);
|
|
13207
13207
|
function qa(s) {
|
|
13208
13208
|
for (var t = s.length, e, r = -1, i = 0, n, o; ++r < t; ) i += s[r].length;
|
|
13209
13209
|
for (n = new Array(i); --t >= 0; )
|
|
@@ -13212,7 +13212,7 @@ function qa(s) {
|
|
|
13212
13212
|
return n;
|
|
13213
13213
|
}
|
|
13214
13214
|
var Ns = 1e9, sn = -Ns;
|
|
13215
|
-
function
|
|
13215
|
+
function iu(s, t, e, r) {
|
|
13216
13216
|
function i(l, a) {
|
|
13217
13217
|
return s <= l && l <= e && t <= a && a <= r;
|
|
13218
13218
|
}
|
|
@@ -13272,7 +13272,7 @@ function ru(s, t, e, r) {
|
|
|
13272
13272
|
else if (it && L) a.point(G, Z);
|
|
13273
13273
|
else {
|
|
13274
13274
|
var nt = [C = Math.max(sn, Math.min(Ns, C)), I = Math.max(sn, Math.min(Ns, I))], ht = [G = Math.max(sn, Math.min(Ns, G)), Z = Math.max(sn, Math.min(Ns, Z))];
|
|
13275
|
-
|
|
13275
|
+
$f(nt, ht, s, t, e, r) ? (L || (a.lineStart(), a.point(nt[0], nt[1])), a.point(ht[0], ht[1]), it || a.lineEnd(), N = !1) : it && (a.lineStart(), a.point(G, Z), N = !1);
|
|
13276
13276
|
}
|
|
13277
13277
|
C = G, I = Z, L = it;
|
|
13278
13278
|
}
|
|
@@ -13280,7 +13280,7 @@ function ru(s, t, e, r) {
|
|
|
13280
13280
|
};
|
|
13281
13281
|
}
|
|
13282
13282
|
var qn = Pr();
|
|
13283
|
-
function
|
|
13283
|
+
function ru(s, t) {
|
|
13284
13284
|
var e = t[0], r = t[1], i = [Bt(e), -Rt(e), 0], n = 0, o = 0;
|
|
13285
13285
|
qn.reset();
|
|
13286
13286
|
for (var f = 0, u = s.length; f < u; ++f)
|
|
@@ -13305,7 +13305,7 @@ function Zo(s) {
|
|
|
13305
13305
|
Pr();
|
|
13306
13306
|
Pr();
|
|
13307
13307
|
var Cs = 1 / 0, In = Cs, zs = -Cs, Tn = zs, Ko = {
|
|
13308
|
-
point:
|
|
13308
|
+
point: su,
|
|
13309
13309
|
lineStart: Ss,
|
|
13310
13310
|
lineEnd: Ss,
|
|
13311
13311
|
polygonStart: Ss,
|
|
@@ -13315,7 +13315,7 @@ var Cs = 1 / 0, In = Cs, zs = -Cs, Tn = zs, Ko = {
|
|
|
13315
13315
|
return zs = Tn = -(In = Cs = 1 / 0), s;
|
|
13316
13316
|
}
|
|
13317
13317
|
};
|
|
13318
|
-
function
|
|
13318
|
+
function su(s, t) {
|
|
13319
13319
|
s < Cs && (Cs = s), s > zs && (zs = s), t < In && (In = t), t > Tn && (Tn = t);
|
|
13320
13320
|
}
|
|
13321
13321
|
Pr();
|
|
@@ -13330,8 +13330,8 @@ function Ha(s, t, e, r) {
|
|
|
13330
13330
|
},
|
|
13331
13331
|
polygonEnd: function() {
|
|
13332
13332
|
h.point = m, h.lineStart = W, h.lineEnd = C, p = qa(p);
|
|
13333
|
-
var N =
|
|
13334
|
-
p.length ? (a || (n.polygonStart(), a = !0), za(p,
|
|
13333
|
+
var N = ru(c, f);
|
|
13334
|
+
p.length ? (a || (n.polygonStart(), a = !0), za(p, ou, N, e, n)) : N && (a || (n.polygonStart(), a = !0), n.lineStart(), e(null, null, 1, n), n.lineEnd()), a && (n.polygonEnd(), a = !1), p = c = null;
|
|
13335
13335
|
},
|
|
13336
13336
|
sphere: function() {
|
|
13337
13337
|
n.polygonStart(), n.lineStart(), e(null, null, 1, n), n.lineEnd(), n.polygonEnd();
|
|
@@ -13370,27 +13370,27 @@ function Ha(s, t, e, r) {
|
|
|
13370
13370
|
}
|
|
13371
13371
|
return;
|
|
13372
13372
|
}
|
|
13373
|
-
M > 1 && N & 2 && b.push(b.pop().concat(b.shift())), p.push(b.filter(
|
|
13373
|
+
M > 1 && N & 2 && b.push(b.pop().concat(b.shift())), p.push(b.filter(nu));
|
|
13374
13374
|
}
|
|
13375
13375
|
}
|
|
13376
13376
|
return h;
|
|
13377
13377
|
};
|
|
13378
13378
|
}
|
|
13379
|
-
function
|
|
13379
|
+
function nu(s) {
|
|
13380
13380
|
return s.length > 1;
|
|
13381
13381
|
}
|
|
13382
|
-
function
|
|
13382
|
+
function ou(s, t) {
|
|
13383
13383
|
return ((s = s.x)[0] < 0 ? s[1] - Vi - Tt : Vi - s[1]) - ((t = t.x)[0] < 0 ? t[1] - Vi - Tt : Vi - t[1]);
|
|
13384
13384
|
}
|
|
13385
13385
|
const jo = Ha(
|
|
13386
13386
|
function() {
|
|
13387
13387
|
return !0;
|
|
13388
13388
|
},
|
|
13389
|
-
|
|
13390
|
-
|
|
13389
|
+
au,
|
|
13390
|
+
uu,
|
|
13391
13391
|
[-gt, -Vi]
|
|
13392
13392
|
);
|
|
13393
|
-
function
|
|
13393
|
+
function au(s) {
|
|
13394
13394
|
var t = NaN, e = NaN, r = NaN, i;
|
|
13395
13395
|
return {
|
|
13396
13396
|
lineStart: function() {
|
|
@@ -13398,7 +13398,7 @@ function fu(s) {
|
|
|
13398
13398
|
},
|
|
13399
13399
|
point: function(n, o) {
|
|
13400
13400
|
var f = n > 0 ? gt : -gt, u = ie(n - t);
|
|
13401
|
-
ie(u - gt) < Tt ? (s.point(t, e = (e + o) / 2 > 0 ? Vi : -Vi), s.point(r, e), s.lineEnd(), s.lineStart(), s.point(f, e), s.point(n, e), i = 0) : r !== f && u >= gt && (ie(t - r) < Tt && (t -= r * Tt), ie(n - f) < Tt && (n -= f * Tt), e =
|
|
13401
|
+
ie(u - gt) < Tt ? (s.point(t, e = (e + o) / 2 > 0 ? Vi : -Vi), s.point(r, e), s.lineEnd(), s.lineStart(), s.point(f, e), s.point(n, e), i = 0) : r !== f && u >= gt && (ie(t - r) < Tt && (t -= r * Tt), ie(n - f) < Tt && (n -= f * Tt), e = fu(t, e, n, o), s.point(r, e), s.lineEnd(), s.lineStart(), s.point(f, e), i = 0), s.point(t = n, e = o), r = f;
|
|
13402
13402
|
},
|
|
13403
13403
|
lineEnd: function() {
|
|
13404
13404
|
s.lineEnd(), t = e = NaN;
|
|
@@ -13408,11 +13408,11 @@ function fu(s) {
|
|
|
13408
13408
|
}
|
|
13409
13409
|
};
|
|
13410
13410
|
}
|
|
13411
|
-
function
|
|
13411
|
+
function fu(s, t, e, r) {
|
|
13412
13412
|
var i, n, o = Bt(s - e);
|
|
13413
|
-
return ie(o) > Tt ?
|
|
13413
|
+
return ie(o) > Tt ? Kf((Bt(t) * (n = Rt(r)) * Bt(e) - Bt(r) * (i = Rt(t)) * Bt(s)) / (i * n * o)) : (t + r) / 2;
|
|
13414
13414
|
}
|
|
13415
|
-
function
|
|
13415
|
+
function uu(s, t, e, r) {
|
|
13416
13416
|
var i;
|
|
13417
13417
|
if (s == null)
|
|
13418
13418
|
i = e * Vi, r.point(-gt, i), r.point(0, i), r.point(gt, i), r.point(gt, 0), r.point(gt, -i), r.point(0, -i), r.point(-gt, -i), r.point(-gt, 0), r.point(-gt, i);
|
|
@@ -13422,10 +13422,10 @@ function hu(s, t, e, r) {
|
|
|
13422
13422
|
} else
|
|
13423
13423
|
r.point(t[0], t[1]);
|
|
13424
13424
|
}
|
|
13425
|
-
function
|
|
13425
|
+
function hu(s, t) {
|
|
13426
13426
|
var e = Rt(s), r = e > 0, i = ie(e) > Tt;
|
|
13427
13427
|
function n(a, c, p, d) {
|
|
13428
|
-
|
|
13428
|
+
Qf(d, s, t, p, a, c);
|
|
13429
13429
|
}
|
|
13430
13430
|
function o(a, c) {
|
|
13431
13431
|
return Rt(a) * Rt(c) > e;
|
|
@@ -13512,30 +13512,30 @@ no.prototype = {
|
|
|
13512
13512
|
};
|
|
13513
13513
|
function Ka(s, t, e) {
|
|
13514
13514
|
var r = t[1][0] - t[0][0], i = t[1][1] - t[0][1], n = s.clipExtent && s.clipExtent();
|
|
13515
|
-
s.scale(150).translate([0, 0]), n != null && s.clipExtent(null),
|
|
13515
|
+
s.scale(150).translate([0, 0]), n != null && s.clipExtent(null), jf(e, s.stream(Ko));
|
|
13516
13516
|
var o = Ko.result(), f = Math.min(r / (o[1][0] - o[0][0]), i / (o[1][1] - o[0][1])), u = +t[0][0] + (r - f * (o[1][0] + o[0][0])) / 2, l = +t[0][1] + (i - f * (o[1][1] + o[0][1])) / 2;
|
|
13517
13517
|
return n != null && s.clipExtent(n), s.scale(f * 150).translate([u, l]);
|
|
13518
13518
|
}
|
|
13519
|
-
function
|
|
13519
|
+
function lu(s, t, e) {
|
|
13520
13520
|
return Ka(s, [[0, 0], t], e);
|
|
13521
13521
|
}
|
|
13522
|
-
var Jo = 16,
|
|
13522
|
+
var Jo = 16, cu = Rt(30 * ei);
|
|
13523
13523
|
function Qo(s, t) {
|
|
13524
|
-
return +t ?
|
|
13524
|
+
return +t ? gu(s, t) : pu(s);
|
|
13525
13525
|
}
|
|
13526
|
-
function
|
|
13526
|
+
function pu(s) {
|
|
13527
13527
|
return Za({
|
|
13528
13528
|
point: function(t, e) {
|
|
13529
13529
|
t = s(t, e), this.stream.point(t[0], t[1]);
|
|
13530
13530
|
}
|
|
13531
13531
|
});
|
|
13532
13532
|
}
|
|
13533
|
-
function
|
|
13533
|
+
function gu(s, t) {
|
|
13534
13534
|
function e(r, i, n, o, f, u, l, a, c, p, d, h, m, _) {
|
|
13535
13535
|
var W = l - r, C = a - i, I = W * W + C * C;
|
|
13536
13536
|
if (I > 4 * t && m--) {
|
|
13537
13537
|
var L = o + p, w = f + d, N = u + h, b = As(L * L + w * w + N * N), B = qr(N /= b), M = ie(ie(N) - 1) < Tt || ie(n - c) < Tt ? (n + c) / 2 : vs(w, L), O = s(M, B), R = O[0], H = O[1], K = R - r, F = H - i, G = C * K - W * F;
|
|
13538
|
-
(G * G / I > t || ie((W * K + C * F) / I - 0.5) > 0.3 || o * p + f * d + u * h <
|
|
13538
|
+
(G * G / I > t || ie((W * K + C * F) / I - 0.5) > 0.3 || o * p + f * d + u * h < cu) && (e(r, i, n, o, f, u, R, H, M, L /= b, w /= b, N, m, _), _.point(R, H), e(R, H, M, L, w, N, l, a, c, p, d, h, m, _));
|
|
13539
13539
|
}
|
|
13540
13540
|
}
|
|
13541
13541
|
return function(r) {
|
|
@@ -13575,17 +13575,17 @@ function du(s, t) {
|
|
|
13575
13575
|
return _;
|
|
13576
13576
|
};
|
|
13577
13577
|
}
|
|
13578
|
-
var
|
|
13578
|
+
var du = Za({
|
|
13579
13579
|
point: function(s, t) {
|
|
13580
13580
|
this.stream.point(s * ei, t * ei);
|
|
13581
13581
|
}
|
|
13582
13582
|
});
|
|
13583
|
-
function
|
|
13584
|
-
return
|
|
13583
|
+
function mu(s) {
|
|
13584
|
+
return yu(function() {
|
|
13585
13585
|
return s;
|
|
13586
13586
|
})();
|
|
13587
13587
|
}
|
|
13588
|
-
function
|
|
13588
|
+
function yu(s) {
|
|
13589
13589
|
var t, e = 150, r = 480, i = 250, n, o, f = 0, u = 0, l = 0, a = 0, c = 0, p, d, h = null, m = jo, _ = null, W, C, I, L = Zo, w = 0.5, N = Qo(R, w), b, B;
|
|
13590
13590
|
function M(F) {
|
|
13591
13591
|
return F = d(F[0] * ei, F[1] * ei), [F[0] * e + n, o - F[1] * e];
|
|
@@ -13597,11 +13597,11 @@ function vu(s) {
|
|
|
13597
13597
|
return F = t(F, G), [F[0] * e + n, o - F[1] * e];
|
|
13598
13598
|
}
|
|
13599
13599
|
M.stream = function(F) {
|
|
13600
|
-
return b && B === F ? b : b =
|
|
13600
|
+
return b && B === F ? b : b = du(m(p, N(L(B = F))));
|
|
13601
13601
|
}, M.clipAngle = function(F) {
|
|
13602
|
-
return arguments.length ? (m = +F ?
|
|
13602
|
+
return arguments.length ? (m = +F ? hu(h = F * ei, 6 * ei) : (h = null, jo), K()) : h * pr;
|
|
13603
13603
|
}, M.clipExtent = function(F) {
|
|
13604
|
-
return arguments.length ? (L = F == null ? (_ = W = C = I = null, Zo) :
|
|
13604
|
+
return arguments.length ? (L = F == null ? (_ = W = C = I = null, Zo) : iu(_ = +F[0][0], W = +F[0][1], C = +F[1][0], I = +F[1][1]), K()) : _ == null ? null : [[_, W], [C, I]];
|
|
13605
13605
|
}, M.scale = function(F) {
|
|
13606
13606
|
return arguments.length ? (e = +F, H()) : e;
|
|
13607
13607
|
}, M.translate = function(F) {
|
|
@@ -13615,10 +13615,10 @@ function vu(s) {
|
|
|
13615
13615
|
}, M.fitExtent = function(F, G) {
|
|
13616
13616
|
return Ka(M, F, G);
|
|
13617
13617
|
}, M.fitSize = function(F, G) {
|
|
13618
|
-
return
|
|
13618
|
+
return lu(M, F, G);
|
|
13619
13619
|
};
|
|
13620
13620
|
function H() {
|
|
13621
|
-
d = Xa(p =
|
|
13621
|
+
d = Xa(p = Jf(l, a, c), t);
|
|
13622
13622
|
var F = t(f, u);
|
|
13623
13623
|
return n = r - F[0] * e, o = i + F[1] * e, K();
|
|
13624
13624
|
}
|
|
@@ -13647,10 +13647,10 @@ function Ja(s) {
|
|
|
13647
13647
|
];
|
|
13648
13648
|
};
|
|
13649
13649
|
}
|
|
13650
|
-
var
|
|
13650
|
+
var vu = ja(function(s) {
|
|
13651
13651
|
return As(2 / (1 + s));
|
|
13652
13652
|
});
|
|
13653
|
-
|
|
13653
|
+
vu.invert = Ja(function(s) {
|
|
13654
13654
|
return 2 * qr(s / 2);
|
|
13655
13655
|
});
|
|
13656
13656
|
var Qa = ja(function(s) {
|
|
@@ -13659,14 +13659,14 @@ var Qa = ja(function(s) {
|
|
|
13659
13659
|
Qa.invert = Ja(function(s) {
|
|
13660
13660
|
return s;
|
|
13661
13661
|
});
|
|
13662
|
-
function
|
|
13663
|
-
return
|
|
13662
|
+
function _u() {
|
|
13663
|
+
return mu(Qa).scale(79.4188).clipAngle(180 - 1e-3);
|
|
13664
13664
|
}
|
|
13665
13665
|
function $o(s, t) {
|
|
13666
13666
|
return [s, t];
|
|
13667
13667
|
}
|
|
13668
13668
|
$o.invert = $o;
|
|
13669
|
-
function
|
|
13669
|
+
function Cu(s, t, e) {
|
|
13670
13670
|
e = e || {};
|
|
13671
13671
|
var r = e.units || "kilometers", i = e.steps || 8;
|
|
13672
13672
|
if (!s) throw new Error("geojson is required");
|
|
@@ -13700,7 +13700,7 @@ function fn(s, t, e, r) {
|
|
|
13700
13700
|
_ && o.push(_);
|
|
13701
13701
|
}), hn(o);
|
|
13702
13702
|
}
|
|
13703
|
-
var f =
|
|
13703
|
+
var f = Wu(n), u = {
|
|
13704
13704
|
type: n.type,
|
|
13705
13705
|
coordinates: tf(n.coordinates, f)
|
|
13706
13706
|
}, l = new Co(), a = l.read(u), c = fo(wn(t, e), "meters"), p = Xt.bufferOp(a, c, r), d = new Ta();
|
|
@@ -13725,9 +13725,9 @@ function ef(s, t) {
|
|
|
13725
13725
|
return ef(e, t);
|
|
13726
13726
|
});
|
|
13727
13727
|
}
|
|
13728
|
-
function
|
|
13729
|
-
var t =
|
|
13730
|
-
return
|
|
13728
|
+
function Wu(s) {
|
|
13729
|
+
var t = _f(s).geometry.coordinates, e = [-t[0], -t[1]];
|
|
13730
|
+
return _u().rotate(e).scale(de);
|
|
13731
13731
|
}
|
|
13732
13732
|
class lh {
|
|
13733
13733
|
constructor() {
|
|
@@ -13770,7 +13770,7 @@ class ch {
|
|
|
13770
13770
|
T(this, "modelbox", "");
|
|
13771
13771
|
}
|
|
13772
13772
|
}
|
|
13773
|
-
var
|
|
13773
|
+
var Iu = /* @__PURE__ */ ((s) => (s[s.树木 = 0] = "树木", s[s.房屋 = 1] = "房屋", s[s.高速公路 = 2] = "高速公路", s[s.电力线 = 3] = "电力线", s))(Iu || {});
|
|
13774
13774
|
class ph {
|
|
13775
13775
|
constructor() {
|
|
13776
13776
|
// 杆塔id
|
|
@@ -13915,7 +13915,7 @@ const Au = {
|
|
|
13915
13915
|
{ name: "safe", minDistance: 180, maxDistance: 1 / 0, color: "#00ff00" }
|
|
13916
13916
|
]
|
|
13917
13917
|
}, gr = (s, t, e, r = Au, i = $.全部测量) => {
|
|
13918
|
-
const n = be(s.slice(0, 2)), { nearestCoord: o } =
|
|
13918
|
+
const n = be(s.slice(0, 2)), { nearestCoord: o } = rf(s, t), f = t.findIndex(
|
|
13919
13919
|
(lt) => lt[0] == o[0] && lt[1] == o[1]
|
|
13920
13920
|
);
|
|
13921
13921
|
let u = [];
|
|
@@ -13944,7 +13944,7 @@ const Au = {
|
|
|
13944
13944
|
s[2]
|
|
13945
13945
|
), K = g.Cartesian3.fromDegrees(W[0], W[1], s[2]), F = g.Cartesian3.fromDegrees(W[0], W[1], N);
|
|
13946
13946
|
console.log(`坐标详情: 树木=[${s[0]}, ${s[1]}, ${s[2]}], 导线点=[${W[0]}, ${W[1]}, ${N}]`);
|
|
13947
|
-
var G =
|
|
13947
|
+
var G = vf(
|
|
13948
13948
|
be([s[0], s[1]]),
|
|
13949
13949
|
be([W[0], W[1]])
|
|
13950
13950
|
).geometry.coordinates;
|
|
@@ -14098,7 +14098,7 @@ const Au = {
|
|
|
14098
14098
|
}
|
|
14099
14099
|
console.log(`已添加测量结果: 距离=${M.toFixed(1)}m, 颜色=${O}, 实体数量=${e.values.length}`);
|
|
14100
14100
|
}, on = (s, t, e) => {
|
|
14101
|
-
const r = be(s.slice(0, 2)), { nearestCoord: i } =
|
|
14101
|
+
const r = be(s.slice(0, 2)), { nearestCoord: i } = rf(s, t), n = t.findIndex(
|
|
14102
14102
|
(O) => O[0] == i[0] && O[1] == i[1]
|
|
14103
14103
|
);
|
|
14104
14104
|
let o = [];
|
|
@@ -14127,14 +14127,14 @@ const Au = {
|
|
|
14127
14127
|
timestamp: Date.now()
|
|
14128
14128
|
};
|
|
14129
14129
|
};
|
|
14130
|
-
function
|
|
14130
|
+
function rf(s, t) {
|
|
14131
14131
|
const e = be(s.slice(0, 2)), r = [];
|
|
14132
14132
|
t.forEach((f) => {
|
|
14133
14133
|
r.push(be([f[0], f[1]]));
|
|
14134
14134
|
});
|
|
14135
14135
|
const i = hn(
|
|
14136
14136
|
r
|
|
14137
|
-
), n =
|
|
14137
|
+
), n = Cf(e, i), o = ir(e, n, Ge);
|
|
14138
14138
|
return {
|
|
14139
14139
|
nearestCoord: n.geometry.coordinates,
|
|
14140
14140
|
nearestDistance: o
|
|
@@ -14312,7 +14312,7 @@ function bu(s, t = 2e3) {
|
|
|
14312
14312
|
i.Latitude
|
|
14313
14313
|
]), r = he(e);
|
|
14314
14314
|
try {
|
|
14315
|
-
const i =
|
|
14315
|
+
const i = Cu(r, t / 1e3, { units: "kilometers" });
|
|
14316
14316
|
if (i.geometry.type === "Polygon") {
|
|
14317
14317
|
let n = i.geometry.coordinates[0].map((o) => [o[0], o[1]]);
|
|
14318
14318
|
return n.length >= 3 && ta(n) < 0 && (n = n.reverse()), n;
|
|
@@ -16109,10 +16109,6 @@ const An = class An {
|
|
|
16109
16109
|
* 添加树木数据
|
|
16110
16110
|
*/
|
|
16111
16111
|
addTreeData(t) {
|
|
16112
|
-
if (t.type == rf.树木) {
|
|
16113
|
-
console.warn(`Tree ${t.id} is not a tree. Skipping...`);
|
|
16114
|
-
return;
|
|
16115
|
-
}
|
|
16116
16112
|
this.LineInfo.corridor_features.push(t);
|
|
16117
16113
|
}
|
|
16118
16114
|
/**
|
|
@@ -16412,7 +16408,7 @@ class Mu {
|
|
|
16412
16408
|
return [];
|
|
16413
16409
|
const i = he(t), n = e / 1e3;
|
|
16414
16410
|
try {
|
|
16415
|
-
const o = r ? -n : n, f =
|
|
16411
|
+
const o = r ? -n : n, f = Nf(i, o, { units: "kilometers" });
|
|
16416
16412
|
if (f.geometry.type === "LineString")
|
|
16417
16413
|
return f.geometry.coordinates.map(
|
|
16418
16414
|
(u) => g.Cartesian3.fromDegrees(u[0], u[1])
|
|
@@ -18941,7 +18937,7 @@ class oh {
|
|
|
18941
18937
|
* @returns 生成的Entity对象
|
|
18942
18938
|
*/
|
|
18943
18939
|
addLine(t, e) {
|
|
18944
|
-
const r =
|
|
18940
|
+
const r = uf(this.viewer, t, e);
|
|
18945
18941
|
return this.lines.push(r), r;
|
|
18946
18942
|
}
|
|
18947
18943
|
/** 移除所有线 */
|
|
@@ -18963,7 +18959,7 @@ class oh {
|
|
|
18963
18959
|
// });
|
|
18964
18960
|
// }
|
|
18965
18961
|
}
|
|
18966
|
-
var
|
|
18962
|
+
var sf = { exports: {} };
|
|
18967
18963
|
(function(s, t) {
|
|
18968
18964
|
(function(e, r) {
|
|
18969
18965
|
r();
|
|
@@ -19031,8 +19027,8 @@ var nf = { exports: {} };
|
|
|
19031
19027
|
});
|
|
19032
19028
|
o.saveAs = u.saveAs = u, s.exports = u;
|
|
19033
19029
|
});
|
|
19034
|
-
})(
|
|
19035
|
-
var ao =
|
|
19030
|
+
})(sf);
|
|
19031
|
+
var ao = sf.exports;
|
|
19036
19032
|
const sa = require("shp-write");
|
|
19037
19033
|
class ah {
|
|
19038
19034
|
// constructor(viewer: Cesium.Viewer, towerNodes: TowerNode[], connections: Connection[], towerFZS: TowerFZInfo) {
|
|
@@ -19503,7 +19499,7 @@ export {
|
|
|
19503
19499
|
Wi as TowerType,
|
|
19504
19500
|
E as WairnumType,
|
|
19505
19501
|
ch as corFeatureType,
|
|
19506
|
-
|
|
19502
|
+
Iu as corType,
|
|
19507
19503
|
na as drawModel,
|
|
19508
19504
|
$ as primaryDistanceType
|
|
19509
19505
|
};
|