earthsdk3 3.7.0-beta.14 → 3.7.0-beta.16
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/earthsdk3.iife.js +16 -16
- package/dist/earthsdk3.js +434 -429
- package/dist/earthsdk3.umd.cjs +6 -6
- package/dist/types/ESJTypes/ScreenManager/index.d.ts +2 -1
- package/dist/types/ESJTypes/properties/Viewer.d.ts +8 -0
- package/dist/types/ESObjectManager/index.d.ts +8 -4
- package/dist/types/ESObjects/general/ES3DTileset/index.d.ts +4 -0
- package/dist/types/ESObjects/general/ESPipeserTileset.d.ts +1 -0
- package/dist/types/ESObjects/general/ESRtsFeatureEditing/index.d.ts +1 -0
- package/dist/types/ESObjects/general/ESRtsTileset/index.d.ts +1 -0
- package/dist/types/utils/geoPolylineToBezierSpline/bezierSpline/lib/spline.d.ts +62 -0
- package/dist/types/xbsj-base/xr-utils/gif/gifuct-js/index.d.ts +101 -0
- package/package.json +2 -2
package/dist/earthsdk3.js
CHANGED
|
@@ -44,7 +44,7 @@ function fd(r) {
|
|
|
44
44
|
}
|
|
45
45
|
let nu;
|
|
46
46
|
try {
|
|
47
|
-
const r = "earthsdk3", e = "3.7.0-beta.
|
|
47
|
+
const r = "earthsdk3", e = "3.7.0-beta.16", t = "2025-12-19T02:00:38.000Z", n = "北京西部世界科技有限公司", i = "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn", s = "e29deecbad468a096c911c7d606839856be97a79", a = ((Date.now() - 1766109638e3) / 36e5).toFixed(1), u = `%c🌏 ${r}%c ${e}.${s.slice(0, 8)}.${t} (距今${a}个小时)
|
|
48
48
|
%c${i ? i + `
|
|
49
49
|
` : ""}当前网站正在使用${r},此软件版权归${n}所有
|
|
50
50
|
`;
|
|
@@ -58,7 +58,7 @@ try {
|
|
|
58
58
|
},
|
|
59
59
|
// @ts-ignore
|
|
60
60
|
get gituri() {
|
|
61
|
-
return GITURI_ && GITURI_.replace("${commitId}", "
|
|
61
|
+
return GITURI_ && GITURI_.replace("${commitId}", "e29deecbad468a096c911c7d606839856be97a79");
|
|
62
62
|
},
|
|
63
63
|
// @ts-ignore
|
|
64
64
|
get info() {
|
|
@@ -66,7 +66,7 @@ try {
|
|
|
66
66
|
},
|
|
67
67
|
// @ts-ignore
|
|
68
68
|
get date() {
|
|
69
|
-
return "2025-12-
|
|
69
|
+
return "2025-12-19T02:00:38.000Z";
|
|
70
70
|
},
|
|
71
71
|
// @ts-ignore
|
|
72
72
|
get author() {
|
|
@@ -74,7 +74,7 @@ try {
|
|
|
74
74
|
},
|
|
75
75
|
// @ts-ignore
|
|
76
76
|
get version() {
|
|
77
|
-
return "3.7.0-beta.
|
|
77
|
+
return "3.7.0-beta.16";
|
|
78
78
|
},
|
|
79
79
|
// @ts-ignore
|
|
80
80
|
get name() {
|
|
@@ -82,7 +82,7 @@ try {
|
|
|
82
82
|
},
|
|
83
83
|
// @ts-ignore
|
|
84
84
|
get commitId() {
|
|
85
|
-
return "
|
|
85
|
+
return "e29deecbad468a096c911c7d606839856be97a79";
|
|
86
86
|
},
|
|
87
87
|
/**
|
|
88
88
|
* 打印版权信息到控制台
|
|
@@ -468,7 +468,7 @@ function Lv() {
|
|
|
468
468
|
function Fv(r) {
|
|
469
469
|
r.func = void 0, r.scope = void 0, r._hasRemoved = !1, r._once = !1;
|
|
470
470
|
}
|
|
471
|
-
const
|
|
471
|
+
const Ws = new wh(Lv, Fv, !0);
|
|
472
472
|
class hg {
|
|
473
473
|
constructor() {
|
|
474
474
|
d(this, "__dll");
|
|
@@ -545,22 +545,22 @@ class hg {
|
|
|
545
545
|
insertBefore(e, t, n, i = !1) {
|
|
546
546
|
if (e.item._hasRemoved)
|
|
547
547
|
throw new Error("handler has removed!");
|
|
548
|
-
const s =
|
|
548
|
+
const s = Ws.create();
|
|
549
549
|
return s.func = t, s.scope = n, s._once = i, this._dll.insertBefore(e, s);
|
|
550
550
|
}
|
|
551
551
|
insertAfter(e, t, n, i = !1) {
|
|
552
552
|
if (e.item._hasRemoved)
|
|
553
553
|
throw new Error("handler has removed!");
|
|
554
|
-
const s =
|
|
554
|
+
const s = Ws.create();
|
|
555
555
|
return s.func = t, s.scope = n, s._once = i, this._dll.insertAfter(e, s);
|
|
556
556
|
}
|
|
557
557
|
_clearHasRemoved(e) {
|
|
558
|
-
e.item._hasRemoved && !this._hasCurrentListener(e.item) && (
|
|
558
|
+
e.item._hasRemoved && !this._hasCurrentListener(e.item) && (Ws.destroy(e.item), this._dll.remove(e));
|
|
559
559
|
}
|
|
560
560
|
remove(e) {
|
|
561
561
|
if (!e.item || e.item._hasRemoved)
|
|
562
562
|
throw new Error("handler has removed!");
|
|
563
|
-
this._hasCurrentListener(e.item) ? e.item._hasRemoved = !0 : (
|
|
563
|
+
this._hasCurrentListener(e.item) ? e.item._hasRemoved = !0 : (Ws.destroy(e.item), this._dll.remove(e));
|
|
564
564
|
}
|
|
565
565
|
removeAll() {
|
|
566
566
|
if (this.__dll && !this._dll.empty) {
|
|
@@ -577,12 +577,12 @@ class hg {
|
|
|
577
577
|
let e = this._dll.head;
|
|
578
578
|
for (; e; ) {
|
|
579
579
|
const t = e.next, n = e;
|
|
580
|
-
this._hasCurrentListener(n.item) || (console.warn("Event has remove item that on current stack!"), console.warn(`${n.item.func.toString()}`)),
|
|
580
|
+
this._hasCurrentListener(n.item) || (console.warn("Event has remove item that on current stack!"), console.warn(`${n.item.func.toString()}`)), Ws.destroy(n.item), this._dll.remove(n), e = t;
|
|
581
581
|
}
|
|
582
582
|
this.__dll = void 0, this.__currentListenerStack = void 0;
|
|
583
583
|
}
|
|
584
584
|
push(e, t, n = !1) {
|
|
585
|
-
const i =
|
|
585
|
+
const i = Ws.create();
|
|
586
586
|
return i.func = e, i.scope = t, i._once = n, this._dll.push(i);
|
|
587
587
|
}
|
|
588
588
|
pop() {
|
|
@@ -598,7 +598,7 @@ class hg {
|
|
|
598
598
|
this.remove(e);
|
|
599
599
|
}
|
|
600
600
|
unshift(e, t, n = !1) {
|
|
601
|
-
const i =
|
|
601
|
+
const i = Ws.create();
|
|
602
602
|
return i.func = e, i.scope = t, i._once = n, this._dll.unshift(i);
|
|
603
603
|
}
|
|
604
604
|
get tail() {
|
|
@@ -1824,10 +1824,10 @@ var Os;
|
|
|
1824
1824
|
return F(j, 1 / Zt, U);
|
|
1825
1825
|
}
|
|
1826
1826
|
r.normalize = Y;
|
|
1827
|
-
function
|
|
1827
|
+
function W(j, U) {
|
|
1828
1828
|
return F(j, -1, U);
|
|
1829
1829
|
}
|
|
1830
|
-
r.negate =
|
|
1830
|
+
r.negate = W;
|
|
1831
1831
|
const K = (j) => Math.abs(j);
|
|
1832
1832
|
function ut(j, U) {
|
|
1833
1833
|
return x(j, K, U);
|
|
@@ -2275,7 +2275,7 @@ function bS(r, e) {
|
|
|
2275
2275
|
if (e)
|
|
2276
2276
|
return Eg(e, s), i;
|
|
2277
2277
|
}
|
|
2278
|
-
class
|
|
2278
|
+
class Wv {
|
|
2279
2279
|
constructor(e = 0, t = 0, n = 0, i, s) {
|
|
2280
2280
|
d(this, "_processData");
|
|
2281
2281
|
d(this, "_lastUpdateTimeStamp", 0);
|
|
@@ -2294,7 +2294,7 @@ class qv {
|
|
|
2294
2294
|
this.startTime = performance.now() + this.delay, this._lastUpdateTimeStamp = this.startTime;
|
|
2295
2295
|
}
|
|
2296
2296
|
}
|
|
2297
|
-
class
|
|
2297
|
+
class qv extends rc {
|
|
2298
2298
|
constructor(t = 1e3, n = 0, i = Ih) {
|
|
2299
2299
|
let s;
|
|
2300
2300
|
function o() {
|
|
@@ -2312,7 +2312,7 @@ class Wv extends rc {
|
|
|
2312
2312
|
d(this, "delay");
|
|
2313
2313
|
// 单位ms
|
|
2314
2314
|
d(this, "startUpdateFunc");
|
|
2315
|
-
this._base = new
|
|
2315
|
+
this._base = new Wv(), this.duration = t, this.delay = n, this.startUpdateFunc = i;
|
|
2316
2316
|
}
|
|
2317
2317
|
get startTime() {
|
|
2318
2318
|
return this._base.startTime;
|
|
@@ -2324,7 +2324,7 @@ class xS extends V {
|
|
|
2324
2324
|
d(this, "_target", 0);
|
|
2325
2325
|
d(this, "_current", 0);
|
|
2326
2326
|
d(this, "_start", 0);
|
|
2327
|
-
d(this, "_timing", new
|
|
2327
|
+
d(this, "_timing", new qv(Number.POSITIVE_INFINITY));
|
|
2328
2328
|
d(this, "_currentChanged");
|
|
2329
2329
|
this._duration = t, this._timing.progressFunc = ({ ratio: n }) => {
|
|
2330
2330
|
n = n < 0 ? 0 : n > 1 ? 1 : n;
|
|
@@ -3019,7 +3019,7 @@ function oc(r, ...e) {
|
|
|
3019
3019
|
function GS() {
|
|
3020
3020
|
return Nh(oc);
|
|
3021
3021
|
}
|
|
3022
|
-
function
|
|
3022
|
+
function WS(r, ...e) {
|
|
3023
3023
|
return Og(oc, r, ...e);
|
|
3024
3024
|
}
|
|
3025
3025
|
function Uo(r, e, ...t) {
|
|
@@ -3027,7 +3027,7 @@ function Uo(r, e, ...t) {
|
|
|
3027
3027
|
n.isDestroyed() || n.cancel();
|
|
3028
3028
|
}), await e(n, ...i))), ...t)));
|
|
3029
3029
|
}
|
|
3030
|
-
function
|
|
3030
|
+
function qS(r, e, ...t) {
|
|
3031
3031
|
return r.promise(Pg(Mg(e, ...t)));
|
|
3032
3032
|
}
|
|
3033
3033
|
class HS extends Ye {
|
|
@@ -5842,7 +5842,7 @@ class Gy extends Dh {
|
|
|
5842
5842
|
throw new Error("should not be here");
|
|
5843
5843
|
}
|
|
5844
5844
|
}
|
|
5845
|
-
class
|
|
5845
|
+
class Wy extends V {
|
|
5846
5846
|
// _loadGifFramesPromise: Processing<void, [string]>;
|
|
5847
5847
|
constructor(t) {
|
|
5848
5848
|
super();
|
|
@@ -5879,10 +5879,10 @@ class qy extends V {
|
|
|
5879
5879
|
return this._player.gifDurationChanged;
|
|
5880
5880
|
}
|
|
5881
5881
|
}
|
|
5882
|
-
class
|
|
5882
|
+
class qy extends V {
|
|
5883
5883
|
constructor(t, n) {
|
|
5884
5884
|
super();
|
|
5885
|
-
d(this, "_gif", this.disposeVar(new
|
|
5885
|
+
d(this, "_gif", this.disposeVar(new Wy()));
|
|
5886
5886
|
d(this, "_update", this.disposeVar(Yu(() => this.update())));
|
|
5887
5887
|
d(this, "_updateStart", this._update.start());
|
|
5888
5888
|
this._complexImage = t, this._imageUri = n, this._gif.url = this._imageUri;
|
|
@@ -7130,7 +7130,7 @@ class rt extends Nt {
|
|
|
7130
7130
|
return "JsonProperty";
|
|
7131
7131
|
}
|
|
7132
7132
|
}
|
|
7133
|
-
class
|
|
7133
|
+
class Wg extends Nt {
|
|
7134
7134
|
constructor(e, t, n, i, s, o, a) {
|
|
7135
7135
|
super(e, t, n, s, o, a), this._sampleValue = i;
|
|
7136
7136
|
}
|
|
@@ -7241,7 +7241,7 @@ class Nb extends Nt {
|
|
|
7241
7241
|
return "PositionsSetPropety";
|
|
7242
7242
|
}
|
|
7243
7243
|
}
|
|
7244
|
-
class
|
|
7244
|
+
class qg extends Tn {
|
|
7245
7245
|
get type() {
|
|
7246
7246
|
return "RotationProperty";
|
|
7247
7247
|
}
|
|
@@ -7691,7 +7691,7 @@ d(_e, "_lastFlyInId", 0), /**
|
|
|
7691
7691
|
* 最后一次飞向操作的 ID
|
|
7692
7692
|
*/
|
|
7693
7693
|
d(_e, "_lastFlyToId", 0);
|
|
7694
|
-
let
|
|
7694
|
+
let Wt = _e;
|
|
7695
7695
|
class s_ extends V {
|
|
7696
7696
|
/**
|
|
7697
7697
|
* 构造函数,初始化 DragStartDataManager 实例。
|
|
@@ -8461,11 +8461,11 @@ function Gb(r) {
|
|
|
8461
8461
|
const e = Kg.forward([r[0], r[1]]);
|
|
8462
8462
|
return [e[0], e[1], r[2]];
|
|
8463
8463
|
}
|
|
8464
|
-
function
|
|
8464
|
+
function Wb(r) {
|
|
8465
8465
|
const e = Kg.inverse([r[0], r[1]]);
|
|
8466
8466
|
return [e[0], e[1], r[2]];
|
|
8467
8467
|
}
|
|
8468
|
-
function
|
|
8468
|
+
function qb(r, e) {
|
|
8469
8469
|
(r[0][0] !== r[r.length - 1][0] || r[0][1] !== r[r.length - 1][1]) && r.push(r[0]);
|
|
8470
8470
|
const t = tn.point(e), n = tn.polygon([r]);
|
|
8471
8471
|
return tn.booleanPointInPolygon(t, n);
|
|
@@ -8629,7 +8629,7 @@ function ba(r, e, t, n) {
|
|
|
8629
8629
|
var i = xn(r), s = gn(i[0]), o = gn(i[1]), a = gn(t), u = kh(e, n.units), l = Math.asin(Math.sin(o) * Math.cos(u) + Math.cos(o) * Math.sin(u) * Math.cos(a)), c = s + Math.atan2(Math.sin(a) * Math.sin(u) * Math.cos(o), Math.cos(u) - Math.sin(o) * Math.sin(l)), h = Pl(c), f = Pl(l);
|
|
8630
8630
|
return Jt([h, f], n.properties);
|
|
8631
8631
|
}
|
|
8632
|
-
function
|
|
8632
|
+
function qi(r, e, t) {
|
|
8633
8633
|
t === void 0 && (t = {});
|
|
8634
8634
|
var n = xn(r), i = xn(e), s = gn(i[1] - n[1]), o = gn(i[0] - n[0]), a = gn(n[1]), u = gn(i[1]), l = Math.pow(Math.sin(s / 2), 2) + Math.pow(Math.sin(o / 2), 2) * Math.cos(a) * Math.cos(u);
|
|
8635
8635
|
return Ah(2 * Math.atan2(Math.sqrt(l), Math.sqrt(1 - l)), t.units);
|
|
@@ -8645,7 +8645,7 @@ function C_(r, e, t) {
|
|
|
8645
8645
|
} else
|
|
8646
8646
|
return Jt(i[o]);
|
|
8647
8647
|
} else
|
|
8648
|
-
s +=
|
|
8648
|
+
s += qi(i[o], i[o + 1], t);
|
|
8649
8649
|
return Jt(i[i.length - 1]);
|
|
8650
8650
|
}
|
|
8651
8651
|
function Hb(r, e) {
|
|
@@ -8942,7 +8942,7 @@ function tm() {
|
|
|
8942
8942
|
(function S(x, P, N, I, O) {
|
|
8943
8943
|
for (; I > N; ) {
|
|
8944
8944
|
if (I - N > 600) {
|
|
8945
|
-
var R = I - N + 1, F = P - N + 1, Y = Math.log(R),
|
|
8945
|
+
var R = I - N + 1, F = P - N + 1, Y = Math.log(R), W = 0.5 * Math.exp(2 * Y / 3), K = 0.5 * Math.sqrt(Y * W * (R - W) / R) * (F - R / 2 < 0 ? -1 : 1), ut = Math.max(N, Math.floor(P - F * W / R + K)), ft = Math.min(I, Math.floor(P + (R - F) * W / R + K));
|
|
8946
8946
|
S(x, P, ut, ft, O);
|
|
8947
8947
|
}
|
|
8948
8948
|
var H = x[P], J = N, $ = I;
|
|
@@ -9119,7 +9119,7 @@ function tm() {
|
|
|
9119
9119
|
this.data = C([v, y]), this.data.height = v.height + 1, this.data.leaf = !1, a(this.data, this.toBBox);
|
|
9120
9120
|
}, s.prototype._chooseSplitIndex = function(v, y, g) {
|
|
9121
9121
|
for (var _, w, S, x, P, N, I, O = 1 / 0, R = 1 / 0, F = y; F <= g - y; F++) {
|
|
9122
|
-
var Y = u(v, 0, F, this.toBBox),
|
|
9122
|
+
var Y = u(v, 0, F, this.toBBox), W = u(v, F, g, this.toBBox), K = (w = Y, S = W, x = void 0, P = void 0, N = void 0, I = void 0, x = Math.max(w.minX, S.minX), P = Math.max(w.minY, S.minY), N = Math.min(w.maxX, S.maxX), I = Math.min(w.maxY, S.maxY), Math.max(0, N - x) * Math.max(0, I - P)), ut = f(Y) + f(W);
|
|
9123
9123
|
K < O ? (O = K, _ = F, R = ut < R ? ut : R) : K === O && ut < R && (R = ut, _ = F);
|
|
9124
9124
|
}
|
|
9125
9125
|
return _ || g - y;
|
|
@@ -9246,7 +9246,7 @@ function A_() {
|
|
|
9246
9246
|
if (_ === 0 || w === 0 || _ > 0 != w > 0) return S;
|
|
9247
9247
|
const x = Math.abs(_ + w);
|
|
9248
9248
|
return Math.abs(S) >= a * x ? S : -function(P, N, I, O, R, F, Y) {
|
|
9249
|
-
let
|
|
9249
|
+
let W, K, ut, ft, H, J, $, _t, Mt, Pt, Tt, Bt, he, Yt, un, ln, j, U;
|
|
9250
9250
|
const dt = P - R, kt = I - R, Zt = N - F, ye = O - F;
|
|
9251
9251
|
H = (un = (_t = dt - ($ = (J = 134217729 * dt) - (J - dt))) * (Pt = ye - (Mt = (J = 134217729 * ye) - (J - ye))) - ((Yt = dt * ye) - $ * Mt - _t * Mt - $ * Pt)) - (Tt = un - (j = (_t = Zt - ($ = (J = 134217729 * Zt) - (J - Zt))) * (Pt = kt - (Mt = (J = 134217729 * kt) - (J - kt))) - ((ln = Zt * kt) - $ * Mt - _t * Mt - $ * Pt))), c[0] = un - (Tt + H) + (H - j), H = (he = Yt - ((Bt = Yt + Tt) - (H = Bt - Yt)) + (Tt - H)) - (Tt = he - ln), c[1] = he - (Tt + H) + (H - ln), H = (U = Bt + Tt) - Bt, c[2] = Bt - (U - H) + (Tt - H), c[3] = U;
|
|
9252
9252
|
let ls = function(_v, hd) {
|
|
@@ -9254,12 +9254,12 @@ function A_() {
|
|
|
9254
9254
|
for (let Sc = 1; Sc < _v; Sc++) dd += hd[Sc];
|
|
9255
9255
|
return dd;
|
|
9256
9256
|
}(4, c), eu = u * Y;
|
|
9257
|
-
if (ls >= eu || -ls >= eu || (
|
|
9258
|
-
H = (un = (_t =
|
|
9257
|
+
if (ls >= eu || -ls >= eu || (W = P - (dt + (H = P - dt)) + (H - R), ut = I - (kt + (H = I - kt)) + (H - R), K = N - (Zt + (H = N - Zt)) + (H - F), ft = O - (ye + (H = O - ye)) + (H - F), W === 0 && K === 0 && ut === 0 && ft === 0) || (eu = l * Y + i * Math.abs(ls), (ls += dt * ft + ye * W - (Zt * ut + kt * K)) >= eu || -ls >= eu)) return ls;
|
|
9258
|
+
H = (un = (_t = W - ($ = (J = 134217729 * W) - (J - W))) * (Pt = ye - (Mt = (J = 134217729 * ye) - (J - ye))) - ((Yt = W * ye) - $ * Mt - _t * Mt - $ * Pt)) - (Tt = un - (j = (_t = K - ($ = (J = 134217729 * K) - (J - K))) * (Pt = kt - (Mt = (J = 134217729 * kt) - (J - kt))) - ((ln = K * kt) - $ * Mt - _t * Mt - $ * Pt))), m[0] = un - (Tt + H) + (H - j), H = (he = Yt - ((Bt = Yt + Tt) - (H = Bt - Yt)) + (Tt - H)) - (Tt = he - ln), m[1] = he - (Tt + H) + (H - ln), H = (U = Bt + Tt) - Bt, m[2] = Bt - (U - H) + (Tt - H), m[3] = U;
|
|
9259
9259
|
const mv = s(4, c, 4, m, h);
|
|
9260
9260
|
H = (un = (_t = dt - ($ = (J = 134217729 * dt) - (J - dt))) * (Pt = ft - (Mt = (J = 134217729 * ft) - (J - ft))) - ((Yt = dt * ft) - $ * Mt - _t * Mt - $ * Pt)) - (Tt = un - (j = (_t = Zt - ($ = (J = 134217729 * Zt) - (J - Zt))) * (Pt = ut - (Mt = (J = 134217729 * ut) - (J - ut))) - ((ln = Zt * ut) - $ * Mt - _t * Mt - $ * Pt))), m[0] = un - (Tt + H) + (H - j), H = (he = Yt - ((Bt = Yt + Tt) - (H = Bt - Yt)) + (Tt - H)) - (Tt = he - ln), m[1] = he - (Tt + H) + (H - ln), H = (U = Bt + Tt) - Bt, m[2] = Bt - (U - H) + (Tt - H), m[3] = U;
|
|
9261
9261
|
const vv = s(mv, h, 4, m, f);
|
|
9262
|
-
H = (un = (_t =
|
|
9262
|
+
H = (un = (_t = W - ($ = (J = 134217729 * W) - (J - W))) * (Pt = ft - (Mt = (J = 134217729 * ft) - (J - ft))) - ((Yt = W * ft) - $ * Mt - _t * Mt - $ * Pt)) - (Tt = un - (j = (_t = K - ($ = (J = 134217729 * K) - (J - K))) * (Pt = ut - (Mt = (J = 134217729 * ut) - (J - ut))) - ((ln = K * ut) - $ * Mt - _t * Mt - $ * Pt))), m[0] = un - (Tt + H) + (H - j), H = (he = Yt - ((Bt = Yt + Tt) - (H = Bt - Yt)) + (Tt - H)) - (Tt = he - ln), m[1] = he - (Tt + H) + (H - ln), H = (U = Bt + Tt) - Bt, m[2] = Bt - (U - H) + (Tt - H), m[3] = U;
|
|
9263
9263
|
const yv = s(vv, f, 4, m, p);
|
|
9264
9264
|
return p[yv - 1];
|
|
9265
9265
|
}(E, C, b, v, y, g, x);
|
|
@@ -9297,18 +9297,18 @@ function k_() {
|
|
|
9297
9297
|
var R = new r(16);
|
|
9298
9298
|
for (N = 0; N < P.length; N++) R.insert(f(P[N]));
|
|
9299
9299
|
for (var F = _ * _, Y = w * w; P.length; ) {
|
|
9300
|
-
var
|
|
9300
|
+
var W = P.shift(), K = W.p, ut = W.next.p, ft = E(K, ut);
|
|
9301
9301
|
if (!(ft < Y)) {
|
|
9302
9302
|
var H = ft / F;
|
|
9303
|
-
O = s(x,
|
|
9303
|
+
O = s(x, W.prev.p, K, ut, W.next.next.p, H, R), O && Math.min(E(O, K), E(O, ut)) <= H && (P.push(W), P.push(m(O, W)), x.remove(O), R.remove(W), R.insert(f(W)), R.insert(f(W.next)));
|
|
9304
9304
|
}
|
|
9305
9305
|
}
|
|
9306
|
-
|
|
9306
|
+
W = I;
|
|
9307
9307
|
var J = [];
|
|
9308
9308
|
do
|
|
9309
|
-
J.push(
|
|
9310
|
-
while (
|
|
9311
|
-
return J.push(
|
|
9309
|
+
J.push(W.p), W = W.next;
|
|
9310
|
+
while (W !== I);
|
|
9311
|
+
return J.push(W.p), J;
|
|
9312
9312
|
}
|
|
9313
9313
|
function s(g, _, w, S, x, P, N) {
|
|
9314
9314
|
for (var I = new e([], o), O = g.data; O; ) {
|
|
@@ -9320,8 +9320,8 @@ function k_() {
|
|
|
9320
9320
|
});
|
|
9321
9321
|
}
|
|
9322
9322
|
for (; I.length && !I.peek().node.children; ) {
|
|
9323
|
-
var
|
|
9324
|
-
if (
|
|
9323
|
+
var W = I.pop(), K = W.node, ut = C(K, _, w), ft = C(K, S, x);
|
|
9324
|
+
if (W.dist < ut && W.dist < ft && l(w, K, N) && l(S, K, N)) return K;
|
|
9325
9325
|
}
|
|
9326
9326
|
O = I.pop(), O && (O = O.node);
|
|
9327
9327
|
}
|
|
@@ -9394,7 +9394,7 @@ function k_() {
|
|
|
9394
9394
|
return P = g[0] - S, N = g[1] - x, P * P + N * N;
|
|
9395
9395
|
}
|
|
9396
9396
|
function b(g, _, w, S, x, P, N, I) {
|
|
9397
|
-
var O = w - g, R = S - _, F = N - x, Y = I - P,
|
|
9397
|
+
var O = w - g, R = S - _, F = N - x, Y = I - P, W = g - x, K = _ - P, ut = O * O + R * R, ft = O * F + R * Y, H = F * F + Y * Y, J = O * W + R * K, $ = F * W + Y * K, _t = ut * H - ft * ft, Mt, Pt, Tt, Bt, he = _t, Yt = _t;
|
|
9398
9398
|
_t === 0 ? (Pt = 0, he = 1, Bt = $, Yt = H) : (Pt = ft * $ - H * J, Bt = ut * $ - ft * J, Pt < 0 ? (Pt = 0, Bt = $, Yt = H) : Pt > he && (Pt = he, Bt = $ + ft, Yt = H)), Bt < 0 ? (Bt = 0, -J < 0 ? Pt = 0 : -J > ut ? Pt = he : (Pt = -J, he = ut)) : Bt > Yt && (Bt = Yt, -J + ft < 0 ? Pt = 0 : -J + ft > ut ? Pt = he : (Pt = -J + ft, he = ut)), Mt = Pt === 0 ? 0 : Pt / he, Tt = Bt === 0 ? 0 : Bt / Yt;
|
|
9399
9399
|
var un = (1 - Mt) * g + Mt * w, ln = (1 - Mt) * _ + Mt * S, j = (1 - Tt) * x + Tt * N, U = (1 - Tt) * P + Tt * I, dt = j - un, kt = U - ln;
|
|
9400
9400
|
return dt * dt + kt * kt;
|
|
@@ -9471,7 +9471,7 @@ function z_(r, e, t, n) {
|
|
|
9471
9471
|
return n = n || [0, 0, 0], n[0] = a.geometry.coordinates[0], n[1] = a.geometry.coordinates[1], n[2] = o, n;
|
|
9472
9472
|
}
|
|
9473
9473
|
function jh(r, e) {
|
|
9474
|
-
return
|
|
9474
|
+
return qi(Jt(r), Jt(e), { units: "meters" });
|
|
9475
9475
|
}
|
|
9476
9476
|
function cc(r, e) {
|
|
9477
9477
|
return Ju(Jt(r), Jt(e));
|
|
@@ -9506,16 +9506,16 @@ function G_(r, e) {
|
|
|
9506
9506
|
var t = [];
|
|
9507
9507
|
return r.reduce(function(n, i) {
|
|
9508
9508
|
var s = Yr([n, i], e);
|
|
9509
|
-
return s.bbox =
|
|
9509
|
+
return s.bbox = W_(n, i), t.push(s), i;
|
|
9510
9510
|
}), t;
|
|
9511
9511
|
}
|
|
9512
|
-
function
|
|
9512
|
+
function W_(r, e) {
|
|
9513
9513
|
var t = r[0], n = r[1], i = e[0], s = e[1], o = t < i ? t : i, a = n < s ? n : s, u = t > i ? t : i, l = n > s ? n : s;
|
|
9514
9514
|
return [o, a, u, l];
|
|
9515
9515
|
}
|
|
9516
|
-
var al = { exports: {} }, Fc = {},
|
|
9516
|
+
var al = { exports: {} }, Fc = {}, Wd;
|
|
9517
9517
|
function nm() {
|
|
9518
|
-
return
|
|
9518
|
+
return Wd || (Wd = 1, function(r) {
|
|
9519
9519
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.earthRadius = 63710088e-1, r.factors = {
|
|
9520
9520
|
centimeters: r.earthRadius * 100,
|
|
9521
9521
|
centimetres: r.earthRadius * 100,
|
|
@@ -9614,11 +9614,11 @@ function nm() {
|
|
|
9614
9614
|
function s(I, O, R) {
|
|
9615
9615
|
R === void 0 && (R = {});
|
|
9616
9616
|
for (var F = 0, Y = I; F < Y.length; F++) {
|
|
9617
|
-
var
|
|
9618
|
-
if (
|
|
9617
|
+
var W = Y[F];
|
|
9618
|
+
if (W.length < 4)
|
|
9619
9619
|
throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");
|
|
9620
|
-
for (var K = 0; K <
|
|
9621
|
-
if (
|
|
9620
|
+
for (var K = 0; K < W[W.length - 1].length; K++)
|
|
9621
|
+
if (W[W.length - 1][K] !== W[0][K])
|
|
9622
9622
|
throw new Error("First and last Position are not equivalent.");
|
|
9623
9623
|
}
|
|
9624
9624
|
var ut = {
|
|
@@ -9782,15 +9782,15 @@ function nm() {
|
|
|
9782
9782
|
r.validateId = N;
|
|
9783
9783
|
}(Fc)), Fc;
|
|
9784
9784
|
}
|
|
9785
|
-
var be = {},
|
|
9785
|
+
var be = {}, qd;
|
|
9786
9786
|
function rm() {
|
|
9787
|
-
if (
|
|
9788
|
-
|
|
9787
|
+
if (qd) return be;
|
|
9788
|
+
qd = 1, Object.defineProperty(be, "__esModule", { value: !0 });
|
|
9789
9789
|
var r = /* @__PURE__ */ nm();
|
|
9790
9790
|
function e(v, y, g) {
|
|
9791
9791
|
if (v !== null)
|
|
9792
|
-
for (var _, w, S, x, P, N, I, O = 0, R = 0, F, Y = v.type,
|
|
9793
|
-
I =
|
|
9792
|
+
for (var _, w, S, x, P, N, I, O = 0, R = 0, F, Y = v.type, W = Y === "FeatureCollection", K = Y === "Feature", ut = W ? v.features.length : 1, ft = 0; ft < ut; ft++) {
|
|
9793
|
+
I = W ? v.features[ft].geometry : K ? v.geometry : v, F = I ? I.type === "GeometryCollection" : !1, P = F ? I.geometries.length : 1;
|
|
9794
9794
|
for (var H = 0; H < P; H++) {
|
|
9795
9795
|
var J = 0, $ = 0;
|
|
9796
9796
|
if (x = F ? I.geometries[H] : I, x !== null) {
|
|
@@ -9929,9 +9929,9 @@ function rm() {
|
|
|
9929
9929
|
}), y;
|
|
9930
9930
|
}
|
|
9931
9931
|
function u(v, y) {
|
|
9932
|
-
var g, _, w, S, x, P, N, I, O, R, F = 0, Y = v.type === "FeatureCollection",
|
|
9932
|
+
var g, _, w, S, x, P, N, I, O, R, F = 0, Y = v.type === "FeatureCollection", W = v.type === "Feature", K = Y ? v.features.length : 1;
|
|
9933
9933
|
for (g = 0; g < K; g++) {
|
|
9934
|
-
for (P = Y ? v.features[g].geometry :
|
|
9934
|
+
for (P = Y ? v.features[g].geometry : W ? v.geometry : v, I = Y ? v.features[g].properties : W ? v.properties : {}, O = Y ? v.features[g].bbox : W ? v.bbox : void 0, R = Y ? v.features[g].id : W ? v.id : void 0, N = P ? P.type === "GeometryCollection" : !1, x = N ? P.geometries.length : 1, w = 0; w < x; w++) {
|
|
9935
9935
|
if (S = N ? P.geometries[w] : P, S === null) {
|
|
9936
9936
|
if (y(
|
|
9937
9937
|
null,
|
|
@@ -10054,9 +10054,9 @@ function rm() {
|
|
|
10054
10054
|
var P, N = 0, I = 0, O = 0;
|
|
10055
10055
|
if (e(
|
|
10056
10056
|
g,
|
|
10057
|
-
function(R, F, Y,
|
|
10058
|
-
if (P === void 0 || _ > N ||
|
|
10059
|
-
P = R, N = _, I =
|
|
10057
|
+
function(R, F, Y, W, K) {
|
|
10058
|
+
if (P === void 0 || _ > N || W > I || K > O) {
|
|
10059
|
+
P = R, N = _, I = W, O = K, S = 0;
|
|
10060
10060
|
return;
|
|
10061
10061
|
}
|
|
10062
10062
|
var ut = r.lineString(
|
|
@@ -10245,7 +10245,7 @@ function rm() {
|
|
|
10245
10245
|
return be.coordAll = a, be.coordEach = e, be.coordReduce = t, be.featureEach = s, be.featureReduce = o, be.findPoint = b, be.findSegment = C, be.flattenEach = c, be.flattenReduce = h, be.geomEach = u, be.geomReduce = l, be.lineEach = m, be.lineReduce = E, be.propEach = n, be.propReduce = i, be.segmentEach = f, be.segmentReduce = p, be;
|
|
10246
10246
|
}
|
|
10247
10247
|
var ul = {}, Hd;
|
|
10248
|
-
function
|
|
10248
|
+
function q_() {
|
|
10249
10249
|
if (Hd) return ul;
|
|
10250
10250
|
Hd = 1, Object.defineProperty(ul, "__esModule", { value: !0 });
|
|
10251
10251
|
var r = /* @__PURE__ */ rm();
|
|
@@ -10261,7 +10261,7 @@ var Xd;
|
|
|
10261
10261
|
function H_() {
|
|
10262
10262
|
if (Xd) return al.exports;
|
|
10263
10263
|
Xd = 1;
|
|
10264
|
-
var r = tm(), e = /* @__PURE__ */ nm(), t = /* @__PURE__ */ rm(), n =
|
|
10264
|
+
var r = tm(), e = /* @__PURE__ */ nm(), t = /* @__PURE__ */ rm(), n = q_().default, i = t.featureEach;
|
|
10265
10265
|
t.coordEach, e.polygon;
|
|
10266
10266
|
var s = e.featureCollection;
|
|
10267
10267
|
function o(a) {
|
|
@@ -10352,7 +10352,7 @@ function Yb(r, e) {
|
|
|
10352
10352
|
return im(Yr(r), Yr(e));
|
|
10353
10353
|
}
|
|
10354
10354
|
function J_(r, e) {
|
|
10355
|
-
var t =
|
|
10355
|
+
var t = qi(r, e), n = Ju(r, e), i = ba(r, t / 2, n);
|
|
10356
10356
|
return i;
|
|
10357
10357
|
}
|
|
10358
10358
|
function Jb(r, e) {
|
|
@@ -10367,14 +10367,14 @@ function $_(r, e, t) {
|
|
|
10367
10367
|
return Bh(r, function(s) {
|
|
10368
10368
|
for (var o = po(s), a = 0; a < o.length - 1; a++) {
|
|
10369
10369
|
var u = Jt(o[a]);
|
|
10370
|
-
u.properties.dist =
|
|
10370
|
+
u.properties.dist = qi(e, u, t);
|
|
10371
10371
|
var l = Jt(o[a + 1]);
|
|
10372
|
-
l.properties.dist =
|
|
10373
|
-
var c =
|
|
10372
|
+
l.properties.dist = qi(e, l, t);
|
|
10373
|
+
var c = qi(u, l, t), h = Math.max(u.properties.dist, l.properties.dist), f = Ju(u, l), p = ba(e, h, f + 90, t), m = ba(e, h, f - 90, t), E = im(Yr([
|
|
10374
10374
|
p.geometry.coordinates,
|
|
10375
10375
|
m.geometry.coordinates
|
|
10376
10376
|
]), Yr([u.geometry.coordinates, l.geometry.coordinates])), C = null;
|
|
10377
|
-
E.features.length > 0 && (C = E.features[0], C.properties.dist =
|
|
10377
|
+
E.features.length > 0 && (C = E.features[0], C.properties.dist = qi(e, C, t), C.properties.location = i + qi(u, C, t)), u.properties.dist < n.properties.dist && (n = u, n.properties.index = a, n.properties.location = i), l.properties.dist < n.properties.dist && (n = l, n.properties.index = a + 1, n.properties.location = i + c), C && C.properties.dist < n.properties.dist && (n = C, n.properties.index = a), i += c;
|
|
10378
10378
|
}
|
|
10379
10379
|
}), n;
|
|
10380
10380
|
}
|
|
@@ -10422,7 +10422,7 @@ function Jd(r, e) {
|
|
|
10422
10422
|
return r[0] * e[0] + r[1] * e[1];
|
|
10423
10423
|
}
|
|
10424
10424
|
function Ac(r, e, t) {
|
|
10425
|
-
return t.method === "planar" ? sm(r, e, t) :
|
|
10425
|
+
return t.method === "planar" ? sm(r, e, t) : qi(r, e, t);
|
|
10426
10426
|
}
|
|
10427
10427
|
function Kb(r, e) {
|
|
10428
10428
|
const t = Jt(r), n = Yr(e);
|
|
@@ -12346,7 +12346,7 @@ var Us = function(r) {
|
|
|
12346
12346
|
}, e.prototype.computeIntersection = function() {
|
|
12347
12347
|
if (arguments.length === 3) {
|
|
12348
12348
|
var n = arguments[0], i = arguments[1], s = arguments[2];
|
|
12349
|
-
if (this._isProper = !1, Z.intersects(i, s, n) &&
|
|
12349
|
+
if (this._isProper = !1, Z.intersects(i, s, n) && q.orientationIndex(i, s, n) === 0 && q.orientationIndex(s, i, n) === 0)
|
|
12350
12350
|
return this._isProper = !0, (n.equals(i) || n.equals(s)) && (this._isProper = !1), this._result = r.POINT_INTERSECTION, null;
|
|
12351
12351
|
this._result = r.NO_INTERSECTION;
|
|
12352
12352
|
} else
|
|
@@ -12388,10 +12388,10 @@ var Us = function(r) {
|
|
|
12388
12388
|
}, e.prototype.computeIntersect = function(n, i, s, o) {
|
|
12389
12389
|
if (this._isProper = !1, !Z.intersects(n, i, s, o))
|
|
12390
12390
|
return r.NO_INTERSECTION;
|
|
12391
|
-
var a =
|
|
12391
|
+
var a = q.orientationIndex(n, i, s), u = q.orientationIndex(n, i, o);
|
|
12392
12392
|
if (a > 0 && u > 0 || a < 0 && u < 0)
|
|
12393
12393
|
return r.NO_INTERSECTION;
|
|
12394
|
-
var l =
|
|
12394
|
+
var l = q.orientationIndex(s, o, n), c = q.orientationIndex(s, o, i);
|
|
12395
12395
|
if (l > 0 && c > 0 || l < 0 && c < 0)
|
|
12396
12396
|
return r.NO_INTERSECTION;
|
|
12397
12397
|
var h = a === 0 && u === 0 && l === 0 && c === 0;
|
|
@@ -12401,8 +12401,8 @@ var Us = function(r) {
|
|
|
12401
12401
|
}, e.prototype.getClass = function() {
|
|
12402
12402
|
return e;
|
|
12403
12403
|
}, e.nearestEndpoint = function(n, i, s, o) {
|
|
12404
|
-
var a = n, u =
|
|
12405
|
-
return l < u && (u = l, a = i), l =
|
|
12404
|
+
var a = n, u = q.distancePointLine(n, s, o), l = q.distancePointLine(i, s, o);
|
|
12405
|
+
return l < u && (u = l, a = i), l = q.distancePointLine(s, n, i), l < u && (u = l, a = s), l = q.distancePointLine(o, n, i), l < u && (u = l, a = o), a;
|
|
12406
12406
|
}, e;
|
|
12407
12407
|
}($t), mo = function() {
|
|
12408
12408
|
};
|
|
@@ -12519,18 +12519,18 @@ mr.locatePointInRing = function() {
|
|
|
12519
12519
|
return l.getLocation();
|
|
12520
12520
|
}
|
|
12521
12521
|
};
|
|
12522
|
-
var
|
|
12522
|
+
var q = function() {
|
|
12523
12523
|
}, Lo = { CLOCKWISE: { configurable: !0 }, RIGHT: { configurable: !0 }, COUNTERCLOCKWISE: { configurable: !0 }, LEFT: { configurable: !0 }, COLLINEAR: { configurable: !0 }, STRAIGHT: { configurable: !0 } };
|
|
12524
|
-
|
|
12524
|
+
q.prototype.interfaces_ = function() {
|
|
12525
12525
|
return [];
|
|
12526
12526
|
};
|
|
12527
|
-
|
|
12528
|
-
return
|
|
12527
|
+
q.prototype.getClass = function() {
|
|
12528
|
+
return q;
|
|
12529
12529
|
};
|
|
12530
|
-
|
|
12530
|
+
q.orientationIndex = function(e, t, n) {
|
|
12531
12531
|
return en.orientationIndex(e, t, n);
|
|
12532
12532
|
};
|
|
12533
|
-
|
|
12533
|
+
q.signedArea = function() {
|
|
12534
12534
|
if (arguments[0] instanceof Array) {
|
|
12535
12535
|
var e = arguments[0];
|
|
12536
12536
|
if (e.length < 3)
|
|
@@ -12553,11 +12553,11 @@ W.signedArea = function() {
|
|
|
12553
12553
|
return m / 2;
|
|
12554
12554
|
}
|
|
12555
12555
|
};
|
|
12556
|
-
|
|
12556
|
+
q.distanceLineLine = function(e, t, n, i) {
|
|
12557
12557
|
if (e.equals(t))
|
|
12558
|
-
return
|
|
12558
|
+
return q.distancePointLine(e, n, i);
|
|
12559
12559
|
if (n.equals(i))
|
|
12560
|
-
return
|
|
12560
|
+
return q.distancePointLine(i, e, t);
|
|
12561
12561
|
var s = !1;
|
|
12562
12562
|
if (!Z.intersects(e, t, n, i))
|
|
12563
12563
|
s = !0;
|
|
@@ -12570,12 +12570,12 @@ W.distanceLineLine = function(e, t, n, i) {
|
|
|
12570
12570
|
(c < 0 || c > 1 || l < 0 || l > 1) && (s = !0);
|
|
12571
12571
|
}
|
|
12572
12572
|
}
|
|
12573
|
-
return s ? Nn.min(
|
|
12573
|
+
return s ? Nn.min(q.distancePointLine(e, n, i), q.distancePointLine(t, n, i), q.distancePointLine(n, e, t), q.distancePointLine(i, e, t)) : 0;
|
|
12574
12574
|
};
|
|
12575
|
-
|
|
12576
|
-
return
|
|
12575
|
+
q.isPointInRing = function(e, t) {
|
|
12576
|
+
return q.locatePointInRing(e, t) !== L.EXTERIOR;
|
|
12577
12577
|
};
|
|
12578
|
-
|
|
12578
|
+
q.computeLength = function(e) {
|
|
12579
12579
|
var t = e.size();
|
|
12580
12580
|
if (t <= 1)
|
|
12581
12581
|
return 0;
|
|
@@ -12588,7 +12588,7 @@ W.computeLength = function(e) {
|
|
|
12588
12588
|
}
|
|
12589
12589
|
return n;
|
|
12590
12590
|
};
|
|
12591
|
-
|
|
12591
|
+
q.isCCW = function(e) {
|
|
12592
12592
|
var t = e.length - 1;
|
|
12593
12593
|
if (t < 3)
|
|
12594
12594
|
throw new Xt("Ring has fewer than 4 points, so orientation cannot be determined");
|
|
@@ -12607,26 +12607,26 @@ W.isCCW = function(e) {
|
|
|
12607
12607
|
var l = e[a], c = e[u];
|
|
12608
12608
|
if (l.equals2D(n) || c.equals2D(n) || l.equals2D(c))
|
|
12609
12609
|
return !1;
|
|
12610
|
-
var h =
|
|
12610
|
+
var h = q.computeOrientation(l, n, c), f = !1;
|
|
12611
12611
|
return h === 0 ? f = l.x > c.x : f = h > 0, f;
|
|
12612
12612
|
};
|
|
12613
|
-
|
|
12613
|
+
q.locatePointInRing = function(e, t) {
|
|
12614
12614
|
return mr.locatePointInRing(e, t);
|
|
12615
12615
|
};
|
|
12616
|
-
|
|
12616
|
+
q.distancePointLinePerpendicular = function(e, t, n) {
|
|
12617
12617
|
var i = (n.x - t.x) * (n.x - t.x) + (n.y - t.y) * (n.y - t.y), s = ((t.y - e.y) * (n.x - t.x) - (t.x - e.x) * (n.y - t.y)) / i;
|
|
12618
12618
|
return Math.abs(s) * Math.sqrt(i);
|
|
12619
12619
|
};
|
|
12620
|
-
|
|
12621
|
-
return
|
|
12620
|
+
q.computeOrientation = function(e, t, n) {
|
|
12621
|
+
return q.orientationIndex(e, t, n);
|
|
12622
12622
|
};
|
|
12623
|
-
|
|
12623
|
+
q.distancePointLine = function() {
|
|
12624
12624
|
if (arguments.length === 2) {
|
|
12625
12625
|
var e = arguments[0], t = arguments[1];
|
|
12626
12626
|
if (t.length === 0)
|
|
12627
12627
|
throw new Xt("Line array must contain at least one vertex");
|
|
12628
12628
|
for (var n = e.distance(t[0]), i = 0; i < t.length - 1; i++) {
|
|
12629
|
-
var s =
|
|
12629
|
+
var s = q.distancePointLine(e, t[i], t[i + 1]);
|
|
12630
12630
|
s < n && (n = s);
|
|
12631
12631
|
}
|
|
12632
12632
|
return n;
|
|
@@ -12643,7 +12643,7 @@ W.distancePointLine = function() {
|
|
|
12643
12643
|
return Math.abs(h) * Math.sqrt(l);
|
|
12644
12644
|
}
|
|
12645
12645
|
};
|
|
12646
|
-
|
|
12646
|
+
q.isOnLine = function(e, t) {
|
|
12647
12647
|
for (var n = new Us(), i = 1; i < t.length; i++) {
|
|
12648
12648
|
var s = t[i - 1], o = t[i];
|
|
12649
12649
|
if (n.computeIntersection(e, s, o), n.hasIntersection())
|
|
@@ -12655,21 +12655,21 @@ Lo.CLOCKWISE.get = function() {
|
|
|
12655
12655
|
return -1;
|
|
12656
12656
|
};
|
|
12657
12657
|
Lo.RIGHT.get = function() {
|
|
12658
|
-
return
|
|
12658
|
+
return q.CLOCKWISE;
|
|
12659
12659
|
};
|
|
12660
12660
|
Lo.COUNTERCLOCKWISE.get = function() {
|
|
12661
12661
|
return 1;
|
|
12662
12662
|
};
|
|
12663
12663
|
Lo.LEFT.get = function() {
|
|
12664
|
-
return
|
|
12664
|
+
return q.COUNTERCLOCKWISE;
|
|
12665
12665
|
};
|
|
12666
12666
|
Lo.COLLINEAR.get = function() {
|
|
12667
12667
|
return 0;
|
|
12668
12668
|
};
|
|
12669
12669
|
Lo.STRAIGHT.get = function() {
|
|
12670
|
-
return
|
|
12670
|
+
return q.COLLINEAR;
|
|
12671
12671
|
};
|
|
12672
|
-
Object.defineProperties(
|
|
12672
|
+
Object.defineProperties(q, Lo);
|
|
12673
12673
|
var Pi = function() {
|
|
12674
12674
|
};
|
|
12675
12675
|
Pi.prototype.filter = function(e) {
|
|
@@ -13361,7 +13361,7 @@ function pc() {
|
|
|
13361
13361
|
pc.prototype = new fe();
|
|
13362
13362
|
pc.prototype.contains = function() {
|
|
13363
13363
|
};
|
|
13364
|
-
var
|
|
13364
|
+
var Wh = function(r) {
|
|
13365
13365
|
function e() {
|
|
13366
13366
|
r.call(this), this.array_ = [], arguments[0] instanceof fe && this.addAll(arguments[0]);
|
|
13367
13367
|
}
|
|
@@ -13499,7 +13499,7 @@ Fe.prototype.values = function() {
|
|
|
13499
13499
|
return r;
|
|
13500
13500
|
};
|
|
13501
13501
|
Fe.prototype.entrySet = function() {
|
|
13502
|
-
var r = new
|
|
13502
|
+
var r = new Wh(), e = this.getFirstEntry();
|
|
13503
13503
|
if (e !== null)
|
|
13504
13504
|
for (r.add(e); (e = Fe.successor(e)) !== null; )
|
|
13505
13505
|
r.add(e);
|
|
@@ -13741,7 +13741,7 @@ $n.prototype.interfaces_ = function() {
|
|
|
13741
13741
|
$n.prototype.getClass = function() {
|
|
13742
13742
|
return $n;
|
|
13743
13743
|
};
|
|
13744
|
-
var
|
|
13744
|
+
var We = function(r) {
|
|
13745
13745
|
function e(n, i) {
|
|
13746
13746
|
if (r.call(this, i), this._geometries = n || [], r.hasNullElements(this._geometries))
|
|
13747
13747
|
throw new Xt("geometries must not contain null elements");
|
|
@@ -13916,7 +13916,7 @@ var qe = function(r) {
|
|
|
13916
13916
|
}, t.serialVersionUID.get = function() {
|
|
13917
13917
|
return 8166665132445434e3;
|
|
13918
13918
|
}, Object.defineProperties(e, t), e;
|
|
13919
|
-
}(
|
|
13919
|
+
}(We), An = function() {
|
|
13920
13920
|
if (this._geom = null, this._geomFact = null, this._bnRule = null, this._endpointMap = null, arguments.length === 1) {
|
|
13921
13921
|
var e = arguments[0], t = Bn.MOD2_BOUNDARY_RULE;
|
|
13922
13922
|
this._geom = e, this._geomFact = e.getFactory(), this._bnRule = t;
|
|
@@ -14000,7 +14000,7 @@ function M0() {
|
|
|
14000
14000
|
function R0() {
|
|
14001
14001
|
}
|
|
14002
14002
|
var kn = function() {
|
|
14003
|
-
},
|
|
14003
|
+
}, qh = { NEWLINE: { configurable: !0 }, SIMPLE_ORDINATE_FORMAT: { configurable: !0 } };
|
|
14004
14004
|
kn.prototype.interfaces_ = function() {
|
|
14005
14005
|
return [];
|
|
14006
14006
|
};
|
|
@@ -14051,13 +14051,13 @@ kn.toString = function() {
|
|
|
14051
14051
|
kn.spaces = function(e) {
|
|
14052
14052
|
return kn.chars(" ", e);
|
|
14053
14053
|
};
|
|
14054
|
-
|
|
14054
|
+
qh.NEWLINE.get = function() {
|
|
14055
14055
|
return Oe.getProperty("line.separator");
|
|
14056
14056
|
};
|
|
14057
|
-
|
|
14057
|
+
qh.SIMPLE_ORDINATE_FORMAT.get = function() {
|
|
14058
14058
|
return new N0();
|
|
14059
14059
|
};
|
|
14060
|
-
Object.defineProperties(kn,
|
|
14060
|
+
Object.defineProperties(kn, qh);
|
|
14061
14061
|
var re = function() {
|
|
14062
14062
|
};
|
|
14063
14063
|
re.prototype.interfaces_ = function() {
|
|
@@ -14186,7 +14186,7 @@ var Qt = function(r) {
|
|
|
14186
14186
|
}, e.prototype.getDimension = function() {
|
|
14187
14187
|
return 1;
|
|
14188
14188
|
}, e.prototype.getLength = function() {
|
|
14189
|
-
return
|
|
14189
|
+
return q.computeLength(this._points);
|
|
14190
14190
|
}, e.prototype.getNumPoints = function() {
|
|
14191
14191
|
return this._points.size();
|
|
14192
14192
|
}, e.prototype.reverse = function() {
|
|
@@ -14396,9 +14396,9 @@ var ve = function(r) {
|
|
|
14396
14396
|
return s;
|
|
14397
14397
|
}, e.prototype.getArea = function() {
|
|
14398
14398
|
var i = this, s = 0;
|
|
14399
|
-
s += Math.abs(
|
|
14399
|
+
s += Math.abs(q.signedArea(this._shell.getCoordinateSequence()));
|
|
14400
14400
|
for (var o = 0; o < this._holes.length; o++)
|
|
14401
|
-
s -= Math.abs(
|
|
14401
|
+
s -= Math.abs(q.signedArea(i._holes[o].getCoordinateSequence()));
|
|
14402
14402
|
return s;
|
|
14403
14403
|
}, e.prototype.isRectangle = function() {
|
|
14404
14404
|
if (this.getNumInteriorRing() !== 0 || this._shell === null || this._shell.getNumPoints() !== 5)
|
|
@@ -14447,7 +14447,7 @@ var ve = function(r) {
|
|
|
14447
14447
|
var u = new Array(o.getCoordinates().length - 1).fill(null);
|
|
14448
14448
|
Oe.arraycopy(o.getCoordinates(), 0, u, 0, u.length);
|
|
14449
14449
|
var l = Ct.minCoordinate(o.getCoordinates());
|
|
14450
|
-
Ct.scroll(u, l), Oe.arraycopy(u, 0, o.getCoordinates(), 0, u.length), o.getCoordinates()[u.length] = u[0],
|
|
14450
|
+
Ct.scroll(u, l), Oe.arraycopy(u, 0, o.getCoordinates(), 0, u.length), o.getCoordinates()[u.length] = u[0], q.isCCW(o.getCoordinates()) === a && Ct.reverse(o.getCoordinates());
|
|
14451
14451
|
}
|
|
14452
14452
|
}, e.prototype.getCoordinate = function() {
|
|
14453
14453
|
return this._shell.getCoordinate();
|
|
@@ -14585,7 +14585,7 @@ var ve = function(r) {
|
|
|
14585
14585
|
}, t.serialVersionUID.get = function() {
|
|
14586
14586
|
return -8048474874175356e3;
|
|
14587
14587
|
}, Object.defineProperties(e, t), e;
|
|
14588
|
-
}(
|
|
14588
|
+
}(We), Kr = function(r) {
|
|
14589
14589
|
function e(n, i) {
|
|
14590
14590
|
n instanceof D && i instanceof Et && (n = i.getCoordinateSequenceFactory().create(n)), r.call(this, n, i), this.validateConstruction();
|
|
14591
14591
|
}
|
|
@@ -14620,7 +14620,7 @@ var ve = function(r) {
|
|
|
14620
14620
|
}, t.serialVersionUID.get = function() {
|
|
14621
14621
|
return -4261142084085851600;
|
|
14622
14622
|
}, Object.defineProperties(e, t), e;
|
|
14623
|
-
}(Qt),
|
|
14623
|
+
}(Qt), Wr = function(r) {
|
|
14624
14624
|
function e() {
|
|
14625
14625
|
r.apply(this, arguments);
|
|
14626
14626
|
}
|
|
@@ -14664,7 +14664,7 @@ var ve = function(r) {
|
|
|
14664
14664
|
}, t.serialVersionUID.get = function() {
|
|
14665
14665
|
return -551033529766975900;
|
|
14666
14666
|
}, Object.defineProperties(e, t), e;
|
|
14667
|
-
}(
|
|
14667
|
+
}(We), jn = function(e) {
|
|
14668
14668
|
this._factory = e || null, this._isUserDataCopied = !1;
|
|
14669
14669
|
}, mc = { NoOpGeometryOperation: { configurable: !0 }, CoordinateOperation: { configurable: !0 }, CoordinateSequenceOperation: { configurable: !0 } };
|
|
14670
14670
|
jn.prototype.setCopyUserData = function(e) {
|
|
@@ -14677,14 +14677,14 @@ jn.prototype.edit = function(e, t) {
|
|
|
14677
14677
|
return this._isUserDataCopied && n.setUserData(e.getUserData()), n;
|
|
14678
14678
|
};
|
|
14679
14679
|
jn.prototype.editInternal = function(e, t) {
|
|
14680
|
-
return this._factory === null && (this._factory = e.getFactory()), e instanceof
|
|
14680
|
+
return this._factory === null && (this._factory = e.getFactory()), e instanceof We ? this.editGeometryCollection(e, t) : e instanceof ve ? this.editPolygon(e, t) : e instanceof vn ? t.edit(e, this._factory) : e instanceof Qt ? t.edit(e, this._factory) : (yt.shouldNeverReachHere("Unsupported Geometry class: " + e.getClass().getName()), null);
|
|
14681
14681
|
};
|
|
14682
14682
|
jn.prototype.editGeometryCollection = function(e, t) {
|
|
14683
14683
|
for (var n = this, i = t.edit(e, this._factory), s = new G(), o = 0; o < i.getNumGeometries(); o++) {
|
|
14684
14684
|
var a = n.edit(i.getGeometryN(o), t);
|
|
14685
14685
|
a === null || a.isEmpty() || s.add(a);
|
|
14686
14686
|
}
|
|
14687
|
-
return i.getClass() === Ma ? this._factory.createMultiPoint(s.toArray([])) : i.getClass() === Ns ? this._factory.createMultiLineString(s.toArray([])) : i.getClass() ===
|
|
14687
|
+
return i.getClass() === Ma ? this._factory.createMultiPoint(s.toArray([])) : i.getClass() === Ns ? this._factory.createMultiLineString(s.toArray([])) : i.getClass() === Wr ? this._factory.createMultiPolygon(s.toArray([])) : this._factory.createGeometryCollection(s.toArray([]));
|
|
14688
14688
|
};
|
|
14689
14689
|
jn.prototype.editPolygon = function(e, t) {
|
|
14690
14690
|
var n = this, i = t.edit(e, this._factory);
|
|
@@ -14918,7 +14918,7 @@ var mm = function(r) {
|
|
|
14918
14918
|
n.add(s.value), s = i.next();
|
|
14919
14919
|
return n;
|
|
14920
14920
|
}, e.prototype.entrySet = function() {
|
|
14921
|
-
var n = new
|
|
14921
|
+
var n = new Wh();
|
|
14922
14922
|
return this.map_.entries().forEach(function(i) {
|
|
14923
14923
|
return n.add(i);
|
|
14924
14924
|
}), n;
|
|
@@ -15116,10 +15116,10 @@ Et.prototype.getSRID = function() {
|
|
|
15116
15116
|
};
|
|
15117
15117
|
Et.prototype.createGeometryCollection = function() {
|
|
15118
15118
|
if (arguments.length === 0)
|
|
15119
|
-
return new
|
|
15119
|
+
return new We(null, this);
|
|
15120
15120
|
if (arguments.length === 1) {
|
|
15121
15121
|
var e = arguments[0];
|
|
15122
|
-
return new
|
|
15122
|
+
return new We(e, this);
|
|
15123
15123
|
}
|
|
15124
15124
|
};
|
|
15125
15125
|
Et.prototype.createGeometry = function(e) {
|
|
@@ -15151,10 +15151,10 @@ Et.prototype.createLinearRing = function() {
|
|
|
15151
15151
|
};
|
|
15152
15152
|
Et.prototype.createMultiPolygon = function() {
|
|
15153
15153
|
if (arguments.length === 0)
|
|
15154
|
-
return new
|
|
15154
|
+
return new Wr(null, this);
|
|
15155
15155
|
if (arguments.length === 1) {
|
|
15156
15156
|
var e = arguments[0];
|
|
15157
|
-
return new
|
|
15157
|
+
return new Wr(e, this);
|
|
15158
15158
|
}
|
|
15159
15159
|
};
|
|
15160
15160
|
Et.prototype.createMultiPoint = function() {
|
|
@@ -15654,8 +15654,8 @@ Cr.prototype.getRightmostSide = function(e, t) {
|
|
|
15654
15654
|
Cr.prototype.findRightmostEdgeAtVertex = function() {
|
|
15655
15655
|
var e = this._minDe.getEdge().getCoordinates();
|
|
15656
15656
|
yt.isTrue(this._minIndex > 0 && this._minIndex < e.length, "rightmost point expected to be interior vertex of edge");
|
|
15657
|
-
var t = e[this._minIndex - 1], n = e[this._minIndex + 1], i =
|
|
15658
|
-
(t.y < this._minCoord.y && n.y < this._minCoord.y && i ===
|
|
15657
|
+
var t = e[this._minIndex - 1], n = e[this._minIndex + 1], i = q.computeOrientation(this._minCoord, n, t), s = !1;
|
|
15658
|
+
(t.y < this._minCoord.y && n.y < this._minCoord.y && i === q.COUNTERCLOCKWISE || t.y > this._minCoord.y && n.y > this._minCoord.y && i === q.CLOCKWISE) && (s = !0), s && (this._minIndex = this._minIndex - 1);
|
|
15659
15659
|
};
|
|
15660
15660
|
Cr.prototype.getRightmostSideOfSegment = function(e, t) {
|
|
15661
15661
|
var n = e.getEdge(), i = n.getCoordinates();
|
|
@@ -15715,19 +15715,19 @@ wc.prototype.removeFirst = function() {
|
|
|
15715
15715
|
wc.prototype.isEmpty = function() {
|
|
15716
15716
|
return this.array_.length === 0;
|
|
15717
15717
|
};
|
|
15718
|
-
var
|
|
15718
|
+
var qe = function() {
|
|
15719
15719
|
this._finder = null, this._dirEdgeList = new G(), this._nodes = new G(), this._rightMostCoord = null, this._env = null, this._finder = new Cr();
|
|
15720
15720
|
};
|
|
15721
|
-
|
|
15721
|
+
qe.prototype.clearVisitedEdges = function() {
|
|
15722
15722
|
for (var e = this._dirEdgeList.iterator(); e.hasNext(); ) {
|
|
15723
15723
|
var t = e.next();
|
|
15724
15724
|
t.setVisited(!1);
|
|
15725
15725
|
}
|
|
15726
15726
|
};
|
|
15727
|
-
|
|
15727
|
+
qe.prototype.getRightmostCoordinate = function() {
|
|
15728
15728
|
return this._rightMostCoord;
|
|
15729
15729
|
};
|
|
15730
|
-
|
|
15730
|
+
qe.prototype.computeNodeDepth = function(e) {
|
|
15731
15731
|
for (var t = this, n = null, i = e.getEdges().iterator(); i.hasNext(); ) {
|
|
15732
15732
|
var s = i.next();
|
|
15733
15733
|
if (s.isVisited() || s.getSym().isVisited()) {
|
|
@@ -15743,22 +15743,22 @@ We.prototype.computeNodeDepth = function(e) {
|
|
|
15743
15743
|
a.setVisited(!0), t.copySymDepths(a);
|
|
15744
15744
|
}
|
|
15745
15745
|
};
|
|
15746
|
-
|
|
15746
|
+
qe.prototype.computeDepth = function(e) {
|
|
15747
15747
|
this.clearVisitedEdges();
|
|
15748
15748
|
var t = this._finder.getEdge();
|
|
15749
15749
|
t.setEdgeDepths(z.RIGHT, e), this.copySymDepths(t), this.computeDepths(t);
|
|
15750
15750
|
};
|
|
15751
|
-
|
|
15751
|
+
qe.prototype.create = function(e) {
|
|
15752
15752
|
this.addReachable(e), this._finder.findEdge(this._dirEdgeList), this._rightMostCoord = this._finder.getCoordinate();
|
|
15753
15753
|
};
|
|
15754
|
-
|
|
15754
|
+
qe.prototype.findResultEdges = function() {
|
|
15755
15755
|
for (var e = this._dirEdgeList.iterator(); e.hasNext(); ) {
|
|
15756
15756
|
var t = e.next();
|
|
15757
15757
|
t.getDepth(z.RIGHT) >= 1 && t.getDepth(z.LEFT) <= 0 && !t.isInteriorAreaEdge() && t.setInResult(!0);
|
|
15758
15758
|
}
|
|
15759
15759
|
};
|
|
15760
|
-
|
|
15761
|
-
var t = this, n = new
|
|
15760
|
+
qe.prototype.computeDepths = function(e) {
|
|
15761
|
+
var t = this, n = new Wh(), i = new wc(), s = e.getNode();
|
|
15762
15762
|
for (i.addLast(s), n.add(s), e.setVisited(!0); !i.isEmpty(); ) {
|
|
15763
15763
|
var o = i.removeFirst();
|
|
15764
15764
|
n.add(o), t.computeNodeDepth(o);
|
|
@@ -15771,11 +15771,11 @@ We.prototype.computeDepths = function(e) {
|
|
|
15771
15771
|
}
|
|
15772
15772
|
}
|
|
15773
15773
|
};
|
|
15774
|
-
|
|
15774
|
+
qe.prototype.compareTo = function(e) {
|
|
15775
15775
|
var t = e;
|
|
15776
15776
|
return this._rightMostCoord.x < t._rightMostCoord.x ? -1 : this._rightMostCoord.x > t._rightMostCoord.x ? 1 : 0;
|
|
15777
15777
|
};
|
|
15778
|
-
|
|
15778
|
+
qe.prototype.getEnvelope = function() {
|
|
15779
15779
|
if (this._env === null) {
|
|
15780
15780
|
for (var e = new Z(), t = this._dirEdgeList.iterator(); t.hasNext(); )
|
|
15781
15781
|
for (var n = t.next(), i = n.getEdge().getCoordinates(), s = 0; s < i.length - 1; s++)
|
|
@@ -15784,18 +15784,18 @@ We.prototype.getEnvelope = function() {
|
|
|
15784
15784
|
}
|
|
15785
15785
|
return this._env;
|
|
15786
15786
|
};
|
|
15787
|
-
|
|
15787
|
+
qe.prototype.addReachable = function(e) {
|
|
15788
15788
|
var t = this, n = new Dr();
|
|
15789
15789
|
for (n.add(e); !n.empty(); ) {
|
|
15790
15790
|
var i = n.pop();
|
|
15791
15791
|
t.add(i, n);
|
|
15792
15792
|
}
|
|
15793
15793
|
};
|
|
15794
|
-
|
|
15794
|
+
qe.prototype.copySymDepths = function(e) {
|
|
15795
15795
|
var t = e.getSym();
|
|
15796
15796
|
t.setDepth(z.LEFT, e.getDepth(z.RIGHT)), t.setDepth(z.RIGHT, e.getDepth(z.LEFT));
|
|
15797
15797
|
};
|
|
15798
|
-
|
|
15798
|
+
qe.prototype.add = function(e, t) {
|
|
15799
15799
|
var n = this;
|
|
15800
15800
|
e.setVisited(!0), this._nodes.add(e);
|
|
15801
15801
|
for (var i = e.getEdges().iterator(); i.hasNext(); ) {
|
|
@@ -15805,17 +15805,17 @@ We.prototype.add = function(e, t) {
|
|
|
15805
15805
|
a.isVisited() || t.push(a);
|
|
15806
15806
|
}
|
|
15807
15807
|
};
|
|
15808
|
-
|
|
15808
|
+
qe.prototype.getNodes = function() {
|
|
15809
15809
|
return this._nodes;
|
|
15810
15810
|
};
|
|
15811
|
-
|
|
15811
|
+
qe.prototype.getDirectedEdges = function() {
|
|
15812
15812
|
return this._dirEdgeList;
|
|
15813
15813
|
};
|
|
15814
|
-
|
|
15814
|
+
qe.prototype.interfaces_ = function() {
|
|
15815
15815
|
return [Un];
|
|
15816
15816
|
};
|
|
15817
|
-
|
|
15818
|
-
return
|
|
15817
|
+
qe.prototype.getClass = function() {
|
|
15818
|
+
return qe;
|
|
15819
15819
|
};
|
|
15820
15820
|
var Gt = function r() {
|
|
15821
15821
|
var e = this;
|
|
@@ -16031,7 +16031,7 @@ ce.prototype.computeRing = function() {
|
|
|
16031
16031
|
return null;
|
|
16032
16032
|
for (var t = new Array(this._pts.size()).fill(null), n = 0; n < this._pts.size(); n++)
|
|
16033
16033
|
t[n] = e._pts.get(n);
|
|
16034
|
-
this._ring = this._geometryFactory.createLinearRing(t), this._isHole =
|
|
16034
|
+
this._ring = this._geometryFactory.createLinearRing(t), this._isHole = q.isCCW(this._ring.getCoordinates());
|
|
16035
16035
|
};
|
|
16036
16036
|
ce.prototype.isIsolated = function() {
|
|
16037
16037
|
return this._label.getGeometryCount() === 1;
|
|
@@ -16091,7 +16091,7 @@ ce.prototype.setInResult = function() {
|
|
|
16091
16091
|
};
|
|
16092
16092
|
ce.prototype.containsPoint = function(e) {
|
|
16093
16093
|
var t = this.getLinearRing(), n = t.getEnvelopeInternal();
|
|
16094
|
-
if (!n.contains(e) || !
|
|
16094
|
+
if (!n.contains(e) || !q.isPointInRing(e, t.getCoordinates()))
|
|
16095
16095
|
return !1;
|
|
16096
16096
|
for (var i = this._holes.iterator(); i.hasNext(); ) {
|
|
16097
16097
|
var s = i.next();
|
|
@@ -16417,7 +16417,7 @@ var Ae = function() {
|
|
|
16417
16417
|
}
|
|
16418
16418
|
};
|
|
16419
16419
|
Ae.prototype.compareDirection = function(e) {
|
|
16420
|
-
return this._dx === e._dx && this._dy === e._dy ? 0 : this._quadrant > e._quadrant ? 1 : this._quadrant < e._quadrant ? -1 :
|
|
16420
|
+
return this._dx === e._dx && this._dy === e._dy ? 0 : this._quadrant > e._quadrant ? 1 : this._quadrant < e._quadrant ? -1 : q.computeOrientation(e._p0, e._p1, this._p1);
|
|
16421
16421
|
};
|
|
16422
16422
|
Ae.prototype.getDy = function() {
|
|
16423
16423
|
return this._dy;
|
|
@@ -16616,7 +16616,7 @@ Kt.prototype.linkAllDirectedEdges = function() {
|
|
|
16616
16616
|
}
|
|
16617
16617
|
};
|
|
16618
16618
|
Kt.prototype.matchInSameDirection = function(e, t, n, i) {
|
|
16619
|
-
return e.equals(n) ?
|
|
16619
|
+
return e.equals(n) ? q.computeOrientation(e, t, i) === q.COLLINEAR && jt.quadrant(e, t) === jt.quadrant(n, i) : !1;
|
|
16620
16620
|
};
|
|
16621
16621
|
Kt.prototype.getEdgeEnds = function() {
|
|
16622
16622
|
return this._edgeEndList;
|
|
@@ -16754,7 +16754,7 @@ yn.prototype.findEdgeRingContaining = function(e, t) {
|
|
|
16754
16754
|
var l = u.next(), c = l.getLinearRing(), h = c.getEnvelopeInternal();
|
|
16755
16755
|
o !== null && (a = o.getLinearRing().getEnvelopeInternal());
|
|
16756
16756
|
var f = !1;
|
|
16757
|
-
h.contains(i) &&
|
|
16757
|
+
h.contains(i) && q.isPointInRing(s, c.getCoordinates()) && (f = !0), f && (o === null || a.contains(h)) && (o = l);
|
|
16758
16758
|
}
|
|
16759
16759
|
return o;
|
|
16760
16760
|
};
|
|
@@ -17628,11 +17628,11 @@ Q.prototype.minX = function() {
|
|
|
17628
17628
|
};
|
|
17629
17629
|
Q.prototype.orientationIndex = function() {
|
|
17630
17630
|
if (arguments[0] instanceof Q) {
|
|
17631
|
-
var e = arguments[0], t =
|
|
17631
|
+
var e = arguments[0], t = q.orientationIndex(this.p0, this.p1, e.p0), n = q.orientationIndex(this.p0, this.p1, e.p1);
|
|
17632
17632
|
return t >= 0 && n >= 0 || t <= 0 && n <= 0 ? Math.max(t, n) : 0;
|
|
17633
17633
|
} else if (arguments[0] instanceof D) {
|
|
17634
17634
|
var i = arguments[0];
|
|
17635
|
-
return
|
|
17635
|
+
return q.orientationIndex(this.p0, this.p1, i);
|
|
17636
17636
|
}
|
|
17637
17637
|
};
|
|
17638
17638
|
Q.prototype.toGeometry = function(e) {
|
|
@@ -17678,7 +17678,7 @@ Q.prototype.getCoordinate = function(e) {
|
|
|
17678
17678
|
return e === 0 ? this.p0 : this.p1;
|
|
17679
17679
|
};
|
|
17680
17680
|
Q.prototype.distancePerpendicular = function(e) {
|
|
17681
|
-
return
|
|
17681
|
+
return q.distancePointLinePerpendicular(e, this.p0, this.p1);
|
|
17682
17682
|
};
|
|
17683
17683
|
Q.prototype.minY = function() {
|
|
17684
17684
|
return Math.min(this.p0.y, this.p1.y);
|
|
@@ -17779,10 +17779,10 @@ Q.prototype.isHorizontal = function() {
|
|
|
17779
17779
|
Q.prototype.distance = function() {
|
|
17780
17780
|
if (arguments[0] instanceof Q) {
|
|
17781
17781
|
var e = arguments[0];
|
|
17782
|
-
return
|
|
17782
|
+
return q.distanceLineLine(this.p0, this.p1, e.p0, e.p1);
|
|
17783
17783
|
} else if (arguments[0] instanceof D) {
|
|
17784
17784
|
var t = arguments[0];
|
|
17785
|
-
return
|
|
17785
|
+
return q.distancePointLine(t, this.p0, this.p1);
|
|
17786
17786
|
}
|
|
17787
17787
|
};
|
|
17788
17788
|
Q.prototype.pointAlong = function(e) {
|
|
@@ -18114,7 +18114,7 @@ Fi.DEFAULT_SIMPLIFY_FACTOR.get = function() {
|
|
|
18114
18114
|
};
|
|
18115
18115
|
Object.defineProperties(Lt, Fi);
|
|
18116
18116
|
var te = function(e) {
|
|
18117
|
-
this._distanceTol = null, this._isDeleted = null, this._angleOrientation =
|
|
18117
|
+
this._distanceTol = null, this._isDeleted = null, this._angleOrientation = q.COUNTERCLOCKWISE, this._inputLine = e || null;
|
|
18118
18118
|
}, el = { INIT: { configurable: !0 }, DELETE: { configurable: !0 }, KEEP: { configurable: !0 }, NUM_PTS_TO_CHECK: { configurable: !0 } };
|
|
18119
18119
|
te.prototype.isDeletable = function(e, t, n, i) {
|
|
18120
18120
|
var s = this._inputLine[e], o = this._inputLine[t], a = this._inputLine[n];
|
|
@@ -18128,10 +18128,10 @@ te.prototype.deleteShallowConcavities = function() {
|
|
|
18128
18128
|
return s;
|
|
18129
18129
|
};
|
|
18130
18130
|
te.prototype.isShallowConcavity = function(e, t, n, i) {
|
|
18131
|
-
var s =
|
|
18131
|
+
var s = q.computeOrientation(e, t, n), o = s === this._angleOrientation;
|
|
18132
18132
|
if (!o)
|
|
18133
18133
|
return !1;
|
|
18134
|
-
var a =
|
|
18134
|
+
var a = q.distancePointLine(t, e, n);
|
|
18135
18135
|
return a < i;
|
|
18136
18136
|
};
|
|
18137
18137
|
te.prototype.isShallowSampled = function(e, t, n, i, s) {
|
|
@@ -18143,12 +18143,12 @@ te.prototype.isShallowSampled = function(e, t, n, i, s) {
|
|
|
18143
18143
|
return !0;
|
|
18144
18144
|
};
|
|
18145
18145
|
te.prototype.isConcave = function(e, t, n) {
|
|
18146
|
-
var i =
|
|
18146
|
+
var i = q.computeOrientation(e, t, n), s = i === this._angleOrientation;
|
|
18147
18147
|
return s;
|
|
18148
18148
|
};
|
|
18149
18149
|
te.prototype.simplify = function(e) {
|
|
18150
18150
|
var t = this;
|
|
18151
|
-
this._distanceTol = Math.abs(e), e < 0 && (this._angleOrientation =
|
|
18151
|
+
this._distanceTol = Math.abs(e), e < 0 && (this._angleOrientation = q.CLOCKWISE), this._isDeleted = new Array(this._inputLine.length).fill(null);
|
|
18152
18152
|
var n = !1;
|
|
18153
18153
|
do
|
|
18154
18154
|
n = t.deleteShallowConcavities();
|
|
@@ -18161,7 +18161,7 @@ te.prototype.findNextNonDeletedIndex = function(e) {
|
|
|
18161
18161
|
return t;
|
|
18162
18162
|
};
|
|
18163
18163
|
te.prototype.isShallow = function(e, t, n, i) {
|
|
18164
|
-
var s =
|
|
18164
|
+
var s = q.distancePointLine(t, e, n);
|
|
18165
18165
|
return s < i;
|
|
18166
18166
|
};
|
|
18167
18167
|
te.prototype.collapseLine = function() {
|
|
@@ -18330,27 +18330,27 @@ Ao.PI_OVER_4.get = function() {
|
|
|
18330
18330
|
return Math.PI / 4;
|
|
18331
18331
|
};
|
|
18332
18332
|
Ao.COUNTERCLOCKWISE.get = function() {
|
|
18333
|
-
return
|
|
18333
|
+
return q.COUNTERCLOCKWISE;
|
|
18334
18334
|
};
|
|
18335
18335
|
Ao.CLOCKWISE.get = function() {
|
|
18336
|
-
return
|
|
18336
|
+
return q.CLOCKWISE;
|
|
18337
18337
|
};
|
|
18338
18338
|
Ao.NONE.get = function() {
|
|
18339
|
-
return
|
|
18339
|
+
return q.COLLINEAR;
|
|
18340
18340
|
};
|
|
18341
18341
|
Object.defineProperties(bt, Ao);
|
|
18342
|
-
var
|
|
18342
|
+
var qt = function r() {
|
|
18343
18343
|
this._maxCurveSegmentError = 0, this._filletAngleQuantum = null, this._closingSegLengthFactor = 1, this._segList = null, this._distance = 0, this._precisionModel = null, this._bufParams = null, this._li = null, this._s0 = null, this._s1 = null, this._s2 = null, this._seg0 = new Q(), this._seg1 = new Q(), this._offset0 = new Q(), this._offset1 = new Q(), this._side = 0, this._hasNarrowConcaveAngle = !1;
|
|
18344
18344
|
var e = arguments[0], t = arguments[1], n = arguments[2];
|
|
18345
18345
|
this._precisionModel = e, this._bufParams = t, this._li = new Us(), this._filletAngleQuantum = Math.PI / 2 / t.getQuadrantSegments(), t.getQuadrantSegments() >= 8 && t.getJoinStyle() === Lt.JOIN_ROUND && (this._closingSegLengthFactor = r.MAX_CLOSING_SEG_LEN_FACTOR), this.init(n);
|
|
18346
18346
|
}, nl = { OFFSET_SEGMENT_SEPARATION_FACTOR: { configurable: !0 }, INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR: { configurable: !0 }, CURVE_VERTEX_SNAP_DISTANCE_FACTOR: { configurable: !0 }, MAX_CLOSING_SEG_LEN_FACTOR: { configurable: !0 } };
|
|
18347
|
-
|
|
18347
|
+
qt.prototype.addNextSegment = function(e, t) {
|
|
18348
18348
|
if (this._s0 = this._s1, this._s1 = this._s2, this._s2 = e, this._seg0.setCoordinates(this._s0, this._s1), this.computeOffsetSegment(this._seg0, this._side, this._distance, this._offset0), this._seg1.setCoordinates(this._s1, this._s2), this.computeOffsetSegment(this._seg1, this._side, this._distance, this._offset1), this._s1.equals(this._s2))
|
|
18349
18349
|
return null;
|
|
18350
|
-
var n =
|
|
18350
|
+
var n = q.computeOrientation(this._s0, this._s1, this._s2), i = n === q.CLOCKWISE && this._side === z.LEFT || n === q.COUNTERCLOCKWISE && this._side === z.RIGHT;
|
|
18351
18351
|
n === 0 ? this.addCollinear(t) : i ? this.addOutsideTurn(n, t) : this.addInsideTurn(n, t);
|
|
18352
18352
|
};
|
|
18353
|
-
|
|
18353
|
+
qt.prototype.addLineEndCap = function(e, t) {
|
|
18354
18354
|
var n = new Q(e, t), i = new Q();
|
|
18355
18355
|
this.computeOffsetSegment(n, z.LEFT, this._distance, i);
|
|
18356
18356
|
var s = new Q();
|
|
@@ -18358,7 +18358,7 @@ Wt.prototype.addLineEndCap = function(e, t) {
|
|
|
18358
18358
|
var o = t.x - e.x, a = t.y - e.y, u = Math.atan2(a, o);
|
|
18359
18359
|
switch (this._bufParams.getEndCapStyle()) {
|
|
18360
18360
|
case Lt.CAP_ROUND:
|
|
18361
|
-
this._segList.addPt(i.p1), this.addFilletArc(t, u + Math.PI / 2, u - Math.PI / 2,
|
|
18361
|
+
this._segList.addPt(i.p1), this.addFilletArc(t, u + Math.PI / 2, u - Math.PI / 2, q.CLOCKWISE, this._distance), this._segList.addPt(s.p1);
|
|
18362
18362
|
break;
|
|
18363
18363
|
case Lt.CAP_FLAT:
|
|
18364
18364
|
this._segList.addPt(i.p1), this._segList.addPt(s.p1);
|
|
@@ -18371,11 +18371,11 @@ Wt.prototype.addLineEndCap = function(e, t) {
|
|
|
18371
18371
|
break;
|
|
18372
18372
|
}
|
|
18373
18373
|
};
|
|
18374
|
-
|
|
18374
|
+
qt.prototype.getCoordinates = function() {
|
|
18375
18375
|
var e = this._segList.getCoordinates();
|
|
18376
18376
|
return e;
|
|
18377
18377
|
};
|
|
18378
|
-
|
|
18378
|
+
qt.prototype.addMitreJoin = function(e, t, n, i) {
|
|
18379
18379
|
var s = !0, o = null;
|
|
18380
18380
|
try {
|
|
18381
18381
|
o = Hn.intersection(t.p0, t.p1, n.p0, n.p1);
|
|
@@ -18390,40 +18390,40 @@ Wt.prototype.addMitreJoin = function(e, t, n, i) {
|
|
|
18390
18390
|
}
|
|
18391
18391
|
s ? this._segList.addPt(o) : this.addLimitedMitreJoin(t, n, i, this._bufParams.getMitreLimit());
|
|
18392
18392
|
};
|
|
18393
|
-
|
|
18393
|
+
qt.prototype.addFilletCorner = function(e, t, n, i, s) {
|
|
18394
18394
|
var o = t.x - e.x, a = t.y - e.y, u = Math.atan2(a, o), l = n.x - e.x, c = n.y - e.y, h = Math.atan2(c, l);
|
|
18395
|
-
i ===
|
|
18395
|
+
i === q.CLOCKWISE ? u <= h && (u += 2 * Math.PI) : u >= h && (u -= 2 * Math.PI), this._segList.addPt(t), this.addFilletArc(e, u, h, i, s), this._segList.addPt(n);
|
|
18396
18396
|
};
|
|
18397
|
-
|
|
18398
|
-
if (this._offset0.p1.distance(this._offset1.p0) < this._distance *
|
|
18397
|
+
qt.prototype.addOutsideTurn = function(e, t) {
|
|
18398
|
+
if (this._offset0.p1.distance(this._offset1.p0) < this._distance * qt.OFFSET_SEGMENT_SEPARATION_FACTOR)
|
|
18399
18399
|
return this._segList.addPt(this._offset0.p1), null;
|
|
18400
18400
|
this._bufParams.getJoinStyle() === Lt.JOIN_MITRE ? this.addMitreJoin(this._s1, this._offset0, this._offset1, this._distance) : this._bufParams.getJoinStyle() === Lt.JOIN_BEVEL ? this.addBevelJoin(this._offset0, this._offset1) : (t && this._segList.addPt(this._offset0.p1), this.addFilletCorner(this._s1, this._offset0.p1, this._offset1.p0, e, this._distance), this._segList.addPt(this._offset1.p0));
|
|
18401
18401
|
};
|
|
18402
|
-
|
|
18402
|
+
qt.prototype.createSquare = function(e) {
|
|
18403
18403
|
this._segList.addPt(new D(e.x + this._distance, e.y + this._distance)), this._segList.addPt(new D(e.x + this._distance, e.y - this._distance)), this._segList.addPt(new D(e.x - this._distance, e.y - this._distance)), this._segList.addPt(new D(e.x - this._distance, e.y + this._distance)), this._segList.closeRing();
|
|
18404
18404
|
};
|
|
18405
|
-
|
|
18405
|
+
qt.prototype.addSegments = function(e, t) {
|
|
18406
18406
|
this._segList.addPts(e, t);
|
|
18407
18407
|
};
|
|
18408
|
-
|
|
18408
|
+
qt.prototype.addFirstSegment = function() {
|
|
18409
18409
|
this._segList.addPt(this._offset1.p0);
|
|
18410
18410
|
};
|
|
18411
|
-
|
|
18411
|
+
qt.prototype.addLastSegment = function() {
|
|
18412
18412
|
this._segList.addPt(this._offset1.p1);
|
|
18413
18413
|
};
|
|
18414
|
-
|
|
18414
|
+
qt.prototype.initSideSegments = function(e, t, n) {
|
|
18415
18415
|
this._s1 = e, this._s2 = t, this._side = n, this._seg1.setCoordinates(e, t), this.computeOffsetSegment(this._seg1, n, this._distance, this._offset1);
|
|
18416
18416
|
};
|
|
18417
|
-
|
|
18417
|
+
qt.prototype.addLimitedMitreJoin = function(e, t, n, i) {
|
|
18418
18418
|
var s = this._seg0.p1, o = bt.angle(s, this._seg0.p0), a = bt.angleBetweenOriented(this._seg0.p0, s, this._seg1.p1), u = a / 2, l = bt.normalize(o + u), c = bt.normalize(l + Math.PI), h = i * n, f = h * Math.abs(Math.sin(u)), p = n - f, m = s.x + h * Math.cos(c), E = s.y + h * Math.sin(c), C = new D(m, E), b = new Q(s, C), v = b.pointAlongOffset(1, p), y = b.pointAlongOffset(1, -p);
|
|
18419
18419
|
this._side === z.LEFT ? (this._segList.addPt(v), this._segList.addPt(y)) : (this._segList.addPt(y), this._segList.addPt(v));
|
|
18420
18420
|
};
|
|
18421
|
-
|
|
18421
|
+
qt.prototype.computeOffsetSegment = function(e, t, n, i) {
|
|
18422
18422
|
var s = t === z.LEFT ? 1 : -1, o = e.p1.x - e.p0.x, a = e.p1.y - e.p0.y, u = Math.sqrt(o * o + a * a), l = s * n * o / u, c = s * n * a / u;
|
|
18423
18423
|
i.p0.x = e.p0.x - c, i.p0.y = e.p0.y + l, i.p1.x = e.p1.x - c, i.p1.y = e.p1.y + l;
|
|
18424
18424
|
};
|
|
18425
|
-
|
|
18426
|
-
var o = this, a = i ===
|
|
18425
|
+
qt.prototype.addFilletArc = function(e, t, n, i, s) {
|
|
18426
|
+
var o = this, a = i === q.CLOCKWISE ? -1 : 1, u = Math.abs(t - n), l = Math.trunc(u / this._filletAngleQuantum + 0.5);
|
|
18427
18427
|
if (l < 1)
|
|
18428
18428
|
return null;
|
|
18429
18429
|
for (var c = 0, h = u / l, f = c, p = new D(); f < u; ) {
|
|
@@ -18431,10 +18431,10 @@ Wt.prototype.addFilletArc = function(e, t, n, i, s) {
|
|
|
18431
18431
|
p.x = e.x + s * Math.cos(m), p.y = e.y + s * Math.sin(m), o._segList.addPt(p), f += h;
|
|
18432
18432
|
}
|
|
18433
18433
|
};
|
|
18434
|
-
|
|
18434
|
+
qt.prototype.addInsideTurn = function(e, t) {
|
|
18435
18435
|
if (this._li.computeIntersection(this._offset0.p0, this._offset0.p1, this._offset1.p0, this._offset1.p1), this._li.hasIntersection())
|
|
18436
18436
|
this._segList.addPt(this._li.getIntersection(0));
|
|
18437
|
-
else if (this._hasNarrowConcaveAngle = !0, this._offset0.p1.distance(this._offset1.p0) < this._distance *
|
|
18437
|
+
else if (this._hasNarrowConcaveAngle = !0, this._offset0.p1.distance(this._offset1.p0) < this._distance * qt.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR)
|
|
18438
18438
|
this._segList.addPt(this._offset0.p1);
|
|
18439
18439
|
else {
|
|
18440
18440
|
if (this._segList.addPt(this._offset0.p1), this._closingSegLengthFactor > 0) {
|
|
@@ -18447,32 +18447,32 @@ Wt.prototype.addInsideTurn = function(e, t) {
|
|
|
18447
18447
|
this._segList.addPt(this._offset1.p0);
|
|
18448
18448
|
}
|
|
18449
18449
|
};
|
|
18450
|
-
|
|
18450
|
+
qt.prototype.createCircle = function(e) {
|
|
18451
18451
|
var t = new D(e.x + this._distance, e.y);
|
|
18452
18452
|
this._segList.addPt(t), this.addFilletArc(e, 0, 2 * Math.PI, -1, this._distance), this._segList.closeRing();
|
|
18453
18453
|
};
|
|
18454
|
-
|
|
18454
|
+
qt.prototype.addBevelJoin = function(e, t) {
|
|
18455
18455
|
this._segList.addPt(e.p1), this._segList.addPt(t.p0);
|
|
18456
18456
|
};
|
|
18457
|
-
|
|
18458
|
-
this._distance = e, this._maxCurveSegmentError = e * (1 - Math.cos(this._filletAngleQuantum / 2)), this._segList = new Mn(), this._segList.setPrecisionModel(this._precisionModel), this._segList.setMinimumVertexDistance(e *
|
|
18457
|
+
qt.prototype.init = function(e) {
|
|
18458
|
+
this._distance = e, this._maxCurveSegmentError = e * (1 - Math.cos(this._filletAngleQuantum / 2)), this._segList = new Mn(), this._segList.setPrecisionModel(this._precisionModel), this._segList.setMinimumVertexDistance(e * qt.CURVE_VERTEX_SNAP_DISTANCE_FACTOR);
|
|
18459
18459
|
};
|
|
18460
|
-
|
|
18460
|
+
qt.prototype.addCollinear = function(e) {
|
|
18461
18461
|
this._li.computeIntersection(this._s0, this._s1, this._s1, this._s2);
|
|
18462
18462
|
var t = this._li.getIntersectionNum();
|
|
18463
|
-
t >= 2 && (this._bufParams.getJoinStyle() === Lt.JOIN_BEVEL || this._bufParams.getJoinStyle() === Lt.JOIN_MITRE ? (e && this._segList.addPt(this._offset0.p1), this._segList.addPt(this._offset1.p0)) : this.addFilletCorner(this._s1, this._offset0.p1, this._offset1.p0,
|
|
18463
|
+
t >= 2 && (this._bufParams.getJoinStyle() === Lt.JOIN_BEVEL || this._bufParams.getJoinStyle() === Lt.JOIN_MITRE ? (e && this._segList.addPt(this._offset0.p1), this._segList.addPt(this._offset1.p0)) : this.addFilletCorner(this._s1, this._offset0.p1, this._offset1.p0, q.CLOCKWISE, this._distance));
|
|
18464
18464
|
};
|
|
18465
|
-
|
|
18465
|
+
qt.prototype.closeRing = function() {
|
|
18466
18466
|
this._segList.closeRing();
|
|
18467
18467
|
};
|
|
18468
|
-
|
|
18468
|
+
qt.prototype.hasNarrowConcaveAngle = function() {
|
|
18469
18469
|
return this._hasNarrowConcaveAngle;
|
|
18470
18470
|
};
|
|
18471
|
-
|
|
18471
|
+
qt.prototype.interfaces_ = function() {
|
|
18472
18472
|
return [];
|
|
18473
18473
|
};
|
|
18474
|
-
|
|
18475
|
-
return
|
|
18474
|
+
qt.prototype.getClass = function() {
|
|
18475
|
+
return qt;
|
|
18476
18476
|
};
|
|
18477
18477
|
nl.OFFSET_SEGMENT_SEPARATION_FACTOR.get = function() {
|
|
18478
18478
|
return 1e-3;
|
|
@@ -18486,7 +18486,7 @@ nl.CURVE_VERTEX_SNAP_DISTANCE_FACTOR.get = function() {
|
|
|
18486
18486
|
nl.MAX_CLOSING_SEG_LEN_FACTOR.get = function() {
|
|
18487
18487
|
return 80;
|
|
18488
18488
|
};
|
|
18489
|
-
Object.defineProperties(
|
|
18489
|
+
Object.defineProperties(qt, nl);
|
|
18490
18490
|
var sn = function() {
|
|
18491
18491
|
this._distance = 0, this._precisionModel = null, this._bufParams = null;
|
|
18492
18492
|
var e = arguments[0], t = arguments[1];
|
|
@@ -18594,7 +18594,7 @@ sn.prototype.computeOffsetCurve = function(e, t, n) {
|
|
|
18594
18594
|
n.addLastSegment();
|
|
18595
18595
|
};
|
|
18596
18596
|
sn.prototype.getSegGen = function(e) {
|
|
18597
|
-
return new
|
|
18597
|
+
return new qt(this._precisionModel, this._bufParams, e);
|
|
18598
18598
|
};
|
|
18599
18599
|
sn.prototype.interfaces_ = function() {
|
|
18600
18600
|
return [];
|
|
@@ -18608,7 +18608,7 @@ sn.copyCoordinates = function(e) {
|
|
|
18608
18608
|
return t;
|
|
18609
18609
|
};
|
|
18610
18610
|
var _o = function() {
|
|
18611
|
-
this._subgraphs = null, this._seg = new Q(), this._cga = new
|
|
18611
|
+
this._subgraphs = null, this._seg = new Q(), this._cga = new q();
|
|
18612
18612
|
var e = arguments[0];
|
|
18613
18613
|
this._subgraphs = e;
|
|
18614
18614
|
}, Sm = { DepthSegment: { configurable: !0 } };
|
|
@@ -18625,7 +18625,7 @@ _o.prototype.findStabbedSegments = function() {
|
|
|
18625
18625
|
for (var a = arguments[0], u = arguments[1], l = arguments[2], c = u.getEdge().getCoordinates(), h = 0; h < c.length - 1; h++) {
|
|
18626
18626
|
e._seg.p0 = c[h], e._seg.p1 = c[h + 1], e._seg.p0.y > e._seg.p1.y && e._seg.reverse();
|
|
18627
18627
|
var f = Math.max(e._seg.p0.x, e._seg.p1.x);
|
|
18628
|
-
if (!(f < a.x) && !e._seg.isHorizontal() && !(a.y < e._seg.p0.y || a.y > e._seg.p1.y) &&
|
|
18628
|
+
if (!(f < a.x) && !e._seg.isHorizontal() && !(a.y < e._seg.p0.y || a.y > e._seg.p1.y) && q.computeOrientation(e._seg.p0, e._seg.p1, a) !== q.RIGHT) {
|
|
18629
18629
|
var p = u.getDepth(z.LEFT);
|
|
18630
18630
|
e._seg.p0.equals(c[h]) || (p = u.getDepth(z.RIGHT));
|
|
18631
18631
|
var m = new Ms(e._seg, p);
|
|
@@ -18789,7 +18789,7 @@ zn.prototype.addPolygon = function(e) {
|
|
|
18789
18789
|
}
|
|
18790
18790
|
};
|
|
18791
18791
|
zn.prototype.isTriangleErodedCompletely = function(e, t) {
|
|
18792
|
-
var n = new At(e[0], e[1], e[2]), i = n.inCentre(), s =
|
|
18792
|
+
var n = new At(e[0], e[1], e[2]), i = n.inCentre(), s = q.distancePointLine(i, n.p0, n.p1);
|
|
18793
18793
|
return s < Math.abs(t);
|
|
18794
18794
|
};
|
|
18795
18795
|
zn.prototype.addLineString = function(e) {
|
|
@@ -18811,14 +18811,14 @@ zn.prototype.addPolygonRing = function(e, t, n, i, s) {
|
|
|
18811
18811
|
if (t === 0 && e.length < Kr.MINIMUM_VALID_SIZE)
|
|
18812
18812
|
return null;
|
|
18813
18813
|
var o = i, a = s;
|
|
18814
|
-
e.length >= Kr.MINIMUM_VALID_SIZE &&
|
|
18814
|
+
e.length >= Kr.MINIMUM_VALID_SIZE && q.isCCW(e) && (o = s, a = i, n = z.opposite(n));
|
|
18815
18815
|
var u = this._curveBuilder.getRingCurve(e, n, t);
|
|
18816
18816
|
this.addCurve(u, o, a);
|
|
18817
18817
|
};
|
|
18818
18818
|
zn.prototype.add = function(e) {
|
|
18819
18819
|
if (e.isEmpty())
|
|
18820
18820
|
return null;
|
|
18821
|
-
e instanceof ve ? this.addPolygon(e) : e instanceof Qt ? this.addLineString(e) : e instanceof vn ? this.addPoint(e) : e instanceof Ma ? this.addCollection(e) : e instanceof Ns ? this.addCollection(e) : e instanceof
|
|
18821
|
+
e instanceof ve ? this.addPolygon(e) : e instanceof Qt ? this.addLineString(e) : e instanceof vn ? this.addPoint(e) : e instanceof Ma ? this.addCollection(e) : e instanceof Ns ? this.addCollection(e) : e instanceof Wr ? this.addCollection(e) : e instanceof We && this.addCollection(e);
|
|
18822
18822
|
};
|
|
18823
18823
|
zn.prototype.isErodedCompletely = function(e, t) {
|
|
18824
18824
|
var n = e.getCoordinates();
|
|
@@ -18851,14 +18851,14 @@ Aa.prototype.interfaces_ = function() {
|
|
|
18851
18851
|
Aa.prototype.getClass = function() {
|
|
18852
18852
|
return Aa;
|
|
18853
18853
|
};
|
|
18854
|
-
var
|
|
18854
|
+
var qr = function() {
|
|
18855
18855
|
this._parent = null, this._atStart = null, this._max = null, this._index = null, this._subcollectionIterator = null;
|
|
18856
18856
|
var e = arguments[0];
|
|
18857
18857
|
this._parent = e, this._atStart = !0, this._index = 0, this._max = e.getNumGeometries();
|
|
18858
18858
|
};
|
|
18859
|
-
|
|
18859
|
+
qr.prototype.next = function() {
|
|
18860
18860
|
if (this._atStart)
|
|
18861
|
-
return this._atStart = !1,
|
|
18861
|
+
return this._atStart = !1, qr.isAtomic(this._parent) && this._index++, this._parent;
|
|
18862
18862
|
if (this._subcollectionIterator !== null) {
|
|
18863
18863
|
if (this._subcollectionIterator.hasNext())
|
|
18864
18864
|
return this._subcollectionIterator.next();
|
|
@@ -18867,12 +18867,12 @@ Wr.prototype.next = function() {
|
|
|
18867
18867
|
if (this._index >= this._max)
|
|
18868
18868
|
throw new Ka();
|
|
18869
18869
|
var e = this._parent.getGeometryN(this._index++);
|
|
18870
|
-
return e instanceof
|
|
18870
|
+
return e instanceof We ? (this._subcollectionIterator = new qr(e), this._subcollectionIterator.next()) : e;
|
|
18871
18871
|
};
|
|
18872
|
-
|
|
18872
|
+
qr.prototype.remove = function() {
|
|
18873
18873
|
throw new Error(this.getClass().getName());
|
|
18874
18874
|
};
|
|
18875
|
-
|
|
18875
|
+
qr.prototype.hasNext = function() {
|
|
18876
18876
|
if (this._atStart)
|
|
18877
18877
|
return !0;
|
|
18878
18878
|
if (this._subcollectionIterator !== null) {
|
|
@@ -18882,14 +18882,14 @@ Wr.prototype.hasNext = function() {
|
|
|
18882
18882
|
}
|
|
18883
18883
|
return !(this._index >= this._max);
|
|
18884
18884
|
};
|
|
18885
|
-
|
|
18885
|
+
qr.prototype.interfaces_ = function() {
|
|
18886
18886
|
return [$a];
|
|
18887
18887
|
};
|
|
18888
|
-
|
|
18889
|
-
return
|
|
18888
|
+
qr.prototype.getClass = function() {
|
|
18889
|
+
return qr;
|
|
18890
18890
|
};
|
|
18891
|
-
|
|
18892
|
-
return !(e instanceof
|
|
18891
|
+
qr.isAtomic = function(e) {
|
|
18892
|
+
return !(e instanceof We);
|
|
18893
18893
|
};
|
|
18894
18894
|
var Pn = function() {
|
|
18895
18895
|
this._geom = null;
|
|
@@ -18906,7 +18906,7 @@ Pn.prototype.getClass = function() {
|
|
|
18906
18906
|
return Pn;
|
|
18907
18907
|
};
|
|
18908
18908
|
Pn.isPointInRing = function(e, t) {
|
|
18909
|
-
return t.getEnvelopeInternal().intersects(e) ?
|
|
18909
|
+
return t.getEnvelopeInternal().intersects(e) ? q.isPointInRing(e, t.getCoordinates()) : !1;
|
|
18910
18910
|
};
|
|
18911
18911
|
Pn.containsPointInPolygon = function(e, t) {
|
|
18912
18912
|
if (t.isEmpty())
|
|
@@ -18924,8 +18924,8 @@ Pn.containsPointInPolygon = function(e, t) {
|
|
|
18924
18924
|
Pn.containsPoint = function(e, t) {
|
|
18925
18925
|
if (t instanceof ve)
|
|
18926
18926
|
return Pn.containsPointInPolygon(e, t);
|
|
18927
|
-
if (t instanceof
|
|
18928
|
-
for (var n = new
|
|
18927
|
+
if (t instanceof We)
|
|
18928
|
+
for (var n = new qr(t); n.hasNext(); ) {
|
|
18929
18929
|
var i = n.next();
|
|
18930
18930
|
if (i !== t && Pn.containsPoint(e, i))
|
|
18931
18931
|
return !0;
|
|
@@ -19762,7 +19762,7 @@ Ge.prototype.createSubgraphs = function(e) {
|
|
|
19762
19762
|
for (var t = new G(), n = e.getNodes().iterator(); n.hasNext(); ) {
|
|
19763
19763
|
var i = n.next();
|
|
19764
19764
|
if (!i.isVisited()) {
|
|
19765
|
-
var s = new
|
|
19765
|
+
var s = new qe();
|
|
19766
19766
|
s.create(i), t.add(s);
|
|
19767
19767
|
}
|
|
19768
19768
|
}
|
|
@@ -20354,7 +20354,7 @@ zr.computeDistance = function() {
|
|
|
20354
20354
|
zr.computeDistance(f, p, m);
|
|
20355
20355
|
else if (f instanceof ve)
|
|
20356
20356
|
zr.computeDistance(f, p, m);
|
|
20357
|
-
else if (f instanceof
|
|
20357
|
+
else if (f instanceof We)
|
|
20358
20358
|
for (var E = f, C = 0; C < E.getNumGeometries(); C++) {
|
|
20359
20359
|
var b = E.getGeometryN(C);
|
|
20360
20360
|
zr.computeDistance(b, p, m);
|
|
@@ -20453,7 +20453,7 @@ Si.getPolygons = function() {
|
|
|
20453
20453
|
return Si.getPolygons(e, new G());
|
|
20454
20454
|
} else if (arguments.length === 2) {
|
|
20455
20455
|
var t = arguments[0], n = arguments[1];
|
|
20456
|
-
return t instanceof ve ? n.add(t) : t instanceof
|
|
20456
|
+
return t instanceof ve ? n.add(t) : t instanceof We && t.apply(new Si(n)), n;
|
|
20457
20457
|
}
|
|
20458
20458
|
};
|
|
20459
20459
|
var xe = function() {
|
|
@@ -20555,14 +20555,14 @@ tr.prototype.locateInternal = function() {
|
|
|
20555
20555
|
if (!c.getEnvelopeInternal().intersects(l))
|
|
20556
20556
|
return L.EXTERIOR;
|
|
20557
20557
|
var h = c.getCoordinates();
|
|
20558
|
-
return !c.isClosed() && (l.equals(h[0]) || l.equals(h[h.length - 1])) ? L.BOUNDARY :
|
|
20558
|
+
return !c.isClosed() && (l.equals(h[0]) || l.equals(h[h.length - 1])) ? L.BOUNDARY : q.isOnLine(l, h) ? L.INTERIOR : L.EXTERIOR;
|
|
20559
20559
|
} else if (arguments[0] instanceof D && arguments[1] instanceof vn) {
|
|
20560
20560
|
var f = arguments[0], p = arguments[1], m = p.getCoordinate();
|
|
20561
20561
|
return m.equals2D(f) ? L.INTERIOR : L.EXTERIOR;
|
|
20562
20562
|
}
|
|
20563
20563
|
};
|
|
20564
20564
|
tr.prototype.locateInPolygonRing = function(e, t) {
|
|
20565
|
-
return t.getEnvelopeInternal().intersects(e) ?
|
|
20565
|
+
return t.getEnvelopeInternal().intersects(e) ? q.locatePointInRing(e, t.getCoordinates()) : L.EXTERIOR;
|
|
20566
20566
|
};
|
|
20567
20567
|
tr.prototype.intersects = function(e, t) {
|
|
20568
20568
|
return this.locate(e, t) !== L.EXTERIOR;
|
|
@@ -20581,13 +20581,13 @@ tr.prototype.computeLocation = function(e, t) {
|
|
|
20581
20581
|
var o = i.getGeometryN(s);
|
|
20582
20582
|
n.updateLocationInfo(n.locateInternal(e, o));
|
|
20583
20583
|
}
|
|
20584
|
-
else if (t instanceof
|
|
20584
|
+
else if (t instanceof Wr)
|
|
20585
20585
|
for (var a = t, u = 0; u < a.getNumGeometries(); u++) {
|
|
20586
20586
|
var l = a.getGeometryN(u);
|
|
20587
20587
|
n.updateLocationInfo(n.locateInternal(e, l));
|
|
20588
20588
|
}
|
|
20589
|
-
else if (t instanceof
|
|
20590
|
-
for (var c = new
|
|
20589
|
+
else if (t instanceof We)
|
|
20590
|
+
for (var c = new qr(t); c.hasNext(); ) {
|
|
20591
20591
|
var h = c.next();
|
|
20592
20592
|
h !== t && n.computeLocation(e, h);
|
|
20593
20593
|
}
|
|
@@ -20650,7 +20650,7 @@ Yi.getPoints = function() {
|
|
|
20650
20650
|
return e instanceof vn ? Zn.singletonList(e) : Yi.getPoints(e, new G());
|
|
20651
20651
|
} else if (arguments.length === 2) {
|
|
20652
20652
|
var t = arguments[0], n = arguments[1];
|
|
20653
|
-
return t instanceof vn ? n.add(t) : t instanceof
|
|
20653
|
+
return t instanceof vn ? n.add(t) : t instanceof We && t.apply(new Yi(n)), n;
|
|
20654
20654
|
}
|
|
20655
20655
|
};
|
|
20656
20656
|
var Co = function() {
|
|
@@ -20746,7 +20746,7 @@ Ne.prototype.computeMinDistance = function() {
|
|
|
20746
20746
|
if (t.getEnvelopeInternal().distance(n.getEnvelopeInternal()) > this._minDistance)
|
|
20747
20747
|
return null;
|
|
20748
20748
|
for (var s = t.getCoordinates(), o = n.getCoordinate(), a = 0; a < s.length - 1; a++) {
|
|
20749
|
-
var u =
|
|
20749
|
+
var u = q.distancePointLine(o, s[a], s[a + 1]);
|
|
20750
20750
|
if (u < e._minDistance) {
|
|
20751
20751
|
e._minDistance = u;
|
|
20752
20752
|
var l = new Q(s[a], s[a + 1]), c = l.closestPoint(o);
|
|
@@ -20761,7 +20761,7 @@ Ne.prototype.computeMinDistance = function() {
|
|
|
20761
20761
|
return null;
|
|
20762
20762
|
for (var m = h.getCoordinates(), E = f.getCoordinates(), C = 0; C < m.length - 1; C++)
|
|
20763
20763
|
for (var b = 0; b < E.length - 1; b++) {
|
|
20764
|
-
var v =
|
|
20764
|
+
var v = q.distanceLineLine(m[C], m[C + 1], E[b], E[b + 1]);
|
|
20765
20765
|
if (v < e._minDistance) {
|
|
20766
20766
|
e._minDistance = v;
|
|
20767
20767
|
var y = new Q(m[C], m[C + 1]), g = new Q(E[b], E[b + 1]), _ = y.closestPoints(g);
|
|
@@ -20894,7 +20894,7 @@ pr.computeDistance = function() {
|
|
|
20894
20894
|
pr.computeDistance(f, p, m);
|
|
20895
20895
|
else if (f instanceof ve)
|
|
20896
20896
|
pr.computeDistance(f, p, m);
|
|
20897
|
-
else if (f instanceof
|
|
20897
|
+
else if (f instanceof We)
|
|
20898
20898
|
for (var E = f, C = 0; C < E.getNumGeometries(); C++) {
|
|
20899
20899
|
var b = E.getGeometryN(C);
|
|
20900
20900
|
pr.computeDistance(b, p, m);
|
|
@@ -21019,7 +21019,7 @@ mn.prototype.isValid = function() {
|
|
|
21019
21019
|
return this._minValidDistance = e - t, this._maxValidDistance = e + t, this._input.isEmpty() || this._result.isEmpty() ? !0 : (this._bufDistance > 0 ? this.checkPositiveValid() : this.checkNegativeValid(), mn.VERBOSE && Oe.out.println("Min Dist= " + this._minDistanceFound + " err= " + (1 - this._minDistanceFound / this._bufDistance) + " Max Dist= " + this._maxDistanceFound + " err= " + (this._maxDistanceFound / this._bufDistance - 1)), this._isValid);
|
|
21020
21020
|
};
|
|
21021
21021
|
mn.prototype.checkNegativeValid = function() {
|
|
21022
|
-
if (!(this._input instanceof ve || this._input instanceof
|
|
21022
|
+
if (!(this._input instanceof ve || this._input instanceof Wr || this._input instanceof We))
|
|
21023
21023
|
return null;
|
|
21024
21024
|
var e = this.getPolygonLines(this._input);
|
|
21025
21025
|
if (this.checkMinimumDistance(e, this._result, this._minValidDistance), !this._isValid)
|
|
@@ -21094,7 +21094,7 @@ De.prototype.checkArea = function() {
|
|
|
21094
21094
|
this._distance > 0 && e > t && (this._isValid = !1, this._errorMsg = "Area of positive buffer is smaller than input", this._errorIndicator = this._result), this._distance < 0 && e < t && (this._isValid = !1, this._errorMsg = "Area of negative buffer is larger than input", this._errorIndicator = this._result), this.report("Area");
|
|
21095
21095
|
};
|
|
21096
21096
|
De.prototype.checkPolygonal = function() {
|
|
21097
|
-
this._result instanceof ve || this._result instanceof
|
|
21097
|
+
this._result instanceof ve || this._result instanceof Wr || (this._isValid = !1), this._errorMsg = "Result is not polygonal", this._errorIndicator = this._result, this.report("Polygonal");
|
|
21098
21098
|
};
|
|
21099
21099
|
De.prototype.getErrorIndicator = function() {
|
|
21100
21100
|
return this._errorIndicator;
|
|
@@ -21487,9 +21487,9 @@ an.prototype.transform = function(e) {
|
|
|
21487
21487
|
return this.transformMultiLineString(e, null);
|
|
21488
21488
|
if (e instanceof ve)
|
|
21489
21489
|
return this.transformPolygon(e, null);
|
|
21490
|
-
if (e instanceof
|
|
21490
|
+
if (e instanceof Wr)
|
|
21491
21491
|
return this.transformMultiPolygon(e, null);
|
|
21492
|
-
if (e instanceof
|
|
21492
|
+
if (e instanceof We)
|
|
21493
21493
|
return this.transformGeometryCollection(e, null);
|
|
21494
21494
|
throw new Xt("Unknown Geometry subtype: " + e.getClass().getName());
|
|
21495
21495
|
};
|
|
@@ -22286,7 +22286,7 @@ var ou = function(r) {
|
|
|
22286
22286
|
} else if (arguments.length === 3) {
|
|
22287
22287
|
var s = arguments[0], o = arguments[1], a = arguments[2], u = new Me(s, !0, !1);
|
|
22288
22288
|
u.setIsDoneIfProperInt(a);
|
|
22289
|
-
var l = this.createEdgeSetIntersector(), c = this._parentGeom instanceof Kr || this._parentGeom instanceof ve || this._parentGeom instanceof
|
|
22289
|
+
var l = this.createEdgeSetIntersector(), c = this._parentGeom instanceof Kr || this._parentGeom instanceof ve || this._parentGeom instanceof Wr, h = o || !c;
|
|
22290
22290
|
return l.computeIntersections(this._edges, u, h), this.addSelfIntersectionNodes(this._argIndex), u;
|
|
22291
22291
|
}
|
|
22292
22292
|
}, e.prototype.computeSplitEdges = function(n) {
|
|
@@ -22351,7 +22351,7 @@ var ou = function(r) {
|
|
|
22351
22351
|
if (o.length < 4)
|
|
22352
22352
|
return this._hasTooFewPoints = !0, this._invalidPoint = o[0], null;
|
|
22353
22353
|
var a = i, u = s;
|
|
22354
|
-
|
|
22354
|
+
q.isCCW(o) && (a = s, u = i);
|
|
22355
22355
|
var l = new Dl(o, new Vt(this._argIndex, L.BOUNDARY, a, u));
|
|
22356
22356
|
this._lineEdgeMap.put(n, l), this.insertEdge(l), this.insertPoint(this._argIndex, o[0], L.BOUNDARY);
|
|
22357
22357
|
}, e.prototype.insertPoint = function(n, i, s) {
|
|
@@ -22370,7 +22370,7 @@ var ou = function(r) {
|
|
|
22370
22370
|
var n = arguments[0];
|
|
22371
22371
|
if (n.isEmpty())
|
|
22372
22372
|
return null;
|
|
22373
|
-
if (n instanceof
|
|
22373
|
+
if (n instanceof Wr && (this._useBoundaryDeterminationRule = !1), n instanceof ve)
|
|
22374
22374
|
this.addPolygon(n);
|
|
22375
22375
|
else if (n instanceof Qt)
|
|
22376
22376
|
this.addLineString(n);
|
|
@@ -22380,9 +22380,9 @@ var ou = function(r) {
|
|
|
22380
22380
|
this.addCollection(n);
|
|
22381
22381
|
else if (n instanceof Ns)
|
|
22382
22382
|
this.addCollection(n);
|
|
22383
|
-
else if (n instanceof
|
|
22383
|
+
else if (n instanceof Wr)
|
|
22384
22384
|
this.addCollection(n);
|
|
22385
|
-
else if (n instanceof
|
|
22385
|
+
else if (n instanceof We)
|
|
22386
22386
|
this.addCollection(n);
|
|
22387
22387
|
else
|
|
22388
22388
|
throw new Error(n.getClass().getName());
|
|
@@ -23076,7 +23076,7 @@ Gs();
|
|
|
23076
23076
|
function Zc(r) {
|
|
23077
23077
|
return [Ga(r[1], r[0]), Po(r[2])];
|
|
23078
23078
|
}
|
|
23079
|
-
function
|
|
23079
|
+
function Wa(r) {
|
|
23080
23080
|
var e = r[0], t = r[1], n = pe(t);
|
|
23081
23081
|
return [n * pe(e), n * ge(e), ge(t)];
|
|
23082
23082
|
}
|
|
@@ -23109,7 +23109,7 @@ function th(r, e) {
|
|
|
23109
23109
|
return [r > zt ? r - Di : r < -zt ? r + Di : r, e];
|
|
23110
23110
|
}
|
|
23111
23111
|
th.invert = th;
|
|
23112
|
-
function
|
|
23112
|
+
function W0(r, e, t) {
|
|
23113
23113
|
return (r %= Di) ? e || t ? km(lf(r), cf(e, t)) : lf(r) : e || t ? cf(e, t) : th;
|
|
23114
23114
|
}
|
|
23115
23115
|
function uf(r) {
|
|
@@ -23138,7 +23138,7 @@ function cf(r, e) {
|
|
|
23138
23138
|
];
|
|
23139
23139
|
}, o;
|
|
23140
23140
|
}
|
|
23141
|
-
function
|
|
23141
|
+
function q0(r, e, t, n, i, s) {
|
|
23142
23142
|
if (t) {
|
|
23143
23143
|
var o = pe(e), a = ge(e), u = n * t;
|
|
23144
23144
|
i == null ? (i = e + n * Di, s = e - u / 2) : (i = hf(o, i), s = hf(o, s), (n > 0 ? i < s : i > s) && (i += n * Di));
|
|
@@ -23147,7 +23147,7 @@ function W0(r, e, t, n, i, s) {
|
|
|
23147
23147
|
}
|
|
23148
23148
|
}
|
|
23149
23149
|
function hf(r, e) {
|
|
23150
|
-
e =
|
|
23150
|
+
e = Wa(e), e[0] -= r, Qc(e);
|
|
23151
23151
|
var t = Am(-e[1]);
|
|
23152
23152
|
return ((-e[2] < 0 ? -t : t) + Di - ae) % Di;
|
|
23153
23153
|
}
|
|
@@ -23327,12 +23327,12 @@ function J0(r, e, t, n) {
|
|
|
23327
23327
|
polygonStart: N,
|
|
23328
23328
|
polygonEnd: I
|
|
23329
23329
|
};
|
|
23330
|
-
function x(Y,
|
|
23331
|
-
i(Y,
|
|
23330
|
+
function x(Y, W) {
|
|
23331
|
+
i(Y, W) && c.point(Y, W);
|
|
23332
23332
|
}
|
|
23333
23333
|
function P() {
|
|
23334
|
-
for (var Y = 0,
|
|
23335
|
-
for (var ut = p[
|
|
23334
|
+
for (var Y = 0, W = 0, K = p.length; W < K; ++W)
|
|
23335
|
+
for (var ut = p[W], ft = 1, H = ut.length, J = ut[0], $, _t, Mt = J[0], Pt = J[1]; ft < H; ++ft)
|
|
23336
23336
|
$ = Mt, _t = Pt, J = ut[ft], Mt = J[0], Pt = J[1], _t <= n ? Pt > n && (Mt - $) * (n - _t) > (Pt - _t) * (r - $) && ++Y : Pt <= n && (Mt - $) * (n - _t) < (Pt - _t) * (r - $) && --Y;
|
|
23337
23337
|
return Y;
|
|
23338
23338
|
}
|
|
@@ -23340,8 +23340,8 @@ function J0(r, e, t, n) {
|
|
|
23340
23340
|
c = h, f = [], p = [], w = !0;
|
|
23341
23341
|
}
|
|
23342
23342
|
function I() {
|
|
23343
|
-
var Y = P(),
|
|
23344
|
-
(
|
|
23343
|
+
var Y = P(), W = w && Y, K = (f = zm(f)).length;
|
|
23344
|
+
(W || K) && (l.polygonStart(), W && (l.lineStart(), s(null, null, 1, l), l.lineEnd()), K && Bm(f, a, Y, s, l), l.polygonEnd()), c = l, f = p = m = null;
|
|
23345
23345
|
}
|
|
23346
23346
|
function O() {
|
|
23347
23347
|
S.point = F, p && p.push(m = []), _ = !0, g = !1, v = y = NaN;
|
|
@@ -23349,16 +23349,16 @@ function J0(r, e, t, n) {
|
|
|
23349
23349
|
function R() {
|
|
23350
23350
|
f && (F(E, C), b && g && h.rejoin(), f.push(h.result())), S.point = x, g && c.lineEnd();
|
|
23351
23351
|
}
|
|
23352
|
-
function F(Y,
|
|
23353
|
-
var K = i(Y,
|
|
23354
|
-
if (p && m.push([Y,
|
|
23355
|
-
E = Y, C =
|
|
23356
|
-
else if (K && g) c.point(Y,
|
|
23352
|
+
function F(Y, W) {
|
|
23353
|
+
var K = i(Y, W);
|
|
23354
|
+
if (p && m.push([Y, W]), _)
|
|
23355
|
+
E = Y, C = W, b = K, _ = !1, K && (c.lineStart(), c.point(Y, W));
|
|
23356
|
+
else if (K && g) c.point(Y, W);
|
|
23357
23357
|
else {
|
|
23358
|
-
var ut = [v = Math.max(pl, Math.min(fl, v)), y = Math.max(pl, Math.min(fl, y))], ft = [Y = Math.max(pl, Math.min(fl, Y)),
|
|
23359
|
-
H0(ut, ft, r, e, t, n) ? (g || (c.lineStart(), c.point(ut[0], ut[1])), c.point(ft[0], ft[1]), K || c.lineEnd(), w = !1) : K && (c.lineStart(), c.point(Y,
|
|
23358
|
+
var ut = [v = Math.max(pl, Math.min(fl, v)), y = Math.max(pl, Math.min(fl, y))], ft = [Y = Math.max(pl, Math.min(fl, Y)), W = Math.max(pl, Math.min(fl, W))];
|
|
23359
|
+
H0(ut, ft, r, e, t, n) ? (g || (c.lineStart(), c.point(ut[0], ut[1])), c.point(ft[0], ft[1]), K || c.lineEnd(), w = !1) : K && (c.lineStart(), c.point(Y, W), w = !1);
|
|
23360
23360
|
}
|
|
23361
|
-
v = Y, y =
|
|
23361
|
+
v = Y, y = W, g = K;
|
|
23362
23362
|
}
|
|
23363
23363
|
return S;
|
|
23364
23364
|
};
|
|
@@ -23372,7 +23372,7 @@ function $0(r, e) {
|
|
|
23372
23372
|
for (var l, c, h = l[c - 1], f = h[0], p = h[1] / 2 + rf, m = ge(p), E = pe(p), C = 0; C < c; ++C, f = v, m = g, E = _, h = b) {
|
|
23373
23373
|
var b = l[C], v = b[0], y = b[1] / 2 + rf, g = ge(y), _ = pe(y), w = v - f, S = w >= 0 ? 1 : -1, x = S * w, P = x > zt, N = m * g;
|
|
23374
23374
|
if (Bc.add(Ga(N * S * ge(x), E * _ + N * pe(x))), s += P ? w + S * Di : w, P ^ f >= t ^ v >= t) {
|
|
23375
|
-
var I = Al(
|
|
23375
|
+
var I = Al(Wa(h), Wa(b));
|
|
23376
23376
|
Qc(I);
|
|
23377
23377
|
var O = Al(i, I);
|
|
23378
23378
|
Qc(O);
|
|
@@ -23388,19 +23388,19 @@ function ff(r) {
|
|
|
23388
23388
|
}
|
|
23389
23389
|
Gs();
|
|
23390
23390
|
Gs();
|
|
23391
|
-
var
|
|
23391
|
+
var qa = 1 / 0, kl = qa, Vu = -qa, Vl = Vu, pf = {
|
|
23392
23392
|
point: K0,
|
|
23393
23393
|
lineStart: lu,
|
|
23394
23394
|
lineEnd: lu,
|
|
23395
23395
|
polygonStart: lu,
|
|
23396
23396
|
polygonEnd: lu,
|
|
23397
23397
|
result: function() {
|
|
23398
|
-
var r = [[
|
|
23399
|
-
return Vu = Vl = -(kl =
|
|
23398
|
+
var r = [[qa, kl], [Vu, Vl]];
|
|
23399
|
+
return Vu = Vl = -(kl = qa = 1 / 0), r;
|
|
23400
23400
|
}
|
|
23401
23401
|
};
|
|
23402
23402
|
function K0(r, e) {
|
|
23403
|
-
r <
|
|
23403
|
+
r < qa && (qa = r), r > Vu && (Vu = r), e < kl && (kl = e), e > Vl && (Vl = e);
|
|
23404
23404
|
}
|
|
23405
23405
|
Gs();
|
|
23406
23406
|
function Um(r, e, t, n) {
|
|
@@ -23509,7 +23509,7 @@ function nw(r, e, t, n) {
|
|
|
23509
23509
|
function rw(r, e) {
|
|
23510
23510
|
var t = pe(r), n = t > 0, i = Ue(t) > ae;
|
|
23511
23511
|
function s(c, h, f, p) {
|
|
23512
|
-
|
|
23512
|
+
q0(p, r, e, f, c, h);
|
|
23513
23513
|
}
|
|
23514
23514
|
function o(c, h) {
|
|
23515
23515
|
return pe(c) * pe(h) > t;
|
|
@@ -23541,7 +23541,7 @@ function rw(r, e) {
|
|
|
23541
23541
|
};
|
|
23542
23542
|
}
|
|
23543
23543
|
function u(c, h, f) {
|
|
23544
|
-
var p =
|
|
23544
|
+
var p = Wa(c), m = Wa(h), E = [1, 0, 0], C = Al(p, m), b = cl(C, C), v = C[0], y = b - v * v;
|
|
23545
23545
|
if (!y) return !f && c;
|
|
23546
23546
|
var g = t * b / y, _ = -t * v / y, w = Al(E, C), S = hl(E, g), x = hl(C, _);
|
|
23547
23547
|
Vc(S, x);
|
|
@@ -23549,10 +23549,10 @@ function rw(r, e) {
|
|
|
23549
23549
|
if (!(O < 0)) {
|
|
23550
23550
|
var R = Qa(O), F = hl(P, (-N - R) / I);
|
|
23551
23551
|
if (Vc(F, S), F = Zc(F), !f) return F;
|
|
23552
|
-
var Y = c[0],
|
|
23553
|
-
|
|
23554
|
-
var H =
|
|
23555
|
-
if (!J && ut < K && (ft = K, K = ut, ut = ft), $ ? J ? K + ut > 0 ^ F[1] < (Ue(F[0] - Y) < ae ? K : ut) : K <= F[1] && F[1] <= ut : H > zt ^ (Y <= F[0] && F[0] <=
|
|
23552
|
+
var Y = c[0], W = h[0], K = c[1], ut = h[1], ft;
|
|
23553
|
+
W < Y && (ft = Y, Y = W, W = ft);
|
|
23554
|
+
var H = W - Y, J = Ue(H - zt) < ae, $ = J || H < ae;
|
|
23555
|
+
if (!J && ut < K && (ft = K, K = ut, ut = ft), $ ? J ? K + ut > 0 ^ F[1] < (Ue(F[0] - Y) < ae ? K : ut) : K <= F[1] && F[1] <= ut : H > zt ^ (Y <= F[0] && F[0] <= W)) {
|
|
23556
23556
|
var _t = hl(P, (-N + R) / I);
|
|
23557
23557
|
return Vc(_t, S), [F, Zc(_t)];
|
|
23558
23558
|
}
|
|
@@ -23594,14 +23594,14 @@ eh.prototype = {
|
|
|
23594
23594
|
this.stream.polygonEnd();
|
|
23595
23595
|
}
|
|
23596
23596
|
};
|
|
23597
|
-
function
|
|
23597
|
+
function Wm(r, e, t) {
|
|
23598
23598
|
var n = e[1][0] - e[0][0], i = e[1][1] - e[0][1], s = r.clipExtent && r.clipExtent();
|
|
23599
23599
|
r.scale(150).translate([0, 0]), s != null && r.clipExtent(null), G0(t, r.stream(pf));
|
|
23600
23600
|
var o = pf.result(), a = Math.min(n / (o[1][0] - o[0][0]), i / (o[1][1] - o[0][1])), u = +e[0][0] + (n - a * (o[1][0] + o[0][0])) / 2, l = +e[0][1] + (i - a * (o[1][1] + o[0][1])) / 2;
|
|
23601
23601
|
return s != null && r.clipExtent(s), r.scale(a * 150).translate([u, l]);
|
|
23602
23602
|
}
|
|
23603
23603
|
function iw(r, e, t) {
|
|
23604
|
-
return
|
|
23604
|
+
return Wm(r, [[0, 0], e], t);
|
|
23605
23605
|
}
|
|
23606
23606
|
var mf = 16, sw = pe(30 * hr);
|
|
23607
23607
|
function vf(r, e) {
|
|
@@ -23641,7 +23641,7 @@ function aw(r, e) {
|
|
|
23641
23641
|
h = NaN, C.point = y, n.lineStart();
|
|
23642
23642
|
}
|
|
23643
23643
|
function y(x, P) {
|
|
23644
|
-
var N =
|
|
23644
|
+
var N = Wa([x, P]), I = r(x, P);
|
|
23645
23645
|
t(h, f, c, p, m, E, h = I[0], f = I[1], c = x, p = N[0], m = N[1], E = N[2], mf, n), n.point(h, f);
|
|
23646
23646
|
}
|
|
23647
23647
|
function g() {
|
|
@@ -23697,12 +23697,12 @@ function cw(r) {
|
|
|
23697
23697
|
}, P.precision = function(F) {
|
|
23698
23698
|
return arguments.length ? (w = vf(I, _ = F * F), R()) : Qa(_);
|
|
23699
23699
|
}, P.fitExtent = function(F, Y) {
|
|
23700
|
-
return
|
|
23700
|
+
return Wm(P, F, Y);
|
|
23701
23701
|
}, P.fitSize = function(F, Y) {
|
|
23702
23702
|
return iw(P, F, Y);
|
|
23703
23703
|
};
|
|
23704
23704
|
function O() {
|
|
23705
|
-
p = km(f =
|
|
23705
|
+
p = km(f = W0(l, c, h), e);
|
|
23706
23706
|
var F = e(a, u);
|
|
23707
23707
|
return s = n - F[0] * t, o = i + F[1] * t, R();
|
|
23708
23708
|
}
|
|
@@ -23713,7 +23713,7 @@ function cw(r) {
|
|
|
23713
23713
|
return e = r.apply(this, arguments), P.invert = e.invert && N, O();
|
|
23714
23714
|
};
|
|
23715
23715
|
}
|
|
23716
|
-
function
|
|
23716
|
+
function qm(r) {
|
|
23717
23717
|
return function(e, t) {
|
|
23718
23718
|
var n = pe(e), i = pe(t), s = r(n * i);
|
|
23719
23719
|
return [
|
|
@@ -23731,13 +23731,13 @@ function Hm(r) {
|
|
|
23731
23731
|
];
|
|
23732
23732
|
};
|
|
23733
23733
|
}
|
|
23734
|
-
var hw =
|
|
23734
|
+
var hw = qm(function(r) {
|
|
23735
23735
|
return Qa(2 / (1 + r));
|
|
23736
23736
|
});
|
|
23737
23737
|
hw.invert = Hm(function(r) {
|
|
23738
23738
|
return 2 * Po(r / 2);
|
|
23739
23739
|
});
|
|
23740
|
-
var Xm =
|
|
23740
|
+
var Xm = qm(function(r) {
|
|
23741
23741
|
return (r = Am(r)) && r / ge(r);
|
|
23742
23742
|
});
|
|
23743
23743
|
Xm.invert = Hm(function(r) {
|
|
@@ -24243,9 +24243,9 @@ function Pw(r, e, t, n, i, s, o) {
|
|
|
24243
24243
|
g = a * O, f = cn * a, p = f - (f - a), m = a - p, f = cn * O, E = f - (f - O), C = O - E, _ = m * C - (g - p * E - m * E - p * C), w = u * N, f = cn * u, p = f - (f - u), m = u - p, f = cn * N, E = f - (f - N), C = N - E, S = m * C - (w - p * E - m * E - p * C), b = _ - S, h = _ - b, En[0] = _ - (b + h) + (h - S), v = g + b, h = v - g, y = g - (v - h) + (b - h), b = y - w, h = y - b, En[1] = y - (b + h) + (h - w), x = v + b, h = x - v, En[2] = v - (x - h) + (b - h), En[3] = x;
|
|
24244
24244
|
const Y = zc(4, jo, 4, En, wf);
|
|
24245
24245
|
g = P * c, f = cn * P, p = f - (f - P), m = P - p, f = cn * c, E = f - (f - c), C = c - E, _ = m * C - (g - p * E - m * E - p * C), w = I * l, f = cn * I, p = f - (f - I), m = I - p, f = cn * l, E = f - (f - l), C = l - E, S = m * C - (w - p * E - m * E - p * C), b = _ - S, h = _ - b, En[0] = _ - (b + h) + (h - S), v = g + b, h = v - g, y = g - (v - h) + (b - h), b = y - w, h = y - b, En[1] = y - (b + h) + (h - w), x = v + b, h = x - v, En[2] = v - (x - h) + (b - h), En[3] = x;
|
|
24246
|
-
const
|
|
24246
|
+
const W = zc(Y, wf, 4, En, Ef);
|
|
24247
24247
|
g = a * c, f = cn * a, p = f - (f - a), m = a - p, f = cn * c, E = f - (f - c), C = c - E, _ = m * C - (g - p * E - m * E - p * C), w = u * l, f = cn * u, p = f - (f - u), m = u - p, f = cn * l, E = f - (f - l), C = l - E, S = m * C - (w - p * E - m * E - p * C), b = _ - S, h = _ - b, En[0] = _ - (b + h) + (h - S), v = g + b, h = v - g, y = g - (v - h) + (b - h), b = y - w, h = y - b, En[1] = y - (b + h) + (h - w), x = v + b, h = x - v, En[2] = v - (x - h) + (b - h), En[3] = x;
|
|
24248
|
-
const K = zc(
|
|
24248
|
+
const K = zc(W, Ef, 4, En, Cf);
|
|
24249
24249
|
return Cf[K - 1];
|
|
24250
24250
|
}
|
|
24251
24251
|
function Tw(r, e, t, n, i, s) {
|
|
@@ -25085,14 +25085,14 @@ var sd = {
|
|
|
25085
25085
|
xor: Uw,
|
|
25086
25086
|
difference: Gw
|
|
25087
25087
|
};
|
|
25088
|
-
function
|
|
25088
|
+
function Ww(r, e) {
|
|
25089
25089
|
var t = Yn(r), n = Yn(e), i = r.properties || {}, s = sd.difference(
|
|
25090
25090
|
t.coordinates,
|
|
25091
25091
|
n.coordinates
|
|
25092
25092
|
);
|
|
25093
25093
|
return s.length === 0 ? null : s.length === 1 ? On(s[0], i) : Fh(s, i);
|
|
25094
25094
|
}
|
|
25095
|
-
function
|
|
25095
|
+
function qw(r, e, t) {
|
|
25096
25096
|
t === void 0 && (t = {});
|
|
25097
25097
|
var n = Yn(r), i = Yn(e), s = sd.intersection(n.coordinates, i.coordinates);
|
|
25098
25098
|
return s.length === 0 ? null : s.length === 1 ? On(s[0], t.properties) : Fh(s, t.properties);
|
|
@@ -25104,7 +25104,7 @@ function Hw(r, e, t) {
|
|
|
25104
25104
|
}
|
|
25105
25105
|
function Xw(r, e) {
|
|
25106
25106
|
(r[0][0] !== r[r.length - 1][0] || r[0][1] !== r[r.length - 1][1] || r[0][2] !== r[r.length - 1][2]) && r.push(r[0]), (e[0][0] !== e[e.length - 1][0] || e[0][1] !== e[e.length - 1][1] || e[0][2] !== e[e.length - 1][2]) && e.push(e[0]);
|
|
25107
|
-
const t =
|
|
25107
|
+
const t = qw(On([r]), On([e]));
|
|
25108
25108
|
if (t)
|
|
25109
25109
|
return t.geometry.coordinates;
|
|
25110
25110
|
}
|
|
@@ -25121,7 +25121,7 @@ function Jw(r, e = 500, t = "meters") {
|
|
|
25121
25121
|
}
|
|
25122
25122
|
function $w(r, e) {
|
|
25123
25123
|
(r[0][0] !== r[r.length - 1][0] || r[0][1] !== r[r.length - 1][1] || r[0][2] !== r[r.length - 1][2]) && r.push(r[0]), (e[0][0] !== e[e.length - 1][0] || e[0][1] !== e[e.length - 1][1] || e[0][2] !== e[e.length - 1][2]) && e.push(e[0]);
|
|
25124
|
-
const t =
|
|
25124
|
+
const t = Ww(On([r]), On([e]));
|
|
25125
25125
|
if (t)
|
|
25126
25126
|
return t.geometry.coordinates;
|
|
25127
25127
|
}
|
|
@@ -26429,7 +26429,7 @@ function Bf(r) {
|
|
|
26429
26429
|
}
|
|
26430
26430
|
return t(r, 0), e;
|
|
26431
26431
|
}
|
|
26432
|
-
const li = class li extends
|
|
26432
|
+
const li = class li extends Wt {
|
|
26433
26433
|
/**
|
|
26434
26434
|
* 构造函数,初始化 ESGeoVector 实例
|
|
26435
26435
|
* @param id - 实例的唯一标识符,可选
|
|
@@ -27020,7 +27020,7 @@ const li = class li extends qt {
|
|
|
27020
27020
|
}
|
|
27021
27021
|
};
|
|
27022
27022
|
d(li, "createDefaultProps", () => ({
|
|
27023
|
-
...
|
|
27023
|
+
...Wt.createDefaultProps(),
|
|
27024
27024
|
/**点样式是否启用,默认false */
|
|
27025
27025
|
pointed: !1,
|
|
27026
27026
|
/**点样式 */
|
|
@@ -27064,11 +27064,11 @@ d(li, "createDefaultProps", () => ({
|
|
|
27064
27064
|
* 支持的编辑模式,包含 ESVisualObject 支持的模式以及平移模式
|
|
27065
27065
|
*/
|
|
27066
27066
|
d(li, "supportEditingModes", [
|
|
27067
|
-
...
|
|
27067
|
+
...Wt.supportEditingModes,
|
|
27068
27068
|
tt.Translation
|
|
27069
27069
|
]);
|
|
27070
27070
|
let It = li;
|
|
27071
|
-
const
|
|
27071
|
+
const qs = class qs extends Wt {
|
|
27072
27072
|
constructor() {
|
|
27073
27073
|
super(...arguments);
|
|
27074
27074
|
/**
|
|
@@ -27270,7 +27270,7 @@ const Ws = class Ws extends qt {
|
|
|
27270
27270
|
new X([this, "editing"], "是否编辑"),
|
|
27271
27271
|
new lt([], () => this.automaticLanding(), [], "自动落地"),
|
|
27272
27272
|
new Su([this, "position"], "位置数组", [0, 0, 0]),
|
|
27273
|
-
new
|
|
27273
|
+
new qg([this, "rotation"], "姿态数组", [0, 0, 0]),
|
|
27274
27274
|
new Tn([this, "scale"], "缩放", [1, 1, 1]),
|
|
27275
27275
|
new M([this, "minVisibleDistance"], "最小可见距离", 0),
|
|
27276
27276
|
new M([this, "maxVisibleDistance"], "最大可见距离", 0)
|
|
@@ -27384,8 +27384,8 @@ const Ws = class Ws extends qt {
|
|
|
27384
27384
|
return this.pointStyleChanged;
|
|
27385
27385
|
}
|
|
27386
27386
|
};
|
|
27387
|
-
d(
|
|
27388
|
-
...
|
|
27387
|
+
d(qs, "createDefaultProps", () => ({
|
|
27388
|
+
...Wt.createDefaultProps(),
|
|
27389
27389
|
/**点样式是否启用,默认false */
|
|
27390
27390
|
pointed: !1,
|
|
27391
27391
|
/**点样式 */
|
|
@@ -27408,11 +27408,11 @@ d(Ws, "createDefaultProps", () => ({
|
|
|
27408
27408
|
minVisibleDistance: k(0),
|
|
27409
27409
|
/**最大可视距离 */
|
|
27410
27410
|
maxVisibleDistance: k(0)
|
|
27411
|
-
})), d(
|
|
27411
|
+
})), d(qs, "type", qs.register("ESObjectWithLocation", qs, { chsName: "对象位置", tags: ["ESObjects"], description: "对象位置" })), /**
|
|
27412
27412
|
* 该类支持的编辑模式列表。
|
|
27413
27413
|
*/
|
|
27414
|
-
d(
|
|
27415
|
-
...
|
|
27414
|
+
d(qs, "supportEditingModes", [
|
|
27415
|
+
...Wt.supportEditingModes,
|
|
27416
27416
|
tt.Place,
|
|
27417
27417
|
tt.Translation,
|
|
27418
27418
|
tt.Rotation,
|
|
@@ -27420,8 +27420,8 @@ d(Ws, "supportEditingModes", [
|
|
|
27420
27420
|
tt.DoublePointsAppend,
|
|
27421
27421
|
tt.DoublePointsModify
|
|
27422
27422
|
]);
|
|
27423
|
-
let st =
|
|
27424
|
-
const
|
|
27423
|
+
let st = qs;
|
|
27424
|
+
const Wo = class Wo extends st {
|
|
27425
27425
|
/**
|
|
27426
27426
|
* 获取 ES 属性,包括点、线、面的样式属性。
|
|
27427
27427
|
* @returns 包含 ES 属性的对象
|
|
@@ -27697,7 +27697,7 @@ const qo = class qo extends st {
|
|
|
27697
27697
|
// }, localPositons: [number, number, number][]) {
|
|
27698
27698
|
// return localPositionsToPositions(options, localPositons)
|
|
27699
27699
|
// }
|
|
27700
|
-
d(
|
|
27700
|
+
d(Wo, "createDefaultProps", () => ({
|
|
27701
27701
|
...st.createDefaultProps(),
|
|
27702
27702
|
/**是否启用点样式*/
|
|
27703
27703
|
pointed: !1,
|
|
@@ -27731,13 +27731,13 @@ d(qo, "createDefaultProps", () => ({
|
|
|
27731
27731
|
materialParams: {},
|
|
27732
27732
|
ground: !1
|
|
27733
27733
|
})
|
|
27734
|
-
})), d(
|
|
27735
|
-
let zu =
|
|
27734
|
+
})), d(Wo, "type", Wo.register("ESLocalVector", Wo, { chsName: "本地矢量", tags: ["ESObjects"], description: "本地矢量对象" }));
|
|
27735
|
+
let zu = Wo;
|
|
27736
27736
|
const mu = class mu extends zu {
|
|
27737
27737
|
};
|
|
27738
27738
|
d(mu, "type", mu.register("ESLocalVector2D", mu, { chsName: "本地矢量2D", tags: ["ESObjects"], description: "本地矢量2D对象" }));
|
|
27739
27739
|
let js = mu;
|
|
27740
|
-
const CE = [["固定朝向", 0], ["面向屏幕旋转", 1], ["绕自身Z轴旋转", 2]], SE = [["单面不透明", 0], ["双面不透明", 1], ["单面遮罩", 2], ["双面遮罩", 3], ["单面透明", 4], ["双面透明", 5], ["单面未遮挡透明", 6], ["双面未遮挡透明", 7]],
|
|
27740
|
+
const CE = [["固定朝向", 0], ["面向屏幕旋转", 1], ["绕自身Z轴旋转", 2]], SE = [["单面不透明", 0], ["双面不透明", 1], ["单面遮罩", 2], ["双面遮罩", 3], ["单面透明", 4], ["双面透明", 5], ["单面未遮挡透明", 6], ["双面未遮挡透明", 7]], qo = class qo extends st {
|
|
27741
27741
|
constructor() {
|
|
27742
27742
|
super(...arguments);
|
|
27743
27743
|
/**
|
|
@@ -27780,7 +27780,7 @@ const CE = [["固定朝向", 0], ["面向屏幕旋转", 1], ["绕自身Z轴旋
|
|
|
27780
27780
|
};
|
|
27781
27781
|
}
|
|
27782
27782
|
};
|
|
27783
|
-
d(
|
|
27783
|
+
d(qo, "createDefaultProps", () => ({
|
|
27784
27784
|
...st.createDefaultProps(),
|
|
27785
27785
|
/** 是否启用屏幕渲染,默认true */
|
|
27786
27786
|
screenRender: !0,
|
|
@@ -27822,8 +27822,8 @@ d(Wo, "createDefaultProps", () => ({
|
|
|
27822
27822
|
positionOffset: ct([0, 0, 0]),
|
|
27823
27823
|
/** 3D旋转偏移,格式为[pitch,yaw,roll],默认无旋转 */
|
|
27824
27824
|
rotationOffset: ct([0, 0, 0])
|
|
27825
|
-
})), d(
|
|
27826
|
-
let Tr =
|
|
27825
|
+
})), d(qo, "type", qo.register("ESLabel", qo, { chsName: "标签", tags: ["ESObjects"], description: "标签对象" }));
|
|
27826
|
+
let Tr = qo;
|
|
27827
27827
|
const Ho = class Ho extends nt {
|
|
27828
27828
|
constructor(e) {
|
|
27829
27829
|
super(e);
|
|
@@ -27835,7 +27835,7 @@ d(Ho, "createDefaultProps", () => ({
|
|
|
27835
27835
|
fillStyle: wt({ color: [1, 1, 1, 1], material: "", materialParams: {}, ground: !1 })
|
|
27836
27836
|
})), d(Ho, "type", Ho.register("ESTestObject", Ho, { chsName: "测试", tags: ["ESObjects"], description: "" }));
|
|
27837
27837
|
let jf = Ho;
|
|
27838
|
-
const ci = class ci extends
|
|
27838
|
+
const ci = class ci extends Wt {
|
|
27839
27839
|
constructor(t) {
|
|
27840
27840
|
super(t);
|
|
27841
27841
|
/**
|
|
@@ -28355,7 +28355,7 @@ const ci = class ci extends qt {
|
|
|
28355
28355
|
...t.coordinate,
|
|
28356
28356
|
new X([this, "editing"], "编辑", !1, !0),
|
|
28357
28357
|
new Tn([this, "offset"], "偏移", [0, 0, 0], !0),
|
|
28358
|
-
new
|
|
28358
|
+
new qg([this, "rotation"], "旋转", [0, 0, 0])
|
|
28359
28359
|
],
|
|
28360
28360
|
more: [
|
|
28361
28361
|
...t.more,
|
|
@@ -28381,6 +28381,7 @@ const ci = class ci extends qt {
|
|
|
28381
28381
|
new rt([this, "czmStyleJson"], "czmStyle"),
|
|
28382
28382
|
new X([this, "czmBackFaceCulling"]),
|
|
28383
28383
|
new X([this, "czmSkipLevelOfDetail"]),
|
|
28384
|
+
new X([this, "czmDebugWireframe"]),
|
|
28384
28385
|
new M([this, "cacheBytes"], "最大缓存", 512 * 1024 * 1024),
|
|
28385
28386
|
new at([], "调试信息"),
|
|
28386
28387
|
new X([this, "czmDebugShowBoundingVolume"]),
|
|
@@ -28395,7 +28396,7 @@ const ci = class ci extends qt {
|
|
|
28395
28396
|
}
|
|
28396
28397
|
};
|
|
28397
28398
|
d(ci, "createDefaultProps", () => ({
|
|
28398
|
-
...
|
|
28399
|
+
...Wt.createDefaultProps(),
|
|
28399
28400
|
/**
|
|
28400
28401
|
* 服务地址,支持字符串或 ESJResource 类型。
|
|
28401
28402
|
*/
|
|
@@ -28519,7 +28520,11 @@ d(ci, "createDefaultProps", () => ({
|
|
|
28519
28520
|
*/
|
|
28520
28521
|
featureIdLabel: 0,
|
|
28521
28522
|
/** 分割方向 */
|
|
28522
|
-
splitDirection: "NONE"
|
|
28523
|
+
splitDirection: "NONE",
|
|
28524
|
+
/**
|
|
28525
|
+
* 调试线框模式,仅Cesium引擎生效
|
|
28526
|
+
*/
|
|
28527
|
+
czmDebugWireframe: !1
|
|
28523
28528
|
})), /**
|
|
28524
28529
|
* 注册 ES3DTileset 类型,设置其名称、标签和描述。
|
|
28525
28530
|
*/
|
|
@@ -28527,7 +28532,7 @@ d(ci, "type", ci.register("ES3DTileset", ci, { chsName: "3DTileset", tags: ["ESO
|
|
|
28527
28532
|
* 重写支持的编辑模式,包含平移和旋转模式。
|
|
28528
28533
|
*/
|
|
28529
28534
|
d(ci, "supportEditingModes", [
|
|
28530
|
-
...
|
|
28535
|
+
...Wt.supportEditingModes,
|
|
28531
28536
|
tt.Translation,
|
|
28532
28537
|
tt.Rotation
|
|
28533
28538
|
]);
|
|
@@ -28846,7 +28851,7 @@ d(Yo, "createDefaultProps", () => ({
|
|
|
28846
28851
|
* @readonly
|
|
28847
28852
|
*/
|
|
28848
28853
|
d(Yo, "type", Yo.register("ESBlastParticleSystem", Yo, { chsName: "粒子爆炸", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "粒子爆炸" }));
|
|
28849
|
-
let
|
|
28854
|
+
let Wf = Yo;
|
|
28850
28855
|
const Rr = class Rr extends st {
|
|
28851
28856
|
/**
|
|
28852
28857
|
* 构造函数,创建 ESBoxClipping 实例。
|
|
@@ -28892,7 +28897,7 @@ d(Rr, "createDefaultProps", () => ({
|
|
|
28892
28897
|
* 注册 ESBoxClipping 类型,包含中文名、标签和描述信息。
|
|
28893
28898
|
*/
|
|
28894
28899
|
d(Rr, "type", Rr.register("ESBoxClipping", Rr, { chsName: "体剖切", tags: ["ESObjects", "_ES_Impl_Cesium"], description: "体剖切,体裁剪,体裁切,盒裁切" }));
|
|
28895
|
-
let
|
|
28900
|
+
let qf = Rr;
|
|
28896
28901
|
const vu = class vu extends st {
|
|
28897
28902
|
constructor() {
|
|
28898
28903
|
super(...arguments);
|
|
@@ -30350,7 +30355,7 @@ const PE = `
|
|
|
30350
30355
|
space: number
|
|
30351
30356
|
}
|
|
30352
30357
|
\`\`\`
|
|
30353
|
-
`, $s = class $s extends
|
|
30358
|
+
`, $s = class $s extends Wt {
|
|
30354
30359
|
/**
|
|
30355
30360
|
* 构造函数
|
|
30356
30361
|
* @param {string} [id] - 对象的可选 ID
|
|
@@ -30382,7 +30387,7 @@ const PE = `
|
|
|
30382
30387
|
}
|
|
30383
30388
|
};
|
|
30384
30389
|
d($s, "createDefaultProps", () => ({
|
|
30385
|
-
...
|
|
30390
|
+
...Wt.createDefaultProps(),
|
|
30386
30391
|
/**服务路径或数据体
|
|
30387
30392
|
* @type {string | ESJResource}
|
|
30388
30393
|
*/
|
|
@@ -31207,7 +31212,7 @@ d(Zs, "type", Zs.register("ESImageLabel", Zs, {
|
|
|
31207
31212
|
description: "基础图片标签。"
|
|
31208
31213
|
}));
|
|
31209
31214
|
let dh = Zs;
|
|
31210
|
-
const hi = class hi extends
|
|
31215
|
+
const hi = class hi extends Wt {
|
|
31211
31216
|
/**
|
|
31212
31217
|
* 构造函数,创建 ESImageryLayer 实例。
|
|
31213
31218
|
* @param id - 可选的实例 ID。
|
|
@@ -31275,7 +31280,7 @@ const hi = class hi extends qt {
|
|
|
31275
31280
|
}
|
|
31276
31281
|
};
|
|
31277
31282
|
d(hi, "createDefaultProps", () => ({
|
|
31278
|
-
...
|
|
31283
|
+
...Wt.createDefaultProps(),
|
|
31279
31284
|
/** 影像服务地址 */
|
|
31280
31285
|
url: "",
|
|
31281
31286
|
/** 矩形范围 */
|
|
@@ -31934,7 +31939,7 @@ d(Ar, "type", Ar.register("ESPoi2D", Ar, { chsName: "ESPoi2D", tags: ["ESObjects
|
|
|
31934
31939
|
["WomanAbnormal", "WomanAbnormal"],
|
|
31935
31940
|
["Camera", "Camera"]
|
|
31936
31941
|
]);
|
|
31937
|
-
let
|
|
31942
|
+
let Wl = Ar;
|
|
31938
31943
|
const di = class di extends st {
|
|
31939
31944
|
/**
|
|
31940
31945
|
* 构造函数
|
|
@@ -32109,7 +32114,7 @@ const NE = async (r, e, t) => {
|
|
|
32109
32114
|
p: { id: e, ToParams: t, SwitchTime: i, TimeLength: n }
|
|
32110
32115
|
});
|
|
32111
32116
|
return o.error && console.error("GrowthSimulation:", o.error), o;
|
|
32112
|
-
}, ea = class ea extends
|
|
32117
|
+
}, ea = class ea extends Wt {
|
|
32113
32118
|
/**
|
|
32114
32119
|
* 构造函数,创建一个 ESSeparateFoliage 实例。
|
|
32115
32120
|
* @param {string} [id] - 对象的可选ID。
|
|
@@ -32301,7 +32306,7 @@ const NE = async (r, e, t) => {
|
|
|
32301
32306
|
}
|
|
32302
32307
|
};
|
|
32303
32308
|
d(ea, "createDefaultProps", () => ({
|
|
32304
|
-
...
|
|
32309
|
+
...Wt.createDefaultProps(),
|
|
32305
32310
|
/** 树类型数组 */
|
|
32306
32311
|
treeTypes: ie([]),
|
|
32307
32312
|
/** 树桩id */
|
|
@@ -32672,7 +32677,7 @@ d(Qs, "supportEditingModes", [
|
|
|
32672
32677
|
tt.HeightModify
|
|
32673
32678
|
]);
|
|
32674
32679
|
let ap = Qs;
|
|
32675
|
-
const Vi = class Vi extends
|
|
32680
|
+
const Vi = class Vi extends Wt {
|
|
32676
32681
|
/**
|
|
32677
32682
|
* 构造函数,调用父类构造函数并传入可选的ID。
|
|
32678
32683
|
* @param {string} [id] - 可选的对象ID。
|
|
@@ -32724,7 +32729,7 @@ const Vi = class Vi extends qt {
|
|
|
32724
32729
|
}
|
|
32725
32730
|
};
|
|
32726
32731
|
d(Vi, "createDefaultProps", () => ({
|
|
32727
|
-
...
|
|
32732
|
+
...Wt.createDefaultProps(),
|
|
32728
32733
|
/**
|
|
32729
32734
|
* 地形服务地址,支持URL和ESJResource。
|
|
32730
32735
|
* @type {string | ESJResource}
|
|
@@ -32782,7 +32787,7 @@ const kr = class kr extends Tr {
|
|
|
32782
32787
|
...e.basic,
|
|
32783
32788
|
new Dt([this, "color"], "文本颜色", [1, 1, 1, 1]),
|
|
32784
32789
|
new M([this, "fontSize"], "文字大小", 14),
|
|
32785
|
-
new
|
|
32790
|
+
new Wg([this, "text"], "内容", kr.defaults.text, void 0, !0),
|
|
32786
32791
|
new Dt([this, "backgroundColor"], "背景颜色", kr.defaults.backgroundColor),
|
|
32787
32792
|
new Ci([this, "padding"], "内边距", kr.defaults.padding),
|
|
32788
32793
|
new Dt([this, "borderColor"], "边界颜色"),
|
|
@@ -33502,7 +33507,7 @@ const av = `// dataSource
|
|
|
33502
33507
|
\`\`\`
|
|
33503
33508
|
${av}
|
|
33504
33509
|
\`\`\`
|
|
33505
|
-
`, zE = "${earthsdk3-assets-script-dir}/assets/misc/2.geojson", St = class St extends
|
|
33510
|
+
`, zE = "${earthsdk3-assets-script-dir}/assets/misc/2.geojson", St = class St extends Wt {
|
|
33506
33511
|
/**
|
|
33507
33512
|
* 构造函数
|
|
33508
33513
|
* @param {string | undefined} id - 对象的 ID,可选
|
|
@@ -34181,7 +34186,7 @@ d(St, "createDefaultProps", () => ({
|
|
|
34181
34186
|
/**
|
|
34182
34187
|
* 继承自 ESVisualObject 的默认属性。
|
|
34183
34188
|
*/
|
|
34184
|
-
...
|
|
34189
|
+
...Wt.createDefaultProps(),
|
|
34185
34190
|
/**
|
|
34186
34191
|
* 控制对象是否显示的布尔值。
|
|
34187
34192
|
* @default true
|
|
@@ -34387,7 +34392,7 @@ d(St, "createDefaultProps", () => ({
|
|
|
34387
34392
|
* 注册 ESGeoJson 类,设置其类型名称、中文名称、标签和描述信息
|
|
34388
34393
|
*/
|
|
34389
34394
|
d(St, "type", St.register("ESGeoJson", St, { chsName: "ESGeoJson", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "GeoJson数据加载" })), d(St, "strokeStyleWidthTypes", [["screen", "screen"], ["world", "world"]]), d(St, "classificationTypes", [["TERRAIN", "TERRAIN"], ["CESIUM_3D_TILE", "CESIUM_3D_TILE"], ["BOTH", "BOTH"]]);
|
|
34390
|
-
let
|
|
34395
|
+
let ql = St;
|
|
34391
34396
|
const eo = class eo extends It {
|
|
34392
34397
|
/**
|
|
34393
34398
|
* 构造函数,初始化 ESHeightMeasurement 对象。
|
|
@@ -35478,7 +35483,7 @@ d(no, "createDefaultProps", () => ({
|
|
|
35478
35483
|
*/
|
|
35479
35484
|
d(no, "type", no.register("ESLevelRuntimeModel", no, { chsName: "关卡包模型", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "关卡包模型" }));
|
|
35480
35485
|
let Ip = no;
|
|
35481
|
-
const
|
|
35486
|
+
const qn = class qn extends us {
|
|
35482
35487
|
/**
|
|
35483
35488
|
* 构造函数
|
|
35484
35489
|
* @param id - 管线的可选ID
|
|
@@ -35515,16 +35520,16 @@ const Wn = class Wn extends us {
|
|
|
35515
35520
|
defaultMenu: "basic",
|
|
35516
35521
|
basic: [
|
|
35517
35522
|
...t.basic,
|
|
35518
|
-
new M([this, "radius"], "半径",
|
|
35519
|
-
new M([this, "sides"], "圆边数",
|
|
35520
|
-
new M([this, "speed"], "材质速度",
|
|
35521
|
-
new xt([this, "materialMode"],
|
|
35522
|
-
new rt([this, "materialImage"], "材质图片和重复度",
|
|
35523
|
+
new M([this, "radius"], "半径", qn.defaults.radius),
|
|
35524
|
+
new M([this, "sides"], "圆边数", qn.defaults.sides),
|
|
35525
|
+
new M([this, "speed"], "材质速度", qn.defaults.speed),
|
|
35526
|
+
new xt([this, "materialMode"], qn.materialModes, "材质模式", qn.defaults.materialMode),
|
|
35527
|
+
new rt([this, "materialImage"], "材质图片和重复度", qn.defaults.materialImage)
|
|
35523
35528
|
]
|
|
35524
35529
|
};
|
|
35525
35530
|
}
|
|
35526
35531
|
};
|
|
35527
|
-
d(
|
|
35532
|
+
d(qn, "createDefaultProps", () => ({
|
|
35528
35533
|
...us.createDefaultProps(),
|
|
35529
35534
|
// 属性配置
|
|
35530
35535
|
/** 管线的半径,默认值为 10 */
|
|
@@ -35548,8 +35553,8 @@ d(Wn, "createDefaultProps", () => ({
|
|
|
35548
35553
|
})), /**
|
|
35549
35554
|
* 注册管线类型,包含类型名称、类、中文名称、标签和描述信息
|
|
35550
35555
|
*/
|
|
35551
|
-
d(
|
|
35552
|
-
let Pp =
|
|
35556
|
+
d(qn, "type", qn.register("ESPipeline", qn, { chsName: "管线", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "ESPipeline" })), d(qn, "materialModes", [["单箭头", "singleArrow"], ["多箭头", "multipleArrows"]]);
|
|
35557
|
+
let Pp = qn;
|
|
35553
35558
|
const pi = class pi extends It {
|
|
35554
35559
|
/**
|
|
35555
35560
|
* 构造函数,调用父类的构造函数。
|
|
@@ -35775,7 +35780,7 @@ const la = class la extends Ca {
|
|
|
35775
35780
|
/**
|
|
35776
35781
|
* 内部的 ESPoi2D 实例。
|
|
35777
35782
|
*/
|
|
35778
|
-
d(this, "_poi", this.dv(new
|
|
35783
|
+
d(this, "_poi", this.dv(new Wl()));
|
|
35779
35784
|
this.d(this.components.disposableAdd(this._human, !0)), this.d(this.components.disposableAdd(this._poi));
|
|
35780
35785
|
{
|
|
35781
35786
|
const { _human: n, _poi: i } = this;
|
|
@@ -35828,7 +35833,7 @@ const la = class la extends Ca {
|
|
|
35828
35833
|
...t,
|
|
35829
35834
|
basic: [
|
|
35830
35835
|
...t.basic,
|
|
35831
|
-
new xt([this, "poiMode"],
|
|
35836
|
+
new xt([this, "poiMode"], Wl.modes, "poi模式", "SquareH01"),
|
|
35832
35837
|
new M([this, "poiOffsetHeight"], "poi高度偏移", 1.8)
|
|
35833
35838
|
]
|
|
35834
35839
|
};
|
|
@@ -36083,7 +36088,7 @@ const od = {
|
|
|
36083
36088
|
} catch (s) {
|
|
36084
36089
|
console.error(s);
|
|
36085
36090
|
}
|
|
36086
|
-
},
|
|
36091
|
+
}, WE = async (r, e, t) => {
|
|
36087
36092
|
try {
|
|
36088
36093
|
const n = globalThis.localStorage.getItem("Authorization");
|
|
36089
36094
|
let i = r;
|
|
@@ -36102,7 +36107,7 @@ const od = {
|
|
|
36102
36107
|
} catch (n) {
|
|
36103
36108
|
console.error(n);
|
|
36104
36109
|
}
|
|
36105
|
-
},
|
|
36110
|
+
}, qE = async (r, e, t, n, i) => {
|
|
36106
36111
|
try {
|
|
36107
36112
|
const s = { tileServiceName: e, featureId: t }, o = globalThis.localStorage.getItem("Authorization");
|
|
36108
36113
|
let a = r + od.featureproperty;
|
|
@@ -36284,7 +36289,7 @@ const od = {
|
|
|
36284
36289
|
* @returns 要素属性。
|
|
36285
36290
|
*/
|
|
36286
36291
|
async getFeatureProperty(t) {
|
|
36287
|
-
return await
|
|
36292
|
+
return await qE(this.baseUrl, this.tileServiceName, t, this.useEarthDSToken, this.earthdstoken);
|
|
36288
36293
|
}
|
|
36289
36294
|
/**
|
|
36290
36295
|
* 获取图层配置。
|
|
@@ -36387,7 +36392,7 @@ const od = {
|
|
|
36387
36392
|
* @returns 端口号。
|
|
36388
36393
|
*/
|
|
36389
36394
|
async getport() {
|
|
36390
|
-
const t = await
|
|
36395
|
+
const t = await WE(this.url, this.useEarthDSToken, this.earthdstoken);
|
|
36391
36396
|
if (t)
|
|
36392
36397
|
return this.tilesetServePort = t, t;
|
|
36393
36398
|
throw new Error("服务地址port获取失败!");
|
|
@@ -36830,7 +36835,7 @@ const Fp = {
|
|
|
36830
36835
|
}
|
|
36831
36836
|
\`\`\`
|
|
36832
36837
|
`
|
|
36833
|
-
}, ro = class ro extends
|
|
36838
|
+
}, ro = class ro extends Wt {
|
|
36834
36839
|
/**
|
|
36835
36840
|
* 构造函数
|
|
36836
36841
|
* @param {string} [id] - 对象的ID
|
|
@@ -36857,7 +36862,7 @@ const Fp = {
|
|
|
36857
36862
|
}
|
|
36858
36863
|
};
|
|
36859
36864
|
d(ro, "createDefaultProps", () => ({
|
|
36860
|
-
...
|
|
36865
|
+
...Wt.createDefaultProps(),
|
|
36861
36866
|
/**
|
|
36862
36867
|
* POI图块集的URL
|
|
36863
36868
|
* @type {string | ESJResource}
|
|
@@ -37075,7 +37080,7 @@ d(io, "supportEditingModes", [
|
|
|
37075
37080
|
tt.HeightModify
|
|
37076
37081
|
]);
|
|
37077
37082
|
let Vp = io;
|
|
37078
|
-
const Br = class Br extends
|
|
37083
|
+
const Br = class Br extends Wt {
|
|
37079
37084
|
/**
|
|
37080
37085
|
* 构造函数
|
|
37081
37086
|
* @param {string} [id] - 对象的ID
|
|
@@ -37156,7 +37161,7 @@ const Br = class Br extends qt {
|
|
|
37156
37161
|
new rt([this, "url"], "地址", Br.defaults.url),
|
|
37157
37162
|
new M([this, "pixelRange"], "集合范围", Br.defaults.pixelRange),
|
|
37158
37163
|
new M([this, "minimumClusterSize"], "最小数量", Br.defaults.minimumClusterSize),
|
|
37159
|
-
new xt([this, "heightReference"], [["
|
|
37164
|
+
new xt([this, "heightReference"], [["NONE", "NONE"], ["CLAMP_TO_GROUND", "CLAMP_TO_GROUND"], ["CLAMP_TO_TERRAIN", "CLAMP_TO_TERRAIN"]], "高度模式", "NONE")
|
|
37160
37165
|
],
|
|
37161
37166
|
more: [
|
|
37162
37167
|
...t.more,
|
|
@@ -37167,7 +37172,7 @@ const Br = class Br extends qt {
|
|
|
37167
37172
|
}
|
|
37168
37173
|
};
|
|
37169
37174
|
d(Br, "createDefaultProps", () => ({
|
|
37170
|
-
...
|
|
37175
|
+
...Wt.createDefaultProps(),
|
|
37171
37176
|
/**数据服务或数据体
|
|
37172
37177
|
* @type {string | ESJResource | { [xx: string]: any }}
|
|
37173
37178
|
*/
|
|
@@ -37354,7 +37359,7 @@ d(pa, "createDefaultProps", () => ({
|
|
|
37354
37359
|
* 静态属性,用于注册 ESPlayer 类型,包含中文名称、标签和描述信息。
|
|
37355
37360
|
*/
|
|
37356
37361
|
d(pa, "type", pa.register("ESPlayer", pa, { chsName: "ESPlayer", tags: ["ESObjects", "_ES_Impl_UE"], description: "ESPlayer" }));
|
|
37357
|
-
let
|
|
37362
|
+
let Wu = pa;
|
|
37358
37363
|
function uv(r, e = !1) {
|
|
37359
37364
|
const t = r.map((i) => [i[0], [...i[1]], i[2] ? [...i[2]] : void 0]), n = t.length;
|
|
37360
37365
|
if (n === 0) return t;
|
|
@@ -38237,7 +38242,7 @@ d(ga, "createDefaultProps", () => ({
|
|
|
38237
38242
|
* 静态属性,用于注册 ESPath 类,包含名称、中文名称、标签和描述信息。
|
|
38238
38243
|
*/
|
|
38239
38244
|
d(ga, "type", ga.register("ESPath", ga, { chsName: "ESPath", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "ESPath" }));
|
|
38240
|
-
let
|
|
38245
|
+
let qu = ga;
|
|
38241
38246
|
const so = class so extends It {
|
|
38242
38247
|
constructor(t) {
|
|
38243
38248
|
super(t);
|
|
@@ -38329,7 +38334,7 @@ const ws = class ws extends st {
|
|
|
38329
38334
|
new X([this, "textEditingInteraction"], "文本编辑交互"),
|
|
38330
38335
|
new X([this, "textEditing"], "文本编辑"),
|
|
38331
38336
|
new M([this, "width"], "宽度", ws.defaults.width, !0),
|
|
38332
|
-
new
|
|
38337
|
+
new Wg([this, "text"], "内容", ws.defaults.text, void 0, !0),
|
|
38333
38338
|
new Ci([this, "originRatioAndOffset"], "原点比例和偏移"),
|
|
38334
38339
|
new M([this, "opacity"], "透明度"),
|
|
38335
38340
|
new M([this, "fontSize"], "字体大小"),
|
|
@@ -38647,7 +38652,7 @@ d(va, "createDefaultProps", () => ({
|
|
|
38647
38652
|
* 静态属性,用于注册ESNavigator类,包含类型名称、中文名称、标签和描述信息。
|
|
38648
38653
|
*/
|
|
38649
38654
|
d(va, "type", va.register("ESNavigator", va, { chsName: "导航控件", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "导航控件" }));
|
|
38650
|
-
let
|
|
38655
|
+
let Wp = va;
|
|
38651
38656
|
const vi = class vi extends nt {
|
|
38652
38657
|
/**
|
|
38653
38658
|
* 构造函数,可传入一个可选的场景对象键。
|
|
@@ -38698,7 +38703,7 @@ d(vi, "createDefaultProps", () => ({
|
|
|
38698
38703
|
* 静态属性,用于注册 ESViewerStatusBar 类型,包含类型名称、中文名称、标签和描述信息。
|
|
38699
38704
|
*/
|
|
38700
38705
|
d(vi, "type", vi.register("ESViewerStatusBar", vi, { chsName: "状态栏", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "状态栏" }));
|
|
38701
|
-
let
|
|
38706
|
+
let qp = vi;
|
|
38702
38707
|
const yi = class yi extends nt {
|
|
38703
38708
|
/**
|
|
38704
38709
|
* 构造函数,创建 ESViewerStatusBarScale 实例。
|
|
@@ -38921,7 +38926,7 @@ d(_a, "createDefaultProps", () => ({
|
|
|
38921
38926
|
*/
|
|
38922
38927
|
d(_a, "type", _a.register("ESSkylineAnalysis", _a, { chsName: "天际线分析", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "分析类" }));
|
|
38923
38928
|
let Jp = _a;
|
|
38924
|
-
const zi = class zi extends
|
|
38929
|
+
const zi = class zi extends Wt {
|
|
38925
38930
|
constructor(e) {
|
|
38926
38931
|
super(e);
|
|
38927
38932
|
}
|
|
@@ -38941,7 +38946,7 @@ const zi = class zi extends qt {
|
|
|
38941
38946
|
}
|
|
38942
38947
|
};
|
|
38943
38948
|
d(zi, "createDefaultProps", () => ({
|
|
38944
|
-
...
|
|
38949
|
+
...Wt.createDefaultProps(),
|
|
38945
38950
|
is3D: k(!1),
|
|
38946
38951
|
data: Ch([]),
|
|
38947
38952
|
gradient: ie({
|
|
@@ -39501,7 +39506,7 @@ class lC extends V {
|
|
|
39501
39506
|
}
|
|
39502
39507
|
}
|
|
39503
39508
|
]
|
|
39504
|
-
}, s = this.dv(new
|
|
39509
|
+
}, s = this.dv(new ql());
|
|
39505
39510
|
this.d(this.sceneObject.components.disposableAdd(s));
|
|
39506
39511
|
const o = this.dv(new Uu());
|
|
39507
39512
|
this.d(this.sceneObject.components.disposableAdd(o)), s.textDefaultText = "";
|
|
@@ -39593,7 +39598,7 @@ class cC extends V {
|
|
|
39593
39598
|
console.warn("PolyLineLayer: points length is less than 3");
|
|
39594
39599
|
return;
|
|
39595
39600
|
}
|
|
39596
|
-
const i = this.dv(new
|
|
39601
|
+
const i = this.dv(new qu()), s = this.dv(new Wu());
|
|
39597
39602
|
if (this.d(this.sceneObject.components.disposableAdd(i)), this.d(this.sceneObject.components.disposableAdd(s)), i.points = [...n], i.speed = t.speed, i.strokeColor = t.color, i.materialMode = t.materialMode, i.strokeWidth = t.width || 1, t != null && t.runModel) {
|
|
39598
39603
|
const a = t == null ? void 0 : t.runSpeed, u = t == null ? void 0 : t.modelSymbol;
|
|
39599
39604
|
let l;
|
|
@@ -39747,7 +39752,7 @@ class hC extends V {
|
|
|
39747
39752
|
}
|
|
39748
39753
|
}
|
|
39749
39754
|
]
|
|
39750
|
-
}, f = this.dv(new
|
|
39755
|
+
}, f = this.dv(new ql());
|
|
39751
39756
|
this.d(this.sceneObject.components.disposableAdd(f)), f.textDefaultText = "", f.imageUrl = u, l && (f.imageAnchor = l), o && (f.imageOffset = o), a && (f.imageSize = a), f.url = h;
|
|
39752
39757
|
}
|
|
39753
39758
|
}
|
|
@@ -39807,7 +39812,7 @@ class dC extends V {
|
|
|
39807
39812
|
this._initEvent.emit();
|
|
39808
39813
|
}
|
|
39809
39814
|
}
|
|
39810
|
-
const wa = class wa extends
|
|
39815
|
+
const wa = class wa extends Wt {
|
|
39811
39816
|
constructor(t) {
|
|
39812
39817
|
super(t);
|
|
39813
39818
|
d(this, "featureLayerMap", /* @__PURE__ */ new Map());
|
|
@@ -39830,7 +39835,7 @@ const wa = class wa extends qt {
|
|
|
39830
39835
|
}
|
|
39831
39836
|
};
|
|
39832
39837
|
d(wa, "createDefaultProps", () => ({
|
|
39833
|
-
...
|
|
39838
|
+
...Wt.createDefaultProps(),
|
|
39834
39839
|
featureProps: ie(void 0)
|
|
39835
39840
|
})), d(wa, "type", wa.register("ESFeatureLayer", wa, { chsName: "矢量图层", tags: ["ESObjects"], description: "ESFeatureLayer" }));
|
|
39836
39841
|
let rg = wa;
|
|
@@ -40126,7 +40131,7 @@ class bl extends V {
|
|
|
40126
40131
|
if (t === "video")
|
|
40127
40132
|
return new Oy(this, this.uri);
|
|
40128
40133
|
if (t === "gif")
|
|
40129
|
-
return new
|
|
40134
|
+
return new qy(this, this.uri);
|
|
40130
40135
|
if (t === "hls")
|
|
40131
40136
|
return new gC(this, this.uri);
|
|
40132
40137
|
if (t === "flv")
|
|
@@ -40600,7 +40605,7 @@ function Je(r, e) {
|
|
|
40600
40605
|
]
|
|
40601
40606
|
};
|
|
40602
40607
|
}
|
|
40603
|
-
function
|
|
40608
|
+
function Wn(r, e) {
|
|
40604
40609
|
return {
|
|
40605
40610
|
content: [
|
|
40606
40611
|
{
|
|
@@ -40623,7 +40628,7 @@ const ox = (r) => [
|
|
|
40623
40628
|
var t;
|
|
40624
40629
|
try {
|
|
40625
40630
|
let n = [120.363551, 28.909792, 22191655], i = [0.1, -90, 0];
|
|
40626
|
-
return e === "china" && (n = [106.245513, 37.209745, 9812382], i = [0.1, -90, 0]), (t = r.activeViewer) == null || t.flyIn(n, i, 1),
|
|
40631
|
+
return e === "china" && (n = [106.245513, 37.209745, 9812382], i = [0.1, -90, 0]), (t = r.activeViewer) == null || t.flyIn(n, i, 1), Wn();
|
|
40627
40632
|
} catch (n) {
|
|
40628
40633
|
return Je(n);
|
|
40629
40634
|
}
|
|
@@ -40639,7 +40644,7 @@ const ox = (r) => [
|
|
|
40639
40644
|
var e;
|
|
40640
40645
|
try {
|
|
40641
40646
|
const t = (e = r.activeViewer) == null ? void 0 : e.getCurrentCameraInfo();
|
|
40642
|
-
return t ?
|
|
40647
|
+
return t ? Wn(t) : Je();
|
|
40643
40648
|
} catch (t) {
|
|
40644
40649
|
return Je(t);
|
|
40645
40650
|
}
|
|
@@ -40653,7 +40658,7 @@ const ox = (r) => [
|
|
|
40653
40658
|
},
|
|
40654
40659
|
func: async ({}) => {
|
|
40655
40660
|
try {
|
|
40656
|
-
return r.cameraViewsManager.addView(),
|
|
40661
|
+
return r.cameraViewsManager.addView(), Wn();
|
|
40657
40662
|
} catch (e) {
|
|
40658
40663
|
return Je(e);
|
|
40659
40664
|
}
|
|
@@ -40669,7 +40674,7 @@ const ox = (r) => [
|
|
|
40669
40674
|
},
|
|
40670
40675
|
func: async ({ op: e }) => {
|
|
40671
40676
|
try {
|
|
40672
|
-
return e === "play" ? r.cameraViewsManager.playing = !0 : r.cameraViewsManager.stop(),
|
|
40677
|
+
return e === "play" ? r.cameraViewsManager.playing = !0 : r.cameraViewsManager.stop(), Wn();
|
|
40673
40678
|
} catch (t) {
|
|
40674
40679
|
return Je(t);
|
|
40675
40680
|
}
|
|
@@ -40691,7 +40696,7 @@ const ox = (r) => [
|
|
|
40691
40696
|
position: [e.x, e.y, e.z || 100],
|
|
40692
40697
|
rotation: [t.h || 0, t.p || 0, t.r || 0]
|
|
40693
40698
|
};
|
|
40694
|
-
return (n = r.activeViewer) == null || n.flyIn(i.position, i.rotation),
|
|
40699
|
+
return (n = r.activeViewer) == null || n.flyIn(i.position, i.rotation), Wn();
|
|
40695
40700
|
} catch (i) {
|
|
40696
40701
|
return Je(i);
|
|
40697
40702
|
}
|
|
@@ -40708,7 +40713,7 @@ const ox = (r) => [
|
|
|
40708
40713
|
func: async ({ id: e }) => {
|
|
40709
40714
|
try {
|
|
40710
40715
|
const t = r.getSceneObjectById(e);
|
|
40711
|
-
return t ? Reflect.has(t, "flyTo") ? (t.flyTo(),
|
|
40716
|
+
return t ? Reflect.has(t, "flyTo") ? (t.flyTo(), Wn()) : Je(`对象 ${t.id} 没有方法 flyTo`) : Je("未查询到该对象");
|
|
40712
40717
|
} catch (t) {
|
|
40713
40718
|
return Je(t);
|
|
40714
40719
|
}
|
|
@@ -40723,7 +40728,7 @@ const ox = (r) => [
|
|
|
40723
40728
|
func: async ({}) => {
|
|
40724
40729
|
var e;
|
|
40725
40730
|
try {
|
|
40726
|
-
return (e = r.activeViewer) == null || e.changeToMap(),
|
|
40731
|
+
return (e = r.activeViewer) == null || e.changeToMap(), Wn();
|
|
40727
40732
|
} catch (t) {
|
|
40728
40733
|
return Je(t);
|
|
40729
40734
|
}
|
|
@@ -40747,7 +40752,7 @@ const ox = (r) => [
|
|
|
40747
40752
|
height: t || 1e7,
|
|
40748
40753
|
cycleTime: n || 60
|
|
40749
40754
|
};
|
|
40750
|
-
return (i = r.activeViewer) == null || i.changeToRotateGlobe(s.latitude, s.height, s.cycleTime),
|
|
40755
|
+
return (i = r.activeViewer) == null || i.changeToRotateGlobe(s.latitude, s.height, s.cycleTime), Wn();
|
|
40751
40756
|
} catch (s) {
|
|
40752
40757
|
return Je(s);
|
|
40753
40758
|
}
|
|
@@ -40775,7 +40780,7 @@ const ox = (r) => [
|
|
|
40775
40780
|
heading: i || 0,
|
|
40776
40781
|
pitch: s || -30
|
|
40777
40782
|
};
|
|
40778
|
-
return (o = r.activeViewer) == null || o.changeToRotatePoint(a.position, a.distance, a.orbitPeriod, a.heading, a.pitch),
|
|
40783
|
+
return (o = r.activeViewer) == null || o.changeToRotatePoint(a.position, a.distance, a.orbitPeriod, a.heading, a.pitch), Wn();
|
|
40779
40784
|
} catch (a) {
|
|
40780
40785
|
return Je(a);
|
|
40781
40786
|
}
|
|
@@ -40799,7 +40804,7 @@ const ox = (r) => [
|
|
|
40799
40804
|
jumpZVelocity: t || 4.2,
|
|
40800
40805
|
eyeHeight: n || 1.6
|
|
40801
40806
|
};
|
|
40802
|
-
return (i = r.activeViewer) == null || i.changeToWalk(s.position, s.jumpZVelocity, s.eyeHeight),
|
|
40807
|
+
return (i = r.activeViewer) == null || i.changeToWalk(s.position, s.jumpZVelocity, s.eyeHeight), Wn();
|
|
40803
40808
|
} catch (s) {
|
|
40804
40809
|
return Je(s);
|
|
40805
40810
|
}
|
|
@@ -40829,7 +40834,7 @@ const ox = (r) => [
|
|
|
40829
40834
|
turnRateDPS: s || 10,
|
|
40830
40835
|
lineMode: o || "auto"
|
|
40831
40836
|
};
|
|
40832
|
-
return (a = r.activeViewer) == null || a.changeToLine(u.lineObjectId, u.speed, u.heightOffset, u.loop, u.turnRateDPS, u.lineMode),
|
|
40837
|
+
return (a = r.activeViewer) == null || a.changeToLine(u.lineObjectId, u.speed, u.heightOffset, u.loop, u.turnRateDPS, u.lineMode), Wn();
|
|
40833
40838
|
} catch (u) {
|
|
40834
40839
|
return Je(u);
|
|
40835
40840
|
}
|
|
@@ -40857,7 +40862,7 @@ const ox = (r) => [
|
|
|
40857
40862
|
pitch: i || -30,
|
|
40858
40863
|
relativeRotation: s || !0
|
|
40859
40864
|
};
|
|
40860
|
-
return (o = r.activeViewer) == null || o.changeToFollow(a.positionObjectId, a.distance, a.heading, a.pitch, a.relativeRotation),
|
|
40865
|
+
return (o = r.activeViewer) == null || o.changeToFollow(a.positionObjectId, a.distance, a.heading, a.pitch, a.relativeRotation), Wn();
|
|
40861
40866
|
} catch (a) {
|
|
40862
40867
|
return Je(a);
|
|
40863
40868
|
}
|
|
@@ -40868,10 +40873,10 @@ const ox = (r) => [
|
|
|
40868
40873
|
params: {
|
|
40869
40874
|
description: "相机视角微调,相机拉近(distance=near)、拉远(distance=far)、左移/左转(heading=left)、右移/右转(heading=right)、向上抬(pitch=up)、向下压(pitch=down)、顺时针旋转(roll=clockwise)、逆时针旋转(roll=counterclockwise)",
|
|
40870
40875
|
inputSchema: {
|
|
40871
|
-
distance: mt.enum(["far", "near"]),
|
|
40872
|
-
heading: mt.enum(["left", "right"]),
|
|
40873
|
-
pitch: mt.enum(["up", "down"]),
|
|
40874
|
-
roll: mt.enum(["clockwise", "counterclockwise"])
|
|
40876
|
+
distance: mt.enum(["far", "near", "keep"]).optional(),
|
|
40877
|
+
heading: mt.enum(["left", "right", "keep"]).optional(),
|
|
40878
|
+
pitch: mt.enum(["up", "down", "keep"]).optional(),
|
|
40879
|
+
roll: mt.enum(["clockwise", "counterclockwise", "keep"]).optional()
|
|
40875
40880
|
}
|
|
40876
40881
|
},
|
|
40877
40882
|
func: async ({ distance: e, heading: t, pitch: n, roll: i }) => {
|
|
@@ -40880,15 +40885,15 @@ const ox = (r) => [
|
|
|
40880
40885
|
const a = (s = r.activeViewer) == null ? void 0 : s.getCurrentCameraInfo();
|
|
40881
40886
|
if (!a) return Je("Camera info is null");
|
|
40882
40887
|
const u = {
|
|
40883
|
-
height: e === "near" ? a.position[2] - 100 : a.position[2] + 100,
|
|
40884
|
-
heading: t === "left" ? a.rotation[0] - 10 : a.rotation[0] + 10,
|
|
40885
|
-
pitch: n === "up" ? a.rotation[1] - 10 : a.rotation[1] + 10,
|
|
40886
|
-
roll: i === "clockwise" ? a.rotation[2] - 10 : a.rotation[2] + 10
|
|
40888
|
+
height: e === "near" ? a.position[2] - 100 : e === "far" ? a.position[2] + 100 : a.position[2],
|
|
40889
|
+
heading: t === "left" ? a.rotation[0] - 10 : t === "right" ? a.rotation[0] + 10 : a.rotation[0],
|
|
40890
|
+
pitch: n === "up" ? a.rotation[1] - 10 : n === "down" ? a.rotation[1] + 10 : a.rotation[1],
|
|
40891
|
+
roll: i === "clockwise" ? a.rotation[2] - 10 : i === "counterclockwise" ? a.rotation[2] + 10 : a.rotation[2]
|
|
40887
40892
|
}, l = {
|
|
40888
40893
|
position: [a.position[0], a.position[1], u.height],
|
|
40889
40894
|
rotation: [u.heading, u.pitch, u.roll]
|
|
40890
40895
|
};
|
|
40891
|
-
return (o = r.activeViewer) == null || o.flyIn(l.position, l.rotation),
|
|
40896
|
+
return (o = r.activeViewer) == null || o.flyIn(l.position, l.rotation), Wn();
|
|
40892
40897
|
} catch (a) {
|
|
40893
40898
|
return Je(a);
|
|
40894
40899
|
}
|
|
@@ -41029,7 +41034,7 @@ const ox = (r) => [
|
|
|
41029
41034
|
function gv(r) {
|
|
41030
41035
|
return typeof r == "string" ? document.getElementById(r) : r;
|
|
41031
41036
|
}
|
|
41032
|
-
function
|
|
41037
|
+
function Wc(r) {
|
|
41033
41038
|
if (!r) throw new Error("container is not defined");
|
|
41034
41039
|
r.innerHTML = "";
|
|
41035
41040
|
const e = document.createElement("div");
|
|
@@ -41122,7 +41127,7 @@ class SC extends V {
|
|
|
41122
41127
|
}
|
|
41123
41128
|
}
|
|
41124
41129
|
this.dv(new ig(t.sceneObjectsManager, (i) => {
|
|
41125
|
-
if (i instanceof
|
|
41130
|
+
if (i instanceof qu)
|
|
41126
41131
|
return new n(i);
|
|
41127
41132
|
}));
|
|
41128
41133
|
}
|
|
@@ -41143,7 +41148,7 @@ class SC extends V {
|
|
|
41143
41148
|
}
|
|
41144
41149
|
}
|
|
41145
41150
|
this.dv(new ig(t.sceneObjectsManager, (i) => {
|
|
41146
|
-
if (i instanceof
|
|
41151
|
+
if (i instanceof Wu)
|
|
41147
41152
|
return new n(i);
|
|
41148
41153
|
}));
|
|
41149
41154
|
}
|
|
@@ -41188,7 +41193,7 @@ class xC extends V {
|
|
|
41188
41193
|
const n = [];
|
|
41189
41194
|
for (let i = 0; i < this.channels.length; i++) {
|
|
41190
41195
|
const s = this.channels[i], o = nt.getSceneObjById(s.pathId);
|
|
41191
|
-
if (!o || !(o instanceof
|
|
41196
|
+
if (!o || !(o instanceof qu)) continue;
|
|
41192
41197
|
const u = s.sceneObjectIds.map((l) => nt.getSceneObjById(l)).filter((l) => l !== void 0);
|
|
41193
41198
|
u.length !== 0 && n.push({ path: o, sceneObjects: u });
|
|
41194
41199
|
}
|
|
@@ -41863,7 +41868,7 @@ class GC extends V {
|
|
|
41863
41868
|
this.d(y.don((g) => this._viewer.wheelEvent.emit(g)));
|
|
41864
41869
|
}
|
|
41865
41870
|
}
|
|
41866
|
-
const
|
|
41871
|
+
const Wi = class Wi extends V {
|
|
41867
41872
|
/**
|
|
41868
41873
|
* 构造函数,初始化视口。
|
|
41869
41874
|
* @param option 视口的选项。
|
|
@@ -41959,7 +41964,7 @@ const qi = class qi extends V {
|
|
|
41959
41964
|
/**
|
|
41960
41965
|
* 视口的状态信息。
|
|
41961
41966
|
*/
|
|
41962
|
-
d(this, "_statusInfo",
|
|
41967
|
+
d(this, "_statusInfo", Wi.defaults.statusInfo);
|
|
41963
41968
|
/**
|
|
41964
41969
|
* 导航模式,使用响应式变量存储。
|
|
41965
41970
|
*/
|
|
@@ -42035,7 +42040,7 @@ const qi = class qi extends V {
|
|
|
42035
42040
|
this._id = t.id ?? Hu();
|
|
42036
42041
|
const n = gv(t.container);
|
|
42037
42042
|
if (n)
|
|
42038
|
-
this._container.value =
|
|
42043
|
+
this._container.value = Wc(n), this._typeName = t.type, this._initName();
|
|
42039
42044
|
else
|
|
42040
42045
|
throw new Error("container is not defined");
|
|
42041
42046
|
{
|
|
@@ -42127,8 +42132,8 @@ const qi = class qi extends V {
|
|
|
42127
42132
|
set containerOrId(t) {
|
|
42128
42133
|
if (typeof t == "string") {
|
|
42129
42134
|
const n = document.getElementById(t);
|
|
42130
|
-
n && n instanceof HTMLDivElement ? this._container.value =
|
|
42131
|
-
} else t instanceof HTMLDivElement ? this._container.value =
|
|
42135
|
+
n && n instanceof HTMLDivElement ? this._container.value = Wc(n) : console.warn("containerOrId warn: !(container instanceof HTMLDivElement)");
|
|
42136
|
+
} else t instanceof HTMLDivElement ? this._container.value = Wc(t) : console.warn("containerOrId warn: setting container failed!");
|
|
42132
42137
|
}
|
|
42133
42138
|
/**
|
|
42134
42139
|
* 获取容器变化的事件。
|
|
@@ -42363,7 +42368,7 @@ const qi = class qi extends V {
|
|
|
42363
42368
|
* 获取视口的默认属性。
|
|
42364
42369
|
*/
|
|
42365
42370
|
get defaultProps() {
|
|
42366
|
-
return
|
|
42371
|
+
return Wi.createDefaultProps();
|
|
42367
42372
|
}
|
|
42368
42373
|
/**
|
|
42369
42374
|
* 获取视口的 JSON 表示,包含所有属性。包括默认值。
|
|
@@ -42712,13 +42717,13 @@ const qi = class qi extends V {
|
|
|
42712
42717
|
/**
|
|
42713
42718
|
* 视口的上下文对象。
|
|
42714
42719
|
*/
|
|
42715
|
-
d(
|
|
42720
|
+
d(Wi, "context", new UC()), /**
|
|
42716
42721
|
* 注册视口的方法。
|
|
42717
42722
|
*/
|
|
42718
|
-
d(
|
|
42723
|
+
d(Wi, "register", Wi.context.register.bind(Wi.context)), /**
|
|
42719
42724
|
* 视口的默认属性。
|
|
42720
42725
|
*/
|
|
42721
|
-
d(
|
|
42726
|
+
d(Wi, "defaults", {
|
|
42722
42727
|
show: !0,
|
|
42723
42728
|
debug: !1,
|
|
42724
42729
|
statusInfo: {
|
|
@@ -42759,7 +42764,7 @@ d(qi, "defaults", {
|
|
|
42759
42764
|
depthTestAgainstTerrain: !0,
|
|
42760
42765
|
terrainOpacity: 1
|
|
42761
42766
|
});
|
|
42762
|
-
let Mi =
|
|
42767
|
+
let Mi = Wi;
|
|
42763
42768
|
((r) => {
|
|
42764
42769
|
r.createBaseProps = () => ({
|
|
42765
42770
|
/**
|
|
@@ -42964,7 +42969,7 @@ function ag(r, e) {
|
|
|
42964
42969
|
});
|
|
42965
42970
|
}
|
|
42966
42971
|
}
|
|
42967
|
-
const
|
|
42972
|
+
const WC = (r) => {
|
|
42968
42973
|
const e = Mi.createCommonProps(), t = {};
|
|
42969
42974
|
try {
|
|
42970
42975
|
Object.keys(e).forEach((n) => {
|
|
@@ -42984,7 +42989,7 @@ const qC = (r) => {
|
|
|
42984
42989
|
console.warn(n);
|
|
42985
42990
|
}
|
|
42986
42991
|
};
|
|
42987
|
-
class
|
|
42992
|
+
class qC extends V {
|
|
42988
42993
|
/**
|
|
42989
42994
|
* 构造函数,初始化 `ViewersManager` 实例。
|
|
42990
42995
|
* @param _sceneObjectsManager 场景对象管理器实例,用于处理场景对象和视口之间的关联。
|
|
@@ -43095,7 +43100,7 @@ class WC extends V {
|
|
|
43095
43100
|
return t.isDestroyed() ? !0 : (this._viewers.delete(t), this._viewersChanged.emit([t], []), t.destroy(), t.isDestroyed());
|
|
43096
43101
|
}
|
|
43097
43102
|
}
|
|
43098
|
-
class
|
|
43103
|
+
class qc extends V {
|
|
43099
43104
|
/**
|
|
43100
43105
|
* ESObjectsManager 类的构造函数。
|
|
43101
43106
|
* @param args - 构造函数参数。
|
|
@@ -43113,7 +43118,7 @@ class Wc extends V {
|
|
|
43113
43118
|
/**
|
|
43114
43119
|
* 视口管理器,管理所有视口。
|
|
43115
43120
|
*/
|
|
43116
|
-
d(this, "_vrm", this.dv(new
|
|
43121
|
+
d(this, "_vrm", this.dv(new qC(this._sobjm)));
|
|
43117
43122
|
/**
|
|
43118
43123
|
* 场景对象编辑管理器。
|
|
43119
43124
|
*/
|
|
@@ -43184,7 +43189,7 @@ class Wc extends V {
|
|
|
43184
43189
|
/**
|
|
43185
43190
|
* 用于驱动动画的播放器。
|
|
43186
43191
|
*/
|
|
43187
|
-
d(this, "_player", this.createSceneObjectFromClass(
|
|
43192
|
+
d(this, "_player", this.createSceneObjectFromClass(Wu));
|
|
43188
43193
|
/**
|
|
43189
43194
|
* 销毁播放器的方法。
|
|
43190
43195
|
*/
|
|
@@ -43443,9 +43448,9 @@ class Wc extends V {
|
|
|
43443
43448
|
* @returns 切换后的视口。
|
|
43444
43449
|
*/
|
|
43445
43450
|
switchViewer(t, n = !0, i = !0, s = !0) {
|
|
43446
|
-
var l;
|
|
43447
|
-
this.activeViewer && this.activeViewer.getNavigationMode() !== "Map" && this.activeViewer.changeToMap(), !this._lastCameraInfo && n && (this._lastCameraInfo = (l = this.activeViewer) == null ? void 0 : l.getCurrentCameraInfo()), !this._lastActiveViewerJson && i && (this._lastActiveViewerJson = this.activeViewer ?
|
|
43448
|
-
const o = t.id, a = o ? [...this.getViewers()].find((
|
|
43451
|
+
var l, c;
|
|
43452
|
+
this.activeViewer && this.activeViewer.getNavigationMode() !== "Map" && this.activeViewer.changeToMap(), !this._lastCameraInfo && n && (this._lastCameraInfo = (l = this.activeViewer) == null ? void 0 : l.getCurrentCameraInfo(), ((c = this.activeViewer) == null ? void 0 : c.typeName) == "ESOlViewer" && this._lastCameraInfo && (this._lastCameraInfo.rotation[1] = -90)), !this._lastActiveViewerJson && i && (this._lastActiveViewerJson = this.activeViewer ? WC(this.activeViewer) : void 0), s && this.activeViewer && this.destroyViewer(this.activeViewer);
|
|
43453
|
+
const o = t.id, a = o ? [...this.getViewers()].find((h) => h.id === o) : [...this.getViewers()].find((h) => h.typeName === t.type && !h.container);
|
|
43449
43454
|
if (a)
|
|
43450
43455
|
if (o && a.typeName !== t.type)
|
|
43451
43456
|
console.warn(`id为${o}的viewer的typeName和option.type${t.type}不相同!,虽然id一致但是typeName不同,所以会销毁并创建新的viewer`), this.destroyViewer(a);
|
|
@@ -43467,15 +43472,15 @@ class Wc extends V {
|
|
|
43467
43472
|
switchToUEViewer(...t) {
|
|
43468
43473
|
let n, i = { viewSync: !0, attributeSync: !0, destroy: !0 };
|
|
43469
43474
|
if (typeof t[0] == "object" && !(t[0] instanceof HTMLDivElement) && t[0].hasOwnProperty("uri")) {
|
|
43470
|
-
const { container: u, uri: l, app: c, token: h, viewSync: f, attributeSync: p, destroy: m, id: E } = t[0];
|
|
43471
|
-
n = { type: "ESUeViewer", container: u, id: E, options: { uri: l, app: c, token: h } }, i = { viewSync: f ?? !0, attributeSync: p ?? !0, destroy: m ?? !0 };
|
|
43475
|
+
const { container: u, uri: l, app: c, token: h, viewSync: f, attributeSync: p, destroy: m, id: E, silentTime: C } = t[0];
|
|
43476
|
+
n = { type: "ESUeViewer", container: u, id: E, options: { uri: l, app: c, token: h, silentTime: C } }, i = { viewSync: f ?? !0, attributeSync: p ?? !0, destroy: m ?? !0 };
|
|
43472
43477
|
} else if (typeof t[0] == "object" && !(t[0] instanceof HTMLDivElement) && t[0].hasOwnProperty("ws")) {
|
|
43473
|
-
const { container: u, ws: l, esmsg: c, viewSync: h, attributeSync: f, id: p, destroy: m } = t[0];
|
|
43474
|
-
n = { type: "ESUeViewer", container: u, id: p, options: { ws: l, esmsg: c } }, i = { viewSync: h ?? !0, attributeSync: f ?? !0, destroy: m ?? !0 };
|
|
43478
|
+
const { container: u, ws: l, esmsg: c, viewSync: h, attributeSync: f, id: p, destroy: m, silentTime: E } = t[0];
|
|
43479
|
+
n = { type: "ESUeViewer", container: u, id: p, options: { ws: l, esmsg: c, silentTime: E } }, i = { viewSync: h ?? !0, attributeSync: f ?? !0, destroy: m ?? !0 };
|
|
43475
43480
|
} else if (typeof t[0] == "object" && !(t[0] instanceof HTMLDivElement) && t[0].hasOwnProperty("project")) {
|
|
43476
43481
|
const { container: u, project: l, baseUrl: c, viewSync: h, attributeSync: f, id: p, destroy: m } = t[0];
|
|
43477
43482
|
n = { type: "ESUeViewer", container: u, id: p, options: { project: l, baseUrl: c } }, i = { viewSync: h ?? !0, attributeSync: f ?? !0, destroy: m ?? !0 };
|
|
43478
|
-
} else (typeof t[0] == "string" || t[0] instanceof HTMLDivElement) && (typeof t[1] == "string" && t[1].startsWith("ws") ? (n = { type: "ESUeViewer", container: t[0], id: t[6], options: { ws: t[1], esmsg: t[2] ?? void 0 } }, i = { viewSync: t[3] ?? !0, attributeSync: t[4] ?? !0, destroy: t[5] ?? !0 }) : typeof t[1] == "string" && t[1].startsWith("http") ? (n = { type: "ESUeViewer", container: t[0], id: t[7], options: { uri: t[1], app: t[2], token: t[3] ?? void 0 } }, i = { viewSync: t[4] ?? !0, attributeSync: t[5] ?? !0, destroy: t[6] ?? !0 }) : (n = { type: "ESUeViewer", container: t[0], id: t[6], options: { project: t[1], baseUrl: t[2] ?? void 0 } }, i = { viewSync: t[3] ?? !0, attributeSync: t[4] ?? !0, destroy: t[5] ?? !0 }));
|
|
43483
|
+
} else (typeof t[0] == "string" || t[0] instanceof HTMLDivElement) && (typeof t[1] == "string" && t[1].startsWith("ws") ? (n = { type: "ESUeViewer", container: t[0], id: t[6], options: { ws: t[1], esmsg: t[2] ?? void 0, silentTime: t[7] ?? void 0 } }, i = { viewSync: t[3] ?? !0, attributeSync: t[4] ?? !0, destroy: t[5] ?? !0 }) : typeof t[1] == "string" && t[1].startsWith("http") ? (n = { type: "ESUeViewer", container: t[0], id: t[7], options: { uri: t[1], app: t[2], token: t[3] ?? void 0, silentTime: t[8] ?? void 0 } }, i = { viewSync: t[4] ?? !0, attributeSync: t[5] ?? !0, destroy: t[6] ?? !0 }) : (n = { type: "ESUeViewer", container: t[0], id: t[6], options: { project: t[1], baseUrl: t[2] ?? void 0 } }, i = { viewSync: t[3] ?? !0, attributeSync: t[4] ?? !0, destroy: t[5] ?? !0 }));
|
|
43479
43484
|
if (!n) throw new Error("参数错误");
|
|
43480
43485
|
const { viewSync: s, attributeSync: o, destroy: a } = i;
|
|
43481
43486
|
return this.switchViewer(n, s, o, a);
|
|
@@ -43492,7 +43497,7 @@ class Wc extends V {
|
|
|
43492
43497
|
}
|
|
43493
43498
|
createUeViewer(...t) {
|
|
43494
43499
|
let n;
|
|
43495
|
-
if (typeof t[0] == "object" && !(t[0] instanceof HTMLDivElement) ? n = { ...t[0], type: "ESUeViewer" } : (typeof t[0] == "string" || t[0] instanceof HTMLDivElement) && (typeof t[1] == "string" && t[1].startsWith("ws") ? n = { type: "ESUeViewer", container: t[0], id: t[3] ?? void 0, options: { ws: t[1], esmsg: t[2] ?? void 0 } } : typeof t[1] == "string" && t[1].startsWith("http") ? n = { type: "ESUeViewer", container: t[0], id: t[4] ?? void 0, options: { uri: t[1], app: t[2], token: t[3] ?? void 0 } } : n = { type: "ESUeViewer", container: t[0], id: t[3] ?? void 0, options: { project: t[1], baseUrl: t[2] ?? void 0 } }), !n) throw new Error("参数错误");
|
|
43500
|
+
if (typeof t[0] == "object" && !(t[0] instanceof HTMLDivElement) ? n = { ...t[0], type: "ESUeViewer" } : (typeof t[0] == "string" || t[0] instanceof HTMLDivElement) && (typeof t[1] == "string" && t[1].startsWith("ws") ? n = { type: "ESUeViewer", container: t[0], id: t[3] ?? void 0, options: { ws: t[1], esmsg: t[2] ?? void 0, silentTime: t[4] ?? void 0 } } : typeof t[1] == "string" && t[1].startsWith("http") ? n = { type: "ESUeViewer", container: t[0], id: t[4] ?? void 0, options: { uri: t[1], app: t[2], token: t[3] ?? void 0, silentTime: t[5] ?? void 0 } } : n = { type: "ESUeViewer", container: t[0], id: t[3] ?? void 0, options: { project: t[1], baseUrl: t[2] ?? void 0 } }), !n) throw new Error("参数错误");
|
|
43496
43501
|
return this.createViewer(n);
|
|
43497
43502
|
}
|
|
43498
43503
|
/**
|
|
@@ -43574,15 +43579,15 @@ class Wc extends V {
|
|
|
43574
43579
|
* @param id - 对象的 ID。
|
|
43575
43580
|
* @returns 对应的场景对象。
|
|
43576
43581
|
*/
|
|
43577
|
-
d(
|
|
43582
|
+
d(qc, "getSceneObjById", nt.context.getSceneObjectById.bind(nt.context)), /**
|
|
43578
43583
|
* 获取环境变量的静态方法。
|
|
43579
43584
|
* @returns 当前的环境变量。
|
|
43580
43585
|
*/
|
|
43581
|
-
d(
|
|
43586
|
+
d(qc, "getEnv", nt.context.getEnv.bind(nt.context)), /**
|
|
43582
43587
|
* 设置环境变量的静态方法。
|
|
43583
43588
|
* @param env - 要设置的环境变量。
|
|
43584
43589
|
*/
|
|
43585
|
-
d(
|
|
43590
|
+
d(qc, "setEnv", nt.context.setEnv.bind(nt.context));
|
|
43586
43591
|
export {
|
|
43587
43592
|
Zm as BasePropTreeItem,
|
|
43588
43593
|
mb as Boolean2Property,
|
|
@@ -43625,8 +43630,8 @@ export {
|
|
|
43625
43630
|
zf as ESAlarm,
|
|
43626
43631
|
Uf as ESApertureEffect,
|
|
43627
43632
|
Gf as ESAreaMeasurement,
|
|
43628
|
-
|
|
43629
|
-
|
|
43633
|
+
Wf as ESBlastParticleSystem,
|
|
43634
|
+
qf as ESBoxClipping,
|
|
43630
43635
|
ah as ESCameraView,
|
|
43631
43636
|
uh as ESCameraViewCollection,
|
|
43632
43637
|
Hf as ESCameraVisibleRange,
|
|
@@ -43651,7 +43656,7 @@ export {
|
|
|
43651
43656
|
Zf as ESGeoDiv,
|
|
43652
43657
|
zp as ESGeoDivTextPoi,
|
|
43653
43658
|
Ha as ESGeoExtrudedPolygon,
|
|
43654
|
-
|
|
43659
|
+
ql as ESGeoJson,
|
|
43655
43660
|
us as ESGeoLineString,
|
|
43656
43661
|
Xl as ESGeoPoints,
|
|
43657
43662
|
Ht as ESGeoPolygon,
|
|
@@ -43682,18 +43687,18 @@ export {
|
|
|
43682
43687
|
np as ESLocationMeasurement,
|
|
43683
43688
|
sx as ESMCPClient,
|
|
43684
43689
|
Lp as ESMsTileset,
|
|
43685
|
-
|
|
43690
|
+
Wp as ESNavigator,
|
|
43686
43691
|
st as ESObjectWithLocation,
|
|
43687
|
-
|
|
43692
|
+
qc as ESObjectsManager,
|
|
43688
43693
|
fh as ESParticleSystemPrimitive,
|
|
43689
|
-
|
|
43694
|
+
qu as ESPath,
|
|
43690
43695
|
Oo as ESPathImpl,
|
|
43691
43696
|
ph as ESPipeFence,
|
|
43692
43697
|
Pp as ESPipeline,
|
|
43693
43698
|
_p as ESPipeserTileset,
|
|
43694
43699
|
pu as ESPit,
|
|
43695
|
-
|
|
43696
|
-
|
|
43700
|
+
Wu as ESPlayer,
|
|
43701
|
+
Wl as ESPoi2D,
|
|
43697
43702
|
rp as ESPoi3D,
|
|
43698
43703
|
Ap as ESPoiTileset,
|
|
43699
43704
|
gh as ESPolygonFence,
|
|
@@ -43719,10 +43724,10 @@ export {
|
|
|
43719
43724
|
hp as ESVideoFusion,
|
|
43720
43725
|
dp as ESViewShed,
|
|
43721
43726
|
Mi as ESViewer,
|
|
43722
|
-
|
|
43727
|
+
qp as ESViewerStatusBar,
|
|
43723
43728
|
Hp as ESViewerStatusBarScale,
|
|
43724
43729
|
Tp as ESVisibilityAnalysis,
|
|
43725
|
-
|
|
43730
|
+
Wt as ESVisualObject,
|
|
43726
43731
|
Op as ESVolumeMeasurement,
|
|
43727
43732
|
fp as ESWidget,
|
|
43728
43733
|
Xa as EngineObject,
|
|
@@ -43736,9 +43741,9 @@ export {
|
|
|
43736
43741
|
yh as FlvJsLoading,
|
|
43737
43742
|
yC as FlvProcessing,
|
|
43738
43743
|
lt as FunctionProperty,
|
|
43739
|
-
|
|
43744
|
+
Wy as Gif,
|
|
43740
43745
|
Gy as GifPlayer,
|
|
43741
|
-
|
|
43746
|
+
qy as GifProcessing,
|
|
43742
43747
|
Ff as GroupPropTreeItem,
|
|
43743
43748
|
at as GroupProperty,
|
|
43744
43749
|
gS as HasOwner,
|
|
@@ -43752,7 +43757,7 @@ export {
|
|
|
43752
43757
|
hg as ListenerPipe,
|
|
43753
43758
|
Sy as LocalFileServer,
|
|
43754
43759
|
Cy as LocalRootDir,
|
|
43755
|
-
|
|
43760
|
+
Wg as LongStringProperty,
|
|
43756
43761
|
ob as MaximumScreenSpaceErrorProperty,
|
|
43757
43762
|
Pb as MinmaxProperty,
|
|
43758
43763
|
Tb as NearFarScalerProperty,
|
|
@@ -43796,7 +43801,7 @@ export {
|
|
|
43796
43801
|
ho as Property,
|
|
43797
43802
|
Nt as ReactVarProperty,
|
|
43798
43803
|
rn as ReactiveVariable,
|
|
43799
|
-
|
|
43804
|
+
qg as RotationProperty,
|
|
43800
43805
|
Yg as SceneObjectFromId,
|
|
43801
43806
|
Ul as SceneTree,
|
|
43802
43807
|
yE as SceneTreeContextMenu,
|
|
@@ -43817,7 +43822,7 @@ export {
|
|
|
43817
43822
|
Jy as StringsProperty,
|
|
43818
43823
|
HS as Throttling,
|
|
43819
43824
|
XS as ThrottlingWithStartValues,
|
|
43820
|
-
|
|
43825
|
+
qv as TimingDeprecated,
|
|
43821
43826
|
tb as ToolTipDiv,
|
|
43822
43827
|
xl as Transition,
|
|
43823
43828
|
xS as TransitionDeprecated,
|
|
@@ -43843,7 +43848,7 @@ export {
|
|
|
43843
43848
|
et as bind,
|
|
43844
43849
|
l_ as bindCustomEditing,
|
|
43845
43850
|
sS as bindu,
|
|
43846
|
-
|
|
43851
|
+
qb as booleanPointInPolygon,
|
|
43847
43852
|
ac as canMoveToTreeItem,
|
|
43848
43853
|
fy as canMoveToTreeItems,
|
|
43849
43854
|
DS as cancelFuncToCancelablePromise,
|
|
@@ -43884,7 +43889,7 @@ export {
|
|
|
43884
43889
|
Og as createProcessingFromPromiseCreateFuncWithStartValues,
|
|
43885
43890
|
aE as createPropTreeFromSceneObject,
|
|
43886
43891
|
GS as createSleeping,
|
|
43887
|
-
|
|
43892
|
+
WS as createSleepingWithStartValues,
|
|
43888
43893
|
ic as createStartFuncFromAsyncFunc,
|
|
43889
43894
|
$v as createTimeout,
|
|
43890
43895
|
Kv as createTimeoutWithStartValues,
|
|
@@ -43959,7 +43964,7 @@ export {
|
|
|
43959
43964
|
ax as getSceneObjectTools,
|
|
43960
43965
|
Fb as getSceneObjectTreeItem,
|
|
43961
43966
|
_y as getSubEntriesFromDir,
|
|
43962
|
-
|
|
43967
|
+
Wn as getSuccessResult,
|
|
43963
43968
|
_C as getTypeFromImageUri,
|
|
43964
43969
|
jv as getValueFromProps,
|
|
43965
43970
|
Rf as getXyzFromPostion,
|
|
@@ -44023,7 +44028,7 @@ export {
|
|
|
44023
44028
|
oc as sleep,
|
|
44024
44029
|
bS as sleepDeprecated,
|
|
44025
44030
|
Uo as step,
|
|
44026
|
-
|
|
44031
|
+
qS as stepProcessing,
|
|
44027
44032
|
_g as throttle,
|
|
44028
44033
|
pg as timeout,
|
|
44029
44034
|
jb as toGeoJson,
|
|
@@ -44032,7 +44037,7 @@ export {
|
|
|
44032
44037
|
il as uint8ToHexStr,
|
|
44033
44038
|
sy as uint8sToUint32,
|
|
44034
44039
|
ME as updateTreeParamsCallFunc,
|
|
44035
|
-
|
|
44040
|
+
Wb as webMercToLbh,
|
|
44036
44041
|
yS as xyz2N2,
|
|
44037
44042
|
_S as xyz2N3,
|
|
44038
44043
|
$g as xyzToLbh,
|