earthsdk3 3.4.0-beta.21 → 3.4.0-beta.23
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 +7 -7
- package/dist/earthsdk3.js +780 -737
- package/dist/earthsdk3.umd.cjs +8 -8
- package/dist/types/ESObjectManager/SceneObjectsManager.d.ts +7 -0
- package/dist/types/ESObjectManager/SceneObjectsManager.d.ts.map +1 -1
- package/dist/types/ESObjectManager/index.d.ts +7 -0
- package/dist/types/ESObjectManager/index.d.ts.map +1 -1
- package/dist/types/ESObjects/base/ESSceneObject/ESObjectsContext.d.ts +1 -0
- package/dist/types/ESObjects/base/ESSceneObject/ESObjectsContext.d.ts.map +1 -1
- package/dist/types/ESObjects/base/ESSceneObject/index.d.ts +4 -0
- package/dist/types/ESObjects/base/ESSceneObject/index.d.ts.map +1 -1
- package/dist/types/ESObjects/general/ESGeoJson/index.d.ts +1 -0
- package/dist/types/ESObjects/general/ESGeoJson/index.d.ts.map +1 -1
- package/dist/types/ESObjects/general/ESRtsFeatureEditing/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/earthsdk3.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Tg = Object.defineProperty;
|
|
2
2
|
var Og = (n, t, e) => t in n ? Tg(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
3
3
|
var f = (n, t, e) => Og(n, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
-
import { ReactiveVariable as Jo, reactJson as gt, getReactFuncs as Us, react as U, setExtProp as Xa, createGuid as Sc, getExtProp as Qo, extendClassProps as qi, reactArrayWithUndefined as ce, createAnimateFrame as Cc, ObjResettingWithEvent as Te, reactJsonWithUndefined as Yt, reactDeepArrayWithUndefined as Ic, ObservableArray as Ud, Player as Mg, createNextAnimateFrameEvent as xr, SceneObjectWithId as Dg, clamp as Gd, pluckProperty as sh, reactDeepArray as Lg, min as Ll, objsIterator as po, max as Rl, Vector as Ia, Tree as Ba, TreeItem as qd, bind as
|
|
4
|
+
import { ReactiveVariable as Jo, reactJson as gt, getReactFuncs as Us, react as U, setExtProp as Xa, createGuid as Sc, getExtProp as Qo, extendClassProps as qi, reactArrayWithUndefined as ce, createAnimateFrame as Cc, ObjResettingWithEvent as Te, reactJsonWithUndefined as Yt, reactDeepArrayWithUndefined as Ic, ObservableArray as Ud, Player as Mg, createNextAnimateFrameEvent as xr, SceneObjectWithId as Dg, clamp as Gd, pluckProperty as sh, reactDeepArray as Lg, min as Ll, objsIterator as po, max as Rl, Vector as Ia, Tree as Ba, TreeItem as qd, bind as et, every as Rg, createTimeoutWithStartValues as Ag, createProcessingFromAsyncFunc as gl, CancelError as Fg, animateFrame as kg, reactPositions as bc, reactArray as lt, nextAnimateFrame as Vg, sleep as Wd, reactArrayCollectionWithUndefined as Bg, reactPositionsSet as zg, track as k, forEach as Ni, length as jg, DomElementEvent as Xi, PointerClick as Ug, PointerHover as Gg, getDomEventCurrentTargetPos as Yi } from "xbsj-base";
|
|
5
5
|
import Xd from "proj4";
|
|
6
6
|
import * as Ue from "@turf/turf";
|
|
7
7
|
function qg() {
|
|
@@ -39,7 +39,7 @@ function oh(n) {
|
|
|
39
39
|
}
|
|
40
40
|
let La;
|
|
41
41
|
try {
|
|
42
|
-
const n = "earthsdk3", t = "3.4.0-beta.
|
|
42
|
+
const n = "earthsdk3", t = "3.4.0-beta.23", e = "2025-09-12T03:50:09.000Z", r = "北京西部世界科技有限公司", i = "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn", s = "feca93890b3042c1cb64b9d07335c6a13715edb1", a = ((Date.now() - 1757649009e3) / 36e5).toFixed(1), u = `%c🌏 ${n}%c ${t}.${s.slice(0, 8)}.${e} (距今${a}个小时)
|
|
43
43
|
%c${i ? i + `
|
|
44
44
|
` : ""}当前网站正在使用${n},此软件版权归${r}所有
|
|
45
45
|
`;
|
|
@@ -53,7 +53,7 @@ try {
|
|
|
53
53
|
},
|
|
54
54
|
// @ts-ignore
|
|
55
55
|
get gituri() {
|
|
56
|
-
return GITURI_ && GITURI_.replace("${commitId}", "
|
|
56
|
+
return GITURI_ && GITURI_.replace("${commitId}", "feca93890b3042c1cb64b9d07335c6a13715edb1");
|
|
57
57
|
},
|
|
58
58
|
// @ts-ignore
|
|
59
59
|
get info() {
|
|
@@ -61,7 +61,7 @@ try {
|
|
|
61
61
|
},
|
|
62
62
|
// @ts-ignore
|
|
63
63
|
get date() {
|
|
64
|
-
return "2025-09-
|
|
64
|
+
return "2025-09-12T03:50:09.000Z";
|
|
65
65
|
},
|
|
66
66
|
// @ts-ignore
|
|
67
67
|
get author() {
|
|
@@ -69,7 +69,7 @@ try {
|
|
|
69
69
|
},
|
|
70
70
|
// @ts-ignore
|
|
71
71
|
get version() {
|
|
72
|
-
return "3.4.0-beta.
|
|
72
|
+
return "3.4.0-beta.23";
|
|
73
73
|
},
|
|
74
74
|
// @ts-ignore
|
|
75
75
|
get name() {
|
|
@@ -77,7 +77,7 @@ try {
|
|
|
77
77
|
},
|
|
78
78
|
// @ts-ignore
|
|
79
79
|
get commitId() {
|
|
80
|
-
return "
|
|
80
|
+
return "feca93890b3042c1cb64b9d07335c6a13715edb1";
|
|
81
81
|
},
|
|
82
82
|
/**
|
|
83
83
|
* 打印版权信息到控制台
|
|
@@ -1221,7 +1221,7 @@ class q extends St {
|
|
|
1221
1221
|
return "BooleanProperty";
|
|
1222
1222
|
}
|
|
1223
1223
|
}
|
|
1224
|
-
class
|
|
1224
|
+
class ft extends St {
|
|
1225
1225
|
get type() {
|
|
1226
1226
|
return "StringProperty";
|
|
1227
1227
|
}
|
|
@@ -1533,7 +1533,7 @@ function fm(n, t) {
|
|
|
1533
1533
|
Math.abs(c * h - d) < 1e-3 || r(c * h);
|
|
1534
1534
|
})), u;
|
|
1535
1535
|
}
|
|
1536
|
-
class
|
|
1536
|
+
class Pc extends qs {
|
|
1537
1537
|
constructor(e, r, i, s, o, a) {
|
|
1538
1538
|
super(s ?? "播放器", a ?? "播放器");
|
|
1539
1539
|
f(this, "_defaults", { playing: !1, ratio: 0, loop: !1 });
|
|
@@ -1555,7 +1555,7 @@ class bc extends qs {
|
|
|
1555
1555
|
return this._defaults;
|
|
1556
1556
|
}
|
|
1557
1557
|
}
|
|
1558
|
-
f(
|
|
1558
|
+
f(Pc, "createPlayingRatio", fm);
|
|
1559
1559
|
class Ha extends hr {
|
|
1560
1560
|
get type() {
|
|
1561
1561
|
return "PositionProperty";
|
|
@@ -1566,7 +1566,7 @@ class dm extends St {
|
|
|
1566
1566
|
return "PositionsProperty";
|
|
1567
1567
|
}
|
|
1568
1568
|
}
|
|
1569
|
-
class
|
|
1569
|
+
class bw extends St {
|
|
1570
1570
|
get type() {
|
|
1571
1571
|
return "PositionsSetPropety";
|
|
1572
1572
|
}
|
|
@@ -1576,7 +1576,7 @@ class $d extends hr {
|
|
|
1576
1576
|
return "RotationProperty";
|
|
1577
1577
|
}
|
|
1578
1578
|
}
|
|
1579
|
-
class vl extends
|
|
1579
|
+
class vl extends ft {
|
|
1580
1580
|
get type() {
|
|
1581
1581
|
return "UriProperty";
|
|
1582
1582
|
}
|
|
@@ -1615,7 +1615,7 @@ class Zo extends St {
|
|
|
1615
1615
|
}
|
|
1616
1616
|
}
|
|
1617
1617
|
var Q = /* @__PURE__ */ ((n) => (n.Place = "place", n.Translation = "translation", n.Rotation = "rotation", n.Scale = "scale", n.DoublePointsAppend = "doublePointsAppend", n.DoublePointsModify = "doublePointsModify", n.CircularAppend = "circularAppend", n.CircularInsert = "circularInsert", n.LineStringAppend = "lineStringAppend", n.LineStringInsert = "lineStringInsert", n.ScatterAppend = "scatterAppend", n.ScatterModify = "scatterModify", n.VisibilityAppend = "visibilityAppend", n.VisibilityModify = "visibilityModify", n.HeightModify = "heightModify", n))(Q || {}), mm = /* @__PURE__ */ ((n) => (n.DECIMAL_DEGREE = "DECIMAL_DEGREE", n.DEGREES_DECIMAL_MINUTES = "DEGREES_DECIMAL_MINUTES", n.SEXAGESIMAL_DEGREE = "SEXAGESIMAL_DEGREE", n))(mm || {});
|
|
1618
|
-
class
|
|
1618
|
+
class Pw {
|
|
1619
1619
|
/**
|
|
1620
1620
|
* 构造函数。
|
|
1621
1621
|
* @param childPickedInfo - 子拾取信息。
|
|
@@ -1730,15 +1730,15 @@ ${u.map((c) => `${c.id} ${c.typeName}
|
|
|
1730
1730
|
function ch(n, t) {
|
|
1731
1731
|
const [e, r, i] = Us(n), s = U(void 0), o = () => {
|
|
1732
1732
|
const a = e() ?? t;
|
|
1733
|
-
s.value = a &&
|
|
1733
|
+
s.value = a && tt.context.getStrFromEnv(a);
|
|
1734
1734
|
};
|
|
1735
|
-
return o(), i && s.d(i.don(o)), s.d(
|
|
1735
|
+
return o(), i && s.d(i.don(o)), s.d(tt.context.environmentVariablesChanged.don(o)), s;
|
|
1736
1736
|
}
|
|
1737
1737
|
function tp(n) {
|
|
1738
1738
|
const t = /\${(.*?)\}/g;
|
|
1739
1739
|
if (!t.test(n)) return n;
|
|
1740
1740
|
const e = n.replace(t, (r, i) => {
|
|
1741
|
-
const s =
|
|
1741
|
+
const s = tt.context.getEnv(i);
|
|
1742
1742
|
return s === void 0 ? (console.warn(`环境变量(${i})不存在,无法进行转换`), "{env-error}") : s;
|
|
1743
1743
|
});
|
|
1744
1744
|
return tp(e);
|
|
@@ -1877,6 +1877,16 @@ class ym extends Y {
|
|
|
1877
1877
|
} else
|
|
1878
1878
|
return this.createSceneObjectFromClass(e, r);
|
|
1879
1879
|
}
|
|
1880
|
+
createSceneObjectFromUrl(e, r) {
|
|
1881
|
+
let i;
|
|
1882
|
+
const s = e.toLowerCase();
|
|
1883
|
+
if (s.includes(".gltf") || s.includes(".glb") ? i = "ESGltfModel" : s.includes("tileset.json") ? i = "ES3DTileset" : s.includes("layer.json") || s.includes("ion://1") ? i = "ESTerrainLayer" : s.includes(".jpg") || s.includes(".png") || s.includes(".jpeg") || s.includes(".webp") || s.includes("image/jpg") || s.includes("image/png") || s.includes("image/jpeg") || s.includes("image/webp") ? i = "ESImageLabel" : (s.includes("/tilemapresource.xml") || s.includes("ion://") || s.includes("wms") || s.includes("wmts") || s.includes("{x}") || s.includes("{y}") || s.includes("{z}")) && (i = "ESImageryLayer"), !!i)
|
|
1884
|
+
return this.createSceneObjectFromJson({
|
|
1885
|
+
type: i,
|
|
1886
|
+
id: r,
|
|
1887
|
+
url: e
|
|
1888
|
+
});
|
|
1889
|
+
}
|
|
1880
1890
|
/**
|
|
1881
1891
|
* 根据 JSON 对象创建场景对象实例,并将 JSON 数据赋值给场景对象
|
|
1882
1892
|
* @param sceneObjectJson 包含场景对象类型和其他属性的 JSON 对象
|
|
@@ -2039,7 +2049,7 @@ class ym extends Y {
|
|
|
2039
2049
|
return ch(e, r);
|
|
2040
2050
|
}
|
|
2041
2051
|
}
|
|
2042
|
-
const
|
|
2052
|
+
const ht = class ht extends Y {
|
|
2043
2053
|
/**
|
|
2044
2054
|
* 构造函数,创建一个新的场景对象。
|
|
2045
2055
|
* @param id - 对象的唯一标识符,可选参数,如果未指定则自动生成。
|
|
@@ -2158,13 +2168,13 @@ const pt = class pt extends Y {
|
|
|
2158
2168
|
* 获取所有环境变量的集合。
|
|
2159
2169
|
*/
|
|
2160
2170
|
static get envs() {
|
|
2161
|
-
return
|
|
2171
|
+
return ht.context.environmentVariables;
|
|
2162
2172
|
}
|
|
2163
2173
|
/**
|
|
2164
2174
|
* 获取所有引用对象的集合。
|
|
2165
2175
|
*/
|
|
2166
2176
|
static get $refs() {
|
|
2167
|
-
return
|
|
2177
|
+
return ht.context.refsManager.refs;
|
|
2168
2178
|
}
|
|
2169
2179
|
/**
|
|
2170
2180
|
* 获取对象组件集合。
|
|
@@ -2442,16 +2452,16 @@ const pt = class pt extends Y {
|
|
|
2442
2452
|
defaultMenu: "general",
|
|
2443
2453
|
basic: [],
|
|
2444
2454
|
general: [
|
|
2445
|
-
new
|
|
2446
|
-
new
|
|
2447
|
-
new
|
|
2455
|
+
new ft([this, "typeName"], "类型", void 0, !1, !0),
|
|
2456
|
+
new ft([this, "id"], "唯一标识", void 0, !1, !0),
|
|
2457
|
+
new ft([this, "name"], "名称")
|
|
2448
2458
|
],
|
|
2449
2459
|
dataSource: [],
|
|
2450
2460
|
location: [],
|
|
2451
2461
|
coordinate: [],
|
|
2452
2462
|
style: [],
|
|
2453
2463
|
more: [
|
|
2454
|
-
new
|
|
2464
|
+
new ft([this, "ref"], "ref", void 0, !0),
|
|
2455
2465
|
new $([this, "extras"], "extras", void 0, void 0, !0),
|
|
2456
2466
|
new hm(() => this._jsonStr, (e) => e && (this._jsonStr = e), "JSON")
|
|
2457
2467
|
]
|
|
@@ -2461,10 +2471,10 @@ const pt = class pt extends Y {
|
|
|
2461
2471
|
/**
|
|
2462
2472
|
* 对象上下文,用于管理场景对象的创建、销毁、查找等操作。
|
|
2463
2473
|
*/
|
|
2464
|
-
f(
|
|
2474
|
+
f(ht, "context", new ym()), /**
|
|
2465
2475
|
* 注册对象到上下文的方法。
|
|
2466
2476
|
*/
|
|
2467
|
-
f(
|
|
2477
|
+
f(ht, "innerRegister", ht.context.register.bind(ht.context)), f(ht, "defaults", {}), f(ht, "createDefaultProps", () => ({
|
|
2468
2478
|
/**
|
|
2469
2479
|
* 对象名称,默认为 '未命名场景对象'。
|
|
2470
2480
|
*/
|
|
@@ -2493,55 +2503,58 @@ f(pt, "innerRegister", pt.context.register.bind(pt.context)), f(pt, "defaults",
|
|
|
2493
2503
|
* 销毁函数的字符串表示,默认为 undefined。
|
|
2494
2504
|
*/
|
|
2495
2505
|
toDestroyFuncStr: void 0
|
|
2496
|
-
})), f(
|
|
2506
|
+
})), f(ht, "type", ht.register("ESSceneObject", ht, { chsName: "场景类", tags: ["ESObjects"], description: "" })), /**
|
|
2497
2507
|
* 创建场景对象的方法。
|
|
2498
2508
|
*/
|
|
2499
|
-
f(
|
|
2509
|
+
f(ht, "create", ht.context.createSceneObject.bind(ht.context)), /**
|
|
2510
|
+
* 根据 URL 创建场景对象的方法。
|
|
2511
|
+
*/
|
|
2512
|
+
f(ht, "createFromUrl", ht.context.createSceneObjectFromUrl.bind(ht.context)), /**
|
|
2500
2513
|
* 根据类创建场景对象的方法。
|
|
2501
2514
|
*/
|
|
2502
|
-
f(
|
|
2515
|
+
f(ht, "createFromClass", ht.context.createSceneObjectFromClass.bind(ht.context)), /**
|
|
2503
2516
|
* 根据 JSON 数据创建场景对象的方法。
|
|
2504
2517
|
*/
|
|
2505
|
-
f(
|
|
2518
|
+
f(ht, "createFromJson", ht.context.createSceneObjectFromJson.bind(ht.context)), /**
|
|
2506
2519
|
* 销毁场景对象的方法。
|
|
2507
2520
|
*/
|
|
2508
|
-
f(
|
|
2521
|
+
f(ht, "destroySceneObject", ht.context.destroySceneObject.bind(ht.context)), /**
|
|
2509
2522
|
* 根据对象 ID 获取场景对象的方法。
|
|
2510
2523
|
* @param id - 对象的唯一标识符。
|
|
2511
2524
|
* @returns 对应的场景对象,如果未找到则返回 undefined。
|
|
2512
2525
|
*/
|
|
2513
|
-
f(
|
|
2526
|
+
f(ht, "getSceneObjById", ht.context.getSceneObjectById.bind(ht.context)), /**
|
|
2514
2527
|
* 根据对象 ID 获取场景对象的方法。
|
|
2515
2528
|
* @param id - 对象的唯一标识符。
|
|
2516
2529
|
* @returns 对应的场景对象,如果未找到则返回 undefined。
|
|
2517
2530
|
*/
|
|
2518
|
-
f(
|
|
2531
|
+
f(ht, "getSceneObj", ht.context.getSceneObject.bind(ht.context)), /**
|
|
2519
2532
|
* 获取环境变量的方法。
|
|
2520
2533
|
* @param key - 环境变量的键。
|
|
2521
2534
|
* @returns 对应的环境变量值,如果未找到则返回 undefined。
|
|
2522
2535
|
*/
|
|
2523
|
-
f(
|
|
2536
|
+
f(ht, "getEnv", ht.context.getEnv.bind(ht.context)), /**
|
|
2524
2537
|
* 设置环境变量的方法。
|
|
2525
2538
|
* @param key - 环境变量的键。
|
|
2526
2539
|
* @param value - 环境变量的值。
|
|
2527
2540
|
*/
|
|
2528
|
-
f(
|
|
2541
|
+
f(ht, "setEnv", ht.context.setEnv.bind(ht.context)), /**
|
|
2529
2542
|
* 从环境变量中获取字符串值的方法。
|
|
2530
2543
|
* @param key - 环境变量的键。
|
|
2531
2544
|
* @returns 对应的字符串值,如果未找到则返回 undefined。
|
|
2532
2545
|
*/
|
|
2533
|
-
f(
|
|
2546
|
+
f(ht, "getStrFromEnv", ht.context.getStrFromEnv.bind(ht.context)), /**
|
|
2534
2547
|
* 根据对象 ID 获取场景对象的方法。
|
|
2535
2548
|
* @param id - 对象的唯一标识符。
|
|
2536
2549
|
* @returns 对应的场景对象,如果未找到则返回 undefined。
|
|
2537
2550
|
*/
|
|
2538
|
-
f(
|
|
2551
|
+
f(ht, "getSceneObjectById", ht.context.getSceneObjectById.bind(ht.context)), /**
|
|
2539
2552
|
* 根据对象 ID 获取场景对象的方法。
|
|
2540
2553
|
* @param id - 对象的唯一标识符。
|
|
2541
2554
|
* @returns 对应的场景对象,如果未找到则返回 undefined。
|
|
2542
2555
|
*/
|
|
2543
|
-
f(
|
|
2544
|
-
let
|
|
2556
|
+
f(ht, "getSceneObject", ht.context.getSceneObject.bind(ht.context));
|
|
2557
|
+
let tt = ht;
|
|
2545
2558
|
class _m extends Y {
|
|
2546
2559
|
/**
|
|
2547
2560
|
* 构造函数,创建一个新的 ViewerPropSceneObject 实例。
|
|
@@ -2555,7 +2568,7 @@ class _m extends Y {
|
|
|
2555
2568
|
}));
|
|
2556
2569
|
}
|
|
2557
2570
|
}
|
|
2558
|
-
const le = class le extends
|
|
2571
|
+
const le = class le extends tt {
|
|
2559
2572
|
/**
|
|
2560
2573
|
* 构造函数
|
|
2561
2574
|
* @param {string | undefined} id 对象的唯一标识
|
|
@@ -2914,7 +2927,7 @@ const le = class le extends et {
|
|
|
2914
2927
|
}
|
|
2915
2928
|
};
|
|
2916
2929
|
f(le, "createDefaultProps", () => ({
|
|
2917
|
-
...
|
|
2930
|
+
...tt.createDefaultProps(),
|
|
2918
2931
|
/**是否显示 默认true */
|
|
2919
2932
|
show: !0,
|
|
2920
2933
|
/**是否开启碰撞监测 默认true ,主要是UE使用*/
|
|
@@ -3113,7 +3126,7 @@ function Im(n, t, e = "editing") {
|
|
|
3113
3126
|
})), s;
|
|
3114
3127
|
})), n[`${e}`] && i(), r;
|
|
3115
3128
|
}
|
|
3116
|
-
class
|
|
3129
|
+
class bm extends Y {
|
|
3117
3130
|
/**
|
|
3118
3131
|
* 构造函数
|
|
3119
3132
|
* @param _id - 子播放器的 ID
|
|
@@ -3148,7 +3161,7 @@ class Pm extends Y {
|
|
|
3148
3161
|
return this._sceneObjectId.sceneObjectChanged;
|
|
3149
3162
|
}
|
|
3150
3163
|
}
|
|
3151
|
-
const
|
|
3164
|
+
const Pm = `
|
|
3152
3165
|
用来配置子播放器,它是一个数组形式,数组的每个元素仍然是一个数组,形式是[子播放器的ID, 起始时间, 持续时间]。
|
|
3153
3166
|
注意时间的单位是毫秒。
|
|
3154
3167
|
示例如下:
|
|
@@ -3260,7 +3273,7 @@ const bm = `
|
|
|
3260
3273
|
return;
|
|
3261
3274
|
const o = this.channels.map((a) => {
|
|
3262
3275
|
const [u, l, c] = a;
|
|
3263
|
-
return new
|
|
3276
|
+
return new bm(u, l, c, this);
|
|
3264
3277
|
});
|
|
3265
3278
|
this._subPlayers.splice(0, 0, ...o);
|
|
3266
3279
|
};
|
|
@@ -3301,7 +3314,7 @@ f(Ve, "defaults", {
|
|
|
3301
3314
|
}), /**
|
|
3302
3315
|
* 配置说明
|
|
3303
3316
|
*/
|
|
3304
|
-
f(Ve, "channelsReadMe",
|
|
3317
|
+
f(Ve, "channelsReadMe", Pm);
|
|
3305
3318
|
let hi = Ve;
|
|
3306
3319
|
((n) => {
|
|
3307
3320
|
n.createDefaultProps = () => ({
|
|
@@ -3334,10 +3347,10 @@ class np extends Y {
|
|
|
3334
3347
|
this._id = e, this.d(() => {
|
|
3335
3348
|
this._sceneObject.value = void 0;
|
|
3336
3349
|
});
|
|
3337
|
-
const r =
|
|
3338
|
-
r && (this._sceneObject.value = r), this.d(
|
|
3350
|
+
const r = tt.getSceneObjById(this._id);
|
|
3351
|
+
r && (this._sceneObject.value = r), this.d(tt.context.sceneObjCreatedEvent.don((i) => {
|
|
3339
3352
|
i.id === this._id && (this._sceneObject.value = i);
|
|
3340
|
-
})), this.d(
|
|
3353
|
+
})), this.d(tt.context.sceneObjToDestroyEvent.don((i) => {
|
|
3341
3354
|
i.id === this._id && (this._sceneObject.value = void 0);
|
|
3342
3355
|
}));
|
|
3343
3356
|
}
|
|
@@ -3843,10 +3856,10 @@ function zw(n, t) {
|
|
|
3843
3856
|
const e = Fn(n);
|
|
3844
3857
|
return Fm(e, t, { units: "meters" }).geometry.coordinates;
|
|
3845
3858
|
}
|
|
3846
|
-
function
|
|
3859
|
+
function ba(n, t, e) {
|
|
3847
3860
|
if (n !== null)
|
|
3848
|
-
for (var r, i, s, o, a, u, l, c = 0, h = 0, d, p = n.type, v = p === "FeatureCollection", E = p === "Feature", C = v ? n.features.length : 1,
|
|
3849
|
-
l = v ? n.features[
|
|
3861
|
+
for (var r, i, s, o, a, u, l, c = 0, h = 0, d, p = n.type, v = p === "FeatureCollection", E = p === "Feature", C = v ? n.features.length : 1, P = 0; P < C; P++) {
|
|
3862
|
+
l = v ? n.features[P].geometry : E ? n.geometry : n, d = l ? l.type === "GeometryCollection" : !1, a = d ? l.geometries.length : 1;
|
|
3850
3863
|
for (var m = 0; m < a; m++) {
|
|
3851
3864
|
var _ = 0, g = 0;
|
|
3852
3865
|
if (o = d ? l.geometries[m] : l, o !== null) {
|
|
@@ -3859,7 +3872,7 @@ function Pa(n, t, e) {
|
|
|
3859
3872
|
if (t(
|
|
3860
3873
|
u,
|
|
3861
3874
|
h,
|
|
3862
|
-
|
|
3875
|
+
P,
|
|
3863
3876
|
_,
|
|
3864
3877
|
g
|
|
3865
3878
|
) === !1)
|
|
@@ -3872,7 +3885,7 @@ function Pa(n, t, e) {
|
|
|
3872
3885
|
if (t(
|
|
3873
3886
|
u[r],
|
|
3874
3887
|
h,
|
|
3875
|
-
|
|
3888
|
+
P,
|
|
3876
3889
|
_,
|
|
3877
3890
|
g
|
|
3878
3891
|
) === !1)
|
|
@@ -3888,7 +3901,7 @@ function Pa(n, t, e) {
|
|
|
3888
3901
|
if (t(
|
|
3889
3902
|
u[r][i],
|
|
3890
3903
|
h,
|
|
3891
|
-
|
|
3904
|
+
P,
|
|
3892
3905
|
_,
|
|
3893
3906
|
g
|
|
3894
3907
|
) === !1)
|
|
@@ -3906,7 +3919,7 @@ function Pa(n, t, e) {
|
|
|
3906
3919
|
if (t(
|
|
3907
3920
|
u[r][i][s],
|
|
3908
3921
|
h,
|
|
3909
|
-
|
|
3922
|
+
P,
|
|
3910
3923
|
_,
|
|
3911
3924
|
g
|
|
3912
3925
|
) === !1)
|
|
@@ -3920,7 +3933,7 @@ function Pa(n, t, e) {
|
|
|
3920
3933
|
break;
|
|
3921
3934
|
case "GeometryCollection":
|
|
3922
3935
|
for (r = 0; r < o.geometries.length; r++)
|
|
3923
|
-
if (
|
|
3936
|
+
if (ba(o.geometries[r], t, e) === !1)
|
|
3924
3937
|
return !1;
|
|
3925
3938
|
break;
|
|
3926
3939
|
default:
|
|
@@ -4047,7 +4060,7 @@ function Vm(n, t) {
|
|
|
4047
4060
|
var o = e.geometry.type;
|
|
4048
4061
|
if (!(o === "Point" || o === "MultiPoint")) {
|
|
4049
4062
|
var a, u = 0, l = 0, c = 0;
|
|
4050
|
-
if (
|
|
4063
|
+
if (ba(
|
|
4051
4064
|
e,
|
|
4052
4065
|
function(h, d, p, v, E) {
|
|
4053
4066
|
if (a === void 0 || r > u || v > l || E > c) {
|
|
@@ -4145,25 +4158,25 @@ function jm(n) {
|
|
|
4145
4158
|
});
|
|
4146
4159
|
}), e;
|
|
4147
4160
|
}
|
|
4148
|
-
var
|
|
4161
|
+
var Pu = { exports: {} }, zu = { exports: {} }, Um = zu.exports, mh;
|
|
4149
4162
|
function lp() {
|
|
4150
4163
|
return mh || (mh = 1, function(n, t) {
|
|
4151
4164
|
(function(e, r) {
|
|
4152
4165
|
n.exports = r();
|
|
4153
4166
|
})(Um, function() {
|
|
4154
4167
|
function e(m, _, g, y, w) {
|
|
4155
|
-
(function S(I, x, O,
|
|
4156
|
-
for (;
|
|
4157
|
-
if (
|
|
4158
|
-
var D =
|
|
4159
|
-
S(I, x, at,
|
|
4168
|
+
(function S(I, x, O, b, N) {
|
|
4169
|
+
for (; b > O; ) {
|
|
4170
|
+
if (b - O > 600) {
|
|
4171
|
+
var D = b - O + 1, R = x - O + 1, W = Math.log(D), z = 0.5 * Math.exp(2 * W / 3), Z = 0.5 * Math.sqrt(W * z * (D - z) / D) * (R - D / 2 < 0 ? -1 : 1), at = Math.max(O, Math.floor(x - R * z / D + Z)), pt = Math.min(b, Math.floor(x + (D - R) * z / D + Z));
|
|
4172
|
+
S(I, x, at, pt, N);
|
|
4160
4173
|
}
|
|
4161
|
-
var G = I[x], X = O, H =
|
|
4162
|
-
for (r(I, O, x), N(I[
|
|
4174
|
+
var G = I[x], X = O, H = b;
|
|
4175
|
+
for (r(I, O, x), N(I[b], G) > 0 && r(I, O, b); X < H; ) {
|
|
4163
4176
|
for (r(I, X, H), X++, H--; N(I[X], G) < 0; ) X++;
|
|
4164
4177
|
for (; N(I[H], G) > 0; ) H--;
|
|
4165
4178
|
}
|
|
4166
|
-
N(I[O], G) === 0 ? r(I, O, H) : r(I, ++H,
|
|
4179
|
+
N(I[O], G) === 0 ? r(I, O, H) : r(I, ++H, b), H <= x && (O = H + 1), x <= H && (b = H - 1);
|
|
4167
4180
|
}
|
|
4168
4181
|
})(m, _, g || 0, y || m.length - 1, w || i);
|
|
4169
4182
|
}
|
|
@@ -4217,7 +4230,7 @@ function lp() {
|
|
|
4217
4230
|
function C(m) {
|
|
4218
4231
|
return { children: m, height: 1, leaf: !0, minX: 1 / 0, minY: 1 / 0, maxX: -1 / 0, maxY: -1 / 0 };
|
|
4219
4232
|
}
|
|
4220
|
-
function
|
|
4233
|
+
function P(m, _, g, y, w) {
|
|
4221
4234
|
for (var S = [_, g]; S.length; ) if (!((g = S.pop()) - (_ = S.pop()) <= y)) {
|
|
4222
4235
|
var I = _ + Math.ceil((g - _) / y / 2) * y;
|
|
4223
4236
|
e(m, I, _, g, w), S.push(_, I, I, g);
|
|
@@ -4275,8 +4288,8 @@ function lp() {
|
|
|
4275
4288
|
if (!m) return this;
|
|
4276
4289
|
for (var g, y, w, S = this.data, I = this.toBBox(m), x = [], O = []; S || x.length; ) {
|
|
4277
4290
|
if (S || (S = x.pop(), y = x[x.length - 1], g = O.pop(), w = !0), S.leaf) {
|
|
4278
|
-
var
|
|
4279
|
-
if (
|
|
4291
|
+
var b = o(m, S.children, _);
|
|
4292
|
+
if (b !== -1) return S.children.splice(b, 1), x.push(S), this._condense(x), this;
|
|
4280
4293
|
}
|
|
4281
4294
|
w || S.leaf || !v(S, I) ? y ? (g++, S = y.children[g], w = !1) : S = null : (x.push(S), O.push(g), g = 0, y = S, S = S.children[0]);
|
|
4282
4295
|
}
|
|
@@ -4299,11 +4312,11 @@ function lp() {
|
|
|
4299
4312
|
if (S <= I) return a(w = C(m.slice(_, g + 1)), this.toBBox), w;
|
|
4300
4313
|
y || (y = Math.ceil(Math.log(S) / Math.log(I)), I = Math.ceil(S / Math.pow(I, y - 1))), (w = C([])).leaf = !1, w.height = y;
|
|
4301
4314
|
var x = Math.ceil(S / I), O = x * Math.ceil(Math.sqrt(I));
|
|
4302
|
-
|
|
4303
|
-
for (var
|
|
4304
|
-
var N = Math.min(
|
|
4305
|
-
|
|
4306
|
-
for (var D =
|
|
4315
|
+
P(m, _, g, O, this.compareMinX);
|
|
4316
|
+
for (var b = _; b <= g; b += O) {
|
|
4317
|
+
var N = Math.min(b + O - 1, g);
|
|
4318
|
+
P(m, b, N, x, this.compareMinY);
|
|
4319
|
+
for (var D = b; D <= N; D += x) {
|
|
4307
4320
|
var R = Math.min(D + x - 1, N);
|
|
4308
4321
|
w.children.push(this._build(m, D, R, y - 1));
|
|
4309
4322
|
}
|
|
@@ -4312,8 +4325,8 @@ function lp() {
|
|
|
4312
4325
|
}, s.prototype._chooseSubtree = function(m, _, g, y) {
|
|
4313
4326
|
for (; y.push(_), !_.leaf && y.length - 1 !== g; ) {
|
|
4314
4327
|
for (var w = 1 / 0, S = 1 / 0, I = void 0, x = 0; x < _.children.length; x++) {
|
|
4315
|
-
var O = _.children[x],
|
|
4316
|
-
N < S ? (S = N, w =
|
|
4328
|
+
var O = _.children[x], b = d(O), N = (D = m, R = O, (Math.max(R.maxX, D.maxX) - Math.min(R.minX, D.minX)) * (Math.max(R.maxY, D.maxY) - Math.min(R.minY, D.minY)) - b);
|
|
4329
|
+
N < S ? (S = N, w = b < w ? b : w, I = O) : N === S && b < w && (w = b, I = O);
|
|
4317
4330
|
}
|
|
4318
4331
|
_ = I || _.children[0];
|
|
4319
4332
|
}
|
|
@@ -4331,8 +4344,8 @@ function lp() {
|
|
|
4331
4344
|
}, s.prototype._splitRoot = function(m, _) {
|
|
4332
4345
|
this.data = C([m, _]), this.data.height = m.height + 1, this.data.leaf = !1, a(this.data, this.toBBox);
|
|
4333
4346
|
}, s.prototype._chooseSplitIndex = function(m, _, g) {
|
|
4334
|
-
for (var y, w, S, I, x, O,
|
|
4335
|
-
var W = u(m, 0, R, this.toBBox), z = u(m, R, g, this.toBBox), Z = (w = W, S = z, I = void 0, x = void 0, O = void 0,
|
|
4347
|
+
for (var y, w, S, I, x, O, b, N = 1 / 0, D = 1 / 0, R = _; R <= g - _; R++) {
|
|
4348
|
+
var W = u(m, 0, R, this.toBBox), z = u(m, R, g, this.toBBox), Z = (w = W, S = z, I = void 0, x = void 0, O = void 0, b = void 0, I = Math.max(w.minX, S.minX), x = Math.max(w.minY, S.minY), O = Math.min(w.maxX, S.maxX), b = Math.min(w.maxY, S.maxY), Math.max(0, O - I) * Math.max(0, b - x)), at = d(W) + d(z);
|
|
4336
4349
|
Z < N ? (N = Z, y = R, D = at < D ? at : D) : Z === N && at < D && (D = at, y = R);
|
|
4337
4350
|
}
|
|
4338
4351
|
return y || g - _;
|
|
@@ -4342,8 +4355,8 @@ function lp() {
|
|
|
4342
4355
|
}, s.prototype._allDistMargin = function(m, _, g, y) {
|
|
4343
4356
|
m.children.sort(y);
|
|
4344
4357
|
for (var w = this.toBBox, S = u(m, 0, _, w), I = u(m, g - _, g, w), x = p(S) + p(I), O = _; O < g - _; O++) {
|
|
4345
|
-
var
|
|
4346
|
-
l(S, m.leaf ? w(
|
|
4358
|
+
var b = m.children[O];
|
|
4359
|
+
l(S, m.leaf ? w(b) : b), x += p(S);
|
|
4347
4360
|
}
|
|
4348
4361
|
for (var N = g - _ - 1; N >= _; N--) {
|
|
4349
4362
|
var D = m.children[N];
|
|
@@ -4441,53 +4454,53 @@ function Km() {
|
|
|
4441
4454
|
r(t);
|
|
4442
4455
|
})(Zm, function(e) {
|
|
4443
4456
|
const i = 33306690738754706e-32;
|
|
4444
|
-
function s(E, C,
|
|
4445
|
-
let g, y, w, S, I = C[0], x = m[0], O = 0,
|
|
4446
|
-
x > I == x > -I ? (g = I, I = C[++O]) : (g = x, x = m[++
|
|
4457
|
+
function s(E, C, P, m, _) {
|
|
4458
|
+
let g, y, w, S, I = C[0], x = m[0], O = 0, b = 0;
|
|
4459
|
+
x > I == x > -I ? (g = I, I = C[++O]) : (g = x, x = m[++b]);
|
|
4447
4460
|
let N = 0;
|
|
4448
|
-
if (O < E &&
|
|
4461
|
+
if (O < E && b < P) for (x > I == x > -I ? (w = g - ((y = I + g) - I), I = C[++O]) : (w = g - ((y = x + g) - x), x = m[++b]), g = y, w !== 0 && (_[N++] = w); O < E && b < P; ) x > I == x > -I ? (w = g - ((y = g + I) - (S = y - g)) + (I - S), I = C[++O]) : (w = g - ((y = g + x) - (S = y - g)) + (x - S), x = m[++b]), g = y, w !== 0 && (_[N++] = w);
|
|
4449
4462
|
for (; O < E; ) w = g - ((y = g + I) - (S = y - g)) + (I - S), I = C[++O], g = y, w !== 0 && (_[N++] = w);
|
|
4450
|
-
for (;
|
|
4463
|
+
for (; b < P; ) w = g - ((y = g + x) - (S = y - g)) + (x - S), x = m[++b], g = y, w !== 0 && (_[N++] = w);
|
|
4451
4464
|
return g === 0 && N !== 0 || (_[N++] = g), N;
|
|
4452
4465
|
}
|
|
4453
4466
|
function o(E) {
|
|
4454
4467
|
return new Float64Array(E);
|
|
4455
4468
|
}
|
|
4456
4469
|
const a = 33306690738754716e-32, u = 22204460492503146e-32, l = 11093356479670487e-47, c = o(4), h = o(8), d = o(12), p = o(16), v = o(4);
|
|
4457
|
-
e.orient2d = function(E, C,
|
|
4458
|
-
const y = (C - g) * (
|
|
4470
|
+
e.orient2d = function(E, C, P, m, _, g) {
|
|
4471
|
+
const y = (C - g) * (P - _), w = (E - _) * (m - g), S = y - w;
|
|
4459
4472
|
if (y === 0 || w === 0 || y > 0 != w > 0) return S;
|
|
4460
4473
|
const I = Math.abs(y + w);
|
|
4461
|
-
return Math.abs(S) >= a * I ? S : -function(x, O,
|
|
4462
|
-
let z, Z, at,
|
|
4463
|
-
const Er = x - D, Sr =
|
|
4474
|
+
return Math.abs(S) >= a * I ? S : -function(x, O, b, N, D, R, W) {
|
|
4475
|
+
let z, Z, at, pt, G, X, H, yt, Dt, Ct, It, Ft, he, ne, yr, _r, Hn, wr;
|
|
4476
|
+
const Er = x - D, Sr = b - D, wn = O - R, En = N - R;
|
|
4464
4477
|
G = (yr = (yt = Er - (H = (X = 134217729 * Er) - (X - Er))) * (Ct = En - (Dt = (X = 134217729 * En) - (X - En))) - ((ne = Er * En) - H * Dt - yt * Dt - H * Ct)) - (It = yr - (Hn = (yt = wn - (H = (X = 134217729 * wn) - (X - wn))) * (Ct = Sr - (Dt = (X = 134217729 * Sr) - (X - Sr))) - ((_r = wn * Sr) - H * Dt - yt * Dt - H * Ct))), c[0] = yr - (It + G) + (G - Hn), G = (he = ne - ((Ft = ne + It) - (G = Ft - ne)) + (It - G)) - (It = he - _r), c[1] = he - (It + G) + (G - _r), G = (wr = Ft + It) - Ft, c[2] = Ft - (wr - G) + (It - G), c[3] = wr;
|
|
4465
4478
|
let Wi = function(Ng, nh) {
|
|
4466
4479
|
let ih = nh[0];
|
|
4467
4480
|
for (let Dl = 1; Dl < Ng; Dl++) ih += nh[Dl];
|
|
4468
4481
|
return ih;
|
|
4469
4482
|
}(4, c), Da = u * W;
|
|
4470
|
-
if (Wi >= Da || -Wi >= Da || (z = x - (Er + (G = x - Er)) + (G - D), at =
|
|
4483
|
+
if (Wi >= Da || -Wi >= Da || (z = x - (Er + (G = x - Er)) + (G - D), at = b - (Sr + (G = b - Sr)) + (G - D), Z = O - (wn + (G = O - wn)) + (G - R), pt = N - (En + (G = N - En)) + (G - R), z === 0 && Z === 0 && at === 0 && pt === 0) || (Da = l * W + i * Math.abs(Wi), (Wi += Er * pt + En * z - (wn * at + Sr * Z)) >= Da || -Wi >= Da)) return Wi;
|
|
4471
4484
|
G = (yr = (yt = z - (H = (X = 134217729 * z) - (X - z))) * (Ct = En - (Dt = (X = 134217729 * En) - (X - En))) - ((ne = z * En) - H * Dt - yt * Dt - H * Ct)) - (It = yr - (Hn = (yt = Z - (H = (X = 134217729 * Z) - (X - Z))) * (Ct = Sr - (Dt = (X = 134217729 * Sr) - (X - Sr))) - ((_r = Z * Sr) - H * Dt - yt * Dt - H * Ct))), v[0] = yr - (It + G) + (G - Hn), G = (he = ne - ((Ft = ne + It) - (G = Ft - ne)) + (It - G)) - (It = he - _r), v[1] = he - (It + G) + (G - _r), G = (wr = Ft + It) - Ft, v[2] = Ft - (wr - G) + (It - G), v[3] = wr;
|
|
4472
|
-
const
|
|
4473
|
-
G = (yr = (yt = Er - (H = (X = 134217729 * Er) - (X - Er))) * (Ct =
|
|
4474
|
-
const
|
|
4475
|
-
G = (yr = (yt = z - (H = (X = 134217729 * z) - (X - z))) * (Ct =
|
|
4476
|
-
const xg = s(
|
|
4485
|
+
const bg = s(4, c, 4, v, h);
|
|
4486
|
+
G = (yr = (yt = Er - (H = (X = 134217729 * Er) - (X - Er))) * (Ct = pt - (Dt = (X = 134217729 * pt) - (X - pt))) - ((ne = Er * pt) - H * Dt - yt * Dt - H * Ct)) - (It = yr - (Hn = (yt = wn - (H = (X = 134217729 * wn) - (X - wn))) * (Ct = at - (Dt = (X = 134217729 * at) - (X - at))) - ((_r = wn * at) - H * Dt - yt * Dt - H * Ct))), v[0] = yr - (It + G) + (G - Hn), G = (he = ne - ((Ft = ne + It) - (G = Ft - ne)) + (It - G)) - (It = he - _r), v[1] = he - (It + G) + (G - _r), G = (wr = Ft + It) - Ft, v[2] = Ft - (wr - G) + (It - G), v[3] = wr;
|
|
4487
|
+
const Pg = s(bg, h, 4, v, d);
|
|
4488
|
+
G = (yr = (yt = z - (H = (X = 134217729 * z) - (X - z))) * (Ct = pt - (Dt = (X = 134217729 * pt) - (X - pt))) - ((ne = z * pt) - H * Dt - yt * Dt - H * Ct)) - (It = yr - (Hn = (yt = Z - (H = (X = 134217729 * Z) - (X - Z))) * (Ct = at - (Dt = (X = 134217729 * at) - (X - at))) - ((_r = Z * at) - H * Dt - yt * Dt - H * Ct))), v[0] = yr - (It + G) + (G - Hn), G = (he = ne - ((Ft = ne + It) - (G = Ft - ne)) + (It - G)) - (It = he - _r), v[1] = he - (It + G) + (G - _r), G = (wr = Ft + It) - Ft, v[2] = Ft - (wr - G) + (It - G), v[3] = wr;
|
|
4489
|
+
const xg = s(Pg, d, 4, v, p);
|
|
4477
4490
|
return p[xg - 1];
|
|
4478
|
-
}(E, C,
|
|
4479
|
-
}, e.orient2dfast = function(E, C,
|
|
4480
|
-
return (C - g) * (
|
|
4491
|
+
}(E, C, P, m, _, g, I);
|
|
4492
|
+
}, e.orient2dfast = function(E, C, P, m, _, g) {
|
|
4493
|
+
return (C - g) * (P - _) - (E - _) * (m - g);
|
|
4481
4494
|
}, Object.defineProperty(e, "__esModule", { value: !0 });
|
|
4482
4495
|
});
|
|
4483
4496
|
}(ka, ka.exports)), ka.exports;
|
|
4484
4497
|
}
|
|
4485
4498
|
var Eh;
|
|
4486
4499
|
function Qm() {
|
|
4487
|
-
if (Eh) return
|
|
4500
|
+
if (Eh) return Pu.exports;
|
|
4488
4501
|
Eh = 1;
|
|
4489
4502
|
var n = lp(), t = Xm, e = Jm(), r = Km().orient2d;
|
|
4490
|
-
t.default && (t = t.default),
|
|
4503
|
+
t.default && (t = t.default), Pu.exports = i, Pu.exports.default = i;
|
|
4491
4504
|
function i(g, y, w) {
|
|
4492
4505
|
y = Math.max(0, y === void 0 ? 2 : y), w = w || 0;
|
|
4493
4506
|
var S = p(g), I = new n(16);
|
|
@@ -4503,40 +4516,40 @@ function Qm() {
|
|
|
4503
4516
|
}, I.compareMinY = function(H, yt) {
|
|
4504
4517
|
return H[1] - yt[1];
|
|
4505
4518
|
}, I.load(g);
|
|
4506
|
-
for (var x = [], O = 0,
|
|
4519
|
+
for (var x = [], O = 0, b; O < S.length; O++) {
|
|
4507
4520
|
var N = S[O];
|
|
4508
|
-
I.remove(N),
|
|
4521
|
+
I.remove(N), b = v(N, b), x.push(b);
|
|
4509
4522
|
}
|
|
4510
4523
|
var D = new n(16);
|
|
4511
4524
|
for (O = 0; O < x.length; O++) D.insert(d(x[O]));
|
|
4512
4525
|
for (var R = y * y, W = w * w; x.length; ) {
|
|
4513
|
-
var z = x.shift(), Z = z.p, at = z.next.p,
|
|
4514
|
-
if (!(
|
|
4515
|
-
var G =
|
|
4526
|
+
var z = x.shift(), Z = z.p, at = z.next.p, pt = E(Z, at);
|
|
4527
|
+
if (!(pt < W)) {
|
|
4528
|
+
var G = pt / R;
|
|
4516
4529
|
N = s(I, z.prev.p, Z, at, z.next.next.p, G, D), N && Math.min(E(N, Z), E(N, at)) <= G && (x.push(z), x.push(v(N, z)), I.remove(N), D.remove(z), D.insert(d(z)), D.insert(d(z.next)));
|
|
4517
4530
|
}
|
|
4518
4531
|
}
|
|
4519
|
-
z =
|
|
4532
|
+
z = b;
|
|
4520
4533
|
var X = [];
|
|
4521
4534
|
do
|
|
4522
4535
|
X.push(z.p), z = z.next;
|
|
4523
|
-
while (z !==
|
|
4536
|
+
while (z !== b);
|
|
4524
4537
|
return X.push(z.p), X;
|
|
4525
4538
|
}
|
|
4526
4539
|
function s(g, y, w, S, I, x, O) {
|
|
4527
|
-
for (var
|
|
4540
|
+
for (var b = new t([], o), N = g.data; N; ) {
|
|
4528
4541
|
for (var D = 0; D < N.children.length; D++) {
|
|
4529
4542
|
var R = N.children[D], W = N.leaf ? C(R, w, S) : a(w, S, R);
|
|
4530
|
-
W > x ||
|
|
4543
|
+
W > x || b.push({
|
|
4531
4544
|
node: R,
|
|
4532
4545
|
dist: W
|
|
4533
4546
|
});
|
|
4534
4547
|
}
|
|
4535
|
-
for (;
|
|
4536
|
-
var z =
|
|
4537
|
-
if (z.dist < at && z.dist <
|
|
4548
|
+
for (; b.length && !b.peek().node.children; ) {
|
|
4549
|
+
var z = b.pop(), Z = z.node, at = C(Z, y, w), pt = C(Z, S, I);
|
|
4550
|
+
if (z.dist < at && z.dist < pt && l(w, Z, O) && l(S, Z, O)) return Z;
|
|
4538
4551
|
}
|
|
4539
|
-
N =
|
|
4552
|
+
N = b.pop(), N && (N = N.node);
|
|
4540
4553
|
}
|
|
4541
4554
|
return null;
|
|
4542
4555
|
}
|
|
@@ -4545,21 +4558,21 @@ function Qm() {
|
|
|
4545
4558
|
}
|
|
4546
4559
|
function a(g, y, w) {
|
|
4547
4560
|
if (u(g, w) || u(y, w)) return 0;
|
|
4548
|
-
var S =
|
|
4561
|
+
var S = P(g[0], g[1], y[0], y[1], w.minX, w.minY, w.maxX, w.minY);
|
|
4549
4562
|
if (S === 0) return 0;
|
|
4550
|
-
var I =
|
|
4563
|
+
var I = P(g[0], g[1], y[0], y[1], w.minX, w.minY, w.minX, w.maxY);
|
|
4551
4564
|
if (I === 0) return 0;
|
|
4552
|
-
var x =
|
|
4565
|
+
var x = P(g[0], g[1], y[0], y[1], w.maxX, w.minY, w.maxX, w.maxY);
|
|
4553
4566
|
if (x === 0) return 0;
|
|
4554
|
-
var O =
|
|
4567
|
+
var O = P(g[0], g[1], y[0], y[1], w.minX, w.maxY, w.maxX, w.maxY);
|
|
4555
4568
|
return O === 0 ? 0 : Math.min(S, I, x, O);
|
|
4556
4569
|
}
|
|
4557
4570
|
function u(g, y) {
|
|
4558
4571
|
return g[0] >= y.minX && g[0] <= y.maxX && g[1] >= y.minY && g[1] <= y.maxY;
|
|
4559
4572
|
}
|
|
4560
4573
|
function l(g, y, w) {
|
|
4561
|
-
for (var S = Math.min(g[0], y[0]), I = Math.min(g[1], y[1]), x = Math.max(g[0], y[0]), O = Math.max(g[1], y[1]),
|
|
4562
|
-
if (h(
|
|
4574
|
+
for (var S = Math.min(g[0], y[0]), I = Math.min(g[1], y[1]), x = Math.max(g[0], y[0]), O = Math.max(g[1], y[1]), b = w.search({ minX: S, minY: I, maxX: x, maxY: O }), N = 0; N < b.length; N++)
|
|
4575
|
+
if (h(b[N].p, b[N].next.p, g, y)) return !1;
|
|
4563
4576
|
return !0;
|
|
4564
4577
|
}
|
|
4565
4578
|
function c(g, y, w) {
|
|
@@ -4577,9 +4590,9 @@ function Qm() {
|
|
|
4577
4590
|
var O = g[x];
|
|
4578
4591
|
O[0] < y[0] && (y = O), O[0] > S[0] && (S = O), O[1] < w[1] && (w = O), O[1] > I[1] && (I = O);
|
|
4579
4592
|
}
|
|
4580
|
-
var
|
|
4593
|
+
var b = [y, w, S, I], N = b.slice();
|
|
4581
4594
|
for (x = 0; x < g.length; x++)
|
|
4582
|
-
e(g[x],
|
|
4595
|
+
e(g[x], b) || N.push(g[x]);
|
|
4583
4596
|
return _(N);
|
|
4584
4597
|
}
|
|
4585
4598
|
function v(g, y) {
|
|
@@ -4601,15 +4614,15 @@ function Qm() {
|
|
|
4601
4614
|
function C(g, y, w) {
|
|
4602
4615
|
var S = y[0], I = y[1], x = w[0] - S, O = w[1] - I;
|
|
4603
4616
|
if (x !== 0 || O !== 0) {
|
|
4604
|
-
var
|
|
4605
|
-
|
|
4617
|
+
var b = ((g[0] - S) * x + (g[1] - I) * O) / (x * x + O * O);
|
|
4618
|
+
b > 1 ? (S = w[0], I = w[1]) : b > 0 && (S += x * b, I += O * b);
|
|
4606
4619
|
}
|
|
4607
4620
|
return x = g[0] - S, O = g[1] - I, x * x + O * O;
|
|
4608
4621
|
}
|
|
4609
|
-
function
|
|
4610
|
-
var N = w - g, D = S - y, R = O - I, W =
|
|
4611
|
-
yt === 0 ? (Ct = 0, he = 1, Ft = H, ne = G) : (Ct =
|
|
4612
|
-
var yr = (1 - Dt) * g + Dt * w, _r = (1 - Dt) * y + Dt * S, Hn = (1 - It) * I + It * O, wr = (1 - It) * x + It *
|
|
4622
|
+
function P(g, y, w, S, I, x, O, b) {
|
|
4623
|
+
var N = w - g, D = S - y, R = O - I, W = b - x, z = g - I, Z = y - x, at = N * N + D * D, pt = N * R + D * W, G = R * R + W * W, X = N * z + D * Z, H = R * z + W * Z, yt = at * G - pt * pt, Dt, Ct, It, Ft, he = yt, ne = yt;
|
|
4624
|
+
yt === 0 ? (Ct = 0, he = 1, Ft = H, ne = G) : (Ct = pt * H - G * X, Ft = at * H - pt * X, Ct < 0 ? (Ct = 0, Ft = H, ne = G) : Ct > he && (Ct = he, Ft = H + pt, ne = G)), Ft < 0 ? (Ft = 0, -X < 0 ? Ct = 0 : -X > at ? Ct = he : (Ct = -X, he = at)) : Ft > ne && (Ft = ne, -X + pt < 0 ? Ct = 0 : -X + pt > at ? Ct = he : (Ct = -X + pt, he = at)), Dt = Ct === 0 ? 0 : Ct / he, It = Ft === 0 ? 0 : Ft / ne;
|
|
4625
|
+
var yr = (1 - Dt) * g + Dt * w, _r = (1 - Dt) * y + Dt * S, Hn = (1 - It) * I + It * O, wr = (1 - It) * x + It * b, Er = Hn - yr, Sr = wr - _r;
|
|
4613
4626
|
return Er * Er + Sr * Sr;
|
|
4614
4627
|
}
|
|
4615
4628
|
function m(g, y) {
|
|
@@ -4629,14 +4642,14 @@ function Qm() {
|
|
|
4629
4642
|
}
|
|
4630
4643
|
return S.pop(), y.pop(), y.concat(S);
|
|
4631
4644
|
}
|
|
4632
|
-
return
|
|
4645
|
+
return Pu.exports;
|
|
4633
4646
|
}
|
|
4634
4647
|
var $m = Qm();
|
|
4635
4648
|
const tv = /* @__PURE__ */ up($m);
|
|
4636
4649
|
function ev(n, t) {
|
|
4637
4650
|
t === void 0 && (t = {}), t.concavity = t.concavity || 1 / 0;
|
|
4638
4651
|
var e = [];
|
|
4639
|
-
if (
|
|
4652
|
+
if (ba(n, function(i) {
|
|
4640
4653
|
e.push([i[0], i[1]]);
|
|
4641
4654
|
}), !e.length)
|
|
4642
4655
|
return null;
|
|
@@ -4646,7 +4659,7 @@ function ev(n, t) {
|
|
|
4646
4659
|
function Sh(n, t) {
|
|
4647
4660
|
t === void 0 && (t = {});
|
|
4648
4661
|
var e = 0, r = 0, i = 0;
|
|
4649
|
-
return
|
|
4662
|
+
return ba(n, function(s) {
|
|
4650
4663
|
e += s[0], r += s[1], i++;
|
|
4651
4664
|
}, !0), Gt([e / i, r / i], t.properties);
|
|
4652
4665
|
}
|
|
@@ -4656,7 +4669,7 @@ function cp(n, t) {
|
|
|
4656
4669
|
return Gt(ur(n), t.properties);
|
|
4657
4670
|
case "Polygon":
|
|
4658
4671
|
var e = [];
|
|
4659
|
-
|
|
4672
|
+
ba(n, function(g) {
|
|
4660
4673
|
e.push(g);
|
|
4661
4674
|
});
|
|
4662
4675
|
var r = Sh(n, { properties: t.properties }), i = r.geometry.coordinates, s = 0, o = 0, a = 0, u, l, c, h, d, p, v, E, C = e.map(function(g) {
|
|
@@ -4666,7 +4679,7 @@ function cp(n, t) {
|
|
|
4666
4679
|
l = C[u], h = l[0], p = l[1], c = C[u + 1], d = c[0], v = c[1], E = h * v - d * p, a += E, s += (h + d) * E, o += (p + v) * E;
|
|
4667
4680
|
if (a === 0)
|
|
4668
4681
|
return r;
|
|
4669
|
-
var
|
|
4682
|
+
var P = a * 0.5, m = 1 / (6 * P);
|
|
4670
4683
|
return Gt([i[0] + m * s, i[1] + m * o], t.properties);
|
|
4671
4684
|
default:
|
|
4672
4685
|
var _ = ev(n);
|
|
@@ -4777,14 +4790,14 @@ function hp() {
|
|
|
4777
4790
|
millimetres: 1e6,
|
|
4778
4791
|
yards: 1.195990046
|
|
4779
4792
|
};
|
|
4780
|
-
function t(
|
|
4793
|
+
function t(b, N, D) {
|
|
4781
4794
|
D === void 0 && (D = {});
|
|
4782
4795
|
var R = { type: "Feature" };
|
|
4783
|
-
return (D.id === 0 || D.id) && (R.id = D.id), D.bbox && (R.bbox = D.bbox), R.properties = N || {}, R.geometry =
|
|
4796
|
+
return (D.id === 0 || D.id) && (R.id = D.id), D.bbox && (R.bbox = D.bbox), R.properties = N || {}, R.geometry = b, R;
|
|
4784
4797
|
}
|
|
4785
4798
|
n.feature = t;
|
|
4786
|
-
function e(
|
|
4787
|
-
switch (
|
|
4799
|
+
function e(b, N, D) {
|
|
4800
|
+
switch (b) {
|
|
4788
4801
|
case "Point":
|
|
4789
4802
|
return r(N).geometry;
|
|
4790
4803
|
case "LineString":
|
|
@@ -4798,35 +4811,35 @@ function hp() {
|
|
|
4798
4811
|
case "MultiPolygon":
|
|
4799
4812
|
return d(N).geometry;
|
|
4800
4813
|
default:
|
|
4801
|
-
throw new Error(
|
|
4814
|
+
throw new Error(b + " is invalid");
|
|
4802
4815
|
}
|
|
4803
4816
|
}
|
|
4804
4817
|
n.geometry = e;
|
|
4805
|
-
function r(
|
|
4806
|
-
if (D === void 0 && (D = {}), !
|
|
4818
|
+
function r(b, N, D) {
|
|
4819
|
+
if (D === void 0 && (D = {}), !b)
|
|
4807
4820
|
throw new Error("coordinates is required");
|
|
4808
|
-
if (!Array.isArray(
|
|
4821
|
+
if (!Array.isArray(b))
|
|
4809
4822
|
throw new Error("coordinates must be an Array");
|
|
4810
|
-
if (
|
|
4823
|
+
if (b.length < 2)
|
|
4811
4824
|
throw new Error("coordinates must be at least 2 numbers long");
|
|
4812
|
-
if (!S(
|
|
4825
|
+
if (!S(b[0]) || !S(b[1]))
|
|
4813
4826
|
throw new Error("coordinates must contain numbers");
|
|
4814
4827
|
var R = {
|
|
4815
4828
|
type: "Point",
|
|
4816
|
-
coordinates:
|
|
4829
|
+
coordinates: b
|
|
4817
4830
|
};
|
|
4818
4831
|
return t(R, N, D);
|
|
4819
4832
|
}
|
|
4820
4833
|
n.point = r;
|
|
4821
|
-
function i(
|
|
4822
|
-
return D === void 0 && (D = {}), l(
|
|
4834
|
+
function i(b, N, D) {
|
|
4835
|
+
return D === void 0 && (D = {}), l(b.map(function(R) {
|
|
4823
4836
|
return r(R, N);
|
|
4824
4837
|
}), D);
|
|
4825
4838
|
}
|
|
4826
4839
|
n.points = i;
|
|
4827
|
-
function s(
|
|
4840
|
+
function s(b, N, D) {
|
|
4828
4841
|
D === void 0 && (D = {});
|
|
4829
|
-
for (var R = 0, W =
|
|
4842
|
+
for (var R = 0, W = b; R < W.length; R++) {
|
|
4830
4843
|
var z = W[R];
|
|
4831
4844
|
if (z.length < 4)
|
|
4832
4845
|
throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");
|
|
@@ -4836,125 +4849,125 @@ function hp() {
|
|
|
4836
4849
|
}
|
|
4837
4850
|
var at = {
|
|
4838
4851
|
type: "Polygon",
|
|
4839
|
-
coordinates:
|
|
4852
|
+
coordinates: b
|
|
4840
4853
|
};
|
|
4841
4854
|
return t(at, N, D);
|
|
4842
4855
|
}
|
|
4843
4856
|
n.polygon = s;
|
|
4844
|
-
function o(
|
|
4845
|
-
return D === void 0 && (D = {}), l(
|
|
4857
|
+
function o(b, N, D) {
|
|
4858
|
+
return D === void 0 && (D = {}), l(b.map(function(R) {
|
|
4846
4859
|
return s(R, N);
|
|
4847
4860
|
}), D);
|
|
4848
4861
|
}
|
|
4849
4862
|
n.polygons = o;
|
|
4850
|
-
function a(
|
|
4851
|
-
if (D === void 0 && (D = {}),
|
|
4863
|
+
function a(b, N, D) {
|
|
4864
|
+
if (D === void 0 && (D = {}), b.length < 2)
|
|
4852
4865
|
throw new Error("coordinates must be an array of two or more positions");
|
|
4853
4866
|
var R = {
|
|
4854
4867
|
type: "LineString",
|
|
4855
|
-
coordinates:
|
|
4868
|
+
coordinates: b
|
|
4856
4869
|
};
|
|
4857
4870
|
return t(R, N, D);
|
|
4858
4871
|
}
|
|
4859
4872
|
n.lineString = a;
|
|
4860
|
-
function u(
|
|
4861
|
-
return D === void 0 && (D = {}), l(
|
|
4873
|
+
function u(b, N, D) {
|
|
4874
|
+
return D === void 0 && (D = {}), l(b.map(function(R) {
|
|
4862
4875
|
return a(R, N);
|
|
4863
4876
|
}), D);
|
|
4864
4877
|
}
|
|
4865
4878
|
n.lineStrings = u;
|
|
4866
|
-
function l(
|
|
4879
|
+
function l(b, N) {
|
|
4867
4880
|
N === void 0 && (N = {});
|
|
4868
4881
|
var D = { type: "FeatureCollection" };
|
|
4869
|
-
return N.id && (D.id = N.id), N.bbox && (D.bbox = N.bbox), D.features =
|
|
4882
|
+
return N.id && (D.id = N.id), N.bbox && (D.bbox = N.bbox), D.features = b, D;
|
|
4870
4883
|
}
|
|
4871
4884
|
n.featureCollection = l;
|
|
4872
|
-
function c(
|
|
4885
|
+
function c(b, N, D) {
|
|
4873
4886
|
D === void 0 && (D = {});
|
|
4874
4887
|
var R = {
|
|
4875
4888
|
type: "MultiLineString",
|
|
4876
|
-
coordinates:
|
|
4889
|
+
coordinates: b
|
|
4877
4890
|
};
|
|
4878
4891
|
return t(R, N, D);
|
|
4879
4892
|
}
|
|
4880
4893
|
n.multiLineString = c;
|
|
4881
|
-
function h(
|
|
4894
|
+
function h(b, N, D) {
|
|
4882
4895
|
D === void 0 && (D = {});
|
|
4883
4896
|
var R = {
|
|
4884
4897
|
type: "MultiPoint",
|
|
4885
|
-
coordinates:
|
|
4898
|
+
coordinates: b
|
|
4886
4899
|
};
|
|
4887
4900
|
return t(R, N, D);
|
|
4888
4901
|
}
|
|
4889
4902
|
n.multiPoint = h;
|
|
4890
|
-
function d(
|
|
4903
|
+
function d(b, N, D) {
|
|
4891
4904
|
D === void 0 && (D = {});
|
|
4892
4905
|
var R = {
|
|
4893
4906
|
type: "MultiPolygon",
|
|
4894
|
-
coordinates:
|
|
4907
|
+
coordinates: b
|
|
4895
4908
|
};
|
|
4896
4909
|
return t(R, N, D);
|
|
4897
4910
|
}
|
|
4898
4911
|
n.multiPolygon = d;
|
|
4899
|
-
function p(
|
|
4912
|
+
function p(b, N, D) {
|
|
4900
4913
|
D === void 0 && (D = {});
|
|
4901
4914
|
var R = {
|
|
4902
4915
|
type: "GeometryCollection",
|
|
4903
|
-
geometries:
|
|
4916
|
+
geometries: b
|
|
4904
4917
|
};
|
|
4905
4918
|
return t(R, N, D);
|
|
4906
4919
|
}
|
|
4907
4920
|
n.geometryCollection = p;
|
|
4908
|
-
function v(
|
|
4921
|
+
function v(b, N) {
|
|
4909
4922
|
if (N === void 0 && (N = 0), N && !(N >= 0))
|
|
4910
4923
|
throw new Error("precision must be a positive number");
|
|
4911
4924
|
var D = Math.pow(10, N || 0);
|
|
4912
|
-
return Math.round(
|
|
4925
|
+
return Math.round(b * D) / D;
|
|
4913
4926
|
}
|
|
4914
4927
|
n.round = v;
|
|
4915
|
-
function E(
|
|
4928
|
+
function E(b, N) {
|
|
4916
4929
|
N === void 0 && (N = "kilometers");
|
|
4917
4930
|
var D = n.factors[N];
|
|
4918
4931
|
if (!D)
|
|
4919
4932
|
throw new Error(N + " units is invalid");
|
|
4920
|
-
return
|
|
4933
|
+
return b * D;
|
|
4921
4934
|
}
|
|
4922
4935
|
n.radiansToLength = E;
|
|
4923
|
-
function C(
|
|
4936
|
+
function C(b, N) {
|
|
4924
4937
|
N === void 0 && (N = "kilometers");
|
|
4925
4938
|
var D = n.factors[N];
|
|
4926
4939
|
if (!D)
|
|
4927
4940
|
throw new Error(N + " units is invalid");
|
|
4928
|
-
return
|
|
4941
|
+
return b / D;
|
|
4929
4942
|
}
|
|
4930
4943
|
n.lengthToRadians = C;
|
|
4931
|
-
function b
|
|
4932
|
-
return _(C(
|
|
4944
|
+
function P(b, N) {
|
|
4945
|
+
return _(C(b, N));
|
|
4933
4946
|
}
|
|
4934
|
-
n.lengthToDegrees =
|
|
4935
|
-
function m(
|
|
4936
|
-
var N =
|
|
4947
|
+
n.lengthToDegrees = P;
|
|
4948
|
+
function m(b) {
|
|
4949
|
+
var N = b % 360;
|
|
4937
4950
|
return N < 0 && (N += 360), N;
|
|
4938
4951
|
}
|
|
4939
4952
|
n.bearingToAzimuth = m;
|
|
4940
|
-
function _(
|
|
4941
|
-
var N =
|
|
4953
|
+
function _(b) {
|
|
4954
|
+
var N = b % (2 * Math.PI);
|
|
4942
4955
|
return N * 180 / Math.PI;
|
|
4943
4956
|
}
|
|
4944
4957
|
n.radiansToDegrees = _;
|
|
4945
|
-
function g(
|
|
4946
|
-
var N =
|
|
4958
|
+
function g(b) {
|
|
4959
|
+
var N = b % 360;
|
|
4947
4960
|
return N * Math.PI / 180;
|
|
4948
4961
|
}
|
|
4949
4962
|
n.degreesToRadians = g;
|
|
4950
|
-
function y(
|
|
4951
|
-
if (N === void 0 && (N = "kilometers"), D === void 0 && (D = "kilometers"), !(
|
|
4963
|
+
function y(b, N, D) {
|
|
4964
|
+
if (N === void 0 && (N = "kilometers"), D === void 0 && (D = "kilometers"), !(b >= 0))
|
|
4952
4965
|
throw new Error("length must be a positive number");
|
|
4953
|
-
return E(C(
|
|
4966
|
+
return E(C(b, N), D);
|
|
4954
4967
|
}
|
|
4955
4968
|
n.convertLength = y;
|
|
4956
|
-
function w(
|
|
4957
|
-
if (N === void 0 && (N = "meters"), D === void 0 && (D = "kilometers"), !(
|
|
4969
|
+
function w(b, N, D) {
|
|
4970
|
+
if (N === void 0 && (N = "meters"), D === void 0 && (D = "kilometers"), !(b >= 0))
|
|
4958
4971
|
throw new Error("area must be a positive number");
|
|
4959
4972
|
var R = n.areaFactors[N];
|
|
4960
4973
|
if (!R)
|
|
@@ -4962,51 +4975,51 @@ function hp() {
|
|
|
4962
4975
|
var W = n.areaFactors[D];
|
|
4963
4976
|
if (!W)
|
|
4964
4977
|
throw new Error("invalid final units");
|
|
4965
|
-
return
|
|
4978
|
+
return b / R * W;
|
|
4966
4979
|
}
|
|
4967
4980
|
n.convertArea = w;
|
|
4968
|
-
function S(
|
|
4969
|
-
return !isNaN(
|
|
4981
|
+
function S(b) {
|
|
4982
|
+
return !isNaN(b) && b !== null && !Array.isArray(b);
|
|
4970
4983
|
}
|
|
4971
4984
|
n.isNumber = S;
|
|
4972
|
-
function I(
|
|
4973
|
-
return !!
|
|
4985
|
+
function I(b) {
|
|
4986
|
+
return !!b && b.constructor === Object;
|
|
4974
4987
|
}
|
|
4975
4988
|
n.isObject = I;
|
|
4976
|
-
function x(
|
|
4977
|
-
if (!
|
|
4989
|
+
function x(b) {
|
|
4990
|
+
if (!b)
|
|
4978
4991
|
throw new Error("bbox is required");
|
|
4979
|
-
if (!Array.isArray(
|
|
4992
|
+
if (!Array.isArray(b))
|
|
4980
4993
|
throw new Error("bbox must be an Array");
|
|
4981
|
-
if (
|
|
4994
|
+
if (b.length !== 4 && b.length !== 6)
|
|
4982
4995
|
throw new Error("bbox must be an Array of 4 or 6 numbers");
|
|
4983
|
-
|
|
4996
|
+
b.forEach(function(N) {
|
|
4984
4997
|
if (!S(N))
|
|
4985
4998
|
throw new Error("bbox must only contain numbers");
|
|
4986
4999
|
});
|
|
4987
5000
|
}
|
|
4988
5001
|
n.validateBBox = x;
|
|
4989
|
-
function O(
|
|
4990
|
-
if (!
|
|
5002
|
+
function O(b) {
|
|
5003
|
+
if (!b)
|
|
4991
5004
|
throw new Error("id is required");
|
|
4992
|
-
if (["string", "number"].indexOf(typeof
|
|
5005
|
+
if (["string", "number"].indexOf(typeof b) === -1)
|
|
4993
5006
|
throw new Error("id must be a number or a string");
|
|
4994
5007
|
}
|
|
4995
5008
|
n.validateId = O;
|
|
4996
5009
|
}(Ul)), Ul;
|
|
4997
5010
|
}
|
|
4998
|
-
var ge = {},
|
|
5011
|
+
var ge = {}, bh;
|
|
4999
5012
|
function fp() {
|
|
5000
|
-
if (
|
|
5001
|
-
|
|
5013
|
+
if (bh) return ge;
|
|
5014
|
+
bh = 1, Object.defineProperty(ge, "__esModule", { value: !0 });
|
|
5002
5015
|
var n = /* @__PURE__ */ hp();
|
|
5003
5016
|
function t(m, _, g) {
|
|
5004
5017
|
if (m !== null)
|
|
5005
|
-
for (var y, w, S, I, x, O,
|
|
5006
|
-
|
|
5018
|
+
for (var y, w, S, I, x, O, b, N = 0, D = 0, R, W = m.type, z = W === "FeatureCollection", Z = W === "Feature", at = z ? m.features.length : 1, pt = 0; pt < at; pt++) {
|
|
5019
|
+
b = z ? m.features[pt].geometry : Z ? m.geometry : m, R = b ? b.type === "GeometryCollection" : !1, x = R ? b.geometries.length : 1;
|
|
5007
5020
|
for (var G = 0; G < x; G++) {
|
|
5008
5021
|
var X = 0, H = 0;
|
|
5009
|
-
if (I = R ?
|
|
5022
|
+
if (I = R ? b.geometries[G] : b, I !== null) {
|
|
5010
5023
|
O = I.coordinates;
|
|
5011
5024
|
var yt = I.type;
|
|
5012
5025
|
switch (N = g && (yt === "Polygon" || yt === "MultiPolygon") ? 1 : 0, yt) {
|
|
@@ -5016,7 +5029,7 @@ function fp() {
|
|
|
5016
5029
|
if (_(
|
|
5017
5030
|
O,
|
|
5018
5031
|
D,
|
|
5019
|
-
|
|
5032
|
+
pt,
|
|
5020
5033
|
X,
|
|
5021
5034
|
H
|
|
5022
5035
|
) === !1)
|
|
@@ -5029,7 +5042,7 @@ function fp() {
|
|
|
5029
5042
|
if (_(
|
|
5030
5043
|
O[y],
|
|
5031
5044
|
D,
|
|
5032
|
-
|
|
5045
|
+
pt,
|
|
5033
5046
|
X,
|
|
5034
5047
|
H
|
|
5035
5048
|
) === !1)
|
|
@@ -5045,7 +5058,7 @@ function fp() {
|
|
|
5045
5058
|
if (_(
|
|
5046
5059
|
O[y][w],
|
|
5047
5060
|
D,
|
|
5048
|
-
|
|
5061
|
+
pt,
|
|
5049
5062
|
X,
|
|
5050
5063
|
H
|
|
5051
5064
|
) === !1)
|
|
@@ -5063,7 +5076,7 @@ function fp() {
|
|
|
5063
5076
|
if (_(
|
|
5064
5077
|
O[y][w][S],
|
|
5065
5078
|
D,
|
|
5066
|
-
|
|
5079
|
+
pt,
|
|
5067
5080
|
X,
|
|
5068
5081
|
H
|
|
5069
5082
|
) === !1)
|
|
@@ -5091,14 +5104,14 @@ function fp() {
|
|
|
5091
5104
|
var w = g;
|
|
5092
5105
|
return t(
|
|
5093
5106
|
m,
|
|
5094
|
-
function(S, I, x, O,
|
|
5107
|
+
function(S, I, x, O, b) {
|
|
5095
5108
|
I === 0 && g === void 0 ? w = S : w = _(
|
|
5096
5109
|
w,
|
|
5097
5110
|
S,
|
|
5098
5111
|
I,
|
|
5099
5112
|
x,
|
|
5100
5113
|
O,
|
|
5101
|
-
|
|
5114
|
+
b
|
|
5102
5115
|
);
|
|
5103
5116
|
},
|
|
5104
5117
|
y
|
|
@@ -5142,14 +5155,14 @@ function fp() {
|
|
|
5142
5155
|
}), _;
|
|
5143
5156
|
}
|
|
5144
5157
|
function u(m, _) {
|
|
5145
|
-
var g, y, w, S, I, x, O,
|
|
5158
|
+
var g, y, w, S, I, x, O, b, N, D, R = 0, W = m.type === "FeatureCollection", z = m.type === "Feature", Z = W ? m.features.length : 1;
|
|
5146
5159
|
for (g = 0; g < Z; g++) {
|
|
5147
|
-
for (x = W ? m.features[g].geometry : z ? m.geometry : m,
|
|
5160
|
+
for (x = W ? m.features[g].geometry : z ? m.geometry : m, b = W ? m.features[g].properties : z ? m.properties : {}, N = W ? m.features[g].bbox : z ? m.bbox : void 0, D = W ? m.features[g].id : z ? m.id : void 0, O = x ? x.type === "GeometryCollection" : !1, I = O ? x.geometries.length : 1, w = 0; w < I; w++) {
|
|
5148
5161
|
if (S = O ? x.geometries[w] : x, S === null) {
|
|
5149
5162
|
if (_(
|
|
5150
5163
|
null,
|
|
5151
5164
|
R,
|
|
5152
|
-
|
|
5165
|
+
b,
|
|
5153
5166
|
N,
|
|
5154
5167
|
D
|
|
5155
5168
|
) === !1)
|
|
@@ -5166,7 +5179,7 @@ function fp() {
|
|
|
5166
5179
|
if (_(
|
|
5167
5180
|
S,
|
|
5168
5181
|
R,
|
|
5169
|
-
|
|
5182
|
+
b,
|
|
5170
5183
|
N,
|
|
5171
5184
|
D
|
|
5172
5185
|
) === !1)
|
|
@@ -5178,7 +5191,7 @@ function fp() {
|
|
|
5178
5191
|
if (_(
|
|
5179
5192
|
S.geometries[y],
|
|
5180
5193
|
R,
|
|
5181
|
-
|
|
5194
|
+
b,
|
|
5182
5195
|
N,
|
|
5183
5196
|
D
|
|
5184
5197
|
) === !1)
|
|
@@ -5234,12 +5247,12 @@ function fp() {
|
|
|
5234
5247
|
O = "Polygon";
|
|
5235
5248
|
break;
|
|
5236
5249
|
}
|
|
5237
|
-
for (var
|
|
5238
|
-
var N = g.coordinates[
|
|
5250
|
+
for (var b = 0; b < g.coordinates.length; b++) {
|
|
5251
|
+
var N = g.coordinates[b], D = {
|
|
5239
5252
|
type: O,
|
|
5240
5253
|
coordinates: N
|
|
5241
5254
|
};
|
|
5242
|
-
if (_(n.feature(D, w), y,
|
|
5255
|
+
if (_(n.feature(D, w), y, b) === !1)
|
|
5243
5256
|
return !1;
|
|
5244
5257
|
}
|
|
5245
5258
|
});
|
|
@@ -5264,12 +5277,12 @@ function fp() {
|
|
|
5264
5277
|
if (g.geometry) {
|
|
5265
5278
|
var I = g.geometry.type;
|
|
5266
5279
|
if (!(I === "Point" || I === "MultiPoint")) {
|
|
5267
|
-
var x, O = 0,
|
|
5280
|
+
var x, O = 0, b = 0, N = 0;
|
|
5268
5281
|
if (t(
|
|
5269
5282
|
g,
|
|
5270
5283
|
function(D, R, W, z, Z) {
|
|
5271
|
-
if (x === void 0 || y > O || z >
|
|
5272
|
-
x = D, O = y,
|
|
5284
|
+
if (x === void 0 || y > O || z > b || Z > N) {
|
|
5285
|
+
x = D, O = y, b = z, N = Z, S = 0;
|
|
5273
5286
|
return;
|
|
5274
5287
|
}
|
|
5275
5288
|
var at = n.lineString(
|
|
@@ -5296,14 +5309,14 @@ function fp() {
|
|
|
5296
5309
|
var y = g, w = !1;
|
|
5297
5310
|
return d(
|
|
5298
5311
|
m,
|
|
5299
|
-
function(S, I, x, O,
|
|
5312
|
+
function(S, I, x, O, b) {
|
|
5300
5313
|
w === !1 && g === void 0 ? y = S : y = _(
|
|
5301
5314
|
y,
|
|
5302
5315
|
S,
|
|
5303
5316
|
I,
|
|
5304
5317
|
x,
|
|
5305
5318
|
O,
|
|
5306
|
-
|
|
5319
|
+
b
|
|
5307
5320
|
), w = !0;
|
|
5308
5321
|
}
|
|
5309
5322
|
), y;
|
|
@@ -5411,7 +5424,7 @@ function fp() {
|
|
|
5411
5424
|
}
|
|
5412
5425
|
throw new Error("geojson is invalid");
|
|
5413
5426
|
}
|
|
5414
|
-
function
|
|
5427
|
+
function P(m, _) {
|
|
5415
5428
|
if (_ = _ || {}, !n.isObject(_)) throw new Error("options is invalid");
|
|
5416
5429
|
var g = _.featureIndex || 0, y = _.multiFeatureIndex || 0, w = _.geometryIndex || 0, S = _.coordIndex || 0, I = _.properties, x;
|
|
5417
5430
|
switch (m.type) {
|
|
@@ -5455,12 +5468,12 @@ function fp() {
|
|
|
5455
5468
|
}
|
|
5456
5469
|
throw new Error("geojson is invalid");
|
|
5457
5470
|
}
|
|
5458
|
-
return ge.coordAll = a, ge.coordEach = t, ge.coordReduce = e, ge.featureEach = s, ge.featureReduce = o, ge.findPoint =
|
|
5471
|
+
return ge.coordAll = a, ge.coordEach = t, ge.coordReduce = e, ge.featureEach = s, ge.featureReduce = o, ge.findPoint = P, ge.findSegment = C, ge.flattenEach = c, ge.flattenReduce = h, ge.geomEach = u, ge.geomReduce = l, ge.lineEach = v, ge.lineReduce = E, ge.propEach = r, ge.propReduce = i, ge.segmentEach = d, ge.segmentReduce = p, ge;
|
|
5459
5472
|
}
|
|
5460
|
-
var Nu = {},
|
|
5473
|
+
var Nu = {}, Ph;
|
|
5461
5474
|
function ov() {
|
|
5462
|
-
if (
|
|
5463
|
-
|
|
5475
|
+
if (Ph) return Nu;
|
|
5476
|
+
Ph = 1, Object.defineProperty(Nu, "__esModule", { value: !0 });
|
|
5464
5477
|
var n = /* @__PURE__ */ fp();
|
|
5465
5478
|
function t(e) {
|
|
5466
5479
|
var r = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
|
@@ -5556,8 +5569,8 @@ function Nh(n, t) {
|
|
|
5556
5569
|
return null;
|
|
5557
5570
|
var E = p / d, C = v / d;
|
|
5558
5571
|
if (E >= 0 && E <= 1 && C >= 0 && C <= 1) {
|
|
5559
|
-
var
|
|
5560
|
-
return Gt([
|
|
5572
|
+
var P = i + E * (o - i), m = s + E * (a - s);
|
|
5573
|
+
return Gt([P, m]);
|
|
5561
5574
|
}
|
|
5562
5575
|
return null;
|
|
5563
5576
|
}
|
|
@@ -5684,7 +5697,7 @@ function Yw(n, t) {
|
|
|
5684
5697
|
}
|
|
5685
5698
|
function kn(n) {
|
|
5686
5699
|
var t = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
|
5687
|
-
return
|
|
5700
|
+
return ba(n, function(e) {
|
|
5688
5701
|
t[0] > e[0] && (t[0] = e[0]), t[1] > e[1] && (t[1] = e[1]), t[2] < e[0] && (t[2] = e[0]), t[3] < e[1] && (t[3] = e[1]);
|
|
5689
5702
|
}), t;
|
|
5690
5703
|
}
|
|
@@ -5771,7 +5784,7 @@ function Ev(n, t) {
|
|
|
5771
5784
|
case "Point":
|
|
5772
5785
|
return Ri(r, e, { ignoreEndVertices: !0 });
|
|
5773
5786
|
case "LineString":
|
|
5774
|
-
return
|
|
5787
|
+
return Pv(e, r);
|
|
5775
5788
|
case "MultiPoint":
|
|
5776
5789
|
return Iv(e, r);
|
|
5777
5790
|
default:
|
|
@@ -5786,7 +5799,7 @@ function Ev(n, t) {
|
|
|
5786
5799
|
case "Polygon":
|
|
5787
5800
|
return Nv(e, r);
|
|
5788
5801
|
case "MultiPoint":
|
|
5789
|
-
return
|
|
5802
|
+
return bv(e, r);
|
|
5790
5803
|
default:
|
|
5791
5804
|
throw new Error("feature2 " + s + " geometry not supported");
|
|
5792
5805
|
}
|
|
@@ -5825,7 +5838,7 @@ function Iv(n, t) {
|
|
|
5825
5838
|
}
|
|
5826
5839
|
return !!e;
|
|
5827
5840
|
}
|
|
5828
|
-
function
|
|
5841
|
+
function bv(n, t) {
|
|
5829
5842
|
for (var e = 0, r = t.coordinates; e < r.length; e++) {
|
|
5830
5843
|
var i = r[e];
|
|
5831
5844
|
if (!Mn(i, n, { ignoreBoundary: !0 }))
|
|
@@ -5833,7 +5846,7 @@ function Pv(n, t) {
|
|
|
5833
5846
|
}
|
|
5834
5847
|
return !0;
|
|
5835
5848
|
}
|
|
5836
|
-
function
|
|
5849
|
+
function Pv(n, t) {
|
|
5837
5850
|
for (var e = !1, r = 0, i = t.coordinates; r < i.length; r++) {
|
|
5838
5851
|
var s = i[r];
|
|
5839
5852
|
if (Ri({ type: "Point", coordinates: s }, n, {
|
|
@@ -6510,9 +6523,9 @@ A.prototype.selfAdd = function() {
|
|
|
6510
6523
|
return s = this._hi + e, a = s - this._hi, o = s - a, o = e - a + (this._hi - o), u = o + this._lo, r = s + u, i = u + (s - r), this._hi = r + i, this._lo = i + (r - this._hi), this;
|
|
6511
6524
|
}
|
|
6512
6525
|
} else if (arguments.length === 2) {
|
|
6513
|
-
var l = arguments[0], c = arguments[1], h = null, d = null, p = null, v = null, E = null, C = null,
|
|
6514
|
-
E = this._hi + l, p = this._lo + c,
|
|
6515
|
-
var _ = h +
|
|
6526
|
+
var l = arguments[0], c = arguments[1], h = null, d = null, p = null, v = null, E = null, C = null, P = null, m = null;
|
|
6527
|
+
E = this._hi + l, p = this._lo + c, P = E - this._hi, m = p - this._lo, C = E - P, v = p - m, C = l - P + (this._hi - C), v = c - m + (this._lo - v), P = C + p, h = E + P, d = P + (E - h), P = v + d;
|
|
6528
|
+
var _ = h + P, g = P + (h - _);
|
|
6516
6529
|
return this._hi = _, this._lo = g, this;
|
|
6517
6530
|
}
|
|
6518
6531
|
};
|
|
@@ -6690,8 +6703,8 @@ A.parse = function(t) {
|
|
|
6690
6703
|
var d = t.substring(e);
|
|
6691
6704
|
try {
|
|
6692
6705
|
l = an.parseInt(d);
|
|
6693
|
-
} catch (
|
|
6694
|
-
throw
|
|
6706
|
+
} catch (P) {
|
|
6707
|
+
throw P instanceof Error ? new Error("Invalid exponent " + d + " in string " + t) : P;
|
|
6695
6708
|
} finally {
|
|
6696
6709
|
}
|
|
6697
6710
|
break;
|
|
@@ -6782,8 +6795,8 @@ Ge.signOfDet2x2 = function(t, e, r, i) {
|
|
|
6782
6795
|
return s.signum();
|
|
6783
6796
|
};
|
|
6784
6797
|
Ge.intersection = function(t, e, r, i) {
|
|
6785
|
-
var s = A.valueOf(i.y).selfSubtract(r.y).selfMultiply(A.valueOf(e.x).selfSubtract(t.x)), o = A.valueOf(i.x).selfSubtract(r.x).selfMultiply(A.valueOf(e.y).selfSubtract(t.y)), a = s.subtract(o), u = A.valueOf(i.x).selfSubtract(r.x).selfMultiply(A.valueOf(t.y).selfSubtract(r.y)), l = A.valueOf(i.y).selfSubtract(r.y).selfMultiply(A.valueOf(t.x).selfSubtract(r.x)), c = u.subtract(l), h = c.selfDivide(a).doubleValue(), d = A.valueOf(t.x).selfAdd(A.valueOf(e.x).selfSubtract(t.x).selfMultiply(h)).doubleValue(), p = A.valueOf(e.x).selfSubtract(t.x).selfMultiply(A.valueOf(t.y).selfSubtract(r.y)), v = A.valueOf(e.y).selfSubtract(t.y).selfMultiply(A.valueOf(t.x).selfSubtract(r.x)), E = p.subtract(v), C = E.selfDivide(a).doubleValue(),
|
|
6786
|
-
return new T(d,
|
|
6798
|
+
var s = A.valueOf(i.y).selfSubtract(r.y).selfMultiply(A.valueOf(e.x).selfSubtract(t.x)), o = A.valueOf(i.x).selfSubtract(r.x).selfMultiply(A.valueOf(e.y).selfSubtract(t.y)), a = s.subtract(o), u = A.valueOf(i.x).selfSubtract(r.x).selfMultiply(A.valueOf(t.y).selfSubtract(r.y)), l = A.valueOf(i.y).selfSubtract(r.y).selfMultiply(A.valueOf(t.x).selfSubtract(r.x)), c = u.subtract(l), h = c.selfDivide(a).doubleValue(), d = A.valueOf(t.x).selfAdd(A.valueOf(e.x).selfSubtract(t.x).selfMultiply(h)).doubleValue(), p = A.valueOf(e.x).selfSubtract(t.x).selfMultiply(A.valueOf(t.y).selfSubtract(r.y)), v = A.valueOf(e.y).selfSubtract(t.y).selfMultiply(A.valueOf(t.x).selfSubtract(r.x)), E = p.subtract(v), C = E.selfDivide(a).doubleValue(), P = A.valueOf(r.y).selfAdd(A.valueOf(i.y).selfSubtract(r.y).selfMultiply(C)).doubleValue();
|
|
6799
|
+
return new T(d, P);
|
|
6787
6800
|
};
|
|
6788
6801
|
Ge.orientationIndexFilter = function(t, e, r) {
|
|
6789
6802
|
var i = null, s = (t.x - r.x) * (e.y - r.y), o = (t.y - r.y) * (e.x - r.x), a = s - o;
|
|
@@ -6853,7 +6866,7 @@ Et.prototype.getClass = function() {
|
|
|
6853
6866
|
};
|
|
6854
6867
|
Object.defineProperties(Et, _u);
|
|
6855
6868
|
var Ep = function() {
|
|
6856
|
-
},
|
|
6869
|
+
}, Pa = function(n) {
|
|
6857
6870
|
function t() {
|
|
6858
6871
|
n.call(this, "Projective point not representable on the Cartesian plane.");
|
|
6859
6872
|
}
|
|
@@ -6895,20 +6908,20 @@ var Rr = function n() {
|
|
|
6895
6908
|
var u = arguments[0], l = arguments[1], c = arguments[2];
|
|
6896
6909
|
this.x = u, this.y = l, this.w = c;
|
|
6897
6910
|
} else if (arguments.length === 4) {
|
|
6898
|
-
var h = arguments[0], d = arguments[1], p = arguments[2], v = arguments[3], E = h.y - d.y, C = d.x - h.x,
|
|
6899
|
-
this.x = C * g - _ *
|
|
6911
|
+
var h = arguments[0], d = arguments[1], p = arguments[2], v = arguments[3], E = h.y - d.y, C = d.x - h.x, P = h.x * d.y - d.x * h.y, m = p.y - v.y, _ = v.x - p.x, g = p.x * v.y - v.x * p.y;
|
|
6912
|
+
this.x = C * g - _ * P, this.y = m * P - E * g, this.w = E * _ - m * C;
|
|
6900
6913
|
}
|
|
6901
6914
|
};
|
|
6902
6915
|
Rr.prototype.getY = function() {
|
|
6903
6916
|
var t = this.y / this.w;
|
|
6904
6917
|
if (ut.isNaN(t) || ut.isInfinite(t))
|
|
6905
|
-
throw new
|
|
6918
|
+
throw new Pa();
|
|
6906
6919
|
return t;
|
|
6907
6920
|
};
|
|
6908
6921
|
Rr.prototype.getX = function() {
|
|
6909
6922
|
var t = this.x / this.w;
|
|
6910
6923
|
if (ut.isNaN(t) || ut.isInfinite(t))
|
|
6911
|
-
throw new
|
|
6924
|
+
throw new Pa();
|
|
6912
6925
|
return t;
|
|
6913
6926
|
};
|
|
6914
6927
|
Rr.prototype.getCoordinate = function() {
|
|
@@ -6924,7 +6937,7 @@ Rr.prototype.getClass = function() {
|
|
|
6924
6937
|
Rr.intersection = function(t, e, r, i) {
|
|
6925
6938
|
var s = t.y - e.y, o = e.x - t.x, a = t.x * e.y - e.x * t.y, u = r.y - i.y, l = i.x - r.x, c = r.x * i.y - i.x * r.y, h = o * c - l * a, d = u * a - s * c, p = s * l - u * o, v = h / p, E = d / p;
|
|
6926
6939
|
if (ut.isNaN(v) || ut.isInfinite(v) || ut.isNaN(E) || ut.isInfinite(E))
|
|
6927
|
-
throw new
|
|
6940
|
+
throw new Pa();
|
|
6928
6941
|
return new T(v, E);
|
|
6929
6942
|
};
|
|
6930
6943
|
var J = function n() {
|
|
@@ -7402,33 +7415,33 @@ var fi = function(n) {
|
|
|
7402
7415
|
}, t.prototype.getClass = function() {
|
|
7403
7416
|
return t;
|
|
7404
7417
|
}, t;
|
|
7405
|
-
}(fi),
|
|
7418
|
+
}(fi), dt = function() {
|
|
7406
7419
|
};
|
|
7407
|
-
|
|
7420
|
+
dt.prototype.interfaces_ = function() {
|
|
7408
7421
|
return [];
|
|
7409
7422
|
};
|
|
7410
|
-
|
|
7411
|
-
return
|
|
7423
|
+
dt.prototype.getClass = function() {
|
|
7424
|
+
return dt;
|
|
7412
7425
|
};
|
|
7413
|
-
|
|
7426
|
+
dt.shouldNeverReachHere = function() {
|
|
7414
7427
|
if (arguments.length === 0)
|
|
7415
|
-
|
|
7428
|
+
dt.shouldNeverReachHere(null);
|
|
7416
7429
|
else if (arguments.length === 1) {
|
|
7417
7430
|
var t = arguments[0];
|
|
7418
7431
|
throw new Yu("Should never reach here" + (t !== null ? ": " + t : ""));
|
|
7419
7432
|
}
|
|
7420
7433
|
};
|
|
7421
|
-
|
|
7434
|
+
dt.isTrue = function() {
|
|
7422
7435
|
var t, e;
|
|
7423
7436
|
if (arguments.length === 1)
|
|
7424
|
-
t = arguments[0],
|
|
7437
|
+
t = arguments[0], dt.isTrue(t, null);
|
|
7425
7438
|
else if (arguments.length === 2 && (t = arguments[0], e = arguments[1], !t))
|
|
7426
7439
|
throw e === null ? new Yu() : new Yu(e);
|
|
7427
7440
|
};
|
|
7428
|
-
|
|
7441
|
+
dt.equals = function() {
|
|
7429
7442
|
var t, e, r;
|
|
7430
7443
|
if (arguments.length === 2)
|
|
7431
|
-
t = arguments[0], e = arguments[1],
|
|
7444
|
+
t = arguments[0], e = arguments[1], dt.equals(t, e, null);
|
|
7432
7445
|
else if (arguments.length === 3 && (t = arguments[0], e = arguments[1], r = arguments[2], !e.equals(t)))
|
|
7433
7446
|
throw new Yu("Expected " + t + " but encountered " + e + (r !== null ? ": " + r : ""));
|
|
7434
7447
|
};
|
|
@@ -7524,11 +7537,11 @@ qt.computeEdgeDistance = function(t, e, r) {
|
|
|
7524
7537
|
var a = Math.abs(t.x - e.x), u = Math.abs(t.y - e.y);
|
|
7525
7538
|
i > s ? o = a : o = u, o === 0 && !t.equals(e) && (o = Math.max(a, u));
|
|
7526
7539
|
}
|
|
7527
|
-
return
|
|
7540
|
+
return dt.isTrue(!(o === 0 && !t.equals(e)), "Bad distance calculation"), o;
|
|
7528
7541
|
};
|
|
7529
7542
|
qt.nonRobustComputeEdgeDistance = function(t, e, r) {
|
|
7530
7543
|
var i = t.x - e.x, s = t.y - e.y, o = Math.sqrt(i * i + s * s);
|
|
7531
|
-
return
|
|
7544
|
+
return dt.isTrue(!(o === 0 && !t.equals(e)), "Invalid distance calculation"), o;
|
|
7532
7545
|
};
|
|
7533
7546
|
lo.DONT_INTERSECT.get = function() {
|
|
7534
7547
|
return 0;
|
|
@@ -7571,7 +7584,7 @@ var Es = function(n) {
|
|
|
7571
7584
|
try {
|
|
7572
7585
|
a = Rr.intersection(r, i, s, o);
|
|
7573
7586
|
} catch (u) {
|
|
7574
|
-
if (u instanceof
|
|
7587
|
+
if (u instanceof Pa)
|
|
7575
7588
|
a = t.nearestEndpoint(r, i, s, o);
|
|
7576
7589
|
else
|
|
7577
7590
|
throw u;
|
|
@@ -7596,7 +7609,7 @@ var Es = function(n) {
|
|
|
7596
7609
|
var a = J.intersects(r, i, s), u = J.intersects(r, i, o), l = J.intersects(s, o, r), c = J.intersects(s, o, i);
|
|
7597
7610
|
return a && u ? (this._intPt[0] = s, this._intPt[1] = o, n.COLLINEAR_INTERSECTION) : l && c ? (this._intPt[0] = r, this._intPt[1] = i, n.COLLINEAR_INTERSECTION) : a && l ? (this._intPt[0] = s, this._intPt[1] = r, s.equals(r) && !u && !c ? n.POINT_INTERSECTION : n.COLLINEAR_INTERSECTION) : a && c ? (this._intPt[0] = s, this._intPt[1] = i, s.equals(i) && !u && !l ? n.POINT_INTERSECTION : n.COLLINEAR_INTERSECTION) : u && l ? (this._intPt[0] = o, this._intPt[1] = r, o.equals(r) && !a && !c ? n.POINT_INTERSECTION : n.COLLINEAR_INTERSECTION) : u && c ? (this._intPt[0] = o, this._intPt[1] = i, o.equals(i) && !a && !l ? n.POINT_INTERSECTION : n.COLLINEAR_INTERSECTION) : n.NO_INTERSECTION;
|
|
7598
7611
|
}, t.prototype.normalizeToEnvCentre = function(r, i, s, o, a) {
|
|
7599
|
-
var u = r.x < i.x ? r.x : i.x, l = r.y < i.y ? r.y : i.y, c = r.x > i.x ? r.x : i.x, h = r.y > i.y ? r.y : i.y, d = s.x < o.x ? s.x : o.x, p = s.y < o.y ? s.y : o.y, v = s.x > o.x ? s.x : o.x, E = s.y > o.y ? s.y : o.y, C = u > d ? u : d,
|
|
7612
|
+
var u = r.x < i.x ? r.x : i.x, l = r.y < i.y ? r.y : i.y, c = r.x > i.x ? r.x : i.x, h = r.y > i.y ? r.y : i.y, d = s.x < o.x ? s.x : o.x, p = s.y < o.y ? s.y : o.y, v = s.x > o.x ? s.x : o.x, E = s.y > o.y ? s.y : o.y, C = u > d ? u : d, P = c < v ? c : v, m = l > p ? l : p, _ = h < E ? h : E, g = (C + P) / 2, y = (m + _) / 2;
|
|
7600
7613
|
a.x = g, a.y = y, r.x -= a.x, r.y -= a.y, i.x -= a.x, i.y -= a.y, s.x -= a.x, s.y -= a.y, o.x -= a.x, o.y -= a.y;
|
|
7601
7614
|
}, t.prototype.computeIntersect = function(r, i, s, o) {
|
|
7602
7615
|
if (this._isProper = !1, !J.intersects(r, i, s, o))
|
|
@@ -8304,8 +8317,8 @@ var B = function(n) {
|
|
|
8304
8317
|
for (var C = 0; C < p.length; C++)
|
|
8305
8318
|
i.add(p[C], v);
|
|
8306
8319
|
else
|
|
8307
|
-
for (var
|
|
8308
|
-
i.add(p[
|
|
8320
|
+
for (var P = p.length - 1; P >= 0; P--)
|
|
8321
|
+
i.add(p[P], v);
|
|
8309
8322
|
return !0;
|
|
8310
8323
|
} else if (typeof arguments[2] == "boolean" && Number.isInteger(arguments[0]) && arguments[1] instanceof T) {
|
|
8311
8324
|
var m = arguments[0], _ = arguments[1], g = arguments[2];
|
|
@@ -8327,9 +8340,9 @@ var B = function(n) {
|
|
|
8327
8340
|
n.prototype.add.call(this, m, _);
|
|
8328
8341
|
}
|
|
8329
8342
|
} else if (arguments.length === 4) {
|
|
8330
|
-
var I = arguments[0], x = arguments[1], O = arguments[2],
|
|
8331
|
-
O >
|
|
8332
|
-
for (var D = O; D !==
|
|
8343
|
+
var I = arguments[0], x = arguments[1], O = arguments[2], b = arguments[3], N = 1;
|
|
8344
|
+
O > b && (N = -1);
|
|
8345
|
+
for (var D = O; D !== b; D += N)
|
|
8333
8346
|
i.add(I[D], x);
|
|
8334
8347
|
return !0;
|
|
8335
8348
|
}
|
|
@@ -9059,7 +9072,7 @@ var Re = function(n) {
|
|
|
9059
9072
|
i._geometries[d].apply(h);
|
|
9060
9073
|
}
|
|
9061
9074
|
}, t.prototype.getBoundary = function() {
|
|
9062
|
-
return this.checkNotGeometryCollection(this),
|
|
9075
|
+
return this.checkNotGeometryCollection(this), dt.shouldNeverReachHere(), null;
|
|
9063
9076
|
}, t.prototype.clone = function() {
|
|
9064
9077
|
var i = this, s = n.prototype.clone.call(this);
|
|
9065
9078
|
s._geometries = new Array(this._geometries.length).fill(null);
|
|
@@ -9212,32 +9225,32 @@ function Yv() {
|
|
|
9212
9225
|
}
|
|
9213
9226
|
function Hv() {
|
|
9214
9227
|
}
|
|
9215
|
-
var
|
|
9228
|
+
var br = function() {
|
|
9216
9229
|
}, kc = { NEWLINE: { configurable: !0 }, SIMPLE_ORDINATE_FORMAT: { configurable: !0 } };
|
|
9217
|
-
|
|
9230
|
+
br.prototype.interfaces_ = function() {
|
|
9218
9231
|
return [];
|
|
9219
9232
|
};
|
|
9220
|
-
|
|
9221
|
-
return
|
|
9233
|
+
br.prototype.getClass = function() {
|
|
9234
|
+
return br;
|
|
9222
9235
|
};
|
|
9223
|
-
|
|
9236
|
+
br.chars = function(t, e) {
|
|
9224
9237
|
for (var r = new Array(e).fill(null), i = 0; i < e; i++)
|
|
9225
9238
|
r[i] = t;
|
|
9226
9239
|
return String(r);
|
|
9227
9240
|
};
|
|
9228
|
-
|
|
9241
|
+
br.getStackTrace = function() {
|
|
9229
9242
|
if (arguments.length === 1) {
|
|
9230
9243
|
var t = arguments[0], e = new Xv(), r = new Gv();
|
|
9231
9244
|
return t.printStackTrace(r), e.toString();
|
|
9232
9245
|
} else if (arguments.length === 2) {
|
|
9233
9246
|
var i = arguments[0], s = arguments[1], o = "";
|
|
9234
|
-
new qv(
|
|
9247
|
+
new qv(br.getStackTrace(i));
|
|
9235
9248
|
for (var a = new Hv(), u = 0; u < s; u++)
|
|
9236
9249
|
try {
|
|
9237
|
-
o += a.readLine() +
|
|
9250
|
+
o += a.readLine() + br.NEWLINE;
|
|
9238
9251
|
} catch (l) {
|
|
9239
9252
|
if (l instanceof Yv)
|
|
9240
|
-
|
|
9253
|
+
dt.shouldNeverReachHere();
|
|
9241
9254
|
else
|
|
9242
9255
|
throw l;
|
|
9243
9256
|
} finally {
|
|
@@ -9245,7 +9258,7 @@ Pr.getStackTrace = function() {
|
|
|
9245
9258
|
return o;
|
|
9246
9259
|
}
|
|
9247
9260
|
};
|
|
9248
|
-
|
|
9261
|
+
br.split = function(t, e) {
|
|
9249
9262
|
for (var r = e.length, i = new B(), s = "" + t, o = s.indexOf(e); o >= 0; ) {
|
|
9250
9263
|
var a = s.substring(0, o);
|
|
9251
9264
|
i.add(a), s = s.substring(o + r), o = s.indexOf(e);
|
|
@@ -9255,14 +9268,14 @@ Pr.split = function(t, e) {
|
|
|
9255
9268
|
u[l] = i.get(l);
|
|
9256
9269
|
return u;
|
|
9257
9270
|
};
|
|
9258
|
-
|
|
9271
|
+
br.toString = function() {
|
|
9259
9272
|
if (arguments.length === 1) {
|
|
9260
9273
|
var t = arguments[0];
|
|
9261
|
-
return
|
|
9274
|
+
return br.SIMPLE_ORDINATE_FORMAT.format(t);
|
|
9262
9275
|
}
|
|
9263
9276
|
};
|
|
9264
|
-
|
|
9265
|
-
return
|
|
9277
|
+
br.spaces = function(t) {
|
|
9278
|
+
return br.chars(" ", t);
|
|
9266
9279
|
};
|
|
9267
9280
|
kc.NEWLINE.get = function() {
|
|
9268
9281
|
return _e.getProperty("line.separator");
|
|
@@ -9270,7 +9283,7 @@ kc.NEWLINE.get = function() {
|
|
|
9270
9283
|
kc.SIMPLE_ORDINATE_FORMAT.get = function() {
|
|
9271
9284
|
return new Wv();
|
|
9272
9285
|
};
|
|
9273
|
-
Object.defineProperties(
|
|
9286
|
+
Object.defineProperties(br, kc);
|
|
9274
9287
|
var Kt = function() {
|
|
9275
9288
|
};
|
|
9276
9289
|
Kt.prototype.interfaces_ = function() {
|
|
@@ -9332,7 +9345,7 @@ Kt.toString = function() {
|
|
|
9332
9345
|
for (var s = 0; s < e; s++) {
|
|
9333
9346
|
s > 0 && i.append(" ");
|
|
9334
9347
|
for (var o = 0; o < r; o++)
|
|
9335
|
-
o > 0 && i.append(","), i.append(
|
|
9348
|
+
o > 0 && i.append(","), i.append(br.toString(t.getOrdinate(s, o)));
|
|
9336
9349
|
}
|
|
9337
9350
|
return i.append(")"), i.toString();
|
|
9338
9351
|
}
|
|
@@ -9565,7 +9578,7 @@ var er = function(n) {
|
|
|
9565
9578
|
}, t.prototype.isEmpty = function() {
|
|
9566
9579
|
return this._coordinates.size() === 0;
|
|
9567
9580
|
}, t.prototype.init = function(i) {
|
|
9568
|
-
i === null && (i = this.getFactory().getCoordinateSequenceFactory().create([])),
|
|
9581
|
+
i === null && (i = this.getFactory().getCoordinateSequenceFactory().create([])), dt.isTrue(i.size() <= 1), this._coordinates = i;
|
|
9569
9582
|
}, t.prototype.isSimple = function() {
|
|
9570
9583
|
return !0;
|
|
9571
9584
|
}, t.prototype.interfaces_ = function() {
|
|
@@ -9698,7 +9711,7 @@ var ue = function(n) {
|
|
|
9698
9711
|
if (p !== 0)
|
|
9699
9712
|
return p;
|
|
9700
9713
|
for (var v = this.getNumInteriorRing(), E = c.getNumInteriorRing(), C = 0; C < v && C < E; ) {
|
|
9701
|
-
var
|
|
9714
|
+
var P = i.getInteriorRingN(C), m = c.getInteriorRingN(C), _ = P.compareToSameClass(m, l);
|
|
9702
9715
|
if (_ !== 0)
|
|
9703
9716
|
return _;
|
|
9704
9717
|
C++;
|
|
@@ -9879,7 +9892,7 @@ var ue = function(n) {
|
|
|
9879
9892
|
}, Object.defineProperties(t, e), t;
|
|
9880
9893
|
}(Re), Tr = function(t) {
|
|
9881
9894
|
this._factory = t || null, this._isUserDataCopied = !1;
|
|
9882
|
-
},
|
|
9895
|
+
}, bl = { NoOpGeometryOperation: { configurable: !0 }, CoordinateOperation: { configurable: !0 }, CoordinateSequenceOperation: { configurable: !0 } };
|
|
9883
9896
|
Tr.prototype.setCopyUserData = function(t) {
|
|
9884
9897
|
this._isUserDataCopied = t;
|
|
9885
9898
|
};
|
|
@@ -9890,7 +9903,7 @@ Tr.prototype.edit = function(t, e) {
|
|
|
9890
9903
|
return this._isUserDataCopied && r.setUserData(t.getUserData()), r;
|
|
9891
9904
|
};
|
|
9892
9905
|
Tr.prototype.editInternal = function(t, e) {
|
|
9893
|
-
return this._factory === null && (this._factory = t.getFactory()), t instanceof Re ? this.editGeometryCollection(t, e) : t instanceof ue ? this.editPolygon(t, e) : t instanceof er ? e.edit(t, this._factory) : t instanceof Xt ? e.edit(t, this._factory) : (
|
|
9906
|
+
return this._factory === null && (this._factory = t.getFactory()), t instanceof Re ? this.editGeometryCollection(t, e) : t instanceof ue ? this.editPolygon(t, e) : t instanceof er ? e.edit(t, this._factory) : t instanceof Xt ? e.edit(t, this._factory) : (dt.shouldNeverReachHere("Unsupported Geometry class: " + t.getClass().getName()), null);
|
|
9894
9907
|
};
|
|
9895
9908
|
Tr.prototype.editGeometryCollection = function(t, e) {
|
|
9896
9909
|
for (var r = this, i = e.edit(t, this._factory), s = new B(), o = 0; o < i.getNumGeometries(); o++) {
|
|
@@ -9920,16 +9933,16 @@ Tr.prototype.getClass = function() {
|
|
|
9920
9933
|
};
|
|
9921
9934
|
Tr.GeometryEditorOperation = function() {
|
|
9922
9935
|
};
|
|
9923
|
-
|
|
9936
|
+
bl.NoOpGeometryOperation.get = function() {
|
|
9924
9937
|
return tu;
|
|
9925
9938
|
};
|
|
9926
|
-
|
|
9939
|
+
bl.CoordinateOperation.get = function() {
|
|
9927
9940
|
return eu;
|
|
9928
9941
|
};
|
|
9929
|
-
|
|
9942
|
+
bl.CoordinateSequenceOperation.get = function() {
|
|
9930
9943
|
return ru;
|
|
9931
9944
|
};
|
|
9932
|
-
Object.defineProperties(Tr,
|
|
9945
|
+
Object.defineProperties(Tr, bl);
|
|
9933
9946
|
var tu = function() {
|
|
9934
9947
|
};
|
|
9935
9948
|
tu.prototype.edit = function(t, e) {
|
|
@@ -10118,7 +10131,7 @@ Vc.instanceObject.get = function() {
|
|
|
10118
10131
|
return new zn();
|
|
10119
10132
|
};
|
|
10120
10133
|
Object.defineProperties(zn, Vc);
|
|
10121
|
-
var
|
|
10134
|
+
var bp = function(n) {
|
|
10122
10135
|
function t() {
|
|
10123
10136
|
n.call(this), this.map_ = /* @__PURE__ */ new Map();
|
|
10124
10137
|
}
|
|
@@ -10236,7 +10249,7 @@ zc.serialVersionUID.get = function() {
|
|
|
10236
10249
|
return -552860263173159e4;
|
|
10237
10250
|
};
|
|
10238
10251
|
zc.nameToTypeMap.get = function() {
|
|
10239
|
-
return new
|
|
10252
|
+
return new bp();
|
|
10240
10253
|
};
|
|
10241
10254
|
Object.defineProperties(cn, zc);
|
|
10242
10255
|
Ot.Type = cn;
|
|
@@ -10245,7 +10258,7 @@ Ot.FLOATING = new cn("FLOATING");
|
|
|
10245
10258
|
Ot.FLOATING_SINGLE = new cn("FLOATING SINGLE");
|
|
10246
10259
|
var mt = function n() {
|
|
10247
10260
|
this._precisionModel = new Ot(), this._SRID = 0, this._coordinateSequenceFactory = n.getDefaultCoordinateSequenceFactory(), arguments.length === 0 || (arguments.length === 1 ? it(arguments[0], na) ? this._coordinateSequenceFactory = arguments[0] : arguments[0] instanceof Ot && (this._precisionModel = arguments[0]) : arguments.length === 2 ? (this._precisionModel = arguments[0], this._SRID = arguments[1]) : arguments.length === 3 && (this._precisionModel = arguments[0], this._SRID = arguments[1], this._coordinateSequenceFactory = arguments[2]));
|
|
10248
|
-
},
|
|
10261
|
+
}, Pp = { serialVersionUID: { configurable: !0 } };
|
|
10249
10262
|
mt.prototype.toGeometry = function(t) {
|
|
10250
10263
|
return t.isNull() ? this.createPoint(null) : t.getMinX() === t.getMaxX() && t.getMinY() === t.getMaxY() ? this.createPoint(new T(t.getMinX(), t.getMinY())) : t.getMinX() === t.getMaxX() || t.getMinY() === t.getMaxY() ? this.createLineString([new T(t.getMinX(), t.getMinY()), new T(t.getMaxX(), t.getMaxY())]) : this.createPolygon(this.createLinearRing([new T(t.getMinX(), t.getMinY()), new T(t.getMinX(), t.getMaxY()), new T(t.getMaxX(), t.getMaxY()), new T(t.getMaxX(), t.getMinY()), new T(t.getMinX(), t.getMinY())]), null);
|
|
10251
10264
|
};
|
|
@@ -10282,7 +10295,7 @@ mt.prototype.buildGeometry = function(t) {
|
|
|
10282
10295
|
return this.createMultiLineString(mt.toLineStringArray(t));
|
|
10283
10296
|
if (u instanceof er)
|
|
10284
10297
|
return this.createMultiPoint(mt.toPointArray(t));
|
|
10285
|
-
|
|
10298
|
+
dt.shouldNeverReachHere("Unhandled class: " + u.getClass().getName());
|
|
10286
10299
|
}
|
|
10287
10300
|
return u;
|
|
10288
10301
|
};
|
|
@@ -10439,14 +10452,14 @@ mt.toPolygonArray = function(t) {
|
|
|
10439
10452
|
mt.createPointFromInternalCoord = function(t, e) {
|
|
10440
10453
|
return e.getPrecisionModel().makePrecise(t), e.getFactory().createPoint(t);
|
|
10441
10454
|
};
|
|
10442
|
-
|
|
10455
|
+
Pp.serialVersionUID.get = function() {
|
|
10443
10456
|
return -6820524753094096e3;
|
|
10444
10457
|
};
|
|
10445
|
-
Object.defineProperties(mt,
|
|
10446
|
-
var Jv = ["Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon"],
|
|
10458
|
+
Object.defineProperties(mt, Pp);
|
|
10459
|
+
var Jv = ["Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon"], Pl = function(t) {
|
|
10447
10460
|
this.geometryFactory = t || new mt();
|
|
10448
10461
|
};
|
|
10449
|
-
|
|
10462
|
+
Pl.prototype.read = function(t) {
|
|
10450
10463
|
var e;
|
|
10451
10464
|
typeof t == "string" ? e = JSON.parse(t) : e = t;
|
|
10452
10465
|
var r = e.type;
|
|
@@ -10454,7 +10467,7 @@ bl.prototype.read = function(t) {
|
|
|
10454
10467
|
throw new Error("Unknown GeoJSON type: " + e.type);
|
|
10455
10468
|
return Jv.indexOf(r) !== -1 ? en[r].apply(this, [e.coordinates]) : r === "GeometryCollection" ? en[r].apply(this, [e.geometries]) : en[r].apply(this, [e]);
|
|
10456
10469
|
};
|
|
10457
|
-
|
|
10470
|
+
Pl.prototype.write = function(t) {
|
|
10458
10471
|
var e = t.getGeometryType();
|
|
10459
10472
|
if (!Kn[e])
|
|
10460
10473
|
throw new Error("Geometry is not supported");
|
|
@@ -10763,7 +10776,7 @@ var en = {
|
|
|
10763
10776
|
};
|
|
10764
10777
|
}
|
|
10765
10778
|
}, jc = function(t) {
|
|
10766
|
-
this.geometryFactory = t || new mt(), this.precisionModel = this.geometryFactory.getPrecisionModel(), this.parser = new
|
|
10779
|
+
this.geometryFactory = t || new mt(), this.precisionModel = this.geometryFactory.getPrecisionModel(), this.parser = new Pl(this.geometryFactory);
|
|
10767
10780
|
};
|
|
10768
10781
|
jc.prototype.read = function(t) {
|
|
10769
10782
|
var e = this.parser.read(t);
|
|
@@ -10781,7 +10794,7 @@ jc.prototype.reducePrecision = function(t) {
|
|
|
10781
10794
|
e.reducePrecision(t.geometries[r]);
|
|
10782
10795
|
};
|
|
10783
10796
|
var xp = function() {
|
|
10784
|
-
this.parser = new
|
|
10797
|
+
this.parser = new Pl(this.geometryFactory);
|
|
10785
10798
|
};
|
|
10786
10799
|
xp.prototype.write = function(t) {
|
|
10787
10800
|
return this.parser.write(t);
|
|
@@ -10866,7 +10879,7 @@ hn.prototype.getRightmostSide = function(t, e) {
|
|
|
10866
10879
|
};
|
|
10867
10880
|
hn.prototype.findRightmostEdgeAtVertex = function() {
|
|
10868
10881
|
var t = this._minDe.getEdge().getCoordinates();
|
|
10869
|
-
|
|
10882
|
+
dt.isTrue(this._minIndex > 0 && this._minIndex < t.length, "rightmost point expected to be interior vertex of edge");
|
|
10870
10883
|
var e = t[this._minIndex - 1], r = t[this._minIndex + 1], i = j.computeOrientation(this._minCoord, r, e), s = !1;
|
|
10871
10884
|
(e.y < this._minCoord.y && r.y < this._minCoord.y && i === j.COUNTERCLOCKWISE || e.y > this._minCoord.y && r.y > this._minCoord.y && i === j.CLOCKWISE) && (s = !0), s && (this._minIndex = this._minIndex - 1);
|
|
10872
10885
|
};
|
|
@@ -10893,7 +10906,7 @@ hn.prototype.findEdge = function(t) {
|
|
|
10893
10906
|
var i = r.next();
|
|
10894
10907
|
i.isForward() && e.checkForRightmostCoordinate(i);
|
|
10895
10908
|
}
|
|
10896
|
-
|
|
10909
|
+
dt.isTrue(this._minIndex !== 0 || this._minCoord.equals(this._minDe.getCoordinate()), "inconsistency in rightmost processing"), this._minIndex === 0 ? this.findRightmostEdgeAtNode() : this.findRightmostEdgeAtVertex(), this._orientedDe = this._minDe;
|
|
10897
10910
|
var s = this.getRightmostSide(this._minDe, this._minIndex);
|
|
10898
10911
|
s === V.LEFT && (this._orientedDe = this._minDe.getSym());
|
|
10899
10912
|
};
|
|
@@ -11260,7 +11273,7 @@ re.prototype.computePoints = function(t) {
|
|
|
11260
11273
|
throw new pi("Directed Edge visited twice during ring-building at " + r.getCoordinate());
|
|
11261
11274
|
e._edges.add(r);
|
|
11262
11275
|
var s = r.getLabel();
|
|
11263
|
-
|
|
11276
|
+
dt.isTrue(s.isArea()), e.mergeLabel(s), e.addPoints(r.getEdge(), r.isForward(), i), i = !1, e.setEdgeRing(r, e), r = e.getNext(r);
|
|
11264
11277
|
} while (r !== this._startDe);
|
|
11265
11278
|
};
|
|
11266
11279
|
re.prototype.getLinearRing = function() {
|
|
@@ -11432,7 +11445,7 @@ pr.prototype.setCovered = function(t) {
|
|
|
11432
11445
|
this._isCovered = t, this._isCoveredSet = !0;
|
|
11433
11446
|
};
|
|
11434
11447
|
pr.prototype.updateIM = function(t) {
|
|
11435
|
-
|
|
11448
|
+
dt.isTrue(this._label.getGeometryCount() >= 2, "found partial label"), this.computeIM(t);
|
|
11436
11449
|
};
|
|
11437
11450
|
pr.prototype.isInResult = function() {
|
|
11438
11451
|
return this._isInResult;
|
|
@@ -11617,7 +11630,7 @@ Su.SE.get = function() {
|
|
|
11617
11630
|
return 3;
|
|
11618
11631
|
};
|
|
11619
11632
|
Object.defineProperties(Rt, Su);
|
|
11620
|
-
var
|
|
11633
|
+
var be = function() {
|
|
11621
11634
|
if (this._edge = null, this._label = null, this._node = null, this._p0 = null, this._p1 = null, this._dx = null, this._dy = null, this._quadrant = null, arguments.length === 1) {
|
|
11622
11635
|
var t = arguments[0];
|
|
11623
11636
|
this._edge = t;
|
|
@@ -11629,58 +11642,58 @@ var Pe = function() {
|
|
|
11629
11642
|
this._edge = o, this.init(a, u), this._label = l;
|
|
11630
11643
|
}
|
|
11631
11644
|
};
|
|
11632
|
-
|
|
11645
|
+
be.prototype.compareDirection = function(t) {
|
|
11633
11646
|
return this._dx === t._dx && this._dy === t._dy ? 0 : this._quadrant > t._quadrant ? 1 : this._quadrant < t._quadrant ? -1 : j.computeOrientation(t._p0, t._p1, this._p1);
|
|
11634
11647
|
};
|
|
11635
|
-
|
|
11648
|
+
be.prototype.getDy = function() {
|
|
11636
11649
|
return this._dy;
|
|
11637
11650
|
};
|
|
11638
|
-
|
|
11651
|
+
be.prototype.getCoordinate = function() {
|
|
11639
11652
|
return this._p0;
|
|
11640
11653
|
};
|
|
11641
|
-
|
|
11654
|
+
be.prototype.setNode = function(t) {
|
|
11642
11655
|
this._node = t;
|
|
11643
11656
|
};
|
|
11644
|
-
|
|
11657
|
+
be.prototype.print = function(t) {
|
|
11645
11658
|
var e = Math.atan2(this._dy, this._dx), r = this.getClass().getName(), i = r.lastIndexOf("."), s = r.substring(i + 1);
|
|
11646
11659
|
t.print(" " + s + ": " + this._p0 + " - " + this._p1 + " " + this._quadrant + ":" + e + " " + this._label);
|
|
11647
11660
|
};
|
|
11648
|
-
|
|
11661
|
+
be.prototype.compareTo = function(t) {
|
|
11649
11662
|
var e = t;
|
|
11650
11663
|
return this.compareDirection(e);
|
|
11651
11664
|
};
|
|
11652
|
-
|
|
11665
|
+
be.prototype.getDirectedCoordinate = function() {
|
|
11653
11666
|
return this._p1;
|
|
11654
11667
|
};
|
|
11655
|
-
|
|
11668
|
+
be.prototype.getDx = function() {
|
|
11656
11669
|
return this._dx;
|
|
11657
11670
|
};
|
|
11658
|
-
|
|
11671
|
+
be.prototype.getLabel = function() {
|
|
11659
11672
|
return this._label;
|
|
11660
11673
|
};
|
|
11661
|
-
|
|
11674
|
+
be.prototype.getEdge = function() {
|
|
11662
11675
|
return this._edge;
|
|
11663
11676
|
};
|
|
11664
|
-
|
|
11677
|
+
be.prototype.getQuadrant = function() {
|
|
11665
11678
|
return this._quadrant;
|
|
11666
11679
|
};
|
|
11667
|
-
|
|
11680
|
+
be.prototype.getNode = function() {
|
|
11668
11681
|
return this._node;
|
|
11669
11682
|
};
|
|
11670
|
-
|
|
11683
|
+
be.prototype.toString = function() {
|
|
11671
11684
|
var t = Math.atan2(this._dy, this._dx), e = this.getClass().getName(), r = e.lastIndexOf("."), i = e.substring(r + 1);
|
|
11672
11685
|
return " " + i + ": " + this._p0 + " - " + this._p1 + " " + this._quadrant + ":" + t + " " + this._label;
|
|
11673
11686
|
};
|
|
11674
|
-
|
|
11687
|
+
be.prototype.computeLabel = function(t) {
|
|
11675
11688
|
};
|
|
11676
|
-
|
|
11677
|
-
this._p0 = t, this._p1 = e, this._dx = e.x - t.x, this._dy = e.y - t.y, this._quadrant = Rt.quadrant(this._dx, this._dy),
|
|
11689
|
+
be.prototype.init = function(t, e) {
|
|
11690
|
+
this._p0 = t, this._p1 = e, this._dx = e.x - t.x, this._dy = e.y - t.y, this._quadrant = Rt.quadrant(this._dx, this._dy), dt.isTrue(!(this._dx === 0 && this._dy === 0), "EdgeEnd with identical endpoints found");
|
|
11678
11691
|
};
|
|
11679
|
-
|
|
11692
|
+
be.prototype.interfaces_ = function() {
|
|
11680
11693
|
return [Mr];
|
|
11681
11694
|
};
|
|
11682
|
-
|
|
11683
|
-
return
|
|
11695
|
+
be.prototype.getClass = function() {
|
|
11696
|
+
return be;
|
|
11684
11697
|
};
|
|
11685
11698
|
var tc = function(n) {
|
|
11686
11699
|
function t() {
|
|
@@ -11763,7 +11776,7 @@ var tc = function(n) {
|
|
|
11763
11776
|
}, t.depthFactor = function(r, i) {
|
|
11764
11777
|
return r === L.EXTERIOR && i === L.INTERIOR ? 1 : r === L.INTERIOR && i === L.EXTERIOR ? -1 : 0;
|
|
11765
11778
|
}, t;
|
|
11766
|
-
}(
|
|
11779
|
+
}(be), ca = function() {
|
|
11767
11780
|
};
|
|
11768
11781
|
ca.prototype.createNode = function(t) {
|
|
11769
11782
|
return new Ol(t, null);
|
|
@@ -11976,7 +11989,7 @@ rr.prototype.findShell = function(t) {
|
|
|
11976
11989
|
var s = i.next();
|
|
11977
11990
|
s.isHole() || (r = s, e++);
|
|
11978
11991
|
}
|
|
11979
|
-
return
|
|
11992
|
+
return dt.isTrue(e <= 1, "found two shells in MinimalEdgeRing list"), r;
|
|
11980
11993
|
};
|
|
11981
11994
|
rr.prototype.add = function() {
|
|
11982
11995
|
if (arguments.length === 1) {
|
|
@@ -12101,7 +12114,7 @@ ae.prototype.getChildBoundables = function() {
|
|
|
12101
12114
|
return this._childBoundables;
|
|
12102
12115
|
};
|
|
12103
12116
|
ae.prototype.addChildBoundable = function(t) {
|
|
12104
|
-
|
|
12117
|
+
dt.isTrue(this._bounds === null), this._childBoundables.add(t);
|
|
12105
12118
|
};
|
|
12106
12119
|
ae.prototype.isEmpty = function() {
|
|
12107
12120
|
return this._childBoundables.isEmpty();
|
|
@@ -12196,7 +12209,7 @@ var fe = function n() {
|
|
|
12196
12209
|
this._nodeCapacity = t;
|
|
12197
12210
|
} else if (arguments.length === 1) {
|
|
12198
12211
|
var e = arguments[0];
|
|
12199
|
-
|
|
12212
|
+
dt.isTrue(e > 1, "Node capacity must be greater than 1"), this._nodeCapacity = e;
|
|
12200
12213
|
}
|
|
12201
12214
|
}, Ml = { IntersectsOp: { configurable: !0 }, serialVersionUID: { configurable: !0 }, DEFAULT_NODE_CAPACITY: { configurable: !0 } };
|
|
12202
12215
|
fe.prototype.getNodeCapacity = function() {
|
|
@@ -12236,13 +12249,13 @@ fe.prototype.itemsTree = function() {
|
|
|
12236
12249
|
if (o instanceof ae) {
|
|
12237
12250
|
var a = t.itemsTree(o);
|
|
12238
12251
|
a !== null && i.add(a);
|
|
12239
|
-
} else o instanceof Br ? i.add(o.getItem()) :
|
|
12252
|
+
} else o instanceof Br ? i.add(o.getItem()) : dt.shouldNeverReachHere();
|
|
12240
12253
|
}
|
|
12241
12254
|
return i.size() <= 0 ? null : i;
|
|
12242
12255
|
}
|
|
12243
12256
|
};
|
|
12244
12257
|
fe.prototype.insert = function(t, e) {
|
|
12245
|
-
|
|
12258
|
+
dt.isTrue(!this._built, "Cannot insert items into an STR packed R-tree after it has been built."), this._itemBoundables.add(new Br(t, e));
|
|
12246
12259
|
};
|
|
12247
12260
|
fe.prototype.boundablesAtLevel = function() {
|
|
12248
12261
|
var t = this;
|
|
@@ -12251,11 +12264,11 @@ fe.prototype.boundablesAtLevel = function() {
|
|
|
12251
12264
|
return this.boundablesAtLevel(e, this._root, r), r;
|
|
12252
12265
|
} else if (arguments.length === 3) {
|
|
12253
12266
|
var i = arguments[0], s = arguments[1], o = arguments[2];
|
|
12254
|
-
if (
|
|
12267
|
+
if (dt.isTrue(i > -2), s.getLevel() === i)
|
|
12255
12268
|
return o.add(s), null;
|
|
12256
12269
|
for (var a = s.getChildBoundables().iterator(); a.hasNext(); ) {
|
|
12257
12270
|
var u = a.next();
|
|
12258
|
-
u instanceof ae ? t.boundablesAtLevel(i, u, o) : (
|
|
12271
|
+
u instanceof ae ? t.boundablesAtLevel(i, u, o) : (dt.isTrue(u instanceof Br), i === -1 && o.add(u));
|
|
12259
12272
|
}
|
|
12260
12273
|
return null;
|
|
12261
12274
|
}
|
|
@@ -12276,12 +12289,12 @@ fe.prototype.query = function() {
|
|
|
12276
12289
|
if (it(arguments[2], Fi) && arguments[0] instanceof Object && arguments[1] instanceof ae)
|
|
12277
12290
|
for (var o = arguments[0], a = arguments[1], u = arguments[2], l = a.getChildBoundables(), c = 0; c < l.size(); c++) {
|
|
12278
12291
|
var h = l.get(c);
|
|
12279
|
-
t.getIntersectsOp().intersects(h.getBounds(), o) && (h instanceof ae ? t.query(o, h, u) : h instanceof Br ? u.visitItem(h.getItem()) :
|
|
12292
|
+
t.getIntersectsOp().intersects(h.getBounds(), o) && (h instanceof ae ? t.query(o, h, u) : h instanceof Br ? u.visitItem(h.getItem()) : dt.shouldNeverReachHere());
|
|
12280
12293
|
}
|
|
12281
12294
|
else if (it(arguments[2], Ar) && arguments[0] instanceof Object && arguments[1] instanceof ae)
|
|
12282
12295
|
for (var d = arguments[0], p = arguments[1], v = arguments[2], E = p.getChildBoundables(), C = 0; C < E.size(); C++) {
|
|
12283
|
-
var
|
|
12284
|
-
t.getIntersectsOp().intersects(
|
|
12296
|
+
var P = E.get(C);
|
|
12297
|
+
t.getIntersectsOp().intersects(P.getBounds(), d) && (P instanceof ae ? t.query(d, P, v) : P instanceof Br ? v.add(P.getItem()) : dt.shouldNeverReachHere());
|
|
12285
12298
|
}
|
|
12286
12299
|
}
|
|
12287
12300
|
};
|
|
@@ -12313,7 +12326,7 @@ fe.prototype.remove = function() {
|
|
|
12313
12326
|
}
|
|
12314
12327
|
};
|
|
12315
12328
|
fe.prototype.createHigherLevels = function(t, e) {
|
|
12316
|
-
|
|
12329
|
+
dt.isTrue(!t.isEmpty());
|
|
12317
12330
|
var r = this.createParentBoundables(t, e + 1);
|
|
12318
12331
|
return r.size() === 1 ? r.get(0) : this.createHigherLevels(r, e + 1);
|
|
12319
12332
|
};
|
|
@@ -12334,7 +12347,7 @@ fe.prototype.depth = function() {
|
|
|
12334
12347
|
};
|
|
12335
12348
|
fe.prototype.createParentBoundables = function(t, e) {
|
|
12336
12349
|
var r = this;
|
|
12337
|
-
|
|
12350
|
+
dt.isTrue(!t.isEmpty());
|
|
12338
12351
|
var i = new B();
|
|
12339
12352
|
i.add(this.createNode(e));
|
|
12340
12353
|
var s = new B(t);
|
|
@@ -12386,7 +12399,7 @@ var Tp = function(n) {
|
|
|
12386
12399
|
var e = { STRtreeNode: { configurable: !0 }, serialVersionUID: { configurable: !0 }, xComparator: { configurable: !0 }, yComparator: { configurable: !0 }, intersectsOp: { configurable: !0 }, DEFAULT_NODE_CAPACITY: { configurable: !0 } };
|
|
12387
12400
|
return t.prototype.createParentBoundablesFromVerticalSlices = function(i, s) {
|
|
12388
12401
|
var o = this;
|
|
12389
|
-
|
|
12402
|
+
dt.isTrue(i.length > 0);
|
|
12390
12403
|
for (var a = new B(), u = 0; u < i.length; u++)
|
|
12391
12404
|
a.addAll(o.createParentBoundablesFromVerticalSlice(i[u], s));
|
|
12392
12405
|
return a;
|
|
@@ -12442,7 +12455,7 @@ var Tp = function(n) {
|
|
|
12442
12455
|
}, t.prototype.depth = function() {
|
|
12443
12456
|
return arguments.length === 0 ? n.prototype.depth.call(this) : n.prototype.depth.apply(this, arguments);
|
|
12444
12457
|
}, t.prototype.createParentBoundables = function(i, s) {
|
|
12445
|
-
|
|
12458
|
+
dt.isTrue(!i.isEmpty());
|
|
12446
12459
|
var o = Math.trunc(Math.ceil(i.size() / this.getNodeCapacity())), a = new B(i);
|
|
12447
12460
|
zr.sort(a, t.xComparator);
|
|
12448
12461
|
var u = this.verticalSlices(a, Math.trunc(Math.ceil(Math.sqrt(o))));
|
|
@@ -12471,7 +12484,7 @@ var Tp = function(n) {
|
|
|
12471
12484
|
return [p.getBoundable(0).getItem(), p.getBoundable(1).getItem()];
|
|
12472
12485
|
}
|
|
12473
12486
|
} else if (arguments.length === 3) {
|
|
12474
|
-
var
|
|
12487
|
+
var P = arguments[0], m = arguments[1], _ = arguments[2], g = new Br(P, m), y = new te(this.getRoot(), g, _);
|
|
12475
12488
|
return this.nearestNeighbour(y)[0];
|
|
12476
12489
|
}
|
|
12477
12490
|
}, t.prototype.interfaces_ = function() {
|
|
@@ -12567,7 +12580,7 @@ je.compare = function(t, e, r) {
|
|
|
12567
12580
|
case 7:
|
|
12568
12581
|
return je.compareValue(i, -s);
|
|
12569
12582
|
}
|
|
12570
|
-
return
|
|
12583
|
+
return dt.shouldNeverReachHere("invalid octant value"), 0;
|
|
12571
12584
|
};
|
|
12572
12585
|
je.compareValue = function(t, e) {
|
|
12573
12586
|
return t < 0 ? -1 : t > 0 ? 1 : e < 0 ? -1 : e > 0 ? 1 : 0;
|
|
@@ -12682,7 +12695,7 @@ Fe.prototype.createSplitEdge = function(t, e) {
|
|
|
12682
12695
|
};
|
|
12683
12696
|
Fe.prototype.add = function(t, e) {
|
|
12684
12697
|
var r = new ki(this._edge, t, e, this._edge.getSegmentOctant(e)), i = this._nodeMap.get(r);
|
|
12685
|
-
return i !== null ? (
|
|
12698
|
+
return i !== null ? (dt.isTrue(i.coord.equals2D(t), "Found equal nodes with different coordinates"), i) : (this._nodeMap.put(r, r), r);
|
|
12686
12699
|
};
|
|
12687
12700
|
Fe.prototype.checkSplitEdgesCorrectness = function(t) {
|
|
12688
12701
|
var e = this._edge.getCoordinates(), r = t.get(0), i = r.getCoordinate(0);
|
|
@@ -12952,7 +12965,7 @@ K.prototype.lineIntersection = function(t) {
|
|
|
12952
12965
|
var e = Rr.intersection(this.p0, this.p1, t.p0, t.p1);
|
|
12953
12966
|
return e;
|
|
12954
12967
|
} catch (r) {
|
|
12955
|
-
if (!(r instanceof
|
|
12968
|
+
if (!(r instanceof Pa)) throw r;
|
|
12956
12969
|
} finally {
|
|
12957
12970
|
}
|
|
12958
12971
|
return null;
|
|
@@ -13595,7 +13608,7 @@ zt.prototype.addMitreJoin = function(t, e, r, i) {
|
|
|
13595
13608
|
var a = i <= 0 ? 1 : o.distance(t) / Math.abs(i);
|
|
13596
13609
|
a > this._bufParams.getMitreLimit() && (s = !1);
|
|
13597
13610
|
} catch (u) {
|
|
13598
|
-
if (u instanceof
|
|
13611
|
+
if (u instanceof Pa)
|
|
13599
13612
|
o = new T(0, 0), s = !1;
|
|
13600
13613
|
else
|
|
13601
13614
|
throw u;
|
|
@@ -13628,7 +13641,7 @@ zt.prototype.initSideSegments = function(t, e, r) {
|
|
|
13628
13641
|
this._s1 = t, this._s2 = e, this._side = r, this._seg1.setCoordinates(t, e), this.computeOffsetSegment(this._seg1, r, this._distance, this._offset1);
|
|
13629
13642
|
};
|
|
13630
13643
|
zt.prototype.addLimitedMitreJoin = function(t, e, r, i) {
|
|
13631
|
-
var s = this._seg0.p1, o = _t.angle(s, this._seg0.p0), a = _t.angleBetweenOriented(this._seg0.p0, s, this._seg1.p1), u = a / 2, l = _t.normalize(o + u), c = _t.normalize(l + Math.PI), h = i * r, d = h * Math.abs(Math.sin(u)), p = r - d, v = s.x + h * Math.cos(c), E = s.y + h * Math.sin(c), C = new T(v, E),
|
|
13644
|
+
var s = this._seg0.p1, o = _t.angle(s, this._seg0.p0), a = _t.angleBetweenOriented(this._seg0.p0, s, this._seg1.p1), u = a / 2, l = _t.normalize(o + u), c = _t.normalize(l + Math.PI), h = i * r, d = h * Math.abs(Math.sin(u)), p = r - d, v = s.x + h * Math.cos(c), E = s.y + h * Math.sin(c), C = new T(v, E), P = new K(s, C), m = P.pointAlongOffset(1, p), _ = P.pointAlongOffset(1, -p);
|
|
13632
13645
|
this._side === V.LEFT ? (this._segList.addPt(m), this._segList.addPt(_)) : (this._segList.addPt(_), this._segList.addPt(m));
|
|
13633
13646
|
};
|
|
13634
13647
|
zt.prototype.computeOffsetSegment = function(t, e, r, i) {
|
|
@@ -13846,9 +13859,9 @@ Ks.prototype.findStabbedSegments = function() {
|
|
|
13846
13859
|
}
|
|
13847
13860
|
}
|
|
13848
13861
|
else if (it(arguments[2], Ar) && arguments[0] instanceof T && it(arguments[1], Ar))
|
|
13849
|
-
for (var E = arguments[0], C = arguments[1],
|
|
13862
|
+
for (var E = arguments[0], C = arguments[1], P = arguments[2], m = C.iterator(); m.hasNext(); ) {
|
|
13850
13863
|
var _ = m.next();
|
|
13851
|
-
_.isForward() && t.findStabbedSegments(E, _,
|
|
13864
|
+
_.isForward() && t.findStabbedSegments(E, _, P);
|
|
13852
13865
|
}
|
|
13853
13866
|
}
|
|
13854
13867
|
};
|
|
@@ -14148,15 +14161,15 @@ cr.containsPoint = function(t, e) {
|
|
|
14148
14161
|
cr.locate = function(t, e) {
|
|
14149
14162
|
return e.isEmpty() ? L.EXTERIOR : cr.containsPoint(t, e) ? L.INTERIOR : L.EXTERIOR;
|
|
14150
14163
|
};
|
|
14151
|
-
var
|
|
14164
|
+
var Pe = function() {
|
|
14152
14165
|
this._edgeMap = new Ie(), this._edgeList = null, this._ptInAreaLocation = [L.NONE, L.NONE];
|
|
14153
14166
|
};
|
|
14154
|
-
|
|
14167
|
+
Pe.prototype.getNextCW = function(t) {
|
|
14155
14168
|
this.getEdges();
|
|
14156
14169
|
var e = this._edgeList.indexOf(t), r = e - 1;
|
|
14157
14170
|
return e === 0 && (r = this._edgeList.size() - 1), this._edgeList.get(r);
|
|
14158
14171
|
};
|
|
14159
|
-
|
|
14172
|
+
Pe.prototype.propagateSideLabels = function(t) {
|
|
14160
14173
|
for (var e = L.NONE, r = this.iterator(); r.hasNext(); ) {
|
|
14161
14174
|
var i = r.next(), s = i.getLabel();
|
|
14162
14175
|
s.isArea(t) && s.getLocation(t, V.LEFT) !== L.NONE && (e = s.getLocation(t, V.LEFT));
|
|
@@ -14170,38 +14183,38 @@ be.prototype.propagateSideLabels = function(t) {
|
|
|
14170
14183
|
if (h !== L.NONE) {
|
|
14171
14184
|
if (h !== o)
|
|
14172
14185
|
throw new pi("side location conflict", u.getCoordinate());
|
|
14173
|
-
c === L.NONE &&
|
|
14186
|
+
c === L.NONE && dt.shouldNeverReachHere("found single null side (at " + u.getCoordinate() + ")"), o = c;
|
|
14174
14187
|
} else
|
|
14175
|
-
|
|
14188
|
+
dt.isTrue(l.getLocation(t, V.LEFT) === L.NONE, "found single null side"), l.setLocation(t, V.RIGHT, o), l.setLocation(t, V.LEFT, o);
|
|
14176
14189
|
}
|
|
14177
14190
|
}
|
|
14178
14191
|
};
|
|
14179
|
-
|
|
14192
|
+
Pe.prototype.getCoordinate = function() {
|
|
14180
14193
|
var t = this.iterator();
|
|
14181
14194
|
if (!t.hasNext())
|
|
14182
14195
|
return null;
|
|
14183
14196
|
var e = t.next();
|
|
14184
14197
|
return e.getCoordinate();
|
|
14185
14198
|
};
|
|
14186
|
-
|
|
14199
|
+
Pe.prototype.print = function(t) {
|
|
14187
14200
|
_e.out.println("EdgeEndStar: " + this.getCoordinate());
|
|
14188
14201
|
for (var e = this.iterator(); e.hasNext(); ) {
|
|
14189
14202
|
var r = e.next();
|
|
14190
14203
|
r.print(t);
|
|
14191
14204
|
}
|
|
14192
14205
|
};
|
|
14193
|
-
|
|
14206
|
+
Pe.prototype.isAreaLabelsConsistent = function(t) {
|
|
14194
14207
|
return this.computeEdgeEndLabels(t.getBoundaryNodeRule()), this.checkAreaLabelsConsistent(0);
|
|
14195
14208
|
};
|
|
14196
|
-
|
|
14209
|
+
Pe.prototype.checkAreaLabelsConsistent = function(t) {
|
|
14197
14210
|
var e = this.getEdges();
|
|
14198
14211
|
if (e.size() <= 0)
|
|
14199
14212
|
return !0;
|
|
14200
14213
|
var r = e.size() - 1, i = e.get(r).getLabel(), s = i.getLocation(t, V.LEFT);
|
|
14201
|
-
|
|
14214
|
+
dt.isTrue(s !== L.NONE, "Found unlabelled area edge");
|
|
14202
14215
|
for (var o = s, a = this.iterator(); a.hasNext(); ) {
|
|
14203
14216
|
var u = a.next(), l = u.getLabel();
|
|
14204
|
-
|
|
14217
|
+
dt.isTrue(l.isArea(t), "Found non-area edge");
|
|
14205
14218
|
var c = l.getLocation(t, V.LEFT), h = l.getLocation(t, V.RIGHT);
|
|
14206
14219
|
if (c === h || h !== o)
|
|
14207
14220
|
return !1;
|
|
@@ -14209,7 +14222,7 @@ be.prototype.checkAreaLabelsConsistent = function(t) {
|
|
|
14209
14222
|
}
|
|
14210
14223
|
return !0;
|
|
14211
14224
|
};
|
|
14212
|
-
|
|
14225
|
+
Pe.prototype.findIndex = function(t) {
|
|
14213
14226
|
var e = this;
|
|
14214
14227
|
this.iterator();
|
|
14215
14228
|
for (var r = 0; r < this._edgeList.size(); r++) {
|
|
@@ -14219,16 +14232,16 @@ be.prototype.findIndex = function(t) {
|
|
|
14219
14232
|
}
|
|
14220
14233
|
return -1;
|
|
14221
14234
|
};
|
|
14222
|
-
|
|
14235
|
+
Pe.prototype.iterator = function() {
|
|
14223
14236
|
return this.getEdges().iterator();
|
|
14224
14237
|
};
|
|
14225
|
-
|
|
14238
|
+
Pe.prototype.getEdges = function() {
|
|
14226
14239
|
return this._edgeList === null && (this._edgeList = new B(this._edgeMap.values())), this._edgeList;
|
|
14227
14240
|
};
|
|
14228
|
-
|
|
14241
|
+
Pe.prototype.getLocation = function(t, e, r) {
|
|
14229
14242
|
return this._ptInAreaLocation[t] === L.NONE && (this._ptInAreaLocation[t] = cr.locate(e, r[t].getGeometry())), this._ptInAreaLocation[t];
|
|
14230
14243
|
};
|
|
14231
|
-
|
|
14244
|
+
Pe.prototype.toString = function() {
|
|
14232
14245
|
var t = new yn();
|
|
14233
14246
|
t.append("EdgeEndStar: " + this.getCoordinate()), t.append(`
|
|
14234
14247
|
`);
|
|
@@ -14239,13 +14252,13 @@ be.prototype.toString = function() {
|
|
|
14239
14252
|
}
|
|
14240
14253
|
return t.toString();
|
|
14241
14254
|
};
|
|
14242
|
-
|
|
14255
|
+
Pe.prototype.computeEdgeEndLabels = function(t) {
|
|
14243
14256
|
for (var e = this.iterator(); e.hasNext(); ) {
|
|
14244
14257
|
var r = e.next();
|
|
14245
14258
|
r.computeLabel(t);
|
|
14246
14259
|
}
|
|
14247
14260
|
};
|
|
14248
|
-
|
|
14261
|
+
Pe.prototype.computeLabelling = function(t) {
|
|
14249
14262
|
var e = this;
|
|
14250
14263
|
this.computeEdgeEndLabels(t[0].getBoundaryNodeRule()), this.propagateSideLabels(0), this.propagateSideLabels(1);
|
|
14251
14264
|
for (var r = [!1, !1], i = this.iterator(); i.hasNext(); )
|
|
@@ -14264,17 +14277,17 @@ be.prototype.computeLabelling = function(t) {
|
|
|
14264
14277
|
c.setAllLocationsIfNull(h, d);
|
|
14265
14278
|
}
|
|
14266
14279
|
};
|
|
14267
|
-
|
|
14280
|
+
Pe.prototype.getDegree = function() {
|
|
14268
14281
|
return this._edgeMap.size();
|
|
14269
14282
|
};
|
|
14270
|
-
|
|
14283
|
+
Pe.prototype.insertEdgeEnd = function(t, e) {
|
|
14271
14284
|
this._edgeMap.put(t, e), this._edgeList = null;
|
|
14272
14285
|
};
|
|
14273
|
-
|
|
14286
|
+
Pe.prototype.interfaces_ = function() {
|
|
14274
14287
|
return [];
|
|
14275
14288
|
};
|
|
14276
|
-
|
|
14277
|
-
return
|
|
14289
|
+
Pe.prototype.getClass = function() {
|
|
14290
|
+
return Pe;
|
|
14278
14291
|
};
|
|
14279
14292
|
var $v = function(n) {
|
|
14280
14293
|
function t() {
|
|
@@ -14302,7 +14315,7 @@ var $v = function(n) {
|
|
|
14302
14315
|
if (o === this._LINKING_TO_OUTGOING) {
|
|
14303
14316
|
if (i === null)
|
|
14304
14317
|
throw new pi("no outgoing dirEdge found", this.getCoordinate());
|
|
14305
|
-
|
|
14318
|
+
dt.isTrue(i.isInResult(), "unable to link last incoming dirEdge"), s.setNext(i);
|
|
14306
14319
|
}
|
|
14307
14320
|
}, t.prototype.insert = function(r) {
|
|
14308
14321
|
var i = r;
|
|
@@ -14315,7 +14328,7 @@ var $v = function(n) {
|
|
|
14315
14328
|
if (i === 1)
|
|
14316
14329
|
return s;
|
|
14317
14330
|
var o = r.get(i - 1), a = s.getQuadrant(), u = o.getQuadrant();
|
|
14318
|
-
return Rt.isNorthern(a) && Rt.isNorthern(u) ? s : !Rt.isNorthern(a) && !Rt.isNorthern(u) ? o : s.getDy() !== 0 ? s : o.getDy() !== 0 ? o : (
|
|
14331
|
+
return Rt.isNorthern(a) && Rt.isNorthern(u) ? s : !Rt.isNorthern(a) && !Rt.isNorthern(u) ? o : s.getDy() !== 0 ? s : o.getDy() !== 0 ? o : (dt.shouldNeverReachHere("found two horizontal edges incident on node"), null);
|
|
14319
14332
|
}, t.prototype.print = function(r) {
|
|
14320
14333
|
_e.out.println("DirectedEdgeStar: " + this.getCoordinate());
|
|
14321
14334
|
for (var i = this.iterator(); i.hasNext(); ) {
|
|
@@ -14379,7 +14392,7 @@ var $v = function(n) {
|
|
|
14379
14392
|
break;
|
|
14380
14393
|
}
|
|
14381
14394
|
}
|
|
14382
|
-
a === this._LINKING_TO_OUTGOING && (
|
|
14395
|
+
a === this._LINKING_TO_OUTGOING && (dt.isTrue(s !== null, "found null for first outgoing dirEdge"), dt.isTrue(s.getEdgeRing() === r, "unable to link last incoming dirEdge"), o.setNextMin(s));
|
|
14383
14396
|
}, t.prototype.getOutgoingDegree = function() {
|
|
14384
14397
|
if (arguments.length === 0) {
|
|
14385
14398
|
for (var r = 0, i = this.iterator(); i.hasNext(); ) {
|
|
@@ -14429,7 +14442,7 @@ var $v = function(n) {
|
|
|
14429
14442
|
}, t.prototype.getClass = function() {
|
|
14430
14443
|
return t;
|
|
14431
14444
|
}, t;
|
|
14432
|
-
}(
|
|
14445
|
+
}(Pe), Lp = function(n) {
|
|
14433
14446
|
function t() {
|
|
14434
14447
|
n.apply(this, arguments);
|
|
14435
14448
|
}
|
|
@@ -15126,9 +15139,9 @@ pn.prototype.checkInteriorIntersections = function() {
|
|
|
15126
15139
|
var d = arguments[0], p = arguments[1], v = arguments[2], E = arguments[3];
|
|
15127
15140
|
if (d === v && p === E)
|
|
15128
15141
|
return null;
|
|
15129
|
-
var C = d.getCoordinates()[p],
|
|
15130
|
-
if (this._li.computeIntersection(C,
|
|
15131
|
-
throw new fi("found non-noded intersection at " + C + "-" +
|
|
15142
|
+
var C = d.getCoordinates()[p], P = d.getCoordinates()[p + 1], m = v.getCoordinates()[E], _ = v.getCoordinates()[E + 1];
|
|
15143
|
+
if (this._li.computeIntersection(C, P, m, _), this._li.hasIntersection() && (this._li.isProper() || this.hasInteriorIntersection(this._li, C, P) || this.hasInteriorIntersection(this._li, m, _)))
|
|
15144
|
+
throw new fi("found non-noded intersection at " + C + "-" + P + " and " + m + "-" + _);
|
|
15132
15145
|
}
|
|
15133
15146
|
};
|
|
15134
15147
|
pn.prototype.checkValid = function() {
|
|
@@ -15179,7 +15192,7 @@ Xe.prototype.intersectsScaled = function(t, e) {
|
|
|
15179
15192
|
if (a)
|
|
15180
15193
|
return !1;
|
|
15181
15194
|
var u = this.intersectsToleranceSquare(t, e);
|
|
15182
|
-
return
|
|
15195
|
+
return dt.isTrue(!(a && u), "Found bad envelope test"), u;
|
|
15183
15196
|
};
|
|
15184
15197
|
Xe.prototype.initCorners = function(t) {
|
|
15185
15198
|
var e = 0.5;
|
|
@@ -15462,8 +15475,8 @@ ve.bufferOp = function() {
|
|
|
15462
15475
|
return v;
|
|
15463
15476
|
}
|
|
15464
15477
|
} else if (arguments.length === 4) {
|
|
15465
|
-
var E = arguments[0], C = arguments[1],
|
|
15466
|
-
_.setQuadrantSegments(
|
|
15478
|
+
var E = arguments[0], C = arguments[1], P = arguments[2], m = arguments[3], _ = new ve(E);
|
|
15479
|
+
_.setQuadrantSegments(P), _.setEndCapStyle(m);
|
|
15467
15480
|
var g = _.getResultGeometry(C);
|
|
15468
15481
|
return g;
|
|
15469
15482
|
}
|
|
@@ -15569,8 +15582,8 @@ Tn.computeDistance = function() {
|
|
|
15569
15582
|
Tn.computeDistance(d, p, v);
|
|
15570
15583
|
else if (d instanceof Re)
|
|
15571
15584
|
for (var E = d, C = 0; C < E.getNumGeometries(); C++) {
|
|
15572
|
-
var
|
|
15573
|
-
Tn.computeDistance(
|
|
15585
|
+
var P = E.getGeometryN(C);
|
|
15586
|
+
Tn.computeDistance(P, p, v);
|
|
15574
15587
|
}
|
|
15575
15588
|
else
|
|
15576
15589
|
v.setMinimum(d.getCoordinate(), p);
|
|
@@ -15729,8 +15742,8 @@ me.getLines = function() {
|
|
|
15729
15742
|
}
|
|
15730
15743
|
return d;
|
|
15731
15744
|
} else if (typeof arguments[2] == "boolean" && arguments[0] instanceof rt && it(arguments[1], ie)) {
|
|
15732
|
-
var C = arguments[0],
|
|
15733
|
-
return C.apply(new me(
|
|
15745
|
+
var C = arguments[0], P = arguments[1], m = arguments[2];
|
|
15746
|
+
return C.apply(new me(P, m)), P;
|
|
15734
15747
|
}
|
|
15735
15748
|
}
|
|
15736
15749
|
};
|
|
@@ -15914,9 +15927,9 @@ we.prototype.computeContainmentDistance = function() {
|
|
|
15914
15927
|
if (t.computeContainmentDistance(d, l.get(p), c), t._minDistance <= t._terminateDistance)
|
|
15915
15928
|
return null;
|
|
15916
15929
|
} else if (arguments[2] instanceof Array && arguments[0] instanceof Me && arguments[1] instanceof ue) {
|
|
15917
|
-
var v = arguments[0], E = arguments[1], C = arguments[2],
|
|
15918
|
-
if (L.EXTERIOR !== this._ptLocator.locate(
|
|
15919
|
-
return this._minDistance = 0, C[0] = v, C[1] = new Me(E,
|
|
15930
|
+
var v = arguments[0], E = arguments[1], C = arguments[2], P = v.getCoordinate();
|
|
15931
|
+
if (L.EXTERIOR !== this._ptLocator.locate(P, E))
|
|
15932
|
+
return this._minDistance = 0, C[0] = v, C[1] = new Me(E, P), null;
|
|
15920
15933
|
}
|
|
15921
15934
|
}
|
|
15922
15935
|
};
|
|
@@ -15973,12 +15986,12 @@ we.prototype.computeMinDistance = function() {
|
|
|
15973
15986
|
if (h.getEnvelopeInternal().distance(d.getEnvelopeInternal()) > this._minDistance)
|
|
15974
15987
|
return null;
|
|
15975
15988
|
for (var v = h.getCoordinates(), E = d.getCoordinates(), C = 0; C < v.length - 1; C++)
|
|
15976
|
-
for (var
|
|
15977
|
-
var m = j.distanceLineLine(v[C], v[C + 1], E[
|
|
15989
|
+
for (var P = 0; P < E.length - 1; P++) {
|
|
15990
|
+
var m = j.distanceLineLine(v[C], v[C + 1], E[P], E[P + 1]);
|
|
15978
15991
|
if (m < t._minDistance) {
|
|
15979
15992
|
t._minDistance = m;
|
|
15980
|
-
var _ = new K(v[C], v[C + 1]), g = new K(E[
|
|
15981
|
-
p[0] = new Me(h, C, y[0]), p[1] = new Me(d,
|
|
15993
|
+
var _ = new K(v[C], v[C + 1]), g = new K(E[P], E[P + 1]), y = _.closestPoints(g);
|
|
15994
|
+
p[0] = new Me(h, C, y[0]), p[1] = new Me(d, P, y[1]);
|
|
15982
15995
|
}
|
|
15983
15996
|
if (t._minDistance <= t._terminateDistance)
|
|
15984
15997
|
return null;
|
|
@@ -16109,8 +16122,8 @@ nn.computeDistance = function() {
|
|
|
16109
16122
|
nn.computeDistance(d, p, v);
|
|
16110
16123
|
else if (d instanceof Re)
|
|
16111
16124
|
for (var E = d, C = 0; C < E.getNumGeometries(); C++) {
|
|
16112
|
-
var
|
|
16113
|
-
nn.computeDistance(
|
|
16125
|
+
var P = E.getGeometryN(C);
|
|
16126
|
+
nn.computeDistance(P, p, v);
|
|
16114
16127
|
}
|
|
16115
16128
|
else
|
|
16116
16129
|
v.setMinimum(d.getCoordinate(), p);
|
|
@@ -16119,47 +16132,47 @@ nn.computeDistance = function() {
|
|
|
16119
16132
|
g.setMinimum(y, _);
|
|
16120
16133
|
}
|
|
16121
16134
|
};
|
|
16122
|
-
var
|
|
16135
|
+
var Pr = function() {
|
|
16123
16136
|
this._g0 = null, this._g1 = null, this._ptDist = new Ce(), this._densifyFrac = 0;
|
|
16124
16137
|
var t = arguments[0], e = arguments[1];
|
|
16125
16138
|
this._g0 = t, this._g1 = e;
|
|
16126
16139
|
}, qc = { MaxPointDistanceFilter: { configurable: !0 }, MaxDensifiedByFractionDistanceFilter: { configurable: !0 } };
|
|
16127
|
-
|
|
16140
|
+
Pr.prototype.getCoordinates = function() {
|
|
16128
16141
|
return this._ptDist.getCoordinates();
|
|
16129
16142
|
};
|
|
16130
|
-
|
|
16143
|
+
Pr.prototype.setDensifyFraction = function(t) {
|
|
16131
16144
|
if (t > 1 || t <= 0)
|
|
16132
16145
|
throw new Ut("Fraction is not in range (0.0 - 1.0]");
|
|
16133
16146
|
this._densifyFrac = t;
|
|
16134
16147
|
};
|
|
16135
|
-
|
|
16148
|
+
Pr.prototype.compute = function(t, e) {
|
|
16136
16149
|
this.computeOrientedDistance(t, e, this._ptDist), this.computeOrientedDistance(e, t, this._ptDist);
|
|
16137
16150
|
};
|
|
16138
|
-
|
|
16151
|
+
Pr.prototype.distance = function() {
|
|
16139
16152
|
return this.compute(this._g0, this._g1), this._ptDist.getDistance();
|
|
16140
16153
|
};
|
|
16141
|
-
|
|
16154
|
+
Pr.prototype.computeOrientedDistance = function(t, e, r) {
|
|
16142
16155
|
var i = new eo(e);
|
|
16143
16156
|
if (t.apply(i), r.setMaximum(i.getMaxPointDistance()), this._densifyFrac > 0) {
|
|
16144
16157
|
var s = new ji(e, this._densifyFrac);
|
|
16145
16158
|
t.apply(s), r.setMaximum(s.getMaxPointDistance());
|
|
16146
16159
|
}
|
|
16147
16160
|
};
|
|
16148
|
-
|
|
16161
|
+
Pr.prototype.orientedDistance = function() {
|
|
16149
16162
|
return this.computeOrientedDistance(this._g0, this._g1, this._ptDist), this._ptDist.getDistance();
|
|
16150
16163
|
};
|
|
16151
|
-
|
|
16164
|
+
Pr.prototype.interfaces_ = function() {
|
|
16152
16165
|
return [];
|
|
16153
16166
|
};
|
|
16154
|
-
|
|
16155
|
-
return
|
|
16167
|
+
Pr.prototype.getClass = function() {
|
|
16168
|
+
return Pr;
|
|
16156
16169
|
};
|
|
16157
|
-
|
|
16170
|
+
Pr.distance = function() {
|
|
16158
16171
|
if (arguments.length === 2) {
|
|
16159
|
-
var t = arguments[0], e = arguments[1], r = new
|
|
16172
|
+
var t = arguments[0], e = arguments[1], r = new Pr(t, e);
|
|
16160
16173
|
return r.distance();
|
|
16161
16174
|
} else if (arguments.length === 3) {
|
|
16162
|
-
var i = arguments[0], s = arguments[1], o = arguments[2], a = new
|
|
16175
|
+
var i = arguments[0], s = arguments[1], o = arguments[2], a = new Pr(i, s);
|
|
16163
16176
|
return a.setDensifyFraction(o), a.distance();
|
|
16164
16177
|
}
|
|
16165
16178
|
};
|
|
@@ -16169,7 +16182,7 @@ qc.MaxPointDistanceFilter.get = function() {
|
|
|
16169
16182
|
qc.MaxDensifiedByFractionDistanceFilter.get = function() {
|
|
16170
16183
|
return ji;
|
|
16171
16184
|
};
|
|
16172
|
-
Object.defineProperties(
|
|
16185
|
+
Object.defineProperties(Pr, qc);
|
|
16173
16186
|
var eo = function() {
|
|
16174
16187
|
this._maxPtDist = new Ce(), this._minPtDist = new Ce(), this._euclideanDist = new nn(), this._geom = null;
|
|
16175
16188
|
var t = arguments[0];
|
|
@@ -16220,7 +16233,7 @@ var tr = function(t, e, r) {
|
|
|
16220
16233
|
this._minValidDistance = null, this._maxValidDistance = null, this._minDistanceFound = null, this._maxDistanceFound = null, this._isValid = !0, this._errMsg = null, this._errorLocation = null, this._errorIndicator = null, this._input = t || null, this._bufDistance = e || null, this._result = r || null;
|
|
16221
16234
|
}, Wc = { VERBOSE: { configurable: !0 }, MAX_DISTANCE_DIFF_FRAC: { configurable: !0 } };
|
|
16222
16235
|
tr.prototype.checkMaximumDistance = function(t, e, r) {
|
|
16223
|
-
var i = new
|
|
16236
|
+
var i = new Pr(e, t);
|
|
16224
16237
|
if (i.setDensifyFraction(0.25), this._maxDistanceFound = i.orientedDistance(), this._maxDistanceFound > r) {
|
|
16225
16238
|
this._isValid = !1;
|
|
16226
16239
|
var s = i.getCoordinates();
|
|
@@ -16588,7 +16601,7 @@ mn.prototype.collectBoundaryTouchEdge = function(t, e, r) {
|
|
|
16588
16601
|
var i = t.getLabel();
|
|
16589
16602
|
if (t.isLineEdge() || t.isVisited() || t.isInteriorAreaEdge() || t.getEdge().isInResult())
|
|
16590
16603
|
return null;
|
|
16591
|
-
|
|
16604
|
+
dt.isTrue(!(t.isInResult() || t.getSym().isInResult()) || !t.getEdge().isInResult()), ct.isResultOfOp(i, e) && e === ct.INTERSECTION && (r.add(t.getEdge()), t.setVisitedEdge(!0));
|
|
16592
16605
|
};
|
|
16593
16606
|
mn.prototype.interfaces_ = function() {
|
|
16594
16607
|
return [];
|
|
@@ -17479,7 +17492,7 @@ ms.prototype.getClass = function() {
|
|
|
17479
17492
|
};
|
|
17480
17493
|
var Aa = function(n) {
|
|
17481
17494
|
function t() {
|
|
17482
|
-
if (n.call(this), this._parentGeom = null, this._lineEdgeMap = new
|
|
17495
|
+
if (n.call(this), this._parentGeom = null, this._lineEdgeMap = new bp(), this._boundaryNodeRule = null, this._useBoundaryDeterminationRule = !0, this._argIndex = null, this._boundaryNodes = null, this._hasTooFewPoints = !1, this._invalidPoint = null, this._areaPtLocator = null, this._ptLocator = new Ur(), arguments.length === 2) {
|
|
17483
17496
|
var e = arguments[0], r = arguments[1], i = Nr.OGC_SFS_BOUNDARY_RULE;
|
|
17484
17497
|
this._argIndex = e, this._parentGeom = r, this._boundaryNodeRule = i, r !== null && this.add(r);
|
|
17485
17498
|
} else if (arguments.length === 3) {
|
|
@@ -17542,7 +17555,7 @@ var Aa = function(n) {
|
|
|
17542
17555
|
if (i.length < 2)
|
|
17543
17556
|
return this._hasTooFewPoints = !0, this._invalidPoint = i[0], null;
|
|
17544
17557
|
var s = new Ju(i, new Lt(this._argIndex, L.INTERIOR));
|
|
17545
|
-
this._lineEdgeMap.put(r, s), this.insertEdge(s),
|
|
17558
|
+
this._lineEdgeMap.put(r, s), this.insertEdge(s), dt.isTrue(i.length >= 2, "found LineString with single point"), this.insertBoundaryPoint(this._argIndex, i[0]), this.insertBoundaryPoint(this._argIndex, i[i.length - 1]);
|
|
17546
17559
|
}, t.prototype.getInvalidPoint = function() {
|
|
17547
17560
|
return this._invalidPoint;
|
|
17548
17561
|
}, t.prototype.getBoundaryPoints = function() {
|
|
@@ -17755,7 +17768,7 @@ var ct = function(n) {
|
|
|
17755
17768
|
if (!o.isNull()) {
|
|
17756
17769
|
o.normalize();
|
|
17757
17770
|
for (var a = 0; a < 2; a++)
|
|
17758
|
-
!s.isNull(a) && s.isArea() && !o.isNull(a) && (o.getDelta(a) === 0 ? s.toLine(a) : (
|
|
17771
|
+
!s.isNull(a) && s.isArea() && !o.isNull(a) && (o.getDelta(a) === 0 ? s.toLine(a) : (dt.isTrue(!o.isNull(a, V.LEFT), "depth of LEFT side has not been initialized"), s.setLocation(a, V.LEFT, o.getLocation(a, V.LEFT)), dt.isTrue(!o.isNull(a, V.RIGHT), "depth of RIGHT side has not been initialized"), s.setLocation(a, V.RIGHT, o.getLocation(a, V.RIGHT))));
|
|
17759
17772
|
}
|
|
17760
17773
|
}
|
|
17761
17774
|
}, t.prototype.computeLabelling = function() {
|
|
@@ -18433,13 +18446,13 @@ function Hp(n, t, e, r, i) {
|
|
|
18433
18446
|
var s = [], o = [], a, u;
|
|
18434
18447
|
if (n.forEach(function(v) {
|
|
18435
18448
|
if (!((E = v.length - 1) <= 0)) {
|
|
18436
|
-
var E, C = v[0],
|
|
18437
|
-
if (ju(C,
|
|
18449
|
+
var E, C = v[0], P = v[E], m;
|
|
18450
|
+
if (ju(C, P)) {
|
|
18438
18451
|
for (i.lineStart(), a = 0; a < E; ++a) i.point((C = v[a])[0], C[1]);
|
|
18439
18452
|
i.lineEnd();
|
|
18440
18453
|
return;
|
|
18441
18454
|
}
|
|
18442
|
-
s.push(m = new Du(C, v, null, !0)), o.push(m.o = new Du(C, null, m, !1)), s.push(m = new Du(
|
|
18455
|
+
s.push(m = new Du(C, v, null, !0)), o.push(m.o = new Du(C, null, m, !1)), s.push(m = new Du(P, v, null, !1)), o.push(m.o = new Du(P, null, m, !0));
|
|
18443
18456
|
}
|
|
18444
18457
|
}), !!s.length) {
|
|
18445
18458
|
for (o.sort(t), Wh(s), Wh(o), a = 0, u = o.length; a < u; ++a)
|
|
@@ -18533,26 +18546,26 @@ function cy(n, t, e, r) {
|
|
|
18533
18546
|
return h !== d ? h - d : h === 0 ? c[1] - l[1] : h === 1 ? l[0] - c[0] : h === 2 ? l[1] - c[1] : c[0] - l[0];
|
|
18534
18547
|
}
|
|
18535
18548
|
return function(l) {
|
|
18536
|
-
var c = l, h = Yp(), d, p, v, E, C,
|
|
18549
|
+
var c = l, h = Yp(), d, p, v, E, C, P, m, _, g, y, w, S = {
|
|
18537
18550
|
point: I,
|
|
18538
18551
|
lineStart: N,
|
|
18539
18552
|
lineEnd: D,
|
|
18540
18553
|
polygonStart: O,
|
|
18541
|
-
polygonEnd:
|
|
18554
|
+
polygonEnd: b
|
|
18542
18555
|
};
|
|
18543
18556
|
function I(W, z) {
|
|
18544
18557
|
i(W, z) && c.point(W, z);
|
|
18545
18558
|
}
|
|
18546
18559
|
function x() {
|
|
18547
18560
|
for (var W = 0, z = 0, Z = p.length; z < Z; ++z)
|
|
18548
|
-
for (var at = p[z],
|
|
18549
|
-
H = Dt, yt = Ct, X = at[
|
|
18561
|
+
for (var at = p[z], pt = 1, G = at.length, X = at[0], H, yt, Dt = X[0], Ct = X[1]; pt < G; ++pt)
|
|
18562
|
+
H = Dt, yt = Ct, X = at[pt], Dt = X[0], Ct = X[1], yt <= r ? Ct > r && (Dt - H) * (r - yt) > (Ct - yt) * (n - H) && ++W : Ct <= r && (Dt - H) * (r - yt) < (Ct - yt) * (n - H) && --W;
|
|
18550
18563
|
return W;
|
|
18551
18564
|
}
|
|
18552
18565
|
function O() {
|
|
18553
18566
|
c = h, d = [], p = [], w = !0;
|
|
18554
18567
|
}
|
|
18555
|
-
function
|
|
18568
|
+
function b() {
|
|
18556
18569
|
var W = x(), z = w && W, Z = (d = Zp(d)).length;
|
|
18557
18570
|
(z || Z) && (l.polygonStart(), z && (l.lineStart(), s(null, null, 1, l), l.lineEnd()), Z && Hp(d, a, W, s, l), l.polygonEnd()), c = l, d = p = v = null;
|
|
18558
18571
|
}
|
|
@@ -18560,16 +18573,16 @@ function cy(n, t, e, r) {
|
|
|
18560
18573
|
S.point = R, p && p.push(v = []), y = !0, g = !1, m = _ = NaN;
|
|
18561
18574
|
}
|
|
18562
18575
|
function D() {
|
|
18563
|
-
d && (R(E, C),
|
|
18576
|
+
d && (R(E, C), P && g && h.rejoin(), d.push(h.result())), S.point = I, g && c.lineEnd();
|
|
18564
18577
|
}
|
|
18565
18578
|
function R(W, z) {
|
|
18566
18579
|
var Z = i(W, z);
|
|
18567
18580
|
if (p && v.push([W, z]), y)
|
|
18568
|
-
E = W, C = z,
|
|
18581
|
+
E = W, C = z, P = Z, y = !1, Z && (c.lineStart(), c.point(W, z));
|
|
18569
18582
|
else if (Z && g) c.point(W, z);
|
|
18570
18583
|
else {
|
|
18571
|
-
var at = [m = Math.max(Ru, Math.min(Lu, m)), _ = Math.max(Ru, Math.min(Lu, _))],
|
|
18572
|
-
ay(at,
|
|
18584
|
+
var at = [m = Math.max(Ru, Math.min(Lu, m)), _ = Math.max(Ru, Math.min(Lu, _))], pt = [W = Math.max(Ru, Math.min(Lu, W)), z = Math.max(Ru, Math.min(Lu, z))];
|
|
18585
|
+
ay(at, pt, n, t, e, r) ? (g || (c.lineStart(), c.point(at[0], at[1])), c.point(pt[0], pt[1]), Z || c.lineEnd(), w = !1) : Z && (c.lineStart(), c.point(W, z), w = !1);
|
|
18573
18586
|
}
|
|
18574
18587
|
m = W, _ = z, g = Z;
|
|
18575
18588
|
}
|
|
@@ -18582,15 +18595,15 @@ function hy(n, t) {
|
|
|
18582
18595
|
Xl.reset();
|
|
18583
18596
|
for (var a = 0, u = n.length; a < u; ++a)
|
|
18584
18597
|
if (c = (l = n[a]).length)
|
|
18585
|
-
for (var l, c, h = l[c - 1], d = h[0], p = h[1] / 2 + kh, v = oe(p), E = se(p), C = 0; C < c; ++C, d = m, v = g, E = y, h =
|
|
18586
|
-
var
|
|
18598
|
+
for (var l, c, h = l[c - 1], d = h[0], p = h[1] / 2 + kh, v = oe(p), E = se(p), C = 0; C < c; ++C, d = m, v = g, E = y, h = P) {
|
|
18599
|
+
var P = l[C], m = P[0], _ = P[1] / 2 + kh, g = oe(_), y = se(_), w = m - d, S = w >= 0 ? 1 : -1, I = S * w, x = I > At, O = v * g;
|
|
18587
18600
|
if (Xl.add(wa(O * S * oe(I), E * y + O * se(I))), s += x ? w + S * vi : w, x ^ d >= e ^ m >= e) {
|
|
18588
|
-
var
|
|
18589
|
-
nc(
|
|
18590
|
-
var N = tl(i,
|
|
18601
|
+
var b = tl(Ea(h), Ea(P));
|
|
18602
|
+
nc(b);
|
|
18603
|
+
var N = tl(i, b);
|
|
18591
18604
|
nc(N);
|
|
18592
18605
|
var D = (x ^ w >= 0 ? -1 : 1) * so(N[2]);
|
|
18593
|
-
(r > D || r === D && (
|
|
18606
|
+
(r > D || r === D && (b[0] || b[1])) && (o += x ^ w >= 0 ? 1 : -1);
|
|
18594
18607
|
}
|
|
18595
18608
|
}
|
|
18596
18609
|
return (s < -1e-6 || s < $t && Xl < -1e-6) ^ o & 1;
|
|
@@ -18620,13 +18633,13 @@ function Kp(n, t, e, r) {
|
|
|
18620
18633
|
return function(i, s) {
|
|
18621
18634
|
var o = t(s), a = i.invert(r[0], r[1]), u = Yp(), l = t(u), c = !1, h, d, p, v = {
|
|
18622
18635
|
point: E,
|
|
18623
|
-
lineStart:
|
|
18636
|
+
lineStart: P,
|
|
18624
18637
|
lineEnd: m,
|
|
18625
18638
|
polygonStart: function() {
|
|
18626
18639
|
v.point = _, v.lineStart = g, v.lineEnd = y, d = [], h = [];
|
|
18627
18640
|
},
|
|
18628
18641
|
polygonEnd: function() {
|
|
18629
|
-
v.point = E, v.lineStart =
|
|
18642
|
+
v.point = E, v.lineStart = P, v.lineEnd = m, d = Zp(d);
|
|
18630
18643
|
var w = hy(h, a);
|
|
18631
18644
|
d.length ? (c || (s.polygonStart(), c = !0), Hp(d, py, w, e, s)) : w && (c || (s.polygonStart(), c = !0), s.lineStart(), e(null, null, 1, s), s.lineEnd()), c && (s.polygonEnd(), c = !1), d = h = null;
|
|
18632
18645
|
},
|
|
@@ -18642,7 +18655,7 @@ function Kp(n, t, e, r) {
|
|
|
18642
18655
|
var I = i(w, S);
|
|
18643
18656
|
o.point(I[0], I[1]);
|
|
18644
18657
|
}
|
|
18645
|
-
function
|
|
18658
|
+
function P() {
|
|
18646
18659
|
v.point = C, o.lineStart();
|
|
18647
18660
|
}
|
|
18648
18661
|
function m() {
|
|
@@ -18658,11 +18671,11 @@ function Kp(n, t, e, r) {
|
|
|
18658
18671
|
}
|
|
18659
18672
|
function y() {
|
|
18660
18673
|
_(p[0][0], p[0][1]), l.lineEnd();
|
|
18661
|
-
var w = l.clean(), S = u.result(), I, x = S.length, O,
|
|
18674
|
+
var w = l.clean(), S = u.result(), I, x = S.length, O, b, N;
|
|
18662
18675
|
if (p.pop(), h.push(p), p = null, !!x) {
|
|
18663
18676
|
if (w & 1) {
|
|
18664
|
-
if (
|
|
18665
|
-
for (c || (s.polygonStart(), c = !0), s.lineStart(), I = 0; I < O; ++I) s.point((N =
|
|
18677
|
+
if (b = S[0], (O = b.length - 1) > 0) {
|
|
18678
|
+
for (c || (s.polygonStart(), c = !0), s.lineStart(), I = 0; I < O; ++I) s.point((N = b[I])[0], N[1]);
|
|
18666
18679
|
s.lineEnd();
|
|
18667
18680
|
}
|
|
18668
18681
|
return;
|
|
@@ -18733,8 +18746,8 @@ function yy(n, t) {
|
|
|
18733
18746
|
lineStart: function() {
|
|
18734
18747
|
v = p = !1, E = 1;
|
|
18735
18748
|
},
|
|
18736
|
-
point: function(C,
|
|
18737
|
-
var m = [C,
|
|
18749
|
+
point: function(C, P) {
|
|
18750
|
+
var m = [C, P], _, g = o(C, P), y = r ? g ? 0 : l(C, P) : g ? l(C + (C < 0 ? At : -At), P) : 0;
|
|
18738
18751
|
if (!h && (v = p = g) && c.lineStart(), g !== p && (_ = u(h, m), (!_ || ju(h, _) || ju(m, _)) && (m[0] += $t, m[1] += $t, g = o(m[0], m[1]))), g !== p)
|
|
18739
18752
|
E = 0, g ? (c.lineStart(), _ = u(m, h), c.point(_[0], _[1])) : (_ = u(h, m), c.point(_[0], _[1]), c.lineEnd()), h = _;
|
|
18740
18753
|
else if (i && h && r ^ g) {
|
|
@@ -18754,19 +18767,19 @@ function yy(n, t) {
|
|
|
18754
18767
|
};
|
|
18755
18768
|
}
|
|
18756
18769
|
function u(c, h, d) {
|
|
18757
|
-
var p = Ea(c), v = Ea(h), E = [1, 0, 0], C = tl(p, v),
|
|
18770
|
+
var p = Ea(c), v = Ea(h), E = [1, 0, 0], C = tl(p, v), P = Ou(C, C), m = C[0], _ = P - m * m;
|
|
18758
18771
|
if (!_) return !d && c;
|
|
18759
|
-
var g = e *
|
|
18772
|
+
var g = e * P / _, y = -e * m / _, w = tl(E, C), S = Mu(E, g), I = Mu(C, y);
|
|
18760
18773
|
Wl(S, I);
|
|
18761
|
-
var x = w, O = Ou(S, x),
|
|
18774
|
+
var x = w, O = Ou(S, x), b = Ou(x, x), N = O * O - b * (Ou(S, S) - 1);
|
|
18762
18775
|
if (!(N < 0)) {
|
|
18763
|
-
var D = Oa(N), R = Mu(x, (-O - D) /
|
|
18776
|
+
var D = Oa(N), R = Mu(x, (-O - D) / b);
|
|
18764
18777
|
if (Wl(R, S), R = rc(R), !d) return R;
|
|
18765
|
-
var W = c[0], z = h[0], Z = c[1], at = h[1],
|
|
18766
|
-
z < W && (
|
|
18778
|
+
var W = c[0], z = h[0], Z = c[1], at = h[1], pt;
|
|
18779
|
+
z < W && (pt = W, W = z, z = pt);
|
|
18767
18780
|
var G = z - W, X = De(G - At) < $t, H = X || G < $t;
|
|
18768
|
-
if (!X && at < Z && (
|
|
18769
|
-
var yt = Mu(x, (-O + D) /
|
|
18781
|
+
if (!X && at < Z && (pt = Z, Z = at, at = pt), H ? X ? Z + at > 0 ^ R[1] < (De(R[0] - W) < $t ? Z : at) : Z <= R[1] && R[1] <= at : G > At ^ (W <= R[0] && R[0] <= z)) {
|
|
18782
|
+
var yt = Mu(x, (-O + D) / b);
|
|
18770
18783
|
return Wl(yt, S), [R, rc(yt)];
|
|
18771
18784
|
}
|
|
18772
18785
|
}
|
|
@@ -18829,15 +18842,15 @@ function Ey(n) {
|
|
|
18829
18842
|
}
|
|
18830
18843
|
function Sy(n, t) {
|
|
18831
18844
|
function e(r, i, s, o, a, u, l, c, h, d, p, v, E, C) {
|
|
18832
|
-
var
|
|
18845
|
+
var P = l - r, m = c - i, _ = P * P + m * m;
|
|
18833
18846
|
if (_ > 4 * t && E--) {
|
|
18834
|
-
var g = o + d, y = a + p, w = u + v, S = Oa(g * g + y * y + w * w), I = so(w /= S), x = De(De(w) - 1) < $t || De(s - h) < $t ? (s + h) / 2 : wa(y, g), O = n(x, I),
|
|
18835
|
-
(W * W / _ > t || De((
|
|
18847
|
+
var g = o + d, y = a + p, w = u + v, S = Oa(g * g + y * y + w * w), I = so(w /= S), x = De(De(w) - 1) < $t || De(s - h) < $t ? (s + h) / 2 : wa(y, g), O = n(x, I), b = O[0], N = O[1], D = b - r, R = N - i, W = m * D - P * R;
|
|
18848
|
+
(W * W / _ > t || De((P * D + m * R) / _ - 0.5) > 0.3 || o * d + a * p + u * v < wy) && (e(r, i, s, o, a, u, b, N, x, g /= S, y /= S, w, E, C), C.point(b, N), e(b, N, x, g, y, w, l, c, h, d, p, v, E, C));
|
|
18836
18849
|
}
|
|
18837
18850
|
}
|
|
18838
18851
|
return function(r) {
|
|
18839
18852
|
var i, s, o, a, u, l, c, h, d, p, v, E, C = {
|
|
18840
|
-
point:
|
|
18853
|
+
point: P,
|
|
18841
18854
|
lineStart: m,
|
|
18842
18855
|
lineEnd: g,
|
|
18843
18856
|
polygonStart: function() {
|
|
@@ -18847,18 +18860,18 @@ function Sy(n, t) {
|
|
|
18847
18860
|
r.polygonEnd(), C.lineStart = m;
|
|
18848
18861
|
}
|
|
18849
18862
|
};
|
|
18850
|
-
function
|
|
18863
|
+
function P(I, x) {
|
|
18851
18864
|
I = n(I, x), r.point(I[0], I[1]);
|
|
18852
18865
|
}
|
|
18853
18866
|
function m() {
|
|
18854
18867
|
h = NaN, C.point = _, r.lineStart();
|
|
18855
18868
|
}
|
|
18856
18869
|
function _(I, x) {
|
|
18857
|
-
var O = Ea([I, x]),
|
|
18858
|
-
e(h, d, c, p, v, E, h =
|
|
18870
|
+
var O = Ea([I, x]), b = n(I, x);
|
|
18871
|
+
e(h, d, c, p, v, E, h = b[0], d = b[1], c = I, p = O[0], v = O[1], E = O[2], Jh, r), r.point(h, d);
|
|
18859
18872
|
}
|
|
18860
18873
|
function g() {
|
|
18861
|
-
C.point =
|
|
18874
|
+
C.point = P, r.lineEnd();
|
|
18862
18875
|
}
|
|
18863
18876
|
function y() {
|
|
18864
18877
|
m(), C.point = w, C.lineEnd = S;
|
|
@@ -18878,19 +18891,19 @@ var Cy = Qp({
|
|
|
18878
18891
|
}
|
|
18879
18892
|
});
|
|
18880
18893
|
function Iy(n) {
|
|
18881
|
-
return
|
|
18894
|
+
return by(function() {
|
|
18882
18895
|
return n;
|
|
18883
18896
|
})();
|
|
18884
18897
|
}
|
|
18885
|
-
function
|
|
18886
|
-
var t, e = 150, r = 480, i = 250, s, o, a = 0, u = 0, l = 0, c = 0, h = 0, d, p, v = null, E = Hh, C = null,
|
|
18898
|
+
function by(n) {
|
|
18899
|
+
var t, e = 150, r = 480, i = 250, s, o, a = 0, u = 0, l = 0, c = 0, h = 0, d, p, v = null, E = Hh, C = null, P, m, _, g = Xh, y = 0.5, w = Zh(b, y), S, I;
|
|
18887
18900
|
function x(R) {
|
|
18888
18901
|
return R = p(R[0] * tn, R[1] * tn), [R[0] * e + s, o - R[1] * e];
|
|
18889
18902
|
}
|
|
18890
18903
|
function O(R) {
|
|
18891
18904
|
return R = p.invert((R[0] - s) / e, (o - R[1]) / e), R && [R[0] * Zi, R[1] * Zi];
|
|
18892
18905
|
}
|
|
18893
|
-
function
|
|
18906
|
+
function b(R, W) {
|
|
18894
18907
|
return R = t(R, W), [R[0] * e + s, o - R[1] * e];
|
|
18895
18908
|
}
|
|
18896
18909
|
x.stream = function(R) {
|
|
@@ -18898,7 +18911,7 @@ function Py(n) {
|
|
|
18898
18911
|
}, x.clipAngle = function(R) {
|
|
18899
18912
|
return arguments.length ? (E = +R ? yy(v = R * tn, 6 * tn) : (v = null, Hh), D()) : v * Zi;
|
|
18900
18913
|
}, x.clipExtent = function(R) {
|
|
18901
|
-
return arguments.length ? (g = R == null ? (C =
|
|
18914
|
+
return arguments.length ? (g = R == null ? (C = P = m = _ = null, Xh) : cy(C = +R[0][0], P = +R[0][1], m = +R[1][0], _ = +R[1][1]), D()) : C == null ? null : [[C, P], [m, _]];
|
|
18902
18915
|
}, x.scale = function(R) {
|
|
18903
18916
|
return arguments.length ? (e = +R, N()) : e;
|
|
18904
18917
|
}, x.translate = function(R) {
|
|
@@ -18908,7 +18921,7 @@ function Py(n) {
|
|
|
18908
18921
|
}, x.rotate = function(R) {
|
|
18909
18922
|
return arguments.length ? (l = R[0] % 360 * tn, c = R[1] % 360 * tn, h = R.length > 2 ? R[2] % 360 * tn : 0, N()) : [l * Zi, c * Zi, h * Zi];
|
|
18910
18923
|
}, x.precision = function(R) {
|
|
18911
|
-
return arguments.length ? (w = Zh(
|
|
18924
|
+
return arguments.length ? (w = Zh(b, y = R * R), D()) : Oa(y);
|
|
18912
18925
|
}, x.fitExtent = function(R, W) {
|
|
18913
18926
|
return $p(x, R, W);
|
|
18914
18927
|
}, x.fitSize = function(R, W) {
|
|
@@ -18944,10 +18957,10 @@ function eg(n) {
|
|
|
18944
18957
|
];
|
|
18945
18958
|
};
|
|
18946
18959
|
}
|
|
18947
|
-
var
|
|
18960
|
+
var Py = tg(function(n) {
|
|
18948
18961
|
return Oa(2 / (1 + n));
|
|
18949
18962
|
});
|
|
18950
|
-
|
|
18963
|
+
Py.invert = eg(function(n) {
|
|
18951
18964
|
return 2 * so(n / 2);
|
|
18952
18965
|
});
|
|
18953
18966
|
var rg = tg(function(n) {
|
|
@@ -19443,21 +19456,21 @@ function Vy(n, t) {
|
|
|
19443
19456
|
for (let r = 1; r < n; r++) e += t[r];
|
|
19444
19457
|
return e;
|
|
19445
19458
|
}
|
|
19446
|
-
function
|
|
19459
|
+
function bu(n) {
|
|
19447
19460
|
return new Float64Array(n);
|
|
19448
19461
|
}
|
|
19449
|
-
const By = (3 + 16 * Di) * Di, zy = (2 + 12 * Di) * Di, jy = (9 + 64 * Di) * Di * Di, mo =
|
|
19462
|
+
const By = (3 + 16 * Di) * Di, zy = (2 + 12 * Di) * Di, jy = (9 + 64 * Di) * Di * Di, mo = bu(4), $h = bu(8), tf = bu(12), ef = bu(16), sr = bu(4);
|
|
19450
19463
|
function Uy(n, t, e, r, i, s, o) {
|
|
19451
|
-
let a, u, l, c, h, d, p, v, E, C,
|
|
19452
|
-
const x = n - i, O = e - i,
|
|
19453
|
-
g = x * N, d = He * x, p = d - (d - x), v = x - p, d = He * N, E = d - (d - N), C = N - E, y = v * C - (g - p * E - v * E - p * C), w =
|
|
19464
|
+
let a, u, l, c, h, d, p, v, E, C, P, m, _, g, y, w, S, I;
|
|
19465
|
+
const x = n - i, O = e - i, b = t - s, N = r - s;
|
|
19466
|
+
g = x * N, d = He * x, p = d - (d - x), v = x - p, d = He * N, E = d - (d - N), C = N - E, y = v * C - (g - p * E - v * E - p * C), w = b * O, d = He * b, p = d - (d - b), v = b - p, d = He * O, E = d - (d - O), C = O - E, S = v * C - (w - p * E - v * E - p * C), P = y - S, h = y - P, mo[0] = y - (P + h) + (h - S), m = g + P, h = m - g, _ = g - (m - h) + (P - h), P = _ - w, h = _ - P, mo[1] = _ - (P + h) + (h - w), I = m + P, h = I - m, mo[2] = m - (I - h) + (P - h), mo[3] = I;
|
|
19454
19467
|
let D = Vy(4, mo), R = zy * o;
|
|
19455
|
-
if (D >= R || -D >= R || (h = n - x, a = n - (x + h) + (h - i), h = e - O, l = e - (O + h) + (h - i), h = t -
|
|
19456
|
-
g = a * N, d = He * a, p = d - (d - a), v = a - p, d = He * N, E = d - (d - N), C = N - E, y = v * C - (g - p * E - v * E - p * C), w = u * O, d = He * u, p = d - (d - u), v = u - p, d = He * O, E = d - (d - O), C = O - E, S = v * C - (w - p * E - v * E - p * C),
|
|
19468
|
+
if (D >= R || -D >= R || (h = n - x, a = n - (x + h) + (h - i), h = e - O, l = e - (O + h) + (h - i), h = t - b, u = t - (b + h) + (h - s), h = r - N, c = r - (N + h) + (h - s), a === 0 && u === 0 && l === 0 && c === 0) || (R = jy * o + ky * Math.abs(D), D += x * c + N * a - (b * l + O * u), D >= R || -D >= R)) return D;
|
|
19469
|
+
g = a * N, d = He * a, p = d - (d - a), v = a - p, d = He * N, E = d - (d - N), C = N - E, y = v * C - (g - p * E - v * E - p * C), w = u * O, d = He * u, p = d - (d - u), v = u - p, d = He * O, E = d - (d - O), C = O - E, S = v * C - (w - p * E - v * E - p * C), P = y - S, h = y - P, sr[0] = y - (P + h) + (h - S), m = g + P, h = m - g, _ = g - (m - h) + (P - h), P = _ - w, h = _ - P, sr[1] = _ - (P + h) + (h - w), I = m + P, h = I - m, sr[2] = m - (I - h) + (P - h), sr[3] = I;
|
|
19457
19470
|
const W = Hl(4, mo, 4, sr, $h);
|
|
19458
|
-
g = x * c, d = He * x, p = d - (d - x), v = x - p, d = He * c, E = d - (d - c), C = c - E, y = v * C - (g - p * E - v * E - p * C), w =
|
|
19471
|
+
g = x * c, d = He * x, p = d - (d - x), v = x - p, d = He * c, E = d - (d - c), C = c - E, y = v * C - (g - p * E - v * E - p * C), w = b * l, d = He * b, p = d - (d - b), v = b - p, d = He * l, E = d - (d - l), C = l - E, S = v * C - (w - p * E - v * E - p * C), P = y - S, h = y - P, sr[0] = y - (P + h) + (h - S), m = g + P, h = m - g, _ = g - (m - h) + (P - h), P = _ - w, h = _ - P, sr[1] = _ - (P + h) + (h - w), I = m + P, h = I - m, sr[2] = m - (I - h) + (P - h), sr[3] = I;
|
|
19459
19472
|
const z = Hl(W, $h, 4, sr, tf);
|
|
19460
|
-
g = a * c, d = He * a, p = d - (d - a), v = a - p, d = He * c, E = d - (d - c), C = c - E, y = v * C - (g - p * E - v * E - p * C), w = u * l, d = He * u, p = d - (d - u), v = u - p, d = He * l, E = d - (d - l), C = l - E, S = v * C - (w - p * E - v * E - p * C),
|
|
19473
|
+
g = a * c, d = He * a, p = d - (d - a), v = a - p, d = He * c, E = d - (d - c), C = c - E, y = v * C - (g - p * E - v * E - p * C), w = u * l, d = He * u, p = d - (d - u), v = u - p, d = He * l, E = d - (d - l), C = l - E, S = v * C - (w - p * E - v * E - p * C), P = y - S, h = y - P, sr[0] = y - (P + h) + (h - S), m = g + P, h = m - g, _ = g - (m - h) + (P - h), P = _ - w, h = _ - P, sr[1] = _ - (P + h) + (h - w), I = m + P, h = I - m, sr[2] = m - (I - h) + (P - h), sr[3] = I;
|
|
19461
19474
|
const Z = Hl(z, tf, 4, sr, ef);
|
|
19462
19475
|
return ef[Z - 1];
|
|
19463
19476
|
}
|
|
@@ -20519,7 +20532,7 @@ class hu extends Y {
|
|
|
20519
20532
|
this.sceneObject = void 0;
|
|
20520
20533
|
})), i;
|
|
20521
20534
|
})), this.d(this.sceneObjectChanged.don((r) => {
|
|
20522
|
-
this._propTreeReact.value = void 0, !(!r || !(r instanceof
|
|
20535
|
+
this._propTreeReact.value = void 0, !(!r || !(r instanceof tt)) && (this._propTreeReact.value = v_(r, e));
|
|
20523
20536
|
}));
|
|
20524
20537
|
}
|
|
20525
20538
|
/**
|
|
@@ -20565,7 +20578,7 @@ function Jw(n, t, e, r = !0) {
|
|
|
20565
20578
|
function __(n, t) {
|
|
20566
20579
|
const { type: e, id: r } = n;
|
|
20567
20580
|
if (e) {
|
|
20568
|
-
const i =
|
|
20581
|
+
const i = tt.create(e, r);
|
|
20569
20582
|
if (i)
|
|
20570
20583
|
return i.json = n, i;
|
|
20571
20584
|
console.warn(`cannot create sceneObject from type(${e})`);
|
|
@@ -20618,7 +20631,7 @@ class lr extends qd {
|
|
|
20618
20631
|
u && (u(), u = void 0);
|
|
20619
20632
|
};
|
|
20620
20633
|
this.dispose(l), this.dispose(this.sceneObjectChanged.disposableOn((c) => {
|
|
20621
|
-
l(), c && (u =
|
|
20634
|
+
l(), c && (u = et([this, "name"], [c, "name"]));
|
|
20622
20635
|
})), this.dispose(this.showChanged.disposableOn((c) => {
|
|
20623
20636
|
if (e.setSceneObjectShowFunc(this.sceneObject, c), this.tree && this.tree.forceRedraw(), this.children && !this._showChangedNotAffectChildren)
|
|
20624
20637
|
for (let h of this.children)
|
|
@@ -20876,7 +20889,7 @@ function C_(n, t) {
|
|
|
20876
20889
|
n && ("show" in n ? n.show = t : "enabled" in n && (n.enabled = t));
|
|
20877
20890
|
}
|
|
20878
20891
|
const I_ = ["EnvironmentVariables", "ScriptsLoader", "SceneScript", "ScriptLoader"];
|
|
20879
|
-
function
|
|
20892
|
+
function b_(n) {
|
|
20880
20893
|
const t = [], { root: e = {} } = n, r = [e];
|
|
20881
20894
|
for (; r.length > 0; ) {
|
|
20882
20895
|
const i = r.pop();
|
|
@@ -20892,8 +20905,8 @@ function P_(n) {
|
|
|
20892
20905
|
}
|
|
20893
20906
|
return t;
|
|
20894
20907
|
}
|
|
20895
|
-
async function
|
|
20896
|
-
const e =
|
|
20908
|
+
async function P_(n, t) {
|
|
20909
|
+
const e = b_(n);
|
|
20897
20910
|
let r = 0;
|
|
20898
20911
|
const i = e.length;
|
|
20899
20912
|
for (let s of e)
|
|
@@ -21258,7 +21271,7 @@ const Cr = class Cr extends Ba {
|
|
|
21258
21271
|
console.warn(`cannot addNewTreeItem! currentTreeItem(${i ? i.id : "root"})`);
|
|
21259
21272
|
return;
|
|
21260
21273
|
}
|
|
21261
|
-
const a =
|
|
21274
|
+
const a = tt.create(e, r);
|
|
21262
21275
|
return a ? this.addNewTreeItem(i, s ?? "FolderInnerOrAfter", !0, a) : void 0;
|
|
21263
21276
|
}
|
|
21264
21277
|
/**
|
|
@@ -21294,7 +21307,7 @@ const Cr = class Cr extends Ba {
|
|
|
21294
21307
|
const o = s ?? "FolderInnerOrAfter";
|
|
21295
21308
|
if (!this.testAddNewTreeItem(i, o))
|
|
21296
21309
|
return;
|
|
21297
|
-
const a =
|
|
21310
|
+
const a = tt.createFromClass(e, r);
|
|
21298
21311
|
return a ? this.addNewTreeItem(i, o, !0, a) : void 0;
|
|
21299
21312
|
}
|
|
21300
21313
|
/**
|
|
@@ -21308,7 +21321,7 @@ const Cr = class Cr extends Ba {
|
|
|
21308
21321
|
const s = i ?? "FolderInnerOrAfter";
|
|
21309
21322
|
if (!this.testAddNewTreeItem(r, s))
|
|
21310
21323
|
return;
|
|
21311
|
-
const o =
|
|
21324
|
+
const o = tt.createFromJson(e);
|
|
21312
21325
|
return console.log(o), o ? this.addNewTreeItem(r, i ?? "FolderInnerOrAfter", !0, o) : void 0;
|
|
21313
21326
|
}
|
|
21314
21327
|
/**
|
|
@@ -21342,7 +21355,7 @@ f(Cr, "defaultCreateSceneObjectFunc", __), /**
|
|
|
21342
21355
|
f(Cr, "defaultCreateTreeItemDragDropFunc", E_), /**
|
|
21343
21356
|
* 默认的预加载函数
|
|
21344
21357
|
*/
|
|
21345
|
-
f(Cr, "defaultPreload",
|
|
21358
|
+
f(Cr, "defaultPreload", P_), /**
|
|
21346
21359
|
* 默认的获取场景对象显示状态的函数
|
|
21347
21360
|
*/
|
|
21348
21361
|
f(Cr, "defaultGetSceneObjectShow", S_), /**
|
|
@@ -21411,19 +21424,19 @@ class Zw extends Y {
|
|
|
21411
21424
|
const p = Dc(u, r) / s, v = [i[0] - l[0], i[1] - l[1], i[2] - l[2]], E = r[2] - u[2];
|
|
21412
21425
|
await e.promise(new Promise((C) => {
|
|
21413
21426
|
e.disposer.dispose(kg(async () => {
|
|
21414
|
-
let
|
|
21415
|
-
|
|
21416
|
-
const m =
|
|
21427
|
+
let P = Date.now() - c;
|
|
21428
|
+
P = P < 0 ? 0 : P, P = P > s ? s : P;
|
|
21429
|
+
const m = P * p, _ = rv(u, m, h);
|
|
21417
21430
|
if (this.isGround && _) {
|
|
21418
21431
|
const g = await this._esviewer.getTerrainHeight([_[0], _[1]]);
|
|
21419
21432
|
this._currentPosition.value = [_[0], _[1], g ?? 0];
|
|
21420
21433
|
} else
|
|
21421
|
-
_ && (_[2] += E * (
|
|
21434
|
+
_ && (_[2] += E * (P / s)), this._currentPosition.value = _;
|
|
21422
21435
|
if (this.isRotating) {
|
|
21423
|
-
const [g, y, w] = v, S =
|
|
21436
|
+
const [g, y, w] = v, S = P / s;
|
|
21424
21437
|
this._currentRotation.value = [l[0] + g * S, l[1] + y * S, l[2] + w * S];
|
|
21425
21438
|
}
|
|
21426
|
-
|
|
21439
|
+
P === s && (this._currentPosition.value = r, this.isRotating && (this._currentRotation.value = i), this.isRotating = !1, this.isGround = !1, C());
|
|
21427
21440
|
}));
|
|
21428
21441
|
}));
|
|
21429
21442
|
})));
|
|
@@ -21736,13 +21749,13 @@ const Qn = class Qn extends Bt {
|
|
|
21736
21749
|
more: [
|
|
21737
21750
|
...e.more,
|
|
21738
21751
|
new st([], "点样式集合"),
|
|
21739
|
-
new
|
|
21752
|
+
new ft([this, "pointMaterial"], "点材质"),
|
|
21740
21753
|
new $([this, "pointMaterialParams"], "点材质参数"),
|
|
21741
21754
|
new st([], "线样式集合"),
|
|
21742
|
-
new
|
|
21755
|
+
new ft([this, "strokeMaterial"], "线材质"),
|
|
21743
21756
|
new $([this, "strokeMaterialParams"], "线材质参数"),
|
|
21744
21757
|
new st([], "面样式集合"),
|
|
21745
|
-
new
|
|
21758
|
+
new ft([this, "fillMaterial"], "面材质"),
|
|
21746
21759
|
new $([this, "fillMaterialParams"], "面材质参数")
|
|
21747
21760
|
]
|
|
21748
21761
|
};
|
|
@@ -22111,7 +22124,7 @@ f(Qn, "createDefaultProps", () => ({
|
|
|
22111
22124
|
* 点坐标数组 [number, number, number][] 默认undefined
|
|
22112
22125
|
* @type {ESJVector3DArray}
|
|
22113
22126
|
*/
|
|
22114
|
-
points:
|
|
22127
|
+
points: bc([])
|
|
22115
22128
|
})), f(Qn, "type", Qn.register("ESGeoVector", Qn, { chsName: "地理矢量", tags: ["ESObjects"], description: "地理矢量" })), /**
|
|
22116
22129
|
* 支持的编辑模式,包含 ESVisualObject 支持的模式以及平移模式
|
|
22117
22130
|
*/
|
|
@@ -22119,7 +22132,7 @@ f(Qn, "supportEditingModes", [
|
|
|
22119
22132
|
...Bt.supportEditingModes,
|
|
22120
22133
|
Q.Translation
|
|
22121
22134
|
]);
|
|
22122
|
-
let
|
|
22135
|
+
let Pt = Qn;
|
|
22123
22136
|
const Is = class Is extends Bt {
|
|
22124
22137
|
constructor() {
|
|
22125
22138
|
super(...arguments);
|
|
@@ -22503,13 +22516,13 @@ const yo = class yo extends nt {
|
|
|
22503
22516
|
more: [
|
|
22504
22517
|
...t.more,
|
|
22505
22518
|
new st([], "点样式"),
|
|
22506
|
-
new
|
|
22519
|
+
new ft([this, "pointMaterial"], "点材质", ""),
|
|
22507
22520
|
new $([this, "pointMaterialParams"], "点材质参数", {}),
|
|
22508
22521
|
new st([], "线样式"),
|
|
22509
|
-
new
|
|
22522
|
+
new ft([this, "strokeMaterial"], "线材质", ""),
|
|
22510
22523
|
new $([this, "strokeMaterialParams"], "线材质参数", {}),
|
|
22511
22524
|
new st([], "填充样式"),
|
|
22512
|
-
new
|
|
22525
|
+
new ft([this, "fillMaterial"], "面材质", ""),
|
|
22513
22526
|
new $([this, "fillMaterialParams"], "面材质参数", {})
|
|
22514
22527
|
]
|
|
22515
22528
|
};
|
|
@@ -22820,8 +22833,8 @@ const M_ = [["固定朝向", 0], ["面向屏幕旋转", 1], ["绕自身Z轴旋
|
|
|
22820
22833
|
new xe([this, "offset"], "像素偏移", [0, 0]),
|
|
22821
22834
|
new wt([this, "renderMode"], D_, "渲染模式", 0),
|
|
22822
22835
|
new wt([this, "rotationType"], M_, "漫游旋转类型", 1),
|
|
22823
|
-
new
|
|
22824
|
-
new
|
|
22836
|
+
new ft([this, "actorTag"], "绑定对象"),
|
|
22837
|
+
new ft([this, "socketName"], "插槽名称"),
|
|
22825
22838
|
new hr([this, "positionOffset"], "位置偏移"),
|
|
22826
22839
|
new hr([this, "rotationOffset"], "相对姿态")
|
|
22827
22840
|
],
|
|
@@ -22876,13 +22889,13 @@ f(_o, "createDefaultProps", () => ({
|
|
|
22876
22889
|
rotationOffset: lt([0, 0, 0])
|
|
22877
22890
|
})), f(_o, "type", _o.register("ESLabel", _o, { chsName: "标签", tags: ["ESObjects"], description: "标签对象" }));
|
|
22878
22891
|
let vn = _o;
|
|
22879
|
-
const wo = class wo extends
|
|
22892
|
+
const wo = class wo extends tt {
|
|
22880
22893
|
constructor(t) {
|
|
22881
22894
|
super(t);
|
|
22882
22895
|
}
|
|
22883
22896
|
};
|
|
22884
22897
|
f(wo, "createDefaultProps", () => ({
|
|
22885
|
-
...
|
|
22898
|
+
...tt.createDefaultProps(),
|
|
22886
22899
|
show: !0,
|
|
22887
22900
|
fillStyle: gt({ color: [1, 1, 1, 1], material: "", materialParams: {}, ground: !1 })
|
|
22888
22901
|
})), f(wo, "type", wo.register("ESTestObject", wo, { chsName: "测试", tags: ["ESObjects"], description: "" }));
|
|
@@ -23418,7 +23431,7 @@ const $n = class $n extends Bt {
|
|
|
23418
23431
|
new ot([], () => this.resetFeatureStyle(), [], "resetFeatureStyle"),
|
|
23419
23432
|
new st([], "ue"),
|
|
23420
23433
|
new ot([], () => this.refreshTileset(), [], "refreshTileset"),
|
|
23421
|
-
new
|
|
23434
|
+
new ft([this, "actorTag"]),
|
|
23422
23435
|
new q([this, "highlight"], "是否高亮"),
|
|
23423
23436
|
new Tt([this, "highlightColor"]),
|
|
23424
23437
|
new M([this, "highlightID"]),
|
|
@@ -23673,7 +23686,7 @@ f(Eo, "createDefaultProps", () => ({
|
|
|
23673
23686
|
*/
|
|
23674
23687
|
f(Eo, "type", Eo.register("ESAlarm", Eo, { chsName: "报警", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "警告类" }));
|
|
23675
23688
|
let Ef = Eo;
|
|
23676
|
-
const
|
|
23689
|
+
const bs = class bs extends nt {
|
|
23677
23690
|
/**
|
|
23678
23691
|
* 构造函数,创建一个 ESApertureEffect 实例。
|
|
23679
23692
|
* @param {SceneObjectKey} [id] - 场景对象的键,可选参数。
|
|
@@ -23694,12 +23707,12 @@ const Ps = class Ps extends nt {
|
|
|
23694
23707
|
...t.basic,
|
|
23695
23708
|
// 创建一个数字属性,表示光圈的半径
|
|
23696
23709
|
new M([this, "radius"], "半径", 1),
|
|
23697
|
-
new wt([this, "mode"], [["扫描", "scan"], ["扩散", "diffuse"]], "模式",
|
|
23710
|
+
new wt([this, "mode"], [["扫描", "scan"], ["扩散", "diffuse"]], "模式", bs.defaults.mode)
|
|
23698
23711
|
]
|
|
23699
23712
|
};
|
|
23700
23713
|
}
|
|
23701
23714
|
};
|
|
23702
|
-
f(
|
|
23715
|
+
f(bs, "createDefaultProps", () => ({
|
|
23703
23716
|
...nt.createDefaultProps(),
|
|
23704
23717
|
/**
|
|
23705
23718
|
* 光圈的半径,默认值为 1 米。
|
|
@@ -23716,9 +23729,9 @@ f(Ps, "createDefaultProps", () => ({
|
|
|
23716
23729
|
*
|
|
23717
23730
|
* @readonly
|
|
23718
23731
|
*/
|
|
23719
|
-
f(
|
|
23720
|
-
let Sf =
|
|
23721
|
-
const
|
|
23732
|
+
f(bs, "type", bs.register("ESApertureEffect", bs, { chsName: "光圈特效", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "光圈特效" }));
|
|
23733
|
+
let Sf = bs;
|
|
23734
|
+
const Ps = class Ps extends Pt {
|
|
23722
23735
|
/**
|
|
23723
23736
|
* 构造函数,初始化对象的碰撞检测、填充、描边、填充样式和描边样式等属性。
|
|
23724
23737
|
* @param id - 对象的可选 ID。
|
|
@@ -23746,11 +23759,11 @@ const bs = class bs extends bt {
|
|
|
23746
23759
|
};
|
|
23747
23760
|
}
|
|
23748
23761
|
};
|
|
23749
|
-
f(
|
|
23762
|
+
f(Ps, "createDefaultProps", () => ({
|
|
23750
23763
|
/**
|
|
23751
23764
|
* 默认属性值,包括填充样式、描边样式、是否填充、是否描边和碰撞检测等。
|
|
23752
23765
|
*/
|
|
23753
|
-
...
|
|
23766
|
+
...Pt.createDefaultProps(),
|
|
23754
23767
|
fillStyle: gt({
|
|
23755
23768
|
color: [1, 1, 1, 0.5],
|
|
23756
23769
|
material: "",
|
|
@@ -23771,15 +23784,15 @@ f(bs, "createDefaultProps", () => ({
|
|
|
23771
23784
|
})), /**
|
|
23772
23785
|
* 注册地理多边形类型,设置其中文名称、标签和描述。
|
|
23773
23786
|
*/
|
|
23774
|
-
f(
|
|
23787
|
+
f(Ps, "type", Ps.register("ESGeoPolygon", Ps, { chsName: "地理多边形", tags: ["ESObjects"], description: "地理多边形" })), /**
|
|
23775
23788
|
* 支持的编辑模式,包括父类支持的模式以及 CircularAppend 和 CircularInsert 模式。
|
|
23776
23789
|
*/
|
|
23777
|
-
f(
|
|
23778
|
-
...
|
|
23790
|
+
f(Ps, "supportEditingModes", [
|
|
23791
|
+
...Pt.supportEditingModes,
|
|
23779
23792
|
Q.CircularAppend,
|
|
23780
23793
|
Q.CircularInsert
|
|
23781
23794
|
]);
|
|
23782
|
-
let jt =
|
|
23795
|
+
let jt = Ps;
|
|
23783
23796
|
const Ei = class Ei extends jt {
|
|
23784
23797
|
/**
|
|
23785
23798
|
* 获取填充材质。
|
|
@@ -23914,7 +23927,7 @@ const Sn = class Sn extends nt {
|
|
|
23914
23927
|
new hr([this, "size"], "尺寸", Sn.defaults.size),
|
|
23915
23928
|
new Tt([this, "edgeColor"], "边框颜色", Sn.defaults.edgeColor),
|
|
23916
23929
|
new M([this, "edgeWidth"], "边框宽度", Sn.defaults.edgeWidth),
|
|
23917
|
-
new
|
|
23930
|
+
new ft([this, "targetID"], "瓦片图层", Sn.defaults.targetID)
|
|
23918
23931
|
]
|
|
23919
23932
|
};
|
|
23920
23933
|
}
|
|
@@ -23937,7 +23950,7 @@ f(Sn, "createDefaultProps", () => ({
|
|
|
23937
23950
|
* 注册 ESBoxClipping 类型,包含中文名、标签和描述信息。
|
|
23938
23951
|
*/
|
|
23939
23952
|
f(Sn, "type", Sn.register("ESBoxClipping", Sn, { chsName: "体剖切", tags: ["ESObjects", "_ES_Impl_Cesium"], description: "体剖切,体裁剪,体裁切,盒裁切" }));
|
|
23940
|
-
let
|
|
23953
|
+
let bf = Sn;
|
|
23941
23954
|
const Ga = class Ga extends nt {
|
|
23942
23955
|
constructor() {
|
|
23943
23956
|
super(...arguments);
|
|
@@ -24074,7 +24087,7 @@ const Ga = class Ga extends nt {
|
|
|
24074
24087
|
new st([], "ESCameraView"),
|
|
24075
24088
|
new ot([], () => this.resetWithCurrentCamera(), [], "设置为当前视角"),
|
|
24076
24089
|
new ot(["number", "number"], (r, i) => this.capture(r, i), [64, 64], "获取缩略图"),
|
|
24077
|
-
new
|
|
24090
|
+
new ft([this, "thumbnail"], "缩略图", "", !0),
|
|
24078
24091
|
new M([this, "duration"], "飞行时间", 1, !0)
|
|
24079
24092
|
]
|
|
24080
24093
|
};
|
|
@@ -24147,7 +24160,7 @@ class Au extends Y {
|
|
|
24147
24160
|
};
|
|
24148
24161
|
}
|
|
24149
24162
|
}
|
|
24150
|
-
const Hr = class Hr extends
|
|
24163
|
+
const Hr = class Hr extends tt {
|
|
24151
24164
|
/**
|
|
24152
24165
|
* 构造函数。
|
|
24153
24166
|
* @param id 对象的 ID,可选。
|
|
@@ -24470,7 +24483,7 @@ const Hr = class Hr extends et {
|
|
|
24470
24483
|
* @returns 转换后的图片路径。
|
|
24471
24484
|
*/
|
|
24472
24485
|
transitionImageUrl(e) {
|
|
24473
|
-
return
|
|
24486
|
+
return tt.context.getStrFromEnv(e);
|
|
24474
24487
|
}
|
|
24475
24488
|
_flyStep(e) {
|
|
24476
24489
|
var o;
|
|
@@ -24521,7 +24534,7 @@ const Hr = class Hr extends et {
|
|
|
24521
24534
|
}
|
|
24522
24535
|
};
|
|
24523
24536
|
f(Hr, "createDefaultProps", () => ({
|
|
24524
|
-
...
|
|
24537
|
+
...tt.createDefaultProps(),
|
|
24525
24538
|
/**开始播放 */
|
|
24526
24539
|
playing: !1,
|
|
24527
24540
|
//开始播放
|
|
@@ -24596,7 +24609,7 @@ f(Co, "createDefaultProps", () => ({
|
|
|
24596
24609
|
* 包含类名、类本身、中文名称、标签和描述。
|
|
24597
24610
|
*/
|
|
24598
24611
|
f(Co, "type", Co.register("ESCameraVisibleRange", Co, { chsName: "摄像头可视域", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "摄像头可视域" }));
|
|
24599
|
-
let
|
|
24612
|
+
let Pf = Co;
|
|
24600
24613
|
const Io = class Io extends nt {
|
|
24601
24614
|
/**
|
|
24602
24615
|
* 构造函数,可传入一个可选的场景对象键 `id`。
|
|
@@ -24635,7 +24648,7 @@ f(Io, "createDefaultProps", () => ({
|
|
|
24635
24648
|
*/
|
|
24636
24649
|
f(Io, "type", Io.register("ESCar", Io, { chsName: "车辆", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "警车等基础车辆模型" }));
|
|
24637
24650
|
let dc = Io;
|
|
24638
|
-
const xs = class xs extends
|
|
24651
|
+
const xs = class xs extends Pt {
|
|
24639
24652
|
/**
|
|
24640
24653
|
* 构造函数,用于创建 ESClassification 实例。
|
|
24641
24654
|
* @param id - 可选参数,实例的唯一标识符。
|
|
@@ -24668,7 +24681,7 @@ const xs = class xs extends bt {
|
|
|
24668
24681
|
}
|
|
24669
24682
|
};
|
|
24670
24683
|
f(xs, "createDefaultProps", () => ({
|
|
24671
|
-
...
|
|
24684
|
+
...Pt.createDefaultProps(),
|
|
24672
24685
|
/**高度 ,默认值为 10。
|
|
24673
24686
|
* @type {number}
|
|
24674
24687
|
* @default 10
|
|
@@ -24691,13 +24704,13 @@ f(xs, "type", xs.register("ESClassification", xs, { chsName: "倾斜单体化",
|
|
|
24691
24704
|
* 包含 ESGeoVector 支持的编辑模式,以及新增的 CircularAppend、CircularInsert 和 HeightModify 模式。
|
|
24692
24705
|
*/
|
|
24693
24706
|
f(xs, "supportEditingModes", [
|
|
24694
|
-
...
|
|
24707
|
+
...Pt.supportEditingModes,
|
|
24695
24708
|
Q.CircularAppend,
|
|
24696
24709
|
Q.CircularInsert,
|
|
24697
24710
|
Q.HeightModify
|
|
24698
24711
|
]);
|
|
24699
24712
|
let pc = xs;
|
|
24700
|
-
const
|
|
24713
|
+
const bo = class bo extends nt {
|
|
24701
24714
|
/**
|
|
24702
24715
|
* 构造函数,创建一个 ESClippingPlane 实例。
|
|
24703
24716
|
* @param {SceneObjectKey} [id] - 场景对象的唯一标识符,可选参数。
|
|
@@ -24744,12 +24757,12 @@ const Po = class Po extends nt {
|
|
|
24744
24757
|
* 字符串属性,用于指定瓦片图层的目标 ID。
|
|
24745
24758
|
* @type {StringProperty}
|
|
24746
24759
|
*/
|
|
24747
|
-
new
|
|
24760
|
+
new ft([this, "targetID"], "瓦片图层", "")
|
|
24748
24761
|
]
|
|
24749
24762
|
};
|
|
24750
24763
|
}
|
|
24751
24764
|
};
|
|
24752
|
-
f(
|
|
24765
|
+
f(bo, "createDefaultProps", () => ({
|
|
24753
24766
|
...nt.createDefaultProps(),
|
|
24754
24767
|
/**
|
|
24755
24768
|
* 布尔值,控制是否显示箭头,默认为 true。
|
|
@@ -24787,8 +24800,8 @@ f(Po, "createDefaultProps", () => ({
|
|
|
24787
24800
|
* 静态属性,用于注册该类的类型信息。
|
|
24788
24801
|
* 类型名称为 'ESClippingPlane',中文名称为 '裁切',包含相关标签和描述信息。
|
|
24789
24802
|
*/
|
|
24790
|
-
f(
|
|
24791
|
-
let xf =
|
|
24803
|
+
f(bo, "type", bo.register("ESClippingPlane", bo, { chsName: "裁切", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "ESClippingPlane" }));
|
|
24804
|
+
let xf = bo;
|
|
24792
24805
|
class L_ extends Y {
|
|
24793
24806
|
/**
|
|
24794
24807
|
* 构造函数,初始化ViewerCustomDivInstance实例。
|
|
@@ -24879,7 +24892,7 @@ const cg = `class MyDiv {
|
|
|
24879
24892
|
\`\`\`
|
|
24880
24893
|
${cg}
|
|
24881
24894
|
\`\`\`
|
|
24882
|
-
`, Jr = class Jr extends
|
|
24895
|
+
`, Jr = class Jr extends tt {
|
|
24883
24896
|
/**
|
|
24884
24897
|
* 构造函数,初始化 ESCustomDiv 实例。
|
|
24885
24898
|
*
|
|
@@ -25084,17 +25097,17 @@ ${cg}
|
|
|
25084
25097
|
new Ws([this, "innerHTML"], "innerHTML", Jr.defaultInnerHTML, Jr.innerHTMLReadMe, !0),
|
|
25085
25098
|
new ot(["string"], r, ["(divClass, dom, viewer) => divClass.update && divClass.update()"], "强制更新"),
|
|
25086
25099
|
new q([this, "allowPicking"], "允许拾取", !0),
|
|
25087
|
-
new
|
|
25100
|
+
new ft([this, "containerId"], "容器ID", Jr.defaults.containerId, !0),
|
|
25088
25101
|
new q([this, "shadowDom"], "shadowDom"),
|
|
25089
25102
|
new q([this, "cssAllInitial"], "cssAllInitial"),
|
|
25090
|
-
new
|
|
25103
|
+
new ft([this, "cssText"], "cssText")
|
|
25091
25104
|
], "ESCustomDiv")
|
|
25092
25105
|
]
|
|
25093
25106
|
};
|
|
25094
25107
|
}
|
|
25095
25108
|
};
|
|
25096
25109
|
f(Jr, "createDefaultProps", () => ({
|
|
25097
|
-
...
|
|
25110
|
+
...tt.createDefaultProps(),
|
|
25098
25111
|
/**是否显示 默认true */
|
|
25099
25112
|
show: !0,
|
|
25100
25113
|
/**实例类字符串 */
|
|
@@ -25206,7 +25219,7 @@ f(Ns, "createDefaultProps", () => ({
|
|
|
25206
25219
|
*/
|
|
25207
25220
|
f(Ns, "type", Ns.register("ESDataMesh", Ns, { chsName: "数值面着色", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "数值面着色" }));
|
|
25208
25221
|
let Nf = Ns;
|
|
25209
|
-
const Ts = class Ts extends
|
|
25222
|
+
const Ts = class Ts extends Pt {
|
|
25210
25223
|
/**
|
|
25211
25224
|
* 构造函数,初始化 ESGeoLineString 实例。
|
|
25212
25225
|
* @param id - 可选参数,实例的 ID。
|
|
@@ -25254,7 +25267,7 @@ const Ts = class Ts extends bt {
|
|
|
25254
25267
|
}
|
|
25255
25268
|
};
|
|
25256
25269
|
f(Ts, "createDefaultProps", () => ({
|
|
25257
|
-
...
|
|
25270
|
+
...Pt.createDefaultProps(),
|
|
25258
25271
|
/**线样式是否生效 默认 为true */
|
|
25259
25272
|
stroked: !0,
|
|
25260
25273
|
/**线样式 */
|
|
@@ -25274,12 +25287,12 @@ f(Ts, "type", Ts.register("ESGeoLineString", Ts, { chsName: "地理折线", tags
|
|
|
25274
25287
|
* 静态属性,重写支持的编辑模式,包含 ESGeoVector 支持的模式以及新增的 LineStringAppend 和 LineStringInsert 模式。
|
|
25275
25288
|
*/
|
|
25276
25289
|
f(Ts, "supportEditingModes", [
|
|
25277
|
-
...
|
|
25290
|
+
...Pt.supportEditingModes,
|
|
25278
25291
|
Q.LineStringAppend,
|
|
25279
25292
|
Q.LineStringInsert
|
|
25280
25293
|
]);
|
|
25281
25294
|
let ws = Ts;
|
|
25282
|
-
const
|
|
25295
|
+
const Po = class Po extends ws {
|
|
25283
25296
|
/**
|
|
25284
25297
|
* 构造函数,用于创建 ESDistanceMeasurement 实例。
|
|
25285
25298
|
* @param {string} [id] - 可选参数,实例的唯一标识符。
|
|
@@ -25288,7 +25301,7 @@ const bo = class bo extends ws {
|
|
|
25288
25301
|
super(t);
|
|
25289
25302
|
}
|
|
25290
25303
|
};
|
|
25291
|
-
f(
|
|
25304
|
+
f(Po, "createDefaultProps", () => ({
|
|
25292
25305
|
...ws.createDefaultProps(),
|
|
25293
25306
|
/**
|
|
25294
25307
|
* 线条样式属性,使用 reactJson 包装,使其成为响应式对象。
|
|
@@ -25307,8 +25320,8 @@ f(bo, "createDefaultProps", () => ({
|
|
|
25307
25320
|
* 静态属性,用于注册 ESDistanceMeasurement 类,包含类的类型名称、中文名称、标签和描述信息。
|
|
25308
25321
|
* 类型名称用于唯一标识该类,中文名称用于友好显示,标签用于分类和查找,描述信息用于简要说明该类的功能。
|
|
25309
25322
|
*/
|
|
25310
|
-
f(
|
|
25311
|
-
let Tf =
|
|
25323
|
+
f(Po, "type", Po.register("ESDistanceMeasurement", Po, { chsName: "距离测量", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE", "_ES_Impl_Ol"], description: "距离测量" }));
|
|
25324
|
+
let Tf = Po;
|
|
25312
25325
|
const Ki = class Ki extends jt {
|
|
25313
25326
|
/**
|
|
25314
25327
|
* 构造函数,初始化 ESExcavate 对象。
|
|
@@ -25329,7 +25342,7 @@ const Ki = class Ki extends jt {
|
|
|
25329
25342
|
basic: [
|
|
25330
25343
|
...t.basic,
|
|
25331
25344
|
new wt([this, "mode"], Ki.modes, "模式", "in"),
|
|
25332
|
-
new
|
|
25345
|
+
new ft([this, "targetID"], "瓦片图层", "")
|
|
25333
25346
|
]
|
|
25334
25347
|
};
|
|
25335
25348
|
}
|
|
@@ -25417,10 +25430,10 @@ const A_ = `
|
|
|
25417
25430
|
new $([this, "url"], "路径", !0),
|
|
25418
25431
|
new $([this, "treeTypes"], "treeTypes", [], void 0, !0),
|
|
25419
25432
|
new $([this, "xiaoBanWidget"], "xiaoBanWidget", Os.defaults.xiaoBanWidget, A_, !0),
|
|
25420
|
-
new
|
|
25421
|
-
new
|
|
25422
|
-
new
|
|
25423
|
-
new
|
|
25433
|
+
new ft([this, "youShiSZ"]),
|
|
25434
|
+
new ft([this, "diLei"]),
|
|
25435
|
+
new ft([this, "senLinLB"]),
|
|
25436
|
+
new ft([this, "labelMaterial"]),
|
|
25424
25437
|
new M([this, "heightOffset"])
|
|
25425
25438
|
]
|
|
25426
25439
|
};
|
|
@@ -25655,7 +25668,7 @@ f(Cn, "createDefaultProps", () => ({
|
|
|
25655
25668
|
*/
|
|
25656
25669
|
f(Cn, "type", Cn.register("ESGeoDiv", Cn, { chsName: "ESGeoDiv", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "ESGeoDiv" }));
|
|
25657
25670
|
let Df = Cn;
|
|
25658
|
-
const Ms = class Ms extends
|
|
25671
|
+
const Ms = class Ms extends Pt {
|
|
25659
25672
|
/**
|
|
25660
25673
|
* 构造函数,初始化矩形的一些属性,如碰撞、描边、填充等。
|
|
25661
25674
|
* @param {string} [id] 可选的矩形 ID。
|
|
@@ -25724,7 +25737,7 @@ const Ms = class Ms extends bt {
|
|
|
25724
25737
|
}
|
|
25725
25738
|
};
|
|
25726
25739
|
f(Ms, "createDefaultProps", () => ({
|
|
25727
|
-
...
|
|
25740
|
+
...Pt.createDefaultProps(),
|
|
25728
25741
|
collision: !1,
|
|
25729
25742
|
stroked: !0,
|
|
25730
25743
|
filled: !0,
|
|
@@ -25747,7 +25760,7 @@ f(Ms, "type", Ms.register("ESGeoRectangle", Ms, { chsName: "矩形", tags: ["ESO
|
|
|
25747
25760
|
* @type {ESJEditingMode[]}
|
|
25748
25761
|
*/
|
|
25749
25762
|
f(Ms, "supportEditingModes", [
|
|
25750
|
-
...
|
|
25763
|
+
...Pt.supportEditingModes,
|
|
25751
25764
|
Q.DoublePointsAppend,
|
|
25752
25765
|
Q.DoublePointsModify
|
|
25753
25766
|
]);
|
|
@@ -26233,7 +26246,7 @@ const ti = class ti extends Bt {
|
|
|
26233
26246
|
* @param id - 可选的实例 ID。
|
|
26234
26247
|
*/
|
|
26235
26248
|
constructor(t) {
|
|
26236
|
-
super(t), this.ad(
|
|
26249
|
+
super(t), this.ad(et([this, "czmSplitDirection"], [this, "splitDirection"])), this.ad(et([this, "czmAlpha"], [this, "opacity"]));
|
|
26237
26250
|
}
|
|
26238
26251
|
/**
|
|
26239
26252
|
* 获取 ES 属性。
|
|
@@ -26261,7 +26274,7 @@ const ti = class ti extends Bt {
|
|
|
26261
26274
|
/** 选项属性 */
|
|
26262
26275
|
new $([this, "options"], "options", ti.defaults.options, void 0, !0),
|
|
26263
26276
|
/** 目标 ID 属性 */
|
|
26264
|
-
new
|
|
26277
|
+
new ft([this, "targetID"], "targetID"),
|
|
26265
26278
|
/** 透明度属性 */
|
|
26266
26279
|
new qe([this, "opacity"], 0.01, [0, 1], "opacity", 1)
|
|
26267
26280
|
],
|
|
@@ -26272,9 +26285,9 @@ const ti = class ti extends Bt {
|
|
|
26272
26285
|
/** 高度属性 */
|
|
26273
26286
|
new M([this, "height"], "高度"),
|
|
26274
26287
|
/** 角色标签属性 */
|
|
26275
|
-
new
|
|
26288
|
+
new ft([this, "actorTag"]),
|
|
26276
26289
|
/** 组件标签属性 */
|
|
26277
|
-
new
|
|
26290
|
+
new ft([this, "componentTag"]),
|
|
26278
26291
|
/** 最小层级属性 */
|
|
26279
26292
|
new M([this, "minimumLevel"]),
|
|
26280
26293
|
new st([], "图像"),
|
|
@@ -26569,7 +26582,7 @@ const Be = class Be extends nt {
|
|
|
26569
26582
|
f(this, "_player", this.dv(new hi()));
|
|
26570
26583
|
{
|
|
26571
26584
|
const r = Be.defaults;
|
|
26572
|
-
this.d(
|
|
26585
|
+
this.d(et([this._player, "loop"], [this, "playingLoop"], (i) => i ?? r.playingLoop, (i) => i ?? r.playingLoop)), this.d(et([this._player, "currentTime"], [this, "currentTime"], (i) => i ?? r.currentTime, (i) => i ?? r.currentTime)), this.d(et([this._player, "duration"], [this, "duration"], (i) => i ?? r.duration, (i) => i ?? r.duration)), this.d(et([this._player, "playing"], [this, "playing"], (i) => i ?? r.playing, (i) => i ?? r.playing)), this.d(et([this._player, "speed"], [this, "playingSpeed"], (i) => i ?? r.playingSpeed, (i) => i ?? r.playingSpeed));
|
|
26573
26586
|
}
|
|
26574
26587
|
}
|
|
26575
26588
|
/**
|
|
@@ -26644,7 +26657,7 @@ const Be = class Be extends nt {
|
|
|
26644
26657
|
new $([this, "emitter"], "emitter", Be.defaults.emitter),
|
|
26645
26658
|
new st([], "播放器", "播放器"),
|
|
26646
26659
|
new M([this, "ratio"], "播放比率", 0, !0),
|
|
26647
|
-
new
|
|
26660
|
+
new Pc([this, "playing"], [this, "ratio"], [this, "playingLoop"], "播放器"),
|
|
26648
26661
|
new q([this, "playingLoop"], "是否循环", Be.defaults.playingLoop, !0),
|
|
26649
26662
|
new M([this, "currentTime"], "当前时间", Be.defaults.currentTime, !0),
|
|
26650
26663
|
new M([this, "duration"], "过渡时间", Be.defaults.duration, !0),
|
|
@@ -26824,7 +26837,7 @@ f(Be, "createDefaultProps", () => ({
|
|
|
26824
26837
|
*/
|
|
26825
26838
|
f(Be, "type", Be.register("ESParticleSystemPrimitive", Be, { chsName: "粒子", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "通过Cesium的Primitive API 实现的粒子特效。" }));
|
|
26826
26839
|
let vc = Be;
|
|
26827
|
-
const
|
|
26840
|
+
const bn = class bn extends vn {
|
|
26828
26841
|
/**
|
|
26829
26842
|
* 构造函数,初始化 ESPoi2D 对象。
|
|
26830
26843
|
* @param id - 场景对象的键,可选参数。
|
|
@@ -26870,14 +26883,14 @@ const Pn = class Pn extends vn {
|
|
|
26870
26883
|
...e,
|
|
26871
26884
|
basic: [
|
|
26872
26885
|
...e.basic,
|
|
26873
|
-
new wt([this, "mode"],
|
|
26874
|
-
new $([this, "style"], "样式",
|
|
26875
|
-
new q([this, "autoAnchor"], "自动锚点对齐",
|
|
26886
|
+
new wt([this, "mode"], bn.modes, "模式", bn.defaults.mode),
|
|
26887
|
+
new $([this, "style"], "样式", bn.defaults.style),
|
|
26888
|
+
new q([this, "autoAnchor"], "自动锚点对齐", bn.defaults.autoAnchor)
|
|
26876
26889
|
]
|
|
26877
26890
|
};
|
|
26878
26891
|
}
|
|
26879
26892
|
};
|
|
26880
|
-
f(
|
|
26893
|
+
f(bn, "createDefaultProps", () => ({
|
|
26881
26894
|
...vn.createDefaultProps(),
|
|
26882
26895
|
/**
|
|
26883
26896
|
* poi模式
|
|
@@ -26918,7 +26931,7 @@ f(Pn, "createDefaultProps", () => ({
|
|
|
26918
26931
|
})), /**
|
|
26919
26932
|
* 注册类的类型信息,包括名称、类本身、中文名称、标签和描述。
|
|
26920
26933
|
*/
|
|
26921
|
-
f(
|
|
26934
|
+
f(bn, "type", bn.register("ESPoi2D", bn, { chsName: "ESPoi2D", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "三角形,菱形" })), f(bn, "modes", [
|
|
26922
26935
|
["自定义", "Custom"],
|
|
26923
26936
|
["SquareH01", "SquareH01"],
|
|
26924
26937
|
["SquareH02", "SquareH02"],
|
|
@@ -26954,7 +26967,7 @@ f(Pn, "type", Pn.register("ESPoi2D", Pn, { chsName: "ESPoi2D", tags: ["ESObjects
|
|
|
26954
26967
|
["WomanAbnormal", "WomanAbnormal"],
|
|
26955
26968
|
["Camera", "Camera"]
|
|
26956
26969
|
]);
|
|
26957
|
-
let ul =
|
|
26970
|
+
let ul = bn;
|
|
26958
26971
|
const ei = class ei extends nt {
|
|
26959
26972
|
/**
|
|
26960
26973
|
* 构造函数
|
|
@@ -27055,7 +27068,7 @@ const No = class No extends jt {
|
|
|
27055
27068
|
basic: [
|
|
27056
27069
|
...e.basic,
|
|
27057
27070
|
// 添加一个字符串属性,表示瓦片图层的ID
|
|
27058
|
-
new
|
|
27071
|
+
new ft([this, "targetID"], "瓦片图层", "")
|
|
27059
27072
|
]
|
|
27060
27073
|
};
|
|
27061
27074
|
}
|
|
@@ -27503,7 +27516,7 @@ const Je = class Je extends nt {
|
|
|
27503
27516
|
...e,
|
|
27504
27517
|
basic: [
|
|
27505
27518
|
...e.basic,
|
|
27506
|
-
new
|
|
27519
|
+
new ft([this, "url"], "Url地址", Je.defaults.url),
|
|
27507
27520
|
new qe([this, "amplitude"], 0.01, [0, 1], "振幅", Je.defaults.amplitude),
|
|
27508
27521
|
new M([this, "frequency"], "频率", Je.defaults.frequency),
|
|
27509
27522
|
new M([this, "currentTime"], "当前时间", Je.defaults.currentTime),
|
|
@@ -27997,9 +28010,9 @@ const X_ = `
|
|
|
27997
28010
|
...e.basic,
|
|
27998
28011
|
new hr([this, "positionOffset"], "positionOffset", Qr.defaults.positionOffset),
|
|
27999
28012
|
new hr([this, "rotationOffset"], "rotationOffset", Qr.defaults.rotationOffset),
|
|
28000
|
-
new
|
|
28001
|
-
new
|
|
28002
|
-
new
|
|
28013
|
+
new ft([this, "actorTag"], "actorTag", Qr.defaults.actorTag),
|
|
28014
|
+
new ft([this, "widgetClass"], "widgetClass", Qr.defaults.widgetClass),
|
|
28015
|
+
new ft([this, "socketName"], "socketName", Qr.defaults.socketName),
|
|
28003
28016
|
new $([this, "info"], "info", Qr.defaults.info, X_, !0)
|
|
28004
28017
|
],
|
|
28005
28018
|
more: [
|
|
@@ -28129,8 +28142,8 @@ const Oo = class Oo extends nt {
|
|
|
28129
28142
|
...e,
|
|
28130
28143
|
basic: [
|
|
28131
28144
|
...e.basic,
|
|
28132
|
-
new
|
|
28133
|
-
new
|
|
28145
|
+
new ft([this, "actorTag"], "actorTag", ""),
|
|
28146
|
+
new ft([this, "actorClass"], "actorClass", ""),
|
|
28134
28147
|
new q([this, "highlight"], "是否高亮", !1)
|
|
28135
28148
|
],
|
|
28136
28149
|
more: [
|
|
@@ -28375,9 +28388,9 @@ const Y_ = `
|
|
|
28375
28388
|
new st([], "ue", "ue"),
|
|
28376
28389
|
new Ha([this, "positionOffset"], "坐标偏移"),
|
|
28377
28390
|
new Ha([this, "rotationOffset"], "旋转偏移"),
|
|
28378
|
-
new
|
|
28379
|
-
new
|
|
28380
|
-
new
|
|
28391
|
+
new ft([this, "actorTag"]),
|
|
28392
|
+
new ft([this, "widgetClass"]),
|
|
28393
|
+
new ft([this, "socketName"]),
|
|
28381
28394
|
new st([], "czm", "czm"),
|
|
28382
28395
|
new M([this, "opacity"], "透明度", $i.defaults.opacity, !0)
|
|
28383
28396
|
]
|
|
@@ -28429,7 +28442,7 @@ f($i, "createDefaultProps", () => ({
|
|
|
28429
28442
|
*/
|
|
28430
28443
|
f($i, "type", $i.register("ESWidget", $i, { chsName: "部件", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "ES组件" }));
|
|
28431
28444
|
let Yf = $i;
|
|
28432
|
-
const Rs = class Rs extends
|
|
28445
|
+
const Rs = class Rs extends Pt {
|
|
28433
28446
|
/**
|
|
28434
28447
|
* 构造函数,初始化方位角测量对象。
|
|
28435
28448
|
* @param id - 可选参数,对象的唯一标识符。
|
|
@@ -28459,7 +28472,7 @@ const Rs = class Rs extends bt {
|
|
|
28459
28472
|
}
|
|
28460
28473
|
};
|
|
28461
28474
|
f(Rs, "createDefaultProps", () => ({
|
|
28462
|
-
...
|
|
28475
|
+
...Pt.createDefaultProps(),
|
|
28463
28476
|
// 设置线条绘制状态为 true
|
|
28464
28477
|
stroked: !0,
|
|
28465
28478
|
// 初始化线条样式
|
|
@@ -28480,7 +28493,7 @@ f(Rs, "type", Rs.register("ESDirectionMeasurement", Rs, { chsName: "方位角测
|
|
|
28480
28493
|
* 包含父类支持的编辑模式以及新增的旋转、缩放、双点追加和双点修改模式。
|
|
28481
28494
|
*/
|
|
28482
28495
|
f(Rs, "supportEditingModes", [
|
|
28483
|
-
...
|
|
28496
|
+
...Pt.supportEditingModes,
|
|
28484
28497
|
Q.Rotation,
|
|
28485
28498
|
Q.Scale,
|
|
28486
28499
|
Q.DoublePointsAppend,
|
|
@@ -28517,7 +28530,7 @@ const mg = `// dataSource
|
|
|
28517
28530
|
\`\`\`
|
|
28518
28531
|
${mg}
|
|
28519
28532
|
\`\`\`
|
|
28520
|
-
`, J_ = "${earthsdk3-assets-script-dir}/assets/misc/2.geojson",
|
|
28533
|
+
`, J_ = "${earthsdk3-assets-script-dir}/assets/misc/2.geojson", bt = class bt extends Bt {
|
|
28521
28534
|
/**
|
|
28522
28535
|
* 构造函数
|
|
28523
28536
|
* @param {string | undefined} id - 对象的 ID,可选
|
|
@@ -28540,6 +28553,7 @@ ${mg}
|
|
|
28540
28553
|
* 拾取信息的类型,默认为 "FeatureCollection"
|
|
28541
28554
|
*/
|
|
28542
28555
|
f(this, "pickedInfoType", "FeatureCollection");
|
|
28556
|
+
f(this, "_fetchId", 0);
|
|
28543
28557
|
this._updateUrl(), this.ad(this.urlChanged.don(() => {
|
|
28544
28558
|
this._updateUrl();
|
|
28545
28559
|
})), this.ad(this.editingChanged.don(() => {
|
|
@@ -28614,11 +28628,20 @@ ${mg}
|
|
|
28614
28628
|
this.features = void 0;
|
|
28615
28629
|
return;
|
|
28616
28630
|
}
|
|
28617
|
-
typeof this.url == "object"
|
|
28618
|
-
this.features =
|
|
28619
|
-
|
|
28620
|
-
|
|
28621
|
-
|
|
28631
|
+
if (typeof this.url == "object")
|
|
28632
|
+
this.features = this.url;
|
|
28633
|
+
else if (ep(this.url))
|
|
28634
|
+
this.features = JSON.parse(this.url);
|
|
28635
|
+
else {
|
|
28636
|
+
const r = ++this._fetchId;
|
|
28637
|
+
try {
|
|
28638
|
+
const s = await (await fetch(tt.context.getStrFromEnv(this.url))).json();
|
|
28639
|
+
r === this._fetchId && (this.features = s);
|
|
28640
|
+
} catch (i) {
|
|
28641
|
+
console.warn("ESEntityCluster数据加载失败", i);
|
|
28642
|
+
}
|
|
28643
|
+
}
|
|
28644
|
+
this.pickedInfoType = ((e = this.features) == null ? void 0 : e.type) ?? "FeatureCollection";
|
|
28622
28645
|
}
|
|
28623
28646
|
/**
|
|
28624
28647
|
* 获取 ES 属性配置
|
|
@@ -28631,49 +28654,49 @@ ${mg}
|
|
|
28631
28654
|
defaultMenu: "style",
|
|
28632
28655
|
dataSource: [
|
|
28633
28656
|
...e.dataSource,
|
|
28634
|
-
new $([this, "url"], "服务地址",
|
|
28635
|
-
new M([this, "minFeatureVisibleDistance"], "要素最小可视距离",
|
|
28636
|
-
new M([this, "maxFeatureVisibleDistance"], "要素最大可视距离",
|
|
28657
|
+
new $([this, "url"], "服务地址", bt.defaults.url),
|
|
28658
|
+
new M([this, "minFeatureVisibleDistance"], "要素最小可视距离", bt.defaults.minFeatureVisibleDistance),
|
|
28659
|
+
new M([this, "maxFeatureVisibleDistance"], "要素最大可视距离", bt.defaults.maxFeatureVisibleDistance),
|
|
28637
28660
|
new wt([this, "heightReference"], [["NONE", "NONE"], ["CLAMP_TO_GROUND", "CLAMP_TO_GROUND"], ["RELATIVE_TO_GROUND", "RELATIVE_TO_GROUND"]], "高度参考")
|
|
28638
28661
|
],
|
|
28639
28662
|
style: [
|
|
28640
28663
|
...e.style,
|
|
28641
28664
|
new st([], "点样式集合"),
|
|
28642
|
-
new q([this, "textShow"], "是否显示",
|
|
28643
|
-
new xe([this, "textAnchor"], "锚点",
|
|
28644
|
-
new
|
|
28645
|
-
new
|
|
28646
|
-
new Tt([this, "textColor"], "文本颜色",
|
|
28647
|
-
new Tt([this, "textBackgroundColor"], "文本背景颜色",
|
|
28648
|
-
new
|
|
28649
|
-
new
|
|
28650
|
-
new M([this, "textFontSize"], "字体大小",
|
|
28651
|
-
new xe([this, "textOffset"], "像素偏移",
|
|
28665
|
+
new q([this, "textShow"], "是否显示", bt.defaults.textShow),
|
|
28666
|
+
new xe([this, "textAnchor"], "锚点", bt.defaults.anchor),
|
|
28667
|
+
new ft([this, "textProperty"], "标注显示属性", bt.defaults.textStyle.textProperty),
|
|
28668
|
+
new ft([this, "textDefaultText"], "默认文本", bt.defaults.textStyle.defaultText),
|
|
28669
|
+
new Tt([this, "textColor"], "文本颜色", bt.defaults.textStyle.color),
|
|
28670
|
+
new Tt([this, "textBackgroundColor"], "文本背景颜色", bt.defaults.textStyle.backgroundColor),
|
|
28671
|
+
new ft([this, "textFontStyle"], "字体样式", bt.defaults.textStyle.fontStyle),
|
|
28672
|
+
new ft([this, "textFontWeight"], "字体粗细", bt.defaults.textStyle.fontWeight),
|
|
28673
|
+
new M([this, "textFontSize"], "字体大小", bt.defaults.textStyle.fontSize),
|
|
28674
|
+
new xe([this, "textOffset"], "像素偏移", bt.defaults.textStyle.offset),
|
|
28652
28675
|
new st([], "点图片样式集合"),
|
|
28653
|
-
new q([this, "imageShow"], "是否显示",
|
|
28654
|
-
new xe([this, "imageAnchor"], "锚点",
|
|
28655
|
-
new $([this, "imageUrl"], "图片地址",
|
|
28656
|
-
new xe([this, "imageSize"], "图片大小",
|
|
28657
|
-
new xe([this, "imageOffset"], "像素偏移",
|
|
28676
|
+
new q([this, "imageShow"], "是否显示", bt.defaults.imageShow),
|
|
28677
|
+
new xe([this, "imageAnchor"], "锚点", bt.defaults.imageStyle.anchor),
|
|
28678
|
+
new $([this, "imageUrl"], "图片地址", bt.defaults.imageStyle.url),
|
|
28679
|
+
new xe([this, "imageSize"], "图片大小", bt.defaults.imageStyle.size),
|
|
28680
|
+
new xe([this, "imageOffset"], "像素偏移", bt.defaults.imageStyle.offset),
|
|
28658
28681
|
new st([], "线样式集合"),
|
|
28659
|
-
new q([this, "stroked"], "是否显示",
|
|
28660
|
-
new q([this, "strokeGround"], "贴地",
|
|
28661
|
-
new M([this, "strokeWidth"], "线宽",
|
|
28662
|
-
new wt([this, "strokeWidthType"],
|
|
28663
|
-
new Tt([this, "strokeColor"], "线颜色",
|
|
28664
|
-
new
|
|
28665
|
-
new $([this, "strokeMaterialParams"], "线材质参数",
|
|
28682
|
+
new q([this, "stroked"], "是否显示", bt.defaults.stroked),
|
|
28683
|
+
new q([this, "strokeGround"], "贴地", bt.defaults.strokeStyle.ground),
|
|
28684
|
+
new M([this, "strokeWidth"], "线宽", bt.defaults.strokeStyle.width),
|
|
28685
|
+
new wt([this, "strokeWidthType"], bt.strokeStyleWidthTypes, "线宽类型"),
|
|
28686
|
+
new Tt([this, "strokeColor"], "线颜色", bt.defaults.strokeStyle.color),
|
|
28687
|
+
new ft([this, "strokeMaterial"], "线材质", bt.defaults.strokeStyle.material),
|
|
28688
|
+
new $([this, "strokeMaterialParams"], "线材质参数", bt.defaults.strokeStyle.materialParams),
|
|
28666
28689
|
new st([], "面样式集合"),
|
|
28667
|
-
new q([this, "filled"], "是否显示",
|
|
28668
|
-
new q([this, "fillGround"], "贴地",
|
|
28669
|
-
new Tt([this, "fillColor"], "填充颜色",
|
|
28670
|
-
new
|
|
28671
|
-
new $([this, "fillMaterialParams"], "填充材质参数",
|
|
28690
|
+
new q([this, "filled"], "是否显示", bt.defaults.filled),
|
|
28691
|
+
new q([this, "fillGround"], "贴地", bt.defaults.fillStyle.ground),
|
|
28692
|
+
new Tt([this, "fillColor"], "填充颜色", bt.defaults.fillStyle.color),
|
|
28693
|
+
new ft([this, "fillMaterial"], "填充材质", bt.defaults.fillStyle.material),
|
|
28694
|
+
new $([this, "fillMaterialParams"], "填充材质参数", bt.defaults.fillStyle.materialParams)
|
|
28672
28695
|
],
|
|
28673
28696
|
more: [
|
|
28674
28697
|
...e.more,
|
|
28675
28698
|
new st([], "标注文本样式"),
|
|
28676
|
-
new
|
|
28699
|
+
new ft([this, "textFontFamily"], "字体", bt.defaults.textStyle.fontFamily),
|
|
28677
28700
|
new st([], "通用"),
|
|
28678
28701
|
new Ws([this, "loadFuncStr"], "loadFnStr", mg, H_, !0)
|
|
28679
28702
|
]
|
|
@@ -29184,7 +29207,7 @@ ${mg}
|
|
|
29184
29207
|
return this.imageStyleChanged;
|
|
29185
29208
|
}
|
|
29186
29209
|
};
|
|
29187
|
-
f(
|
|
29210
|
+
f(bt, "createDefaultProps", () => ({
|
|
29188
29211
|
/**
|
|
29189
29212
|
* 继承自 ESVisualObject 的默认属性。
|
|
29190
29213
|
*/
|
|
@@ -29391,9 +29414,9 @@ f(Pt, "createDefaultProps", () => ({
|
|
|
29391
29414
|
})), /**
|
|
29392
29415
|
* 注册 ESGeoJson 类,设置其类型名称、中文名称、标签和描述信息
|
|
29393
29416
|
*/
|
|
29394
|
-
f(
|
|
29395
|
-
let ll =
|
|
29396
|
-
const As = class As extends
|
|
29417
|
+
f(bt, "type", bt.register("ESGeoJson", bt, { chsName: "ESGeoJson", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "GeoJson数据加载" })), f(bt, "strokeStyleWidthTypes", [["screen", "screen"], ["world", "world"]]);
|
|
29418
|
+
let ll = bt;
|
|
29419
|
+
const As = class As extends Pt {
|
|
29397
29420
|
/**
|
|
29398
29421
|
* 构造函数,初始化 ESHeightMeasurement 对象。
|
|
29399
29422
|
* @param id - 可选的对象 ID。
|
|
@@ -29438,7 +29461,7 @@ const As = class As extends bt {
|
|
|
29438
29461
|
}
|
|
29439
29462
|
};
|
|
29440
29463
|
f(As, "createDefaultProps", () => ({
|
|
29441
|
-
...
|
|
29464
|
+
...Pt.createDefaultProps(),
|
|
29442
29465
|
// 设置对象为可绘制线条
|
|
29443
29466
|
stroked: !0,
|
|
29444
29467
|
// 设置线条宽度为 2
|
|
@@ -29457,7 +29480,7 @@ f(As, "type", As.register("ESHeightMeasurement", As, { chsName: "高度测量",
|
|
|
29457
29480
|
* 静态属性,重写支持的编辑模式,包含 ESGeoVector 支持的模式以及新增的双点追加和双点修改模式。
|
|
29458
29481
|
*/
|
|
29459
29482
|
f(As, "supportEditingModes", [
|
|
29460
|
-
...
|
|
29483
|
+
...Pt.supportEditingModes,
|
|
29461
29484
|
Q.DoublePointsAppend,
|
|
29462
29485
|
Q.DoublePointsModify
|
|
29463
29486
|
]);
|
|
@@ -29639,7 +29662,7 @@ f(Lo, "createDefaultProps", () => ({
|
|
|
29639
29662
|
/**
|
|
29640
29663
|
* 表示多边形顶点位置的数组,每个元素是一个包含三个数值的数组
|
|
29641
29664
|
*/
|
|
29642
|
-
points:
|
|
29665
|
+
points: bc(void 0),
|
|
29643
29666
|
filled: !0
|
|
29644
29667
|
})), /**
|
|
29645
29668
|
* 静态属性,用于注册类的类型信息。
|
|
@@ -29688,7 +29711,7 @@ f(Ro, "createDefaultProps", () => ({
|
|
|
29688
29711
|
*/
|
|
29689
29712
|
f(Ro, "type", Ro.register("ESLocalRectangle", Ro, { chsName: "局部坐标四边形", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "ESLocalRectangle" }));
|
|
29690
29713
|
let Qf = Ro;
|
|
29691
|
-
const Si = class Si extends
|
|
29714
|
+
const Si = class Si extends Pt {
|
|
29692
29715
|
/**
|
|
29693
29716
|
* 构造函数,初始化围栏对象。
|
|
29694
29717
|
* @param id 可选参数,围栏对象的唯一标识符。
|
|
@@ -29767,7 +29790,7 @@ const Si = class Si extends bt {
|
|
|
29767
29790
|
}
|
|
29768
29791
|
};
|
|
29769
29792
|
f(Si, "createDefaultProps", () => ({
|
|
29770
|
-
...
|
|
29793
|
+
...Pt.createDefaultProps(),
|
|
29771
29794
|
/**
|
|
29772
29795
|
* 围栏的高度。默认10
|
|
29773
29796
|
*/
|
|
@@ -29799,7 +29822,7 @@ f(Si, "type", Si.register("ESPipeFence", Si, { chsName: "管道电子围栏", ta
|
|
|
29799
29822
|
* 静态属性,重写支持的编辑模式,包含 ESGeoVector 的编辑模式以及新增的线串追加和插入模式。
|
|
29800
29823
|
*/
|
|
29801
29824
|
f(Si, "supportEditingModes", [
|
|
29802
|
-
...
|
|
29825
|
+
...Pt.supportEditingModes,
|
|
29803
29826
|
Q.LineStringAppend,
|
|
29804
29827
|
Q.LineStringInsert
|
|
29805
29828
|
]);
|
|
@@ -29888,7 +29911,7 @@ f(Ci, "createDefaultProps", () => ({
|
|
|
29888
29911
|
*/
|
|
29889
29912
|
f(Ci, "type", Ci.register("ESPipeserTileset", Ci, { chsName: "PipeSer图层", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "PipeSer图层" })), f(Ci, "colorModes", [["default", "default"], ["color", "color"], ["blend", "blend"]]);
|
|
29890
29913
|
let $f = Ci;
|
|
29891
|
-
const Ii = class Ii extends
|
|
29914
|
+
const Ii = class Ii extends Pt {
|
|
29892
29915
|
/**
|
|
29893
29916
|
* 构造函数,初始化多边形电子围栏实例。
|
|
29894
29917
|
* @param id 实例的唯一标识符,可选参数。
|
|
@@ -29923,7 +29946,7 @@ const Ii = class Ii extends bt {
|
|
|
29923
29946
|
}
|
|
29924
29947
|
};
|
|
29925
29948
|
f(Ii, "createDefaultProps", () => ({
|
|
29926
|
-
...
|
|
29949
|
+
...Pt.createDefaultProps(),
|
|
29927
29950
|
/**
|
|
29928
29951
|
* 多边形电子围栏的高度,默认为10。
|
|
29929
29952
|
* @type {number}
|
|
@@ -29952,13 +29975,13 @@ f(Ii, "type", Ii.register("ESPolygonFence", Ii, { chsName: "多边形电子围
|
|
|
29952
29975
|
* 支持的编辑模式列表,在父类支持的模式基础上增加了圆形追加、圆形插入和高度修改模式。
|
|
29953
29976
|
*/
|
|
29954
29977
|
f(Ii, "supportEditingModes", [
|
|
29955
|
-
...
|
|
29978
|
+
...Pt.supportEditingModes,
|
|
29956
29979
|
Q.CircularAppend,
|
|
29957
29980
|
Q.CircularInsert,
|
|
29958
29981
|
Q.HeightModify
|
|
29959
29982
|
]);
|
|
29960
29983
|
let _c = Ii;
|
|
29961
|
-
const ts = class ts extends
|
|
29984
|
+
const ts = class ts extends Pt {
|
|
29962
29985
|
/**
|
|
29963
29986
|
* 构造函数。
|
|
29964
29987
|
* @param {string} [id] - 对象的可选ID。
|
|
@@ -30016,7 +30039,7 @@ const ts = class ts extends bt {
|
|
|
30016
30039
|
}
|
|
30017
30040
|
};
|
|
30018
30041
|
f(ts, "createDefaultProps", () => ({
|
|
30019
|
-
...
|
|
30042
|
+
...Pt.createDefaultProps(),
|
|
30020
30043
|
/**
|
|
30021
30044
|
* 是否贴地
|
|
30022
30045
|
* @type {boolean}
|
|
@@ -30086,7 +30109,7 @@ f(ts, "type", ts.register("ESRectangle", ts, { chsName: "矩形", tags: ["ESObje
|
|
|
30086
30109
|
* 包含支持的编辑模式,扩展自父类的编辑模式。
|
|
30087
30110
|
*/
|
|
30088
30111
|
f(ts, "supportEditingModes", [
|
|
30089
|
-
...
|
|
30112
|
+
...Pt.supportEditingModes,
|
|
30090
30113
|
Q.DoublePointsAppend,
|
|
30091
30114
|
Q.DoublePointsModify
|
|
30092
30115
|
]);
|
|
@@ -30443,7 +30466,7 @@ const Fs = class Fs extends nt {
|
|
|
30443
30466
|
basic: [
|
|
30444
30467
|
...t.basic,
|
|
30445
30468
|
new M([this, "downloadProgress"], "下载进度", Fs.defaults.downloadProgress, !0, !0),
|
|
30446
|
-
new
|
|
30469
|
+
new ft([this, "levelName"], "levelName", ""),
|
|
30447
30470
|
new M([this, "levelLoadDistance"], "levelLoadDistance", 1e3),
|
|
30448
30471
|
new hr([this, "levelOffset"], "levelOffset", [0, 0, 0])
|
|
30449
30472
|
],
|
|
@@ -30555,7 +30578,7 @@ f(Lr, "createDefaultProps", () => ({
|
|
|
30555
30578
|
*/
|
|
30556
30579
|
f(Lr, "type", Lr.register("ESPipeline", Lr, { chsName: "管线", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "ESPipeline" })), f(Lr, "materialModes", [["单箭头", "singleArrow"], ["多箭头", "multipleArrows"]]);
|
|
30557
30580
|
let ad = Lr;
|
|
30558
|
-
const ni = class ni extends
|
|
30581
|
+
const ni = class ni extends Pt {
|
|
30559
30582
|
/**
|
|
30560
30583
|
* 构造函数,调用父类的构造函数。
|
|
30561
30584
|
* @param id 可选的 ID 字符串。
|
|
@@ -30585,7 +30608,7 @@ const ni = class ni extends bt {
|
|
|
30585
30608
|
}
|
|
30586
30609
|
};
|
|
30587
30610
|
f(ni, "createDefaultProps", () => ({
|
|
30588
|
-
...
|
|
30611
|
+
...Pt.createDefaultProps(),
|
|
30589
30612
|
/**
|
|
30590
30613
|
* 可视区域颜色,默认为绿色。[0, 1, 0, 1]
|
|
30591
30614
|
* @type {ESJColor}
|
|
@@ -30607,7 +30630,7 @@ f(ni, "type", ni.register("ESVisibilityAnalysis", ni, { chsName: "通视分析,
|
|
|
30607
30630
|
* 静态属性,重写支持的编辑模式列表,包含 ESGeoVector 支持的编辑模式以及新增的 VisibilityAppend 和 VisibilityModify 模式。
|
|
30608
30631
|
*/
|
|
30609
30632
|
f(ni, "supportEditingModes", [
|
|
30610
|
-
...
|
|
30633
|
+
...Pt.supportEditingModes,
|
|
30611
30634
|
Q.VisibilityAppend,
|
|
30612
30635
|
Q.VisibilityModify
|
|
30613
30636
|
]);
|
|
@@ -30784,7 +30807,7 @@ const ko = class ko extends Ko {
|
|
|
30784
30807
|
this.d(this.components.disposableAdd(this._human, !0)), this.d(this.components.disposableAdd(this._poi));
|
|
30785
30808
|
{
|
|
30786
30809
|
const { _human: r, _poi: i } = this;
|
|
30787
|
-
this.d(k([r, "show"], [this, "show"])), this.d(k([i, "show"], [this, "show"])), this.d(k([r, "allowPicking"], [this, "allowPicking"])), this.d(k([i, "allowPicking"], [this, "allowPicking"])), this.d(
|
|
30810
|
+
this.d(k([r, "show"], [this, "show"])), this.d(k([i, "show"], [this, "show"])), this.d(k([r, "allowPicking"], [this, "allowPicking"])), this.d(k([i, "allowPicking"], [this, "allowPicking"])), this.d(et([r, "scale"], [this, "scale"])), this.d(et([i, "scale"], [this, "scale"])), this.d(k([r, "collision"], [this, "collision"])), this.d(k([i, "collision"], [this, "collision"])), this.d(et([r, "flyInParam"], [this, "flyInParam"])), this.d(et([r, "flyToParam"], [this, "flyToParam"])), this.d(k([r, "animation"], [this, "animation"])), this.d(k([r, "mode"], [this, "mode"])), this.d(k([r, "minVisibleDistance"], [this, "minVisibleDistance"])), this.d(k([r, "maxVisibleDistance"], [this, "maxVisibleDistance"])), this.d(k([i, "name"], [this, "name"])), this.d(k([i, "mode"], [this, "poiMode"])), this.d(k([i, "autoAnchor"], [this, "autoAnchor"])), this.d(k([i, "screenRender"], [this, "screenRender"])), this.d(k([i, "size"], [this, "size"])), this.d(k([i, "anchor"], [this, "anchor"])), this.d(k([i, "sizeByContent"], [this, "sizeByContent"])), this.d(k([i, "renderMode"], [this, "renderMode"])), this.d(k([i, "rotationType"], [this, "rotationType"])), this.d(k([i, "zOrder"], [this, "zOrder"])), this.d(k([i, "minVisibleDistance"], [this, "minVisibleDistance"])), this.d(k([i, "maxVisibleDistance"], [this, "maxVisibleDistance"])), this.d(et([r, "position"], [this, "position"])), this.d(et([r, "rotation"], [this, "rotation"])), this.d(this.flyInEvent.don((s) => {
|
|
30788
30811
|
r.flyIn(s);
|
|
30789
30812
|
})), this.d(this.flyToEvent.don((s) => {
|
|
30790
30813
|
r.flyTo(s);
|
|
@@ -30887,7 +30910,7 @@ f(ko, "createDefaultProps", () => ({
|
|
|
30887
30910
|
*/
|
|
30888
30911
|
f(ko, "type", ko.register("ESHumanPoi", ko, { chsName: "人员poi", tags: ["ESObjects"], description: "ESHuman + ESPoi2D组合对象" }));
|
|
30889
30912
|
let cd = ko;
|
|
30890
|
-
const
|
|
30913
|
+
const Pn = class Pn extends jt {
|
|
30891
30914
|
/**
|
|
30892
30915
|
* 构造函数,初始化ESPit对象。
|
|
30893
30916
|
* @param {string} [id] - 对象的ID,可选参数。
|
|
@@ -30906,16 +30929,16 @@ const bn = class bn extends jt {
|
|
|
30906
30929
|
...t,
|
|
30907
30930
|
basic: [
|
|
30908
30931
|
...t.basic,
|
|
30909
|
-
new M([this, "depth"], "深度",
|
|
30910
|
-
new M([this, "interpolation"], "插值",
|
|
30911
|
-
new M([this, "opacity"], "透明度",
|
|
30912
|
-
new $([this, "sideImage"], "侧面图片",
|
|
30913
|
-
new $([this, "bottomImage"], "底面图片",
|
|
30932
|
+
new M([this, "depth"], "深度", Pn.defaults.depth),
|
|
30933
|
+
new M([this, "interpolation"], "插值", Pn.defaults.interpolation),
|
|
30934
|
+
new M([this, "opacity"], "透明度", Pn.defaults.opacity),
|
|
30935
|
+
new $([this, "sideImage"], "侧面图片", Pn.defaults.sideImage),
|
|
30936
|
+
new $([this, "bottomImage"], "底面图片", Pn.defaults.bottomImage)
|
|
30914
30937
|
]
|
|
30915
30938
|
};
|
|
30916
30939
|
}
|
|
30917
30940
|
};
|
|
30918
|
-
f(
|
|
30941
|
+
f(Pn, "createDefaultProps", () => ({
|
|
30919
30942
|
...jt.createDefaultProps(),
|
|
30920
30943
|
/**
|
|
30921
30944
|
* 坑深度(米) 默认10
|
|
@@ -30925,12 +30948,12 @@ f(bn, "createDefaultProps", () => ({
|
|
|
30925
30948
|
* 侧面图片纹理
|
|
30926
30949
|
* @type {ESJTexture}
|
|
30927
30950
|
*/
|
|
30928
|
-
sideImage: gt({ url:
|
|
30951
|
+
sideImage: gt({ url: tt.context.getStrFromEnv("${earthsdk3-assets-script-dir}/assets/img/ESPit/side.jpg"), uDis: 50, vDis: 50 }),
|
|
30929
30952
|
/**
|
|
30930
30953
|
* 底面图片纹理
|
|
30931
30954
|
* @type {ESJTexture}
|
|
30932
30955
|
*/
|
|
30933
|
-
bottomImage: gt({ url:
|
|
30956
|
+
bottomImage: gt({ url: tt.context.getStrFromEnv("${earthsdk3-assets-script-dir}/assets/img/ESPit/bottom.jpg"), uDis: 50, vDis: 50 }),
|
|
30934
30957
|
/**
|
|
30935
30958
|
* 透明度 默认1
|
|
30936
30959
|
*/
|
|
@@ -30951,8 +30974,8 @@ f(bn, "createDefaultProps", () => ({
|
|
|
30951
30974
|
* @readonly
|
|
30952
30975
|
* @type {any}
|
|
30953
30976
|
*/
|
|
30954
|
-
f(
|
|
30955
|
-
let za =
|
|
30977
|
+
f(Pn, "type", Pn.register("ESPit", Pn, { chsName: "坑", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "坑" }));
|
|
30978
|
+
let za = Pn;
|
|
30956
30979
|
const Vo = class Vo extends za {
|
|
30957
30980
|
/**
|
|
30958
30981
|
* 构造函数,初始化ESHole实例。
|
|
@@ -30973,7 +30996,7 @@ const Vo = class Vo extends za {
|
|
|
30973
30996
|
this.d(this.components.disposableAdd(this._excavate)), this.d(this.components.disposableAdd(this._pit, !0));
|
|
30974
30997
|
{
|
|
30975
30998
|
const { _excavate: r, _pit: i } = this;
|
|
30976
|
-
this.d(k([r, "show"], [this, "show"])), this.d(k([i, "show"], [this, "show"])), this.d(k([r, "allowPicking"], [this, "allowPicking"])), this.d(k([i, "allowPicking"], [this, "allowPicking"])), this.d(k([r, "collision"], [this, "collision"])), this.d(k([i, "collision"], [this, "collision"])), this.d(
|
|
30999
|
+
this.d(k([r, "show"], [this, "show"])), this.d(k([i, "show"], [this, "show"])), this.d(k([r, "allowPicking"], [this, "allowPicking"])), this.d(k([i, "allowPicking"], [this, "allowPicking"])), this.d(k([r, "collision"], [this, "collision"])), this.d(k([i, "collision"], [this, "collision"])), this.d(et([i, "points"], [this, "points"])), this.d(k([r, "points"], [this, "points"])), this.d(k([i, "pointed"], [this, "pointed"])), this.d(k([r, "pointed"], [this, "pointed"])), this.d(k([i, "pointStyle"], [this, "pointStyle"])), this.d(k([r, "pointStyle"], [this, "pointStyle"])), this.d(k([i, "stroked"], [this, "stroked"])), this.d(k([r, "stroked"], [this, "stroked"])), this.d(k([i, "strokeStyle"], [this, "strokeStyle"])), this.d(k([r, "strokeStyle"], [this, "strokeStyle"])), this.d(k([i, "filled"], [this, "filled"])), this.d(k([i, "fillStyle"], [this, "fillStyle"])), this.d(k([r, "fillStyle"], [this, "fillStyle"])), this.d(k([r, "mode"], [this, "mode"])), this.d(k([r, "targetID"], [this, "targetID"])), this.d(k([i, "depth"], [this, "depth"])), this.d(k([i, "sideImage"], [this, "sideImage"])), this.d(k([i, "bottomImage"], [this, "bottomImage"])), this.d(k([i, "opacity"], [this, "opacity"])), this.d(k([i, "interpolation"], [this, "interpolation"])), this.d(et([i, "flyInParam"], [this, "flyInParam"])), this.d(et([i, "flyToParam"], [this, "flyToParam"])), this.d(this.flyInEvent.don((s) => {
|
|
30977
31000
|
i.flyIn(s);
|
|
30978
31001
|
})), this.d(this.flyToEvent.don((s) => {
|
|
30979
31002
|
i.flyTo(s);
|
|
@@ -31005,7 +31028,7 @@ const Vo = class Vo extends za {
|
|
|
31005
31028
|
// 添加模式的枚举属性
|
|
31006
31029
|
new wt([this, "mode"], al.modes, "模式", "in"),
|
|
31007
31030
|
// 添加瓦片图层的字符串属性
|
|
31008
|
-
new
|
|
31031
|
+
new ft([this, "targetID"], "瓦片图层", "")
|
|
31009
31032
|
]
|
|
31010
31033
|
};
|
|
31011
31034
|
}
|
|
@@ -31169,7 +31192,7 @@ const Qc = {
|
|
|
31169
31192
|
{
|
|
31170
31193
|
this.d(this.components.disposableAdd(this._es3DTileset, !0));
|
|
31171
31194
|
const r = this._es3DTileset;
|
|
31172
|
-
this.d(k([r, "allowPicking"], [this, "allowPicking"])), this.d(k([r, "collision"], [this, "collision"])), this.d(
|
|
31195
|
+
this.d(k([r, "allowPicking"], [this, "allowPicking"])), this.d(k([r, "collision"], [this, "collision"])), this.d(et([r, "flyToParam"], [this, "flyToParam"])), this.d(et([r, "flyToParam"], [this, "flyToParam"])), this.d(k([r, "actorTag"], [this, "actorTag"])), this.d(k([r, "materialMode"], [this, "materialMode"])), this.d(k([r, "highlight"], [this, "highlight"])), this.d(k([r, "maximumScreenSpaceError"], [this, "maximumScreenSpaceError"])), this.d(k([r, "highlightID"], [this, "highlightID"])), this.d(k([r, "highlightColor"], [this, "highlightColor"])), this.d(et([r, "offset"], [this, "offset"])), this.d(et([r, "rotation"], [this, "rotation"])), this.d(k([r, "czmImageBasedLightingFactor"], [this, "czmImageBasedLightingFactor"])), this.d(k([r, "czmLuminanceAtZenith"], [this, "czmLuminanceAtZenith"])), this.d(k([r, "czmMaximumMemoryUsage"], [this, "czmMaximumMemoryUsage"])), this.d(k([r, "czmClassificationType"], [this, "czmClassificationType"])), this.d(k([r, "czmStyleJson"], [this, "czmStyleJson"])), this.d(k([r, "czmBackFaceCulling"], [this, "czmBackFaceCulling"])), this.d(k([r, "czmDebugShowBoundingVolume"], [this, "czmDebugShowBoundingVolume"])), this.d(k([r, "czmDebugShowContentBoundingVolume"], [this, "czmDebugShowContentBoundingVolume"])), this.d(k([r, "czmSkipLevelOfDetail"], [this, "czmSkipLevelOfDetail"])), this.d(k([r, "colorBlendMode"], [this, "colorBlendMode"])), this.d(k([r, "cacheBytes"], [this, "cacheBytes"])), this.d(k([r, "clippingPlaneEnabled"], [this, "clippingPlaneEnabled"])), this.d(k([r, "unionClippingRegions"], [this, "unionClippingRegions"])), this.d(k([r, "clippingPlaneEdgeColor"], [this, "clippingPlaneEdgeColor"])), this.d(k([r, "clippingPlaneEdgeWidth"], [this, "clippingPlaneEdgeWidth"])), this.d(k([r, "materialParams"], [this, "materialParams"])), this.d(et([r, "supportEdit"], [this, "supportEdit"])), this.d(et([r, "clippingPlanesId"], [this, "clippingPlanesId"])), this.d(et([r, "clippingPlaneIds"], [this, "clippingPlaneIds"])), this.d(et([r, "flattenedPlaneId"], [this, "flattenedPlaneId"])), this.d(et([r, "flattenedPlaneEnabled"], [this, "flattenedPlaneEnabled"])), this.d(et([r, "clippingPlaneId"], [this, "clippingPlaneId"])), this.d(et([r, "excavateId"], [this, "excavateId"]));
|
|
31173
31196
|
}
|
|
31174
31197
|
{
|
|
31175
31198
|
const r = this._es3DTileset;
|
|
@@ -31486,7 +31509,8 @@ const zo = class zo extends Rn {
|
|
|
31486
31509
|
materials: this.materials,
|
|
31487
31510
|
changeMaterial: this.changeMaterial,
|
|
31488
31511
|
props: this.props,
|
|
31489
|
-
rotation: this.rotation
|
|
31512
|
+
rotation: this.rotation,
|
|
31513
|
+
offset: this.offset
|
|
31490
31514
|
};
|
|
31491
31515
|
}
|
|
31492
31516
|
/**
|
|
@@ -31601,7 +31625,7 @@ const e0 = async (n, t, e) => {
|
|
|
31601
31625
|
{
|
|
31602
31626
|
this.d(this.components.disposableAdd(this._es3DTileset, !0));
|
|
31603
31627
|
const r = this._es3DTileset;
|
|
31604
|
-
this.d(k([r, "allowPicking"], [this, "allowPicking"])), this.d(k([r, "collision"], [this, "collision"])), this.d(
|
|
31628
|
+
this.d(k([r, "allowPicking"], [this, "allowPicking"])), this.d(k([r, "collision"], [this, "collision"])), this.d(et([r, "flyToParam"], [this, "flyToParam"])), this.d(et([r, "flyToParam"], [this, "flyToParam"])), this.d(k([r, "actorTag"], [this, "actorTag"])), this.d(k([r, "materialMode"], [this, "materialMode"])), this.d(k([r, "highlight"], [this, "highlight"])), this.d(k([r, "maximumScreenSpaceError"], [this, "maximumScreenSpaceError"])), this.d(k([r, "highlightID"], [this, "highlightID"])), this.d(k([r, "highlightColor"], [this, "highlightColor"])), this.d(et([r, "offset"], [this, "offset"])), this.d(et([r, "rotation"], [this, "rotation"])), this.d(k([r, "czmImageBasedLightingFactor"], [this, "czmImageBasedLightingFactor"])), this.d(k([r, "czmLuminanceAtZenith"], [this, "czmLuminanceAtZenith"])), this.d(k([r, "czmMaximumMemoryUsage"], [this, "czmMaximumMemoryUsage"])), this.d(k([r, "czmClassificationType"], [this, "czmClassificationType"])), this.d(k([r, "czmStyleJson"], [this, "czmStyleJson"])), this.d(k([r, "czmBackFaceCulling"], [this, "czmBackFaceCulling"])), this.d(k([r, "czmDebugShowBoundingVolume"], [this, "czmDebugShowBoundingVolume"])), this.d(k([r, "czmDebugShowContentBoundingVolume"], [this, "czmDebugShowContentBoundingVolume"])), this.d(k([r, "czmSkipLevelOfDetail"], [this, "czmSkipLevelOfDetail"])), this.d(k([r, "colorBlendMode"], [this, "colorBlendMode"])), this.d(k([r, "cacheBytes"], [this, "cacheBytes"])), this.d(k([r, "clippingPlaneEnabled"], [this, "clippingPlaneEnabled"])), this.d(k([r, "unionClippingRegions"], [this, "unionClippingRegions"])), this.d(k([r, "clippingPlaneEdgeColor"], [this, "clippingPlaneEdgeColor"])), this.d(k([r, "clippingPlaneEdgeWidth"], [this, "clippingPlaneEdgeWidth"])), this.d(k([r, "materialParams"], [this, "materialParams"])), this.d(et([r, "supportEdit"], [this, "supportEdit"])), this.d(et([r, "clippingPlanesId"], [this, "clippingPlanesId"])), this.d(et([r, "clippingPlaneIds"], [this, "clippingPlaneIds"])), this.d(et([r, "flattenedPlaneId"], [this, "flattenedPlaneId"])), this.d(et([r, "flattenedPlaneEnabled"], [this, "flattenedPlaneEnabled"])), this.d(et([r, "clippingPlaneId"], [this, "clippingPlaneId"])), this.d(et([r, "excavateId"], [this, "excavateId"]));
|
|
31605
31629
|
}
|
|
31606
31630
|
{
|
|
31607
31631
|
const r = this._es3DTileset;
|
|
@@ -31869,7 +31893,7 @@ f(ks, "createDefaultProps", () => ({
|
|
|
31869
31893
|
*/
|
|
31870
31894
|
f(ks, "type", ks.register("ESPoiTileset", ks, { chsName: "ESPoiTileset", tags: ["ESObjects", "_ES_Impl_UE"], description: "ESPoiTileset" }));
|
|
31871
31895
|
let md = ks;
|
|
31872
|
-
const jo = class jo extends
|
|
31896
|
+
const jo = class jo extends tt {
|
|
31873
31897
|
/**
|
|
31874
31898
|
* 获取对象的属性列表。
|
|
31875
31899
|
* @returns {Array<GroupProperty | BooleanProperty | EnumProperty | Number2Property>} 属性列表。
|
|
@@ -31889,7 +31913,7 @@ const jo = class jo extends et {
|
|
|
31889
31913
|
}
|
|
31890
31914
|
};
|
|
31891
31915
|
f(jo, "createDefaultProps", () => ({
|
|
31892
|
-
...
|
|
31916
|
+
...tt.createDefaultProps(),
|
|
31893
31917
|
/**
|
|
31894
31918
|
* 是否显示比例尺。
|
|
31895
31919
|
* @type {boolean}
|
|
@@ -31977,7 +32001,7 @@ const Vs = class Vs extends jt {
|
|
|
31977
32001
|
this.d(this.components.disposableAdd(this._classification)), this.d(this.components.disposableAdd(this._geoExtrudedPolygon, !0));
|
|
31978
32002
|
{
|
|
31979
32003
|
const { _classification: r, _geoExtrudedPolygon: i } = this;
|
|
31980
|
-
i.perPositionHeight = !0, this.d(k([r, "collision"], [this, "collision"])), this.d(k([i, "collision"], [this, "collision"])), this.d(
|
|
32004
|
+
i.perPositionHeight = !0, this.d(k([r, "collision"], [this, "collision"])), this.d(k([i, "collision"], [this, "collision"])), this.d(et([i, "flyInParam"], [this, "flyInParam"])), this.d(et([i, "flyToParam"], [this, "flyToParam"])), this.d(et([i, "points"], [this, "points"])), this.d(et([i, "extrudedHeight"], [this, "height"])), this.d(et([r, "fillColor"], [this, "overheightColor"])), this.d(et([i, "fillColor"], [this, "standardColor"]));
|
|
31981
32005
|
{
|
|
31982
32006
|
const s = () => {
|
|
31983
32007
|
const { height: o, points: a, maxHeight: u } = this;
|
|
@@ -32084,7 +32108,7 @@ const xn = class xn extends Bt {
|
|
|
32084
32108
|
f(this, "_data", this.dv(U(void 0)));
|
|
32085
32109
|
{
|
|
32086
32110
|
const r = () => {
|
|
32087
|
-
this.url && (typeof this.url == "object" ? this.data = this.url : ep(this.url) ? this.data = JSON.parse(this.url) : fetch(
|
|
32111
|
+
this.url && (typeof this.url == "object" ? this.data = this.url : ep(this.url) ? this.data = JSON.parse(this.url) : fetch(tt.context.getStrFromEnv(this.url)).then((i) => i.json()).then((i) => {
|
|
32088
32112
|
this.data = i;
|
|
32089
32113
|
}).catch((i) => {
|
|
32090
32114
|
console.warn("ESEntityCluster数据加载失败", i);
|
|
@@ -32210,7 +32234,7 @@ class pu extends Y {
|
|
|
32210
32234
|
};
|
|
32211
32235
|
r(), this.d(this.startTimeChanged.don(r)), this.d(this.stopTimeChanged.don(r));
|
|
32212
32236
|
}
|
|
32213
|
-
this.d(
|
|
32237
|
+
this.d(et([e, "playing"], [this, "playing"])), this.d(et([e, "loop"], [this, "loop"])), this.d(et([e, "speed"], [this, "speed"])), this.d(e.currentTimeChanged.don(() => {
|
|
32214
32238
|
this.startTime !== void 0 && e.currentTime !== void 0 && (this.currentTime = e.currentTime + this.startTime);
|
|
32215
32239
|
})), this.d(this.currentTimeChanged.don(() => {
|
|
32216
32240
|
if (this.currentTime === void 0 || this.startTime === void 0) return;
|
|
@@ -32249,7 +32273,7 @@ class pu extends Y {
|
|
|
32249
32273
|
}
|
|
32250
32274
|
((n) => {
|
|
32251
32275
|
n.createDefaultProps = () => ({
|
|
32252
|
-
...
|
|
32276
|
+
...tt.createDefaultProps(),
|
|
32253
32277
|
/**当前时间 */
|
|
32254
32278
|
currentTime: void 0,
|
|
32255
32279
|
/**开始时间 */
|
|
@@ -32265,7 +32289,7 @@ class pu extends Y {
|
|
|
32265
32289
|
});
|
|
32266
32290
|
})(pu || (pu = {}));
|
|
32267
32291
|
qi(pu.prototype, pu.createDefaultProps);
|
|
32268
|
-
const Uo = class Uo extends
|
|
32292
|
+
const Uo = class Uo extends tt {
|
|
32269
32293
|
/**
|
|
32270
32294
|
* 构造函数,初始化 ESPlayer 实例。
|
|
32271
32295
|
* @param id - 可选的实例 ID。
|
|
@@ -32277,7 +32301,7 @@ const Uo = class Uo extends et {
|
|
|
32277
32301
|
*/
|
|
32278
32302
|
f(this, "_absolutePlayer", this.dv(new pu()));
|
|
32279
32303
|
const r = this.absolutePlayer;
|
|
32280
|
-
this.d(
|
|
32304
|
+
this.d(et([r, "currentTime"], [this, "currentTime"])), this.d(et([r, "startTime"], [this, "startTime"])), this.d(et([r, "stopTime"], [this, "stopTime"])), this.d(et([r, "playing"], [this, "playing"])), this.d(et([r, "loop"], [this, "loop"])), this.d(et([r, "speed"], [this, "speed"]));
|
|
32281
32305
|
}
|
|
32282
32306
|
/**
|
|
32283
32307
|
* 获取 AbsolutePlayer 实例。
|
|
@@ -32313,7 +32337,7 @@ const Uo = class Uo extends et {
|
|
|
32313
32337
|
...e,
|
|
32314
32338
|
more: [
|
|
32315
32339
|
...e.more,
|
|
32316
|
-
new
|
|
32340
|
+
new Pc([this, "playing"], [this, "ratio"], [this, "loop"], "播放器"),
|
|
32317
32341
|
new Zo([this, "currentTime"], "currentTime"),
|
|
32318
32342
|
new Zo([this, "startTime"]),
|
|
32319
32343
|
new Zo([this, "stopTime"]),
|
|
@@ -32325,7 +32349,7 @@ const Uo = class Uo extends et {
|
|
|
32325
32349
|
}
|
|
32326
32350
|
};
|
|
32327
32351
|
f(Uo, "createDefaultProps", () => ({
|
|
32328
|
-
...
|
|
32352
|
+
...tt.createDefaultProps(),
|
|
32329
32353
|
/**当前时间*/
|
|
32330
32354
|
currentTime: 0,
|
|
32331
32355
|
/**开始时间*/
|
|
@@ -32400,17 +32424,17 @@ function n0(n, t, e) {
|
|
|
32400
32424
|
const u = n.timePosRots[a - 1][0], l = n.timePosRots[a][0], c = n.timePosRots[a + 1][0], h = n.accumDistances[a - 1], d = n.accumDistances[a], p = n.accumDistances[a + 1], v = d - h;
|
|
32401
32425
|
if (v !== 0) {
|
|
32402
32426
|
const C = v - (i ?? (t.length == 1 ? t[0] : t[a - 1] || t[t.length - 1]) * 0.5);
|
|
32403
|
-
let
|
|
32404
|
-
Number.isNaN(
|
|
32405
|
-
const m = (1 -
|
|
32427
|
+
let P = (C < 0 ? 0 : C) / v;
|
|
32428
|
+
Number.isNaN(P) && (P = 0);
|
|
32429
|
+
const m = (1 - P) * u + P * l, _ = n.getCurrent(m);
|
|
32406
32430
|
_ && s.push([m, _.position, _.rotation]);
|
|
32407
32431
|
}
|
|
32408
32432
|
e && s.push(n.timePosRots[a]);
|
|
32409
32433
|
const E = p - d;
|
|
32410
32434
|
if (E !== 0) {
|
|
32411
32435
|
let C = (t.length == 1 ? t[0] : t[a - 1] || t[t.length - 1]) * 0.5;
|
|
32412
|
-
const
|
|
32413
|
-
C +
|
|
32436
|
+
const P = (t.length == 1 ? t[0] : t[a] || t[t.length - 1]) * 0.5 || 0;
|
|
32437
|
+
C + P > E ? (C = E * (C / (C + P)), i = E - C) : i = void 0;
|
|
32414
32438
|
let m = (C < 0 ? 0 : C) / E;
|
|
32415
32439
|
Number.isNaN(m) && (m = 0);
|
|
32416
32440
|
const _ = (1 - m) * l + m * c, g = n.getCurrent(_);
|
|
@@ -32615,7 +32639,7 @@ timePosRots是一个内部包含三个元素的数组,第一个表示时间戳
|
|
|
32615
32639
|
this._scratchCurrentInfo.index = o, this._scratchCurrentInfo.position = a, this._scratchCurrentInfo.rotation = u, this._scratchCurrentInfo.ratio = l, this._currentInfo.value = this._scratchCurrentInfo;
|
|
32616
32640
|
}
|
|
32617
32641
|
};
|
|
32618
|
-
i(), this.currentTimeChanged.disposableOn(i), this.timePosRotsChanged.disposableOn(i), this.rotLerpModeChanged.disposableOn(i), this.dispose(
|
|
32642
|
+
i(), this.currentTimeChanged.disposableOn(i), this.timePosRotsChanged.disposableOn(i), this.rotLerpModeChanged.disposableOn(i), this.dispose(et([this._player, "loop"], [this, "loop"]));
|
|
32619
32643
|
{
|
|
32620
32644
|
const s = () => {
|
|
32621
32645
|
if (this.startTime === void 0 || this.currentTime === void 0) return;
|
|
@@ -32632,7 +32656,7 @@ timePosRots是一个内部包含三个元素的数组,第一个表示时间戳
|
|
|
32632
32656
|
};
|
|
32633
32657
|
s(), this.dispose(this._player.currentTimeChanged.disposableOn(s));
|
|
32634
32658
|
}
|
|
32635
|
-
this.dispose(
|
|
32659
|
+
this.dispose(et([this._player, "duration"], [this, "duration"])), this.dispose(et([this._player, "playing"], [this, "playing"])), this.dispose(et([this._player, "speed"], [this, "speed"]));
|
|
32636
32660
|
{
|
|
32637
32661
|
const s = () => {
|
|
32638
32662
|
(this.autoComputeTimeFromTimePosRots ?? !0) && this.computeTimeFromTimePosRots();
|
|
@@ -33200,7 +33224,7 @@ const Go = class Go extends ws {
|
|
|
33200
33224
|
};
|
|
33201
33225
|
f(Go, "createDefaultProps", () => ({
|
|
33202
33226
|
// 继承 ESGeoVector 的默认属性
|
|
33203
|
-
...
|
|
33227
|
+
...Pt.createDefaultProps(),
|
|
33204
33228
|
/**
|
|
33205
33229
|
* 时间序列,为一个可能未定义的数字数组。
|
|
33206
33230
|
*/
|
|
@@ -33626,7 +33650,7 @@ ${Eg}
|
|
|
33626
33650
|
`, ja = Date.now();
|
|
33627
33651
|
new Date(ja).toISOString();
|
|
33628
33652
|
new Date(ja + 24 * 60 * 60 * 1e3).toISOString();
|
|
33629
|
-
const Nn = class Nn extends
|
|
33653
|
+
const Nn = class Nn extends tt {
|
|
33630
33654
|
/**
|
|
33631
33655
|
* 构造函数,可传入对象的 ID
|
|
33632
33656
|
* @param id - 对象的唯一标识符,可选参数
|
|
@@ -33736,13 +33760,13 @@ f(Nn, "createDefaultProps", () => ({
|
|
|
33736
33760
|
shouldAnimate: !1,
|
|
33737
33761
|
/**加载函数字符串 */
|
|
33738
33762
|
loadFuncStr: void 0,
|
|
33739
|
-
...
|
|
33763
|
+
...tt.createDefaultProps()
|
|
33740
33764
|
})), /**
|
|
33741
33765
|
* 类的类型名称,用于注册和标识
|
|
33742
33766
|
*/
|
|
33743
33767
|
f(Nn, "type", Nn.register("ESCzml", Nn, { chsName: "ESCzml", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "Czml数据加载" }));
|
|
33744
33768
|
let Sd = Nn;
|
|
33745
|
-
const Wo = class Wo extends
|
|
33769
|
+
const Wo = class Wo extends tt {
|
|
33746
33770
|
/**
|
|
33747
33771
|
* 重写获取属性的方法,返回导航控件的属性列表。
|
|
33748
33772
|
* @returns 属性列表数组。
|
|
@@ -33763,7 +33787,7 @@ const Wo = class Wo extends et {
|
|
|
33763
33787
|
}
|
|
33764
33788
|
};
|
|
33765
33789
|
f(Wo, "createDefaultProps", () => ({
|
|
33766
|
-
...
|
|
33790
|
+
...tt.createDefaultProps(),
|
|
33767
33791
|
/**
|
|
33768
33792
|
* 是否显示导航控件,默认为true。
|
|
33769
33793
|
*/
|
|
@@ -33780,13 +33804,13 @@ f(Wo, "createDefaultProps", () => ({
|
|
|
33780
33804
|
* 图片地址,默认为ESNavigator的默认图片地址。
|
|
33781
33805
|
* @type {string}
|
|
33782
33806
|
*/
|
|
33783
|
-
imgUrl:
|
|
33807
|
+
imgUrl: tt.context.getStrFromEnv("${earthsdk3-assets-script-dir}/assets/img/zhinanzhen.png")
|
|
33784
33808
|
})), /**
|
|
33785
33809
|
* 静态属性,用于注册ESNavigator类,包含类型名称、中文名称、标签和描述信息。
|
|
33786
33810
|
*/
|
|
33787
33811
|
f(Wo, "type", Wo.register("ESNavigator", Wo, { chsName: "导航控件", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "导航控件" }));
|
|
33788
33812
|
let Cd = Wo;
|
|
33789
|
-
const si = class si extends
|
|
33813
|
+
const si = class si extends tt {
|
|
33790
33814
|
/**
|
|
33791
33815
|
* 构造函数,可传入一个可选的场景对象键。
|
|
33792
33816
|
* @param id - 场景对象键,可选参数。
|
|
@@ -33814,7 +33838,7 @@ const si = class si extends et {
|
|
|
33814
33838
|
}
|
|
33815
33839
|
};
|
|
33816
33840
|
f(si, "createDefaultProps", () => ({
|
|
33817
|
-
...
|
|
33841
|
+
...tt.createDefaultProps(),
|
|
33818
33842
|
/**
|
|
33819
33843
|
* 是否显示状态栏,默认为 true。
|
|
33820
33844
|
*/
|
|
@@ -33837,7 +33861,7 @@ f(si, "createDefaultProps", () => ({
|
|
|
33837
33861
|
*/
|
|
33838
33862
|
f(si, "type", si.register("ESViewerStatusBar", si, { chsName: "状态栏", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "状态栏" }));
|
|
33839
33863
|
let Id = si;
|
|
33840
|
-
const oi = class oi extends
|
|
33864
|
+
const oi = class oi extends tt {
|
|
33841
33865
|
/**
|
|
33842
33866
|
* 构造函数,创建 ESViewerStatusBarScale 实例。
|
|
33843
33867
|
* @param {SceneObjectKey} [id] - 场景对象的唯一标识符。
|
|
@@ -33866,7 +33890,7 @@ const oi = class oi extends et {
|
|
|
33866
33890
|
}
|
|
33867
33891
|
};
|
|
33868
33892
|
f(oi, "createDefaultProps", () => ({
|
|
33869
|
-
...
|
|
33893
|
+
...tt.createDefaultProps(),
|
|
33870
33894
|
/**
|
|
33871
33895
|
* 是否显示状态栏,默认为 true。
|
|
33872
33896
|
*/
|
|
@@ -33889,7 +33913,7 @@ f(oi, "createDefaultProps", () => ({
|
|
|
33889
33913
|
*
|
|
33890
33914
|
*/
|
|
33891
33915
|
f(oi, "type", oi.register("ESViewerStatusBarScale", oi, { chsName: "比例尺状态栏", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "状态栏" }));
|
|
33892
|
-
let
|
|
33916
|
+
let bd = oi;
|
|
33893
33917
|
const Xo = class Xo extends nt {
|
|
33894
33918
|
/**
|
|
33895
33919
|
* 构造函数,创建 ESGaussianSplatting 实例。
|
|
@@ -33909,7 +33933,7 @@ const Xo = class Xo extends nt {
|
|
|
33909
33933
|
...t,
|
|
33910
33934
|
basic: [
|
|
33911
33935
|
...t.basic,
|
|
33912
|
-
new
|
|
33936
|
+
new ft([this, "url"], "路径", "", !0),
|
|
33913
33937
|
new M([this, "progress"], "进度", 0, !1, !0)
|
|
33914
33938
|
]
|
|
33915
33939
|
};
|
|
@@ -33930,7 +33954,7 @@ f(Xo, "createDefaultProps", () => ({
|
|
|
33930
33954
|
* @type {any}
|
|
33931
33955
|
*/
|
|
33932
33956
|
f(Xo, "type", Xo.register("ESGaussianSplatting", Xo, { chsName: "高斯溅射模型", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "用于加载高斯溅射模型的 ES 对象" }));
|
|
33933
|
-
let
|
|
33957
|
+
let Pd = Xo;
|
|
33934
33958
|
const Bs = class Bs extends nt {
|
|
33935
33959
|
/**
|
|
33936
33960
|
* 构造函数,用于创建ESStaticMesh实例。
|
|
@@ -33949,7 +33973,7 @@ const Bs = class Bs extends nt {
|
|
|
33949
33973
|
...t,
|
|
33950
33974
|
basic: [
|
|
33951
33975
|
...t.basic,
|
|
33952
|
-
new
|
|
33976
|
+
new ft([this, "mesh"], "mesh地址", Bs.defaults.mesh)
|
|
33953
33977
|
]
|
|
33954
33978
|
};
|
|
33955
33979
|
}
|
|
@@ -33968,7 +33992,7 @@ f(Bs, "createDefaultProps", () => ({
|
|
|
33968
33992
|
*/
|
|
33969
33993
|
f(Bs, "type", Bs.register("ESStaticMesh", Bs, { chsName: "静态网格", tags: ["ESObjects", "_ES_Impl_UE"], description: "Unreal的Mesh对象" }));
|
|
33970
33994
|
let xd = Bs;
|
|
33971
|
-
const Yo = class Yo extends
|
|
33995
|
+
const Yo = class Yo extends Pt {
|
|
33972
33996
|
/**
|
|
33973
33997
|
* 构造函数,创建 ESSkylineAnalysis 实例。
|
|
33974
33998
|
* @param {SceneObjectKey} [id] - 可选的场景对象键。
|
|
@@ -34046,7 +34070,7 @@ const Yo = class Yo extends bt {
|
|
|
34046
34070
|
}
|
|
34047
34071
|
};
|
|
34048
34072
|
f(Yo, "createDefaultProps", () => ({
|
|
34049
|
-
...
|
|
34073
|
+
...Pt.createDefaultProps(),
|
|
34050
34074
|
/** 天际线分析结果的屏幕坐标数组 */
|
|
34051
34075
|
windowPositions: ug([]),
|
|
34052
34076
|
// 屏幕坐标数组,用于接收分析结果
|
|
@@ -34059,7 +34083,7 @@ f(Yo, "createDefaultProps", () => ({
|
|
|
34059
34083
|
*/
|
|
34060
34084
|
f(Yo, "type", Yo.register("ESSkylineAnalysis", Yo, { chsName: "天际线分析", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "分析类" }));
|
|
34061
34085
|
let Nd = Yo;
|
|
34062
|
-
const
|
|
34086
|
+
const bi = class bi extends Bt {
|
|
34063
34087
|
constructor(t) {
|
|
34064
34088
|
super(t);
|
|
34065
34089
|
}
|
|
@@ -34070,18 +34094,18 @@ const Pi = class Pi extends Bt {
|
|
|
34070
34094
|
basic: [
|
|
34071
34095
|
...t.basic,
|
|
34072
34096
|
new $([this, "data"], "数据", [], void 0, !0),
|
|
34073
|
-
new $([this, "gradient"], "渐变",
|
|
34074
|
-
new M([this, "radius"], "半径",
|
|
34075
|
-
new M([this, "blur"], "模糊",
|
|
34097
|
+
new $([this, "gradient"], "渐变", bi.defaults.gradient, void 0, !0),
|
|
34098
|
+
new M([this, "radius"], "半径", bi.defaults.radius, void 0, !0),
|
|
34099
|
+
new M([this, "blur"], "模糊", bi.defaults.blur, !0),
|
|
34076
34100
|
new q([this, "is3D"], "is3D", !1, !0)
|
|
34077
34101
|
]
|
|
34078
34102
|
};
|
|
34079
34103
|
}
|
|
34080
34104
|
};
|
|
34081
|
-
f(
|
|
34105
|
+
f(bi, "createDefaultProps", () => ({
|
|
34082
34106
|
...Bt.createDefaultProps(),
|
|
34083
34107
|
is3D: U(!1),
|
|
34084
|
-
data:
|
|
34108
|
+
data: bc([]),
|
|
34085
34109
|
gradient: Yt({
|
|
34086
34110
|
".5": "green",
|
|
34087
34111
|
".7": "yellow",
|
|
@@ -34089,22 +34113,22 @@ f(Pi, "createDefaultProps", () => ({
|
|
|
34089
34113
|
}),
|
|
34090
34114
|
radius: U(10),
|
|
34091
34115
|
blur: U(0.85)
|
|
34092
|
-
})), f(
|
|
34093
|
-
let wc =
|
|
34094
|
-
const zs = class zs extends
|
|
34116
|
+
})), f(bi, "type", bi.register("ESHeatMap", bi, { chsName: "热力图", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "用于热力图的显示" }));
|
|
34117
|
+
let wc = bi;
|
|
34118
|
+
const zs = class zs extends Pt {
|
|
34095
34119
|
constructor(e) {
|
|
34096
34120
|
super(e);
|
|
34097
34121
|
f(this, "editingBindMode", "scatter");
|
|
34098
34122
|
}
|
|
34099
34123
|
};
|
|
34100
34124
|
f(zs, "createDefaultProps", () => ({
|
|
34101
|
-
...
|
|
34125
|
+
...Pt.createDefaultProps(),
|
|
34102
34126
|
pointed: !0
|
|
34103
34127
|
})), f(zs, "type", zs.register("ESGeoPoints", zs, { chsName: "地理点集合", tags: ["ESObjects", "_ES_Impl_Cesium"], description: "地图中的可视化地理点集合" })), /**
|
|
34104
34128
|
* 支持的编辑模式,包含 ESVisualObject 支持的模式以及平移模式
|
|
34105
34129
|
*/
|
|
34106
34130
|
f(zs, "supportEditingModes", [
|
|
34107
|
-
...
|
|
34131
|
+
...Pt.supportEditingModes,
|
|
34108
34132
|
Q.ScatterAppend,
|
|
34109
34133
|
Q.ScatterModify
|
|
34110
34134
|
]);
|
|
@@ -34140,8 +34164,8 @@ const Td = async (n, t = [], e) => {
|
|
|
34140
34164
|
if (e.type === "absolute")
|
|
34141
34165
|
a = e.height ?? a;
|
|
34142
34166
|
else if (e.type === "relative") {
|
|
34143
|
-
const
|
|
34144
|
-
a = (e.height ?? a) +
|
|
34167
|
+
const P = await n.getTerrainHeight([i, s]) ?? 0;
|
|
34168
|
+
a = (e.height ?? a) + P;
|
|
34145
34169
|
} else e.type === "terrain" && (a = await n.getTerrainHeight([i, s]) ?? 0);
|
|
34146
34170
|
return {
|
|
34147
34171
|
...r,
|
|
@@ -34293,13 +34317,13 @@ function rh(n, t, e) {
|
|
|
34293
34317
|
}
|
|
34294
34318
|
function p0(n, t) {
|
|
34295
34319
|
function e(l, c, h, d) {
|
|
34296
|
-
const p = (y) => y * Math.PI / 180, v = (y) => y * 180 / Math.PI, E = p(l), C = p(h),
|
|
34320
|
+
const p = (y) => y * Math.PI / 180, v = (y) => y * 180 / Math.PI, E = p(l), C = p(h), P = p(d - c), m = Math.sin(P) * Math.cos(C), _ = Math.cos(E) * Math.sin(C) - Math.sin(E) * Math.cos(C) * Math.cos(P), g = Math.atan2(m, _);
|
|
34297
34321
|
return (v(g) + 360) % 360;
|
|
34298
34322
|
}
|
|
34299
34323
|
function r(l, c, h, d, p) {
|
|
34300
|
-
const E = (S) => S * Math.PI / 180, C = (S) => S * 180 / Math.PI,
|
|
34301
|
-
Math.sin(m) * Math.sin(
|
|
34302
|
-
Math.cos(
|
|
34324
|
+
const E = (S) => S * Math.PI / 180, C = (S) => S * 180 / Math.PI, P = d / 6371e3, m = E(p), _ = E(l), g = E(c), y = Math.asin(Math.sin(_) * Math.cos(P) + Math.cos(_) * Math.sin(P) * Math.cos(m)), w = g + Math.atan2(
|
|
34325
|
+
Math.sin(m) * Math.sin(P) * Math.cos(_),
|
|
34326
|
+
Math.cos(P) - Math.sin(_) * Math.sin(y)
|
|
34303
34327
|
);
|
|
34304
34328
|
return {
|
|
34305
34329
|
lat: C(y),
|
|
@@ -35114,7 +35138,7 @@ class I0 extends Y {
|
|
|
35114
35138
|
});
|
|
35115
35139
|
}
|
|
35116
35140
|
}
|
|
35117
|
-
class
|
|
35141
|
+
class b0 extends Y {
|
|
35118
35142
|
/**
|
|
35119
35143
|
* 构造函数,初始化 PathAnimationManager 实例。
|
|
35120
35144
|
* @param _objectManager - ESObjectsManager 实例,用于获取动画播放器。
|
|
@@ -35133,9 +35157,9 @@ class P0 extends Y {
|
|
|
35133
35157
|
if (this.channels.length === 0) return;
|
|
35134
35158
|
const r = [];
|
|
35135
35159
|
for (let i = 0; i < this.channels.length; i++) {
|
|
35136
|
-
const s = this.channels[i], o =
|
|
35160
|
+
const s = this.channels[i], o = tt.getSceneObjById(s.pathId);
|
|
35137
35161
|
if (!o || !(o instanceof mu)) continue;
|
|
35138
|
-
const u = s.sceneObjectIds.map((l) =>
|
|
35162
|
+
const u = s.sceneObjectIds.map((l) => tt.getSceneObjById(l)).filter((l) => l !== void 0);
|
|
35139
35163
|
u.length !== 0 && r.push({ path: o, sceneObjects: u });
|
|
35140
35164
|
}
|
|
35141
35165
|
if (r.length !== 0)
|
|
@@ -35178,7 +35202,7 @@ function Vu(n) {
|
|
|
35178
35202
|
}
|
|
35179
35203
|
}
|
|
35180
35204
|
}
|
|
35181
|
-
function
|
|
35205
|
+
function P0(n, t) {
|
|
35182
35206
|
const {
|
|
35183
35207
|
property: e,
|
|
35184
35208
|
customEventName: r,
|
|
@@ -35186,7 +35210,7 @@ function b0(n, t) {
|
|
|
35186
35210
|
} = t, { dragstartDataMananger: s } = n;
|
|
35187
35211
|
if (!(e instanceof Ha)) {
|
|
35188
35212
|
if (!(e instanceof dm)) {
|
|
35189
|
-
if (e instanceof
|
|
35213
|
+
if (e instanceof ft) {
|
|
35190
35214
|
const [o, a] = Us(e.reactVar);
|
|
35191
35215
|
if (r === "ondragover") {
|
|
35192
35216
|
if (console.log("ondragover"), !i) throw new Error("!otherParams");
|
|
@@ -35285,7 +35309,7 @@ class T0 extends Y {
|
|
|
35285
35309
|
const [i, s] = e;
|
|
35286
35310
|
i[s] = !0;
|
|
35287
35311
|
}
|
|
35288
|
-
})),
|
|
35312
|
+
})), tt.context.sceneObjCreatedEvent.don((e) => {
|
|
35289
35313
|
e.dv(new N0(e, this));
|
|
35290
35314
|
});
|
|
35291
35315
|
}
|
|
@@ -35374,7 +35398,17 @@ class O0 extends Y {
|
|
|
35374
35398
|
* @returns {T | undefined} 如果创建成功返回场景对象,否则返回 undefined。
|
|
35375
35399
|
*/
|
|
35376
35400
|
createSceneObject(e, r) {
|
|
35377
|
-
const i =
|
|
35401
|
+
const i = tt.context.createSceneObject(e, r);
|
|
35402
|
+
return i && this.addSceneObject(i), i;
|
|
35403
|
+
}
|
|
35404
|
+
/**
|
|
35405
|
+
* 根据 URL 创建场景对象。
|
|
35406
|
+
* @param url - 场景对象的 URL。
|
|
35407
|
+
* @param id - 场景对象的 ID,可选。
|
|
35408
|
+
* @returns 创建的场景对象。
|
|
35409
|
+
*/
|
|
35410
|
+
createSceneObjectFromUrl(e, r) {
|
|
35411
|
+
const i = tt.context.createSceneObjectFromUrl(e, r);
|
|
35378
35412
|
return i && this.addSceneObject(i), i;
|
|
35379
35413
|
}
|
|
35380
35414
|
/**
|
|
@@ -35384,7 +35418,7 @@ class O0 extends Y {
|
|
|
35384
35418
|
* @returns {T | undefined} 如果创建成功返回场景对象,否则返回 undefined。
|
|
35385
35419
|
*/
|
|
35386
35420
|
createSceneObjectFromClass(e, r) {
|
|
35387
|
-
const i =
|
|
35421
|
+
const i = tt.context.createSceneObjectFromClass(e, r);
|
|
35388
35422
|
return i && this.addSceneObject(i), i;
|
|
35389
35423
|
}
|
|
35390
35424
|
/**
|
|
@@ -35393,7 +35427,7 @@ class O0 extends Y {
|
|
|
35393
35427
|
* @returns {T | undefined} 如果创建成功返回场景对象,否则返回 undefined。
|
|
35394
35428
|
*/
|
|
35395
35429
|
createSceneObjectFromJson(e) {
|
|
35396
|
-
const r =
|
|
35430
|
+
const r = tt.context.createSceneObjectFromJson(e);
|
|
35397
35431
|
return r && this.addSceneObject(r), r;
|
|
35398
35432
|
}
|
|
35399
35433
|
}
|
|
@@ -35686,8 +35720,8 @@ class B0 extends Y {
|
|
|
35686
35720
|
const [y, w] = Yi(g, r);
|
|
35687
35721
|
this._viewer.pointerOutEvent.emit({ screenPosition: [y + E, w + C], pointerEvent: g });
|
|
35688
35722
|
}));
|
|
35689
|
-
const
|
|
35690
|
-
this.d(
|
|
35723
|
+
const P = this.dv(Xi.create(e, "keydown"));
|
|
35724
|
+
this.d(P.don((g) => this._viewer.keyDownEvent.emit(g)));
|
|
35691
35725
|
const m = this.dv(Xi.create(e, "keyup"));
|
|
35692
35726
|
this.d(m.don((g) => this._viewer.keyUpEvent.emit(g)));
|
|
35693
35727
|
const _ = this.dv(Xi.create(e, "wheel"));
|
|
@@ -35738,7 +35772,7 @@ class j0 extends Y {
|
|
|
35738
35772
|
this.rollerShutterAnalysis = this.ad(new z0(e));
|
|
35739
35773
|
}
|
|
35740
35774
|
}
|
|
35741
|
-
const
|
|
35775
|
+
const Pi = class Pi extends Y {
|
|
35742
35776
|
/**
|
|
35743
35777
|
* 构造函数,初始化视口。
|
|
35744
35778
|
* @param option 视口的选项。
|
|
@@ -35830,7 +35864,7 @@ const bi = class bi extends Y {
|
|
|
35830
35864
|
/**
|
|
35831
35865
|
* 视口的状态信息。
|
|
35832
35866
|
*/
|
|
35833
|
-
f(this, "_statusInfo",
|
|
35867
|
+
f(this, "_statusInfo", Pi.defaults.statusInfo);
|
|
35834
35868
|
/**
|
|
35835
35869
|
* 导航模式,使用响应式变量存储。
|
|
35836
35870
|
*/
|
|
@@ -36153,7 +36187,7 @@ const bi = class bi extends Y {
|
|
|
36153
36187
|
add(...e) {
|
|
36154
36188
|
for (let r of e)
|
|
36155
36189
|
if (!this.has(r)) {
|
|
36156
|
-
|
|
36190
|
+
tt.context.addSceneObject(r);
|
|
36157
36191
|
const i = $o.context.createEngineObject(r, this);
|
|
36158
36192
|
i && this._sceneObjectsMap.set(r, i), r.viewerAttached.emit(this);
|
|
36159
36193
|
}
|
|
@@ -36166,7 +36200,7 @@ const bi = class bi extends Y {
|
|
|
36166
36200
|
for (let r of e)
|
|
36167
36201
|
if (this.has(r)) {
|
|
36168
36202
|
const i = this._sceneObjectsMap.get(r);
|
|
36169
|
-
i && i.destroy(),
|
|
36203
|
+
i && i.destroy(), tt.context.deleteSceneObject(r), this._sceneObjectsMap.delete(r), r.viewerDetached.emit(this);
|
|
36170
36204
|
}
|
|
36171
36205
|
}
|
|
36172
36206
|
/**
|
|
@@ -36226,7 +36260,7 @@ const bi = class bi extends Y {
|
|
|
36226
36260
|
* 获取视口的默认属性。
|
|
36227
36261
|
*/
|
|
36228
36262
|
get defaultProps() {
|
|
36229
|
-
return
|
|
36263
|
+
return Pi.createDefaultProps();
|
|
36230
36264
|
}
|
|
36231
36265
|
/**
|
|
36232
36266
|
* 获取视口的 JSON 表示。
|
|
@@ -36508,13 +36542,13 @@ const bi = class bi extends Y {
|
|
|
36508
36542
|
/**
|
|
36509
36543
|
* 视口的上下文对象。
|
|
36510
36544
|
*/
|
|
36511
|
-
f(
|
|
36545
|
+
f(Pi, "context", new V0()), /**
|
|
36512
36546
|
* 注册视口的方法。
|
|
36513
36547
|
*/
|
|
36514
|
-
f(
|
|
36548
|
+
f(Pi, "register", Pi.context.register.bind(Pi.context)), /**
|
|
36515
36549
|
* 视口的默认属性。
|
|
36516
36550
|
*/
|
|
36517
|
-
f(
|
|
36551
|
+
f(Pi, "defaults", {
|
|
36518
36552
|
show: !0,
|
|
36519
36553
|
debug: !1,
|
|
36520
36554
|
statusInfo: {
|
|
@@ -36553,7 +36587,7 @@ f(bi, "defaults", {
|
|
|
36553
36587
|
splitPosition: 0,
|
|
36554
36588
|
cameraMovableRegion: [0, 0, 0, 0, 0, 0]
|
|
36555
36589
|
});
|
|
36556
|
-
let yi =
|
|
36590
|
+
let yi = Pi;
|
|
36557
36591
|
((n) => {
|
|
36558
36592
|
n.createBaseProps = () => ({
|
|
36559
36593
|
/**
|
|
@@ -36973,13 +37007,13 @@ class Gs extends Y {
|
|
|
36973
37007
|
* 路径动画管理器。
|
|
36974
37008
|
* 包含通道信息、播放器信息,指定的 ID 的场景对象必须拥有 position 和 rotation 属性,路径类型为 ESPath。
|
|
36975
37009
|
*/
|
|
36976
|
-
f(this, "_pathAnimationManager", this.dv(new
|
|
37010
|
+
f(this, "_pathAnimationManager", this.dv(new b0(this)));
|
|
36977
37011
|
}
|
|
36978
37012
|
/**
|
|
36979
37013
|
* 获取所有环境变量的静态属性。
|
|
36980
37014
|
*/
|
|
36981
37015
|
static get envs() {
|
|
36982
|
-
return
|
|
37016
|
+
return tt.context.environmentVariables;
|
|
36983
37017
|
}
|
|
36984
37018
|
/**
|
|
36985
37019
|
* 根据对象 ID 获取场景对象。
|
|
@@ -36987,7 +37021,7 @@ class Gs extends Y {
|
|
|
36987
37021
|
* @returns 对应的场景对象或者undefined。
|
|
36988
37022
|
*/
|
|
36989
37023
|
getSceneObjectById(e) {
|
|
36990
|
-
return
|
|
37024
|
+
return tt.getSceneObjectById(e);
|
|
36991
37025
|
}
|
|
36992
37026
|
/**
|
|
36993
37027
|
* 获取场景对象。
|
|
@@ -36995,13 +37029,13 @@ class Gs extends Y {
|
|
|
36995
37029
|
* @returns 单个场景对象、场景对象数组或undefined。
|
|
36996
37030
|
*/
|
|
36997
37031
|
getSceneObject(e) {
|
|
36998
|
-
return
|
|
37032
|
+
return tt.getSceneObject(e);
|
|
36999
37033
|
}
|
|
37000
37034
|
/**
|
|
37001
37035
|
* 获取场景对象的引用。
|
|
37002
37036
|
*/
|
|
37003
37037
|
get $refs() {
|
|
37004
|
-
return
|
|
37038
|
+
return tt.$refs;
|
|
37005
37039
|
}
|
|
37006
37040
|
/**
|
|
37007
37041
|
* 获取拖动开始数据管理器。
|
|
@@ -37138,7 +37172,7 @@ class Gs extends Y {
|
|
|
37138
37172
|
* @returns 回调结果。
|
|
37139
37173
|
*/
|
|
37140
37174
|
propTreeCallback(e) {
|
|
37141
|
-
return
|
|
37175
|
+
return P0(this, e);
|
|
37142
37176
|
}
|
|
37143
37177
|
/**
|
|
37144
37178
|
* 获取所有场景树。
|
|
@@ -37272,6 +37306,15 @@ class Gs extends Y {
|
|
|
37272
37306
|
createSceneObject(e, r) {
|
|
37273
37307
|
return this._sobjm.createSceneObject(e, r);
|
|
37274
37308
|
}
|
|
37309
|
+
/**
|
|
37310
|
+
* 根据 URL 创建场景对象。
|
|
37311
|
+
* @param url - 场景对象的 URL。
|
|
37312
|
+
* @param id - 场景对象的 ID,可选。
|
|
37313
|
+
* @returns 创建的场景对象。
|
|
37314
|
+
*/
|
|
37315
|
+
createSceneObjectFromUrl(e, r) {
|
|
37316
|
+
return this._sobjm.createSceneObjectFromUrl(e, r);
|
|
37317
|
+
}
|
|
37275
37318
|
/**
|
|
37276
37319
|
* 根据类构造函数创建场景对象。
|
|
37277
37320
|
* @param sceneObjConstructor - 场景对象的构造函数。
|
|
@@ -37333,15 +37376,15 @@ class Gs extends Y {
|
|
|
37333
37376
|
* @param id - 对象的 ID。
|
|
37334
37377
|
* @returns 对应的场景对象。
|
|
37335
37378
|
*/
|
|
37336
|
-
f(Gs, "getSceneObjById",
|
|
37379
|
+
f(Gs, "getSceneObjById", tt.context.getSceneObjectById.bind(tt.context)), /**
|
|
37337
37380
|
* 获取环境变量的静态方法。
|
|
37338
37381
|
* @returns 当前的环境变量。
|
|
37339
37382
|
*/
|
|
37340
|
-
f(Gs, "getEnv",
|
|
37383
|
+
f(Gs, "getEnv", tt.context.getEnv.bind(tt.context)), /**
|
|
37341
37384
|
* 设置环境变量的静态方法。
|
|
37342
37385
|
* @param env - 要设置的环境变量。
|
|
37343
37386
|
*/
|
|
37344
|
-
f(Gs, "setEnv",
|
|
37387
|
+
f(Gs, "setEnv", tt.context.setEnv.bind(tt.context));
|
|
37345
37388
|
((n) => {
|
|
37346
37389
|
n.createDefaultProps = () => ({});
|
|
37347
37390
|
})(Gs || (Gs = {}));
|
|
@@ -37369,10 +37412,10 @@ export {
|
|
|
37369
37412
|
Sf as ESApertureEffect,
|
|
37370
37413
|
Cf as ESAreaMeasurement,
|
|
37371
37414
|
If as ESBlastParticleSystem,
|
|
37372
|
-
|
|
37415
|
+
bf as ESBoxClipping,
|
|
37373
37416
|
hc as ESCameraView,
|
|
37374
37417
|
fc as ESCameraViewCollection,
|
|
37375
|
-
|
|
37418
|
+
Pf as ESCameraVisibleRange,
|
|
37376
37419
|
dc as ESCar,
|
|
37377
37420
|
Ed as ESCityBasePoint,
|
|
37378
37421
|
pc as ESClassification,
|
|
@@ -37389,7 +37432,7 @@ export {
|
|
|
37389
37432
|
Fd as ESFeatureLayer,
|
|
37390
37433
|
Of as ESFireParticleSystem,
|
|
37391
37434
|
Mf as ESForestTileset,
|
|
37392
|
-
|
|
37435
|
+
Pd as ESGaussianSplatting,
|
|
37393
37436
|
Df as ESGeoDiv,
|
|
37394
37437
|
wd as ESGeoDivTextPoi,
|
|
37395
37438
|
Ca as ESGeoExtrudedPolygon,
|
|
@@ -37398,7 +37441,7 @@ export {
|
|
|
37398
37441
|
hl as ESGeoPoints,
|
|
37399
37442
|
jt as ESGeoPolygon,
|
|
37400
37443
|
Lf as ESGeoRectangle,
|
|
37401
|
-
|
|
37444
|
+
Pt as ESGeoVector,
|
|
37402
37445
|
sd as ESGeoWater,
|
|
37403
37446
|
oo as ESGltfModel,
|
|
37404
37447
|
wc as ESHeatMap,
|
|
@@ -37444,7 +37487,7 @@ export {
|
|
|
37444
37487
|
dd as ESRtsFeatureEditing,
|
|
37445
37488
|
fd as ESRtsTileset,
|
|
37446
37489
|
vd as ESScale,
|
|
37447
|
-
|
|
37490
|
+
tt as ESSceneObject,
|
|
37448
37491
|
Aw as ESSceneObjectWithId,
|
|
37449
37492
|
Bf as ESSeparateFoliage,
|
|
37450
37493
|
Nd as ESSkylineAnalysis,
|
|
@@ -37461,7 +37504,7 @@ export {
|
|
|
37461
37504
|
Xf as ESViewShed,
|
|
37462
37505
|
yi as ESViewer,
|
|
37463
37506
|
Id as ESViewerStatusBar,
|
|
37464
|
-
|
|
37507
|
+
bd as ESViewerStatusBarScale,
|
|
37465
37508
|
ud as ESVisibilityAnalysis,
|
|
37466
37509
|
Bt as ESVisualObject,
|
|
37467
37510
|
ld as ESVolumeMeasurement,
|
|
@@ -37498,12 +37541,12 @@ export {
|
|
|
37498
37541
|
Yd as ObjPool,
|
|
37499
37542
|
$l as ObservableSet,
|
|
37500
37543
|
cm as ParamsProperty,
|
|
37501
|
-
|
|
37544
|
+
Pw as PickedInfo,
|
|
37502
37545
|
hi as Player,
|
|
37503
|
-
|
|
37546
|
+
Pc as PlayerProperty,
|
|
37504
37547
|
Ha as PositionProperty,
|
|
37505
37548
|
dm as PositionsProperty,
|
|
37506
|
-
|
|
37549
|
+
bw as PositionsSetPropety,
|
|
37507
37550
|
m_ as PropTree,
|
|
37508
37551
|
hu as PropUiTreeManager,
|
|
37509
37552
|
qs as Property,
|
|
@@ -37525,7 +37568,7 @@ export {
|
|
|
37525
37568
|
uw as String4sProperty,
|
|
37526
37569
|
vw as StringNumberProperty,
|
|
37527
37570
|
yw as StringNumbersProperty,
|
|
37528
|
-
|
|
37571
|
+
ft as StringProperty,
|
|
37529
37572
|
am as StringsProperty,
|
|
37530
37573
|
Em as TreeItemDragDrop,
|
|
37531
37574
|
vl as UriProperty,
|