@vsleem-realsee-viewer/shared 2.0.26 → 2.0.28
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/index.d.ts +84 -5
- package/dist/index.mjs +392 -333
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,16 +1,47 @@
|
|
|
1
|
-
var
|
|
2
|
-
const
|
|
1
|
+
var P = /* @__PURE__ */ ((s) => (s[s.CADModel = 5] = "CADModel", s[s.BIMModel = 6] = "BIMModel", s[s.ForgeModel = 7] = "ForgeModel", s[s.ThreeDModel = 8] = "ThreeDModel", s[s.GeoModel = 9] = "GeoModel", s[s.ScaleModel = 101] = "ScaleModel", s))(P || {}), rt = /* @__PURE__ */ ((s) => (s[s.Global = 0] = "Global", s))(rt || {}), v = /* @__PURE__ */ ((s) => (s[s.Space = 0] = "Space", s[s.Model = 1] = "Model", s[s.Data = 2] = "Data", s))(v || {}), G = /* @__PURE__ */ ((s) => (s[s.Used = 0] = "Used", s[s.Enabled = 1] = "Enabled", s[s.Disabled = 2] = "Disabled", s))(G || {}), F = /* @__PURE__ */ ((s) => (s[s.SUCCESS = 200] = "SUCCESS", s[s.ERROR = -1] = "ERROR", s[s.TIMEOUT = 401] = "TIMEOUT", s))(F || {}), M = /* @__PURE__ */ ((s) => (s.GET = "GET", s.POST = "POST", s))(M || {}), L = /* @__PURE__ */ ((s) => (s.JSON = "application/json", s.FORM_URLENCODED = "application/x-www-form-urlencoded;charset=UTF-8", s.FORM_DATA = "multipart/form-data;charset=UTF-8", s.OCTET_STREAM = "'application/octet-stream", s))(L || {}), at = /* @__PURE__ */ ((s) => (s.Hw = "huawei", s.Ali = "aliyun", s.Hs = "hs", s.Aws = "amazon", s.Minio = "minio", s))(at || {}), Y = /* @__PURE__ */ ((s) => (s.en_US = "en-US", s.zh_CN = "zh-CN", s.ja_JP = "ja-JP", s))(Y || {}), g = /* @__PURE__ */ ((s) => (s.WGS84 = "WGS84", s.WGS1984 = "WGS84", s.EPSG4326 = "WGS84", s.GCJ02 = "GCJ02", s.AMap = "GCJ02", s.BD09 = "BD09", s.BD09LL = "BD09", s.Baidu = "BD09", s.BMap = "BD09", s.BD09MC = "BD09MC", s.BD09Meter = "BD09MC", s.EPSG3857 = "EPSG3857", s.EPSG900913 = "EPSG3857", s.EPSG102100 = "EPSG3857", s.WebMercator = "EPSG3857", s.WM = "EPSG3857", s))(g || {}), p = /* @__PURE__ */ ((s) => (s[s.GeoPointNoPlane = 9e3] = "GeoPointNoPlane", s[s.PointUnmappedGIS = 9010] = "PointUnmappedGIS", s[s.PointNoXYZ = 9011] = "PointNoXYZ", s[s.PointNoPlane = 9012] = "PointNoPlane", s[s.RelativePlaneUnmatch = 9020] = "RelativePlaneUnmatch", s[s.RelativeNoPlane = 9021] = "RelativeNoPlane", s[s.RelativeJsonError = 9022] = "RelativeJsonError", s[s.RequestCodeError = 9030] = "RequestCodeError", s[s.RequestResultError = 9031] = "RequestResultError", s[s.RequestUnknownError = 9032] = "RequestUnknownError", s))(p || {});
|
|
2
|
+
const ht = {
|
|
3
3
|
baseUrl: "https://vsleem.com/api",
|
|
4
4
|
authorizeCode: ""
|
|
5
|
-
},
|
|
5
|
+
}, ct = {
|
|
6
6
|
isTransformResponse: !0,
|
|
7
7
|
joinBaseUrl: !0,
|
|
8
8
|
withAuthorize: !0
|
|
9
|
-
},
|
|
9
|
+
}, lt = {
|
|
10
10
|
url: "",
|
|
11
|
-
method:
|
|
11
|
+
method: M.GET,
|
|
12
12
|
headers: {}
|
|
13
|
-
}
|
|
13
|
+
}, ut = [
|
|
14
|
+
{
|
|
15
|
+
name: "GAODE",
|
|
16
|
+
patterns: ["amap", "amap.com", "autonavi.com", "restapi.amap.com", "tiles.amap.com"],
|
|
17
|
+
CRSTypes: [g.GCJ02, g.WGS84]
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: "BAIDU",
|
|
21
|
+
patterns: ["baidu", "baidu.com", "bdimg.com"],
|
|
22
|
+
CRSTypes: [g.BD09, g.WGS84]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: "TENCENT",
|
|
26
|
+
patterns: ["qq.com", "map.qq.com", "map.gtimg.com"],
|
|
27
|
+
CRSTypes: [g.GCJ02, g.WGS84]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: "TIANDITU",
|
|
31
|
+
patterns: ["tianditu", "tianditu.gov.cn"],
|
|
32
|
+
CRSTypes: [g.WGS84, g.WGS84]
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: "GOOGLE",
|
|
36
|
+
patterns: ["google", "googleapis", "google.com"],
|
|
37
|
+
CRSTypes: [g.GCJ02, g.WGS84]
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: "OPENSTREET",
|
|
41
|
+
patterns: ["openstreetmap", "openstreetmap.org"],
|
|
42
|
+
CRSTypes: [g.WGS84, g.WGS84]
|
|
43
|
+
}
|
|
44
|
+
];
|
|
14
45
|
class w extends Error {
|
|
15
46
|
constructor(t, e, i) {
|
|
16
47
|
super(e), this.code = t, this.message = e, this.details = i, this.name = "Apprror", Object.setPrototypeOf(this, w.prototype);
|
|
@@ -25,193 +56,254 @@ class w extends Error {
|
|
|
25
56
|
};
|
|
26
57
|
}
|
|
27
58
|
}
|
|
28
|
-
const
|
|
29
|
-
function
|
|
30
|
-
const { baseUrl: t, authorizeCode: e } = s;
|
|
31
|
-
Object.assign(
|
|
59
|
+
const _ = { ...ht };
|
|
60
|
+
function dt(s) {
|
|
61
|
+
const { baseUrl: t, authorizeCode: e, locale: i } = s;
|
|
62
|
+
Object.assign(_, { baseUrl: t, authorizeCode: e, locale: i });
|
|
32
63
|
}
|
|
33
|
-
async function
|
|
34
|
-
const e = { ...
|
|
64
|
+
async function T(s, t) {
|
|
65
|
+
const e = { ...ct, ...t }, i = { ...lt, ...s };
|
|
35
66
|
try {
|
|
36
|
-
const n =
|
|
37
|
-
return
|
|
67
|
+
const n = ft(i, e), { url: o, ...r } = n, h = await (await window.fetch(o, r)).json();
|
|
68
|
+
return mt(h, e);
|
|
38
69
|
} catch (n) {
|
|
39
|
-
return
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
function
|
|
43
|
-
const { baseUrl: e, authorizeCode: i } =
|
|
44
|
-
let { url:
|
|
45
|
-
|
|
46
|
-
const
|
|
47
|
-
if (/^https?:\/\/.+$/i.test(e ?? "") ?
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
let
|
|
52
|
-
return
|
|
53
|
-
url:
|
|
54
|
-
method:
|
|
55
|
-
headers:
|
|
56
|
-
body:
|
|
70
|
+
return yt(n);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
function ft(s, t) {
|
|
74
|
+
const { baseUrl: e, authorizeCode: i, locale: n = Y.zh_CN } = _, { joinBaseUrl: o, withAuthorize: r } = t;
|
|
75
|
+
let { url: a, method: h, headers: l = {}, params: c, data: u } = s;
|
|
76
|
+
o && e && (a = `${e}${a}`), h = h?.toUpperCase();
|
|
77
|
+
const d = { ...l };
|
|
78
|
+
if (/^https?:\/\/.+$/i.test(e ?? "") ? d.PlatForm = new URL(e ?? "").host : d.PlatForm = new URL(window.location.href).host, r && i && (d.AuthorizationCode = i), h === M.POST && !d["Content-Type"] && (d["Content-Type"] = L.JSON), n && (d["Accept-Language"] = n), h === M.GET && c) {
|
|
79
|
+
const S = new URLSearchParams(c), ot = a.includes("?") ? "&" : "?";
|
|
80
|
+
a += ot + `${S.toString()}`;
|
|
81
|
+
}
|
|
82
|
+
let b;
|
|
83
|
+
return h === M.POST && (b = d["Content-Type"] === L.JSON ? JSON.stringify(u || {}) : u), {
|
|
84
|
+
url: a,
|
|
85
|
+
method: h,
|
|
86
|
+
headers: d,
|
|
87
|
+
body: b
|
|
57
88
|
};
|
|
58
89
|
}
|
|
59
|
-
function
|
|
90
|
+
function mt(s, t) {
|
|
60
91
|
if (!t.isTransformResponse)
|
|
61
92
|
return s;
|
|
62
93
|
if (!s)
|
|
63
94
|
throw new w(p.RequestResultError, "请求返回的结果错误");
|
|
64
95
|
const { code: e, data: i, msg: n } = s;
|
|
65
|
-
if (e ===
|
|
96
|
+
if (e === F.SUCCESS)
|
|
66
97
|
return i;
|
|
67
98
|
throw new w(p.RequestCodeError, n || "请求返回的Code错误");
|
|
68
99
|
}
|
|
69
|
-
function
|
|
100
|
+
function yt(s) {
|
|
70
101
|
throw s instanceof Error ? s : new w(
|
|
71
102
|
p.RequestUnknownError,
|
|
72
103
|
typeof s == "string" ? s : "未知的请求错误"
|
|
73
104
|
);
|
|
74
105
|
}
|
|
75
|
-
const
|
|
106
|
+
const Bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
76
107
|
__proto__: null,
|
|
77
|
-
request:
|
|
78
|
-
setRequestGlobalConfig:
|
|
108
|
+
request: T,
|
|
109
|
+
setRequestGlobalConfig: dt
|
|
79
110
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
80
|
-
function
|
|
81
|
-
return
|
|
111
|
+
function $(s, t) {
|
|
112
|
+
return T(
|
|
82
113
|
{
|
|
83
114
|
url: "/project/jssdk/cs/list",
|
|
84
|
-
method:
|
|
115
|
+
method: M.GET,
|
|
85
116
|
params: s
|
|
86
117
|
},
|
|
87
118
|
t
|
|
88
119
|
);
|
|
89
120
|
}
|
|
90
|
-
function
|
|
91
|
-
return
|
|
121
|
+
function J(s, t) {
|
|
122
|
+
return T(
|
|
92
123
|
{
|
|
93
124
|
url: "/project/jssdk/cs/bind",
|
|
94
|
-
method:
|
|
125
|
+
method: M.POST,
|
|
95
126
|
data: s
|
|
96
127
|
},
|
|
97
128
|
t
|
|
98
129
|
);
|
|
99
130
|
}
|
|
100
131
|
function A(s, t) {
|
|
101
|
-
return
|
|
132
|
+
return T(
|
|
102
133
|
{
|
|
103
134
|
url: "/project/jssdk/cs/save",
|
|
104
|
-
method:
|
|
135
|
+
method: M.POST,
|
|
105
136
|
data: s
|
|
106
137
|
},
|
|
107
138
|
t
|
|
108
139
|
);
|
|
109
140
|
}
|
|
110
|
-
function
|
|
111
|
-
return
|
|
141
|
+
function q(s, t) {
|
|
142
|
+
return T(
|
|
112
143
|
{
|
|
113
144
|
url: "/project/jssdk/cs/delete",
|
|
114
|
-
method:
|
|
145
|
+
method: M.POST,
|
|
115
146
|
data: s
|
|
116
147
|
},
|
|
117
148
|
t
|
|
118
149
|
);
|
|
119
150
|
}
|
|
120
|
-
function
|
|
121
|
-
return
|
|
151
|
+
function W(s, t) {
|
|
152
|
+
return T(
|
|
122
153
|
{
|
|
123
154
|
url: "/project/jssdk/cs/mapping",
|
|
124
|
-
method:
|
|
155
|
+
method: M.POST,
|
|
125
156
|
data: s
|
|
126
157
|
},
|
|
127
158
|
t
|
|
128
159
|
);
|
|
129
160
|
}
|
|
130
|
-
function
|
|
131
|
-
return
|
|
161
|
+
function Z(s, t) {
|
|
162
|
+
return T(
|
|
132
163
|
{
|
|
133
164
|
url: "/project/jssdk/cs/mapping/query",
|
|
134
|
-
method:
|
|
165
|
+
method: M.GET,
|
|
135
166
|
params: s
|
|
136
167
|
},
|
|
137
168
|
t
|
|
138
169
|
);
|
|
139
170
|
}
|
|
140
|
-
function
|
|
171
|
+
function V(s, t) {
|
|
172
|
+
return T(
|
|
173
|
+
{
|
|
174
|
+
url: "/project/jssdk/project/detail",
|
|
175
|
+
method: M.GET,
|
|
176
|
+
params: s
|
|
177
|
+
},
|
|
178
|
+
t
|
|
179
|
+
);
|
|
180
|
+
}
|
|
181
|
+
function wt(s, t = {
|
|
141
182
|
isTransformResponse: !1,
|
|
142
183
|
joinBaseUrl: !1,
|
|
143
184
|
withAuthorize: !1
|
|
144
185
|
}) {
|
|
145
|
-
return
|
|
186
|
+
return T(
|
|
146
187
|
{
|
|
147
188
|
url: s,
|
|
148
|
-
method:
|
|
189
|
+
method: M.GET
|
|
149
190
|
},
|
|
150
191
|
t
|
|
151
192
|
);
|
|
152
193
|
}
|
|
153
|
-
const
|
|
194
|
+
const Ut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
154
195
|
__proto__: null,
|
|
155
|
-
bindCoordinate:
|
|
156
|
-
getCoordinateList:
|
|
157
|
-
getImageInfo:
|
|
158
|
-
getMappingRelation:
|
|
159
|
-
|
|
160
|
-
|
|
196
|
+
bindCoordinate: J,
|
|
197
|
+
getCoordinateList: $,
|
|
198
|
+
getImageInfo: wt,
|
|
199
|
+
getMappingRelation: Z,
|
|
200
|
+
getProjectDetail: V,
|
|
201
|
+
mapingCoordinate: W,
|
|
202
|
+
removeCoordinate: q,
|
|
161
203
|
saveCoordinate: A
|
|
162
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
163
|
-
function
|
|
164
|
-
return
|
|
204
|
+
}, Symbol.toStringTag, { value: "Module" })), pt = typeof window < "u", gt = Object.prototype.toString;
|
|
205
|
+
function D(s, t) {
|
|
206
|
+
return gt.call(s) === `[object ${t}]`;
|
|
165
207
|
}
|
|
166
|
-
function
|
|
208
|
+
function H(s) {
|
|
167
209
|
return typeof s < "u";
|
|
168
210
|
}
|
|
169
|
-
function
|
|
170
|
-
return !
|
|
211
|
+
function Q(s) {
|
|
212
|
+
return !H(s);
|
|
171
213
|
}
|
|
172
|
-
function
|
|
173
|
-
return s !== null &&
|
|
214
|
+
function E(s) {
|
|
215
|
+
return s !== null && D(s, "Object");
|
|
174
216
|
}
|
|
175
|
-
function
|
|
217
|
+
function K(s) {
|
|
176
218
|
return s === null;
|
|
177
219
|
}
|
|
178
|
-
function
|
|
179
|
-
return
|
|
220
|
+
function Mt(s) {
|
|
221
|
+
return D(s, "Date");
|
|
180
222
|
}
|
|
181
|
-
function
|
|
182
|
-
return
|
|
223
|
+
function xt(s) {
|
|
224
|
+
return D(s, "String");
|
|
183
225
|
}
|
|
184
|
-
function
|
|
226
|
+
function j(s) {
|
|
185
227
|
return typeof s == "function";
|
|
186
228
|
}
|
|
187
|
-
function
|
|
188
|
-
return
|
|
229
|
+
function vt(s) {
|
|
230
|
+
return D(s, "Boolean");
|
|
189
231
|
}
|
|
190
|
-
function
|
|
191
|
-
return
|
|
232
|
+
function St(s) {
|
|
233
|
+
return D(s, "RegExp");
|
|
192
234
|
}
|
|
193
|
-
function
|
|
235
|
+
function x(s) {
|
|
194
236
|
return s && Array.isArray(s);
|
|
195
237
|
}
|
|
196
|
-
function
|
|
197
|
-
return typeof window < "u" &&
|
|
238
|
+
function bt(s) {
|
|
239
|
+
return typeof window < "u" && D(s, "Window");
|
|
198
240
|
}
|
|
199
|
-
function
|
|
200
|
-
return
|
|
241
|
+
function Pt(s) {
|
|
242
|
+
return E(s) && !!s.tagName;
|
|
201
243
|
}
|
|
202
|
-
function
|
|
244
|
+
function O(s) {
|
|
203
245
|
return typeof s == "number" ? !0 : typeof s != "string" ? !1 : /^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][-+]?\d+)?$/.test(s);
|
|
204
246
|
}
|
|
205
|
-
function
|
|
247
|
+
function Tt(s, t) {
|
|
206
248
|
return JSON.stringify(s) === JSON.stringify(t);
|
|
207
249
|
}
|
|
208
|
-
function
|
|
209
|
-
return
|
|
250
|
+
function Et(s) {
|
|
251
|
+
return Q(s) || K(s);
|
|
210
252
|
}
|
|
211
|
-
function
|
|
212
|
-
return
|
|
253
|
+
function Dt(s) {
|
|
254
|
+
return D(s, "Promise") && E(s) && j(s.then) && j(s.catch);
|
|
255
|
+
}
|
|
256
|
+
function zt(s, t = {}) {
|
|
257
|
+
return new Promise((e, i) => {
|
|
258
|
+
const n = N(s);
|
|
259
|
+
if (Nt(n)) {
|
|
260
|
+
e(!0);
|
|
261
|
+
return;
|
|
262
|
+
}
|
|
263
|
+
const o = document.createElement("script");
|
|
264
|
+
o.src = s, Object.entries(t).forEach(([r, a]) => {
|
|
265
|
+
a !== !1 && o.setAttribute(r, a === !0 ? "" : String(a));
|
|
266
|
+
}), o.onload = () => {
|
|
267
|
+
e(!0);
|
|
268
|
+
}, o.onerror = () => {
|
|
269
|
+
document.head.removeChild(o), i(new Error(`Failed to load script: ${s}`));
|
|
270
|
+
}, document.head.appendChild(o);
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
function Nt(s) {
|
|
274
|
+
const t = N(s);
|
|
275
|
+
return Array.from(document.scripts).some((e) => N(e.src) === t);
|
|
276
|
+
}
|
|
277
|
+
function Ct(s) {
|
|
278
|
+
return new Promise((t, e) => {
|
|
279
|
+
const i = N(s);
|
|
280
|
+
if (It(i)) {
|
|
281
|
+
t(!0);
|
|
282
|
+
return;
|
|
283
|
+
}
|
|
284
|
+
const n = document.createElement("link");
|
|
285
|
+
n.rel = "stylesheet", n.type = "text/css", n.href = s, n.onload = () => {
|
|
286
|
+
t(!0);
|
|
287
|
+
}, n.onerror = () => {
|
|
288
|
+
document.head.removeChild(n), e(new Error(`Failed to load link: ${s}`));
|
|
289
|
+
}, document.head.appendChild(n);
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
function It(s) {
|
|
293
|
+
const t = N(s);
|
|
294
|
+
return Array.from(document.querySelectorAll('link[rel="stylesheet"]')).some(
|
|
295
|
+
(e) => N(e.href) === t
|
|
296
|
+
);
|
|
213
297
|
}
|
|
214
|
-
function
|
|
298
|
+
function N(s) {
|
|
299
|
+
try {
|
|
300
|
+
const t = new URL(s, window.location.href);
|
|
301
|
+
return `${t.origin}${t.pathname}`;
|
|
302
|
+
} catch {
|
|
303
|
+
return s;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
function tt(s) {
|
|
215
307
|
return z(s, /* @__PURE__ */ new WeakMap());
|
|
216
308
|
}
|
|
217
309
|
function z(s, t) {
|
|
@@ -254,7 +346,7 @@ function z(s, t) {
|
|
|
254
346
|
Object.prototype.propertyIsEnumerable.call(s, n) && (e[n] = z(s[n], t));
|
|
255
347
|
return e;
|
|
256
348
|
}
|
|
257
|
-
function
|
|
349
|
+
function Ot(s, t, e = !1) {
|
|
258
350
|
let i;
|
|
259
351
|
const n = function(...o) {
|
|
260
352
|
const r = this, a = e && !i;
|
|
@@ -266,7 +358,7 @@ function Tt(s, t, e = !1) {
|
|
|
266
358
|
i && clearTimeout(i), i = void 0;
|
|
267
359
|
}, n;
|
|
268
360
|
}
|
|
269
|
-
function
|
|
361
|
+
function Rt(s, t, e = !1) {
|
|
270
362
|
let i, n;
|
|
271
363
|
const o = function(...r) {
|
|
272
364
|
const a = this;
|
|
@@ -281,98 +373,60 @@ function St(s, t, e = !1) {
|
|
|
281
373
|
clearTimeout(i), i = void 0, n = void 0;
|
|
282
374
|
}, o;
|
|
283
375
|
}
|
|
284
|
-
function
|
|
376
|
+
function k(s, ...t) {
|
|
285
377
|
if (!t.length) return s;
|
|
286
378
|
const e = t.shift();
|
|
287
|
-
return e === void 0 ? s : (
|
|
379
|
+
return e === void 0 ? s : (I(s) && I(e) && Object.keys(e).forEach((i) => {
|
|
288
380
|
const n = s[i], o = e[i];
|
|
289
|
-
Array.isArray(n) && Array.isArray(o) ? s[i] = [...n, ...o] :
|
|
290
|
-
}),
|
|
381
|
+
Array.isArray(n) && Array.isArray(o) ? s[i] = [...n, ...o] : I(n) && I(o) ? s[i] = k({ ...n }, o) : o !== void 0 && (s[i] = o);
|
|
382
|
+
}), k(s, ...t));
|
|
291
383
|
}
|
|
292
|
-
function
|
|
384
|
+
function I(s) {
|
|
293
385
|
return s !== null && typeof s == "object" && !Array.isArray(s);
|
|
294
386
|
}
|
|
295
|
-
function
|
|
387
|
+
function et(s, ...t) {
|
|
296
388
|
if (!t.length) return s;
|
|
297
389
|
for (const e of t)
|
|
298
390
|
e != null && typeof e == "object" && Object.keys(e).forEach((i) => {
|
|
299
391
|
const n = e[i], o = s[i];
|
|
300
|
-
n !== null && typeof n == "object" && !Array.isArray(n) ? ((!o || typeof o != "object") && (s[i] = {}),
|
|
392
|
+
n !== null && typeof n == "object" && !Array.isArray(n) ? ((!o || typeof o != "object") && (s[i] = {}), et(s[i], n)) : s[i] = n;
|
|
301
393
|
});
|
|
302
394
|
return s;
|
|
303
395
|
}
|
|
304
|
-
function
|
|
396
|
+
function st(s, t) {
|
|
305
397
|
const e = {};
|
|
306
|
-
if (
|
|
398
|
+
if (E(s) && !x(s)) {
|
|
307
399
|
for (const i in s)
|
|
308
400
|
if (Object.prototype.hasOwnProperty.call(s, i)) {
|
|
309
|
-
const n = s[i], o =
|
|
401
|
+
const n = s[i], o = E(t) && !x(t) ? t[i] : void 0;
|
|
310
402
|
if (!(i in (t || {})))
|
|
311
403
|
e[i] = n;
|
|
312
|
-
else if (
|
|
404
|
+
else if (x(n) && x(o))
|
|
313
405
|
JSON.stringify(n) !== JSON.stringify(o) && (e[i] = n);
|
|
314
|
-
else if (
|
|
315
|
-
const r =
|
|
406
|
+
else if (E(n) && E(o)) {
|
|
407
|
+
const r = st(n, o);
|
|
316
408
|
r && Object.keys(r).length > 0 && (e[i] = r);
|
|
317
409
|
} else n !== o && (e[i] = n);
|
|
318
410
|
}
|
|
319
411
|
}
|
|
320
|
-
if (
|
|
412
|
+
if (E(t) && x(t))
|
|
321
413
|
for (const i in t)
|
|
322
414
|
Object.prototype.hasOwnProperty.call(t, i) && !(i in (s || {})) && (e[i] = void 0);
|
|
323
415
|
return e;
|
|
324
416
|
}
|
|
325
|
-
function
|
|
326
|
-
|
|
327
|
-
const n = D(s);
|
|
328
|
-
if (Et(n)) {
|
|
329
|
-
e(!0);
|
|
330
|
-
return;
|
|
331
|
-
}
|
|
332
|
-
const o = document.createElement("script");
|
|
333
|
-
o.src = s, Object.entries(t).forEach(([r, a]) => {
|
|
334
|
-
a !== !1 && o.setAttribute(r, a === !0 ? "" : String(a));
|
|
335
|
-
}), o.onload = () => {
|
|
336
|
-
e(!0);
|
|
337
|
-
}, o.onerror = () => {
|
|
338
|
-
document.head.removeChild(o), i(new Error(`Failed to load script: ${s}`));
|
|
339
|
-
}, document.head.appendChild(o);
|
|
340
|
-
});
|
|
341
|
-
}
|
|
342
|
-
function Et(s) {
|
|
343
|
-
const t = D(s);
|
|
344
|
-
return Array.from(document.scripts).some((e) => D(e.src) === t);
|
|
345
|
-
}
|
|
346
|
-
function zt(s) {
|
|
347
|
-
return new Promise((t, e) => {
|
|
348
|
-
const i = D(s);
|
|
349
|
-
if (Dt(i)) {
|
|
350
|
-
t(!0);
|
|
351
|
-
return;
|
|
352
|
-
}
|
|
353
|
-
const n = document.createElement("link");
|
|
354
|
-
n.rel = "stylesheet", n.type = "text/css", n.href = s, n.onload = () => {
|
|
355
|
-
t(!0);
|
|
356
|
-
}, n.onerror = () => {
|
|
357
|
-
document.head.removeChild(n), e(new Error(`Failed to load link: ${s}`));
|
|
358
|
-
}, document.head.appendChild(n);
|
|
359
|
-
});
|
|
417
|
+
function Gt(s) {
|
|
418
|
+
console.warn(`[warn]:${s}`);
|
|
360
419
|
}
|
|
361
|
-
function
|
|
362
|
-
|
|
363
|
-
return Array.from(document.querySelectorAll('link[rel="stylesheet"]')).some(
|
|
364
|
-
(e) => D(e.href) === t
|
|
365
|
-
);
|
|
420
|
+
function Lt(s) {
|
|
421
|
+
throw new Error(`[error]:${s}`);
|
|
366
422
|
}
|
|
367
|
-
function
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
return s;
|
|
373
|
-
}
|
|
423
|
+
function At(s) {
|
|
424
|
+
if (s)
|
|
425
|
+
return ut.find(
|
|
426
|
+
(t) => t?.patterns?.some((e) => s.includes(e))
|
|
427
|
+
);
|
|
374
428
|
}
|
|
375
|
-
function
|
|
429
|
+
function jt(s, t, e, i) {
|
|
376
430
|
const n = Math.min(s / e, t / i), o = e * n, r = i * n;
|
|
377
431
|
return {
|
|
378
432
|
scale: n,
|
|
@@ -384,59 +438,54 @@ function Nt(s, t, e, i) {
|
|
|
384
438
|
sh: r
|
|
385
439
|
};
|
|
386
440
|
}
|
|
387
|
-
function
|
|
441
|
+
function kt(s, t, e) {
|
|
388
442
|
return {
|
|
389
443
|
x: s * e.scale + e.x,
|
|
390
444
|
// 缩放后加上偏移量
|
|
391
445
|
y: t * e.scale + e.y
|
|
392
446
|
};
|
|
393
447
|
}
|
|
394
|
-
function
|
|
448
|
+
function Xt(s, t, e) {
|
|
395
449
|
return {
|
|
396
450
|
x: (s - e.x) / e.scale,
|
|
397
451
|
// 减去偏移量后缩放到模型尺寸
|
|
398
452
|
y: (t - e.y) / e.scale
|
|
399
453
|
};
|
|
400
454
|
}
|
|
401
|
-
|
|
402
|
-
console.warn(`[warn]:${s}`);
|
|
403
|
-
}
|
|
404
|
-
function Ot(s) {
|
|
405
|
-
throw new Error(`[error]:${s}`);
|
|
406
|
-
}
|
|
407
|
-
const kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
455
|
+
const Ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
408
456
|
__proto__: null,
|
|
409
|
-
cloneDeep:
|
|
410
|
-
debounce:
|
|
411
|
-
deepMerge:
|
|
412
|
-
deepMergeProps:
|
|
413
|
-
error:
|
|
414
|
-
getDiffProps:
|
|
415
|
-
getImageTransform:
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
457
|
+
cloneDeep: tt,
|
|
458
|
+
debounce: Ot,
|
|
459
|
+
deepMerge: k,
|
|
460
|
+
deepMergeProps: et,
|
|
461
|
+
error: Lt,
|
|
462
|
+
getDiffProps: st,
|
|
463
|
+
getImageTransform: jt,
|
|
464
|
+
getMapProvider: At,
|
|
465
|
+
inBrowser: pt,
|
|
466
|
+
is: D,
|
|
467
|
+
isArray: x,
|
|
468
|
+
isBoolean: vt,
|
|
469
|
+
isDate: Mt,
|
|
470
|
+
isDef: H,
|
|
471
|
+
isElement: Pt,
|
|
472
|
+
isFunction: j,
|
|
473
|
+
isNull: K,
|
|
474
|
+
isNullOrUnDef: Et,
|
|
475
|
+
isNumeric: O,
|
|
476
|
+
isObject: E,
|
|
477
|
+
isPromise: Dt,
|
|
478
|
+
isRegExp: St,
|
|
479
|
+
isSameValue: Tt,
|
|
480
|
+
isString: xt,
|
|
481
|
+
isUnDef: Q,
|
|
482
|
+
isWindow: bt,
|
|
483
|
+
loadCss: Ct,
|
|
484
|
+
loadScript: zt,
|
|
485
|
+
throttle: Rt,
|
|
486
|
+
toCanvasCoord: kt,
|
|
487
|
+
toModelCoord: Xt,
|
|
488
|
+
warn: Gt
|
|
440
489
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
441
490
|
class f {
|
|
442
491
|
/** 直角坐标系坐标 */
|
|
@@ -467,8 +516,8 @@ class f {
|
|
|
467
516
|
plane = "xy";
|
|
468
517
|
/** 默认平面 ('xy' 或 'xz') */
|
|
469
518
|
constructor(t) {
|
|
470
|
-
const { x: e, y: i, z: n, lat: o, lon: r, alt: a, yaw:
|
|
471
|
-
this.x = Number(e) || 0, this.y = Number(i) || 0, this.z = Number(n) || 0, (this.x !== 0 || this.y !== 0 || this.z !== 0) && (this.plane = u, this.hasXYZ = !0), this.lat = Number(o) || 0, this.lon = Number(r) || 0, this.alt = Number(a) || 0, (this.lat !== 0 || this.lon !== 0 || this.alt !== 0) && (this.hasGeo = !0), this.yaw = Number(
|
|
519
|
+
const { x: e, y: i, z: n, lat: o, lon: r, alt: a, yaw: h, pitch: l, roll: c, plane: u = "xy" } = t || {};
|
|
520
|
+
this.x = Number(e) || 0, this.y = Number(i) || 0, this.z = Number(n) || 0, (this.x !== 0 || this.y !== 0 || this.z !== 0) && (this.plane = u, this.hasXYZ = !0), this.lat = Number(o) || 0, this.lon = Number(r) || 0, this.alt = Number(a) || 0, (this.lat !== 0 || this.lon !== 0 || this.alt !== 0) && (this.hasGeo = !0), this.yaw = Number(h) || 0, this.pitch = Number(l) || 0, this.roll = Number(c) || 0, (O(h) || O(l) || O(c)) && (this.hasAngle = !0);
|
|
472
521
|
}
|
|
473
522
|
/**
|
|
474
523
|
* 计算两点之间的三维距离
|
|
@@ -521,7 +570,7 @@ class f {
|
|
|
521
570
|
* @returns 夹角角度 (0-180度)
|
|
522
571
|
*/
|
|
523
572
|
static angleXZ(t, e, i) {
|
|
524
|
-
const n = { x: t.x - e.x, z: t.z - e.z }, o = { x: i.x - e.x, z: i.z - e.z }, r = n.x * o.x + n.z * o.z, a = Math.sqrt(n.x ** 2 + n.z ** 2),
|
|
573
|
+
const n = { x: t.x - e.x, z: t.z - e.z }, o = { x: i.x - e.x, z: i.z - e.z }, r = n.x * o.x + n.z * o.z, a = Math.sqrt(n.x ** 2 + n.z ** 2), h = Math.sqrt(o.x ** 2 + o.z ** 2), l = Math.max(-1, Math.min(1, r / (a * h))), u = Math.acos(l) * 180 / Math.PI;
|
|
525
574
|
return Math.min(u, 360 - u);
|
|
526
575
|
}
|
|
527
576
|
/**
|
|
@@ -555,18 +604,18 @@ class f {
|
|
|
555
604
|
try {
|
|
556
605
|
if (e?.id === i?.id)
|
|
557
606
|
return new f(this);
|
|
558
|
-
if (e?.modelType ===
|
|
607
|
+
if (e?.modelType === P.GeoModel) {
|
|
559
608
|
const { refPoint: n } = e?.relativeMap || {};
|
|
560
609
|
if (this.hasGeo && n) {
|
|
561
|
-
const o =
|
|
610
|
+
const o = C.LLHToXYZ(this, n);
|
|
562
611
|
return this.x = o.x, this.y = o.y, this.z = o.z, this.hasXYZ = !0, this.project(t);
|
|
563
612
|
}
|
|
564
613
|
throw new w(p.PointUnmappedGIS, "没有完成GIS与其他空间的映射");
|
|
565
614
|
}
|
|
566
|
-
if (i?.modelType ===
|
|
615
|
+
if (i?.modelType === P.GeoModel) {
|
|
567
616
|
const { refPoint: n } = i?.relativeMap || {}, o = this.project(t);
|
|
568
617
|
if (o?.hasXYZ && n) {
|
|
569
|
-
const r =
|
|
618
|
+
const r = C.XYZToLLH(o, n);
|
|
570
619
|
return o.lat = r.lat, o.lon = r.lon, o.alt = r.alt, o.hasGeo = !0, o;
|
|
571
620
|
}
|
|
572
621
|
throw new w(p.PointUnmappedGIS, "没有完成GIS与其他空间的映射");
|
|
@@ -615,7 +664,7 @@ class f {
|
|
|
615
664
|
return e.x = i + t.x, e.y = n + t.y, e.z += t.z, e;
|
|
616
665
|
}
|
|
617
666
|
}
|
|
618
|
-
class
|
|
667
|
+
class C {
|
|
619
668
|
lat = 0;
|
|
620
669
|
/** 经度 */
|
|
621
670
|
lon = 0;
|
|
@@ -628,35 +677,35 @@ class N {
|
|
|
628
677
|
}
|
|
629
678
|
static XYZToLLH(t, e) {
|
|
630
679
|
const n = 0.0033528106647474805, o = n * (2 - n), r = f.toRadians(e.lat), a = 6378137 / Math.sqrt(1 - o * Math.sin(r) ** 2) + e.alt;
|
|
631
|
-
let
|
|
680
|
+
let h, l, c;
|
|
632
681
|
if (t.plane === "xz") {
|
|
633
682
|
const u = t.x / 1e3 / (a * Math.cos(r)), d = t.z / 1e3 / a;
|
|
634
|
-
|
|
683
|
+
h = e.lon + f.toDegrees(u), l = e.lat - f.toDegrees(d), c = e.alt + t.y / 1e3;
|
|
635
684
|
} else if (t.plane === "xy") {
|
|
636
685
|
const u = t.x / 1e3 / (a * Math.cos(r)), d = t.y / 1e3 / a;
|
|
637
|
-
|
|
686
|
+
h = e.lon + f.toDegrees(u), l = e.lat - f.toDegrees(d), c = e.alt + t.z / 1e3;
|
|
638
687
|
} else
|
|
639
688
|
throw new w(p.GeoPointNoPlane, "点的plane应为xz或xy");
|
|
640
|
-
return new
|
|
689
|
+
return new C({
|
|
641
690
|
lat: l,
|
|
642
|
-
lon:
|
|
643
|
-
alt:
|
|
691
|
+
lon: h,
|
|
692
|
+
alt: c
|
|
644
693
|
});
|
|
645
694
|
}
|
|
646
695
|
static LLHToXYZ(t, e) {
|
|
647
|
-
const n = 0.0033528106647474805, o = n * (2 - n), r = f.toRadians(e.lat), a = 6378137 / Math.sqrt(1 - o * Math.sin(r) ** 2) + e.alt,
|
|
696
|
+
const n = 0.0033528106647474805, o = n * (2 - n), r = f.toRadians(e.lat), a = 6378137 / Math.sqrt(1 - o * Math.sin(r) ** 2) + e.alt, h = f.toRadians(t.lon - e.lon), l = f.toRadians(e.lat - t.lat), c = a * h * Math.cos(r), u = a * l;
|
|
648
697
|
if (t.plane === "xz")
|
|
649
698
|
return new f({
|
|
650
|
-
x:
|
|
651
|
-
y:
|
|
699
|
+
x: c * 1e3,
|
|
700
|
+
y: t.alt * 1e3,
|
|
652
701
|
z: u * 1e3,
|
|
653
702
|
plane: "xz"
|
|
654
703
|
});
|
|
655
704
|
if (t.plane === "xy")
|
|
656
705
|
return new f({
|
|
657
|
-
x:
|
|
706
|
+
x: c * 1e3,
|
|
658
707
|
y: u * 1e3,
|
|
659
|
-
z:
|
|
708
|
+
z: t.alt * 1e3,
|
|
660
709
|
plane: "xy"
|
|
661
710
|
});
|
|
662
711
|
throw new w(p.GeoPointNoPlane, "点的plane应为xz或xy");
|
|
@@ -675,7 +724,7 @@ class y {
|
|
|
675
724
|
/** 参考点 */
|
|
676
725
|
constructor(t) {
|
|
677
726
|
const { refPoint: e, ...i } = t || {};
|
|
678
|
-
e && (this.refPoint = new
|
|
727
|
+
e && (this.refPoint = new C(e)), Object.assign(this, i);
|
|
679
728
|
}
|
|
680
729
|
/**
|
|
681
730
|
* 合并两个相对坐标系的映射关系
|
|
@@ -687,20 +736,20 @@ class y {
|
|
|
687
736
|
if (t.plane !== e.plane)
|
|
688
737
|
throw new w(p.RelativePlaneUnmatch, "两个映射关系的plane应该相同");
|
|
689
738
|
const i = t.scale * e.scale, n = t.yaw + e.yaw, o = Math.cos(e.yaw), r = Math.sin(e.yaw);
|
|
690
|
-
let a = 0,
|
|
739
|
+
let a = 0, h = 0, l = 0;
|
|
691
740
|
if (t.plane === "xz") {
|
|
692
|
-
const
|
|
693
|
-
a = e.x +
|
|
741
|
+
const c = t.x * o - t.z * r, u = t.y, d = t.x * r + t.z * o;
|
|
742
|
+
a = e.x + c * e.scale, h = e.y + u * e.scale, l = e.z + d * e.scale;
|
|
694
743
|
} else if (t.plane === "xy") {
|
|
695
|
-
const
|
|
696
|
-
a = e.x +
|
|
744
|
+
const c = t.x * o - t.y * r, u = t.x * r + t.y * o, d = t.z;
|
|
745
|
+
a = e.x + c * e.scale, h = e.y + u * e.scale, l = e.z + d * e.scale;
|
|
697
746
|
} else
|
|
698
747
|
throw new w(p.RelativeNoPlane, "映射关系的plane应为xz或xy");
|
|
699
748
|
return new y({
|
|
700
749
|
scale: i,
|
|
701
750
|
yaw: n,
|
|
702
751
|
x: a,
|
|
703
|
-
y:
|
|
752
|
+
y: h,
|
|
704
753
|
z: l,
|
|
705
754
|
start: t.start,
|
|
706
755
|
end: t.end,
|
|
@@ -714,11 +763,11 @@ class y {
|
|
|
714
763
|
*/
|
|
715
764
|
static inverseRelativeMap(t) {
|
|
716
765
|
const e = 1 / t.scale, i = -t.yaw, n = Math.cos(-i), o = Math.sin(-i);
|
|
717
|
-
let r = 0, a = 0,
|
|
766
|
+
let r = 0, a = 0, h = 0;
|
|
718
767
|
if (t.plane === "xz")
|
|
719
|
-
r = -(t.x * n + t.z * o) * e, a = -t.y * e,
|
|
768
|
+
r = -(t.x * n + t.z * o) * e, a = -t.y * e, h = -(t.z * n - t.x * o) * e;
|
|
720
769
|
else if (t.plane === "xy")
|
|
721
|
-
r = -(t.x * n + t.y * o) * e, a = -(t.y * n - t.x * o) * e,
|
|
770
|
+
r = -(t.x * n + t.y * o) * e, a = -(t.y * n - t.x * o) * e, h = -t.z * e;
|
|
722
771
|
else
|
|
723
772
|
throw new w(p.RelativeNoPlane, "映射关系的plane应为xz或xy");
|
|
724
773
|
return new y({
|
|
@@ -726,7 +775,7 @@ class y {
|
|
|
726
775
|
yaw: i,
|
|
727
776
|
x: r,
|
|
728
777
|
y: a,
|
|
729
|
-
z:
|
|
778
|
+
z: h,
|
|
730
779
|
start: t.start,
|
|
731
780
|
end: t.end,
|
|
732
781
|
plane: t.plane
|
|
@@ -749,13 +798,20 @@ class y {
|
|
|
749
798
|
}
|
|
750
799
|
}
|
|
751
800
|
class m {
|
|
801
|
+
/**
|
|
802
|
+
* 获取项目详情
|
|
803
|
+
* @param projectId
|
|
804
|
+
*/
|
|
805
|
+
static async getProjectDetail(t) {
|
|
806
|
+
return await V({ projectId: t });
|
|
807
|
+
}
|
|
752
808
|
/**
|
|
753
809
|
* 获取坐标系树
|
|
754
810
|
* @param projectId 项目id
|
|
755
811
|
* @returns
|
|
756
812
|
*/
|
|
757
813
|
static async getCoordinateTree(t) {
|
|
758
|
-
const e = await
|
|
814
|
+
const e = await $({ projectId: t });
|
|
759
815
|
if (e.length) {
|
|
760
816
|
const i = m.handleCoordinateList(e);
|
|
761
817
|
return m.buildCoordinateTree(i, 0);
|
|
@@ -778,14 +834,14 @@ class m {
|
|
|
778
834
|
*/
|
|
779
835
|
static async addCoordinate(t, e) {
|
|
780
836
|
const { projectId: i, id: n } = t, o = e.map((a) => {
|
|
781
|
-
const { type:
|
|
837
|
+
const { type: h, modelType: l, relativeMap: c, level: u, ...d } = a, b = c ? JSON.stringify(c) : void 0;
|
|
782
838
|
return {
|
|
783
839
|
...d,
|
|
784
840
|
projectId: i,
|
|
785
841
|
parentId: n,
|
|
786
|
-
coordinateType:
|
|
842
|
+
coordinateType: h,
|
|
787
843
|
renderType: l,
|
|
788
|
-
relativePosition:
|
|
844
|
+
relativePosition: b
|
|
789
845
|
};
|
|
790
846
|
}), r = await A(o);
|
|
791
847
|
return m.handleCoordinateList(r);
|
|
@@ -798,7 +854,7 @@ class m {
|
|
|
798
854
|
*/
|
|
799
855
|
static async removeCoordinate(t, e) {
|
|
800
856
|
const i = e.map((n) => n.id ?? -1);
|
|
801
|
-
return await
|
|
857
|
+
return await q(i);
|
|
802
858
|
}
|
|
803
859
|
/**
|
|
804
860
|
* 更新坐标系
|
|
@@ -808,7 +864,7 @@ class m {
|
|
|
808
864
|
*/
|
|
809
865
|
static async updateCoordinate(t, e) {
|
|
810
866
|
const { projectId: i, id: n } = t, o = e.map((a) => {
|
|
811
|
-
const { type:
|
|
867
|
+
const { type: h, relativeMap: l, level: c, ...u } = a, d = y.toStringify(l);
|
|
812
868
|
return { ...u, relativePosition: d, projectId: i, parentId: n };
|
|
813
869
|
}), r = await A(o);
|
|
814
870
|
return m.handleCoordinateList(r);
|
|
@@ -821,9 +877,9 @@ class m {
|
|
|
821
877
|
*/
|
|
822
878
|
static async bindCoordinate(t, e) {
|
|
823
879
|
const { projectId: i, id: n } = t, o = e.map((a) => {
|
|
824
|
-
const { modelId:
|
|
825
|
-
return { modelId:
|
|
826
|
-
}), r = await
|
|
880
|
+
const { modelId: h } = a;
|
|
881
|
+
return { modelId: h, parentId: n, projectId: i };
|
|
882
|
+
}), r = await J(o);
|
|
827
883
|
return m.handleCoordinateList(r);
|
|
828
884
|
}
|
|
829
885
|
/**
|
|
@@ -839,13 +895,13 @@ class m {
|
|
|
839
895
|
renderType: o,
|
|
840
896
|
relativePosition: r,
|
|
841
897
|
...a
|
|
842
|
-
} = e,
|
|
898
|
+
} = e, h = o === P.GeoModel ? new y(y.toParse(r)) : y.toParse(r);
|
|
843
899
|
return new R({
|
|
844
900
|
...a,
|
|
845
901
|
type: i,
|
|
846
902
|
modelType: o,
|
|
847
903
|
modelValue: n,
|
|
848
|
-
relativeMap:
|
|
904
|
+
relativeMap: h
|
|
849
905
|
});
|
|
850
906
|
});
|
|
851
907
|
}
|
|
@@ -858,8 +914,8 @@ class m {
|
|
|
858
914
|
const e = Array.isArray(t) ? t : [t], i = [];
|
|
859
915
|
function n(o) {
|
|
860
916
|
for (const r of o) {
|
|
861
|
-
const { level: a, parent:
|
|
862
|
-
...
|
|
917
|
+
const { level: a, parent: h, relativeMap: l, ...c } = r, u = new R({
|
|
918
|
+
...c,
|
|
863
919
|
relativeMap: new y(l)
|
|
864
920
|
});
|
|
865
921
|
i.push(u), r.children && r.children.length > 0 && n(r.children);
|
|
@@ -884,7 +940,7 @@ class m {
|
|
|
884
940
|
r.level = 0, n.push(r);
|
|
885
941
|
else {
|
|
886
942
|
const a = i.get(String(o.parentId ?? -1));
|
|
887
|
-
a && (r.type ===
|
|
943
|
+
a && (r.type === v.Space && (r.level = (Number(a.level) || 0) + 1), r.parent = a, a.children?.push(r));
|
|
888
944
|
}
|
|
889
945
|
}), n.forEach(m.sortCoordinateTree), n[0];
|
|
890
946
|
}
|
|
@@ -895,7 +951,7 @@ class m {
|
|
|
895
951
|
*/
|
|
896
952
|
static sortCoordinateTree(t) {
|
|
897
953
|
t.children && (t.children.sort((e, i) => {
|
|
898
|
-
if (e.type ===
|
|
954
|
+
if (e.type === v.Space) {
|
|
899
955
|
const n = Number(i?.relativeMap?.z) - Number(e?.relativeMap?.z);
|
|
900
956
|
return n !== 0 ? n : Number(i.createTime) - Number(e.createTime);
|
|
901
957
|
} else
|
|
@@ -912,7 +968,7 @@ class m {
|
|
|
912
968
|
const o = new R(n);
|
|
913
969
|
e && (o.parent = e);
|
|
914
970
|
const r = m.filterSpaceTree(o.children, o);
|
|
915
|
-
o.children = r, o.disabled = o.disabled ?? !1, o.type !==
|
|
971
|
+
o.children = r, o.disabled = o.disabled ?? !1, o.type !== v.Model && i.push(o);
|
|
916
972
|
}), i;
|
|
917
973
|
}
|
|
918
974
|
}
|
|
@@ -958,10 +1014,10 @@ class R {
|
|
|
958
1014
|
this.setOptions(t);
|
|
959
1015
|
}
|
|
960
1016
|
get spaceList() {
|
|
961
|
-
return this.children.filter((t) => t.type ===
|
|
1017
|
+
return this.children.filter((t) => t.type === v.Space);
|
|
962
1018
|
}
|
|
963
1019
|
get modelList() {
|
|
964
|
-
return this.children.filter((t) => t.type ===
|
|
1020
|
+
return this.children.filter((t) => t.type === v.Model);
|
|
965
1021
|
}
|
|
966
1022
|
get fullName() {
|
|
967
1023
|
const t = this.name ? `(${this.name})` : "";
|
|
@@ -974,12 +1030,12 @@ class R {
|
|
|
974
1030
|
}
|
|
975
1031
|
/** 添加子节点 */
|
|
976
1032
|
async addChild(t) {
|
|
977
|
-
const e =
|
|
1033
|
+
const e = x(t) ? t : [t], i = await m.addCoordinate(this, e);
|
|
978
1034
|
return this.mergeChild(i), i;
|
|
979
1035
|
}
|
|
980
1036
|
/** 删除子节点 */
|
|
981
1037
|
async removeChild(t) {
|
|
982
|
-
const e =
|
|
1038
|
+
const e = x(t) ? t : [t];
|
|
983
1039
|
await m.removeCoordinate(this, e);
|
|
984
1040
|
for (const i of e) {
|
|
985
1041
|
const n = this.children.findIndex((o) => o.id === i.id);
|
|
@@ -988,12 +1044,12 @@ class R {
|
|
|
988
1044
|
}
|
|
989
1045
|
/** 更新子节点 */
|
|
990
1046
|
async updateChild(t) {
|
|
991
|
-
const e =
|
|
1047
|
+
const e = x(t) ? t : [t], i = await m.updateCoordinate(this, e);
|
|
992
1048
|
return this.mergeChild(i), i;
|
|
993
1049
|
}
|
|
994
1050
|
/** 绑定子节点,不建立映射关系 */
|
|
995
1051
|
async bindChild(t) {
|
|
996
|
-
const e =
|
|
1052
|
+
const e = x(t) ? t : [t], i = await m.bindCoordinate(this, e);
|
|
997
1053
|
return this.mergeChild(i), i;
|
|
998
1054
|
}
|
|
999
1055
|
/** 合并子节点,没有查询到节点就插入 */
|
|
@@ -1001,26 +1057,26 @@ class R {
|
|
|
1001
1057
|
t?.length && t.forEach((e) => {
|
|
1002
1058
|
const i = this.children.find((n) => n.id === e.id);
|
|
1003
1059
|
if (i) {
|
|
1004
|
-
const { relativeMap: n, no: o, name: r, shortName: a, status:
|
|
1060
|
+
const { relativeMap: n, no: o, name: r, shortName: a, status: h, modelId: l, modelValue: c } = e;
|
|
1005
1061
|
Object.assign(i, {
|
|
1006
1062
|
relativeMap: n,
|
|
1007
1063
|
no: o,
|
|
1008
1064
|
name: r,
|
|
1009
1065
|
shortName: a,
|
|
1010
|
-
status:
|
|
1066
|
+
status: h,
|
|
1011
1067
|
modelId: l,
|
|
1012
|
-
modelValue:
|
|
1068
|
+
modelValue: c
|
|
1013
1069
|
});
|
|
1014
1070
|
} else this.id === e.parentId && (e.parent = this, this.children.unshift(e));
|
|
1015
1071
|
});
|
|
1016
1072
|
}
|
|
1017
1073
|
/** 映射到(模型映射到空间,空间映射到空间) */
|
|
1018
1074
|
async mappingTo(t) {
|
|
1019
|
-
await
|
|
1075
|
+
await W(t);
|
|
1020
1076
|
}
|
|
1021
1077
|
/** 来自映射(被映射过的源坐标系关系) */
|
|
1022
1078
|
async getMapping() {
|
|
1023
|
-
return (await
|
|
1079
|
+
return (await Z({ srcCsId: this.id }))[0];
|
|
1024
1080
|
}
|
|
1025
1081
|
/**
|
|
1026
1082
|
* 递归寻找到根坐标系
|
|
@@ -1039,8 +1095,8 @@ class R {
|
|
|
1039
1095
|
* @returns
|
|
1040
1096
|
*/
|
|
1041
1097
|
findChildModel(t, e = !0) {
|
|
1042
|
-
const i =
|
|
1043
|
-
return i.includes(this.modelType ?? -1) && this.status !==
|
|
1098
|
+
const i = x(t) ? t : [t];
|
|
1099
|
+
return i.includes(this.modelType ?? -1) && this.status !== G.Disabled ? this : ([v.Data, v.Model].includes(this.type) ? this.findParentSpace() : this)?.modelList?.filter((a) => i.includes(a.modelType ?? -1) ? e ? !!a.relativeMap : !0 : !1)?.sort((a, h) => Number(a.status) - Number(h.status))?.[0];
|
|
1044
1100
|
}
|
|
1045
1101
|
/**
|
|
1046
1102
|
* 寻找与当前节点最近的一个模型节点,从当前节点遍历到根节点-广度优先遍历
|
|
@@ -1049,38 +1105,38 @@ class R {
|
|
|
1049
1105
|
* @returns
|
|
1050
1106
|
*/
|
|
1051
1107
|
findClosestModel(t = [
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1108
|
+
P.CADModel,
|
|
1109
|
+
P.BIMModel,
|
|
1110
|
+
P.ForgeModel,
|
|
1111
|
+
P.ThreeDModel,
|
|
1112
|
+
P.GeoModel
|
|
1057
1113
|
], e) {
|
|
1058
|
-
const i =
|
|
1059
|
-
e?.forEach((
|
|
1060
|
-
n.add(String(
|
|
1114
|
+
const i = x(t) ? t : [t], n = /* @__PURE__ */ new Set();
|
|
1115
|
+
e?.forEach((c) => {
|
|
1116
|
+
n.add(String(c.id));
|
|
1061
1117
|
});
|
|
1062
1118
|
const o = [{ node: this, distance: 0 }], r = /* @__PURE__ */ new Set(), a = [];
|
|
1063
1119
|
for (; o.length > 0; ) {
|
|
1064
|
-
const { node:
|
|
1065
|
-
if (n.has(String(
|
|
1120
|
+
const { node: c, distance: u } = o.shift();
|
|
1121
|
+
if (n.has(String(c.id)) || r.has(c))
|
|
1066
1122
|
continue;
|
|
1067
|
-
const d =
|
|
1068
|
-
i.includes(d) && a.push({ node:
|
|
1069
|
-
const
|
|
1070
|
-
if (
|
|
1071
|
-
for (const
|
|
1072
|
-
r.has(
|
|
1073
|
-
if (
|
|
1074
|
-
for (const
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
for (const
|
|
1078
|
-
o.push({ node:
|
|
1123
|
+
const d = c.modelType ?? -1;
|
|
1124
|
+
i.includes(d) && a.push({ node: c, distance: u, modelType: d }), r.add(c);
|
|
1125
|
+
const b = [];
|
|
1126
|
+
if (c.children)
|
|
1127
|
+
for (const S of c.children)
|
|
1128
|
+
r.has(S) || b.push(S);
|
|
1129
|
+
if (c.parent?.children)
|
|
1130
|
+
for (const S of c.parent.children)
|
|
1131
|
+
S !== c && !r.has(S) && b.push(S);
|
|
1132
|
+
c.parent && !r.has(c.parent) && b.push(c.parent);
|
|
1133
|
+
for (const S of b)
|
|
1134
|
+
o.push({ node: S, distance: u + 1 });
|
|
1079
1135
|
}
|
|
1080
1136
|
if (a.length === 0)
|
|
1081
1137
|
return;
|
|
1082
|
-
const
|
|
1083
|
-
return l.sort((
|
|
1138
|
+
const h = Math.min(...a.map((c) => c.distance)), l = a.filter((c) => c.distance === h);
|
|
1139
|
+
return l.sort((c, u) => c.modelType - u.modelType), l[0]?.node;
|
|
1084
1140
|
}
|
|
1085
1141
|
/**
|
|
1086
1142
|
*向上寻找到子节点的空间坐标系
|
|
@@ -1088,7 +1144,7 @@ class R {
|
|
|
1088
1144
|
*/
|
|
1089
1145
|
findParentSpace() {
|
|
1090
1146
|
let t = this;
|
|
1091
|
-
for (; t && t.type !==
|
|
1147
|
+
for (; t && t.type !== v.Space; )
|
|
1092
1148
|
t = t.parent;
|
|
1093
1149
|
return t;
|
|
1094
1150
|
}
|
|
@@ -1101,7 +1157,7 @@ class R {
|
|
|
1101
1157
|
const e = [];
|
|
1102
1158
|
let i = this;
|
|
1103
1159
|
for (; i && t > 0; )
|
|
1104
|
-
i.type ===
|
|
1160
|
+
i.type === v.Space && (e.unshift(i.fullName), t--), i = i.parent;
|
|
1105
1161
|
return e;
|
|
1106
1162
|
}
|
|
1107
1163
|
/** 寻找坐标系组, 有groupUuid表示坐标系组 */
|
|
@@ -1156,9 +1212,9 @@ class R {
|
|
|
1156
1212
|
*/
|
|
1157
1213
|
getMappedCsTree() {
|
|
1158
1214
|
function t(n) {
|
|
1159
|
-
return n.children?.length && (n.children = n.children.filter((o) => !!o?.relativeMap && o.status !==
|
|
1215
|
+
return n.children?.length && (n.children = n.children.filter((o) => !!o?.relativeMap && o.status !== G.Disabled).map((o) => t(o))), n;
|
|
1160
1216
|
}
|
|
1161
|
-
const e =
|
|
1217
|
+
const e = tt(this.findRoot(!0)), i = t(e);
|
|
1162
1218
|
return i.parentId = 0, i.parent = void 0, i;
|
|
1163
1219
|
}
|
|
1164
1220
|
/**
|
|
@@ -1208,7 +1264,7 @@ class R {
|
|
|
1208
1264
|
*/
|
|
1209
1265
|
static getCommonCoordinate(t) {
|
|
1210
1266
|
let e;
|
|
1211
|
-
const i = t.map((n) => n.getCsRoutes(!0).filter((r) => r.id && r.type ===
|
|
1267
|
+
const i = t.map((n) => n.getCsRoutes(!0).filter((r) => r.id && r.type === v.Space));
|
|
1212
1268
|
for (; this.checkSameCoordinate(i); ) {
|
|
1213
1269
|
const o = i.shift();
|
|
1214
1270
|
o?.length && (e = o[0]);
|
|
@@ -1236,7 +1292,7 @@ class R {
|
|
|
1236
1292
|
} else return !1;
|
|
1237
1293
|
}
|
|
1238
1294
|
}
|
|
1239
|
-
class
|
|
1295
|
+
class it {
|
|
1240
1296
|
yaw = 0;
|
|
1241
1297
|
/** 偏航角 */
|
|
1242
1298
|
pitch = 0;
|
|
@@ -1250,14 +1306,14 @@ class tt {
|
|
|
1250
1306
|
static toParse(t) {
|
|
1251
1307
|
if (t) {
|
|
1252
1308
|
const e = t?.split(",").map((i) => Number(i) || 0);
|
|
1253
|
-
return new
|
|
1309
|
+
return new it({ yaw: e[0], pitch: e[1], roll: e[2] });
|
|
1254
1310
|
}
|
|
1255
1311
|
}
|
|
1256
1312
|
static toStringify(t) {
|
|
1257
1313
|
return t ? `${t.yaw},${t.pitch},${t.roll}` : "";
|
|
1258
1314
|
}
|
|
1259
1315
|
}
|
|
1260
|
-
class
|
|
1316
|
+
class nt {
|
|
1261
1317
|
x = 0;
|
|
1262
1318
|
/** x轴 */
|
|
1263
1319
|
y = 0;
|
|
@@ -1271,14 +1327,14 @@ class et {
|
|
|
1271
1327
|
static toParse(t) {
|
|
1272
1328
|
if (t) {
|
|
1273
1329
|
const e = t?.split(",").map((i) => Number(i) || 0);
|
|
1274
|
-
return new
|
|
1330
|
+
return new nt({ x: e[0], y: e[1], z: e[2] });
|
|
1275
1331
|
}
|
|
1276
1332
|
}
|
|
1277
1333
|
static toStringify(t) {
|
|
1278
1334
|
return t ? `${t.x},${t.y},${t.z}` : "";
|
|
1279
1335
|
}
|
|
1280
1336
|
}
|
|
1281
|
-
class
|
|
1337
|
+
class Yt {
|
|
1282
1338
|
/**
|
|
1283
1339
|
* 将源坐标系中的点转换到目标坐标系中
|
|
1284
1340
|
* @param points 需要转换的点数组
|
|
@@ -1297,7 +1353,7 @@ class jt {
|
|
|
1297
1353
|
}), o;
|
|
1298
1354
|
}
|
|
1299
1355
|
}
|
|
1300
|
-
class
|
|
1356
|
+
class _t {
|
|
1301
1357
|
canvas;
|
|
1302
1358
|
ctx;
|
|
1303
1359
|
options;
|
|
@@ -1349,11 +1405,11 @@ class Xt {
|
|
|
1349
1405
|
isBindEvent: o = !0,
|
|
1350
1406
|
isDrawAssist: r = !1,
|
|
1351
1407
|
isMoveRedrawing: a,
|
|
1352
|
-
customDrawAssist:
|
|
1408
|
+
customDrawAssist: h,
|
|
1353
1409
|
afterDraw: l,
|
|
1354
|
-
...
|
|
1410
|
+
...c
|
|
1355
1411
|
} = t;
|
|
1356
|
-
this.canvas = e, this.ctx = this.canvas.getContext("2d"), this.width = i, this.height = n, this.canvas.width = i, this.canvas.height = n, this.isBindEvent = o, this.isDrawAssist = r, this.customDrawAssist =
|
|
1412
|
+
this.canvas = e, this.ctx = this.canvas.getContext("2d"), this.width = i, this.height = n, this.canvas.width = i, this.canvas.height = n, this.isBindEvent = o, this.isDrawAssist = r, this.customDrawAssist = h, this.isMoveRedrawing = a ?? r, this.options = c, this.onMousedown = this.onMousedown.bind(this), this.onMousemove = this.onMousemove.bind(this), this.onMousemoveTemp = this.onMousemoveTemp.bind(this), this.onMouseup = this.onMouseup.bind(this), this.onMousewheel = this.onMousewheel.bind(this), this.onDblclick = this.onDblclick.bind(this), this.onTouchstart = this.onTouchstart.bind(this), this.onTouchmove = this.onTouchmove.bind(this), this.onTouchend = this.onTouchend.bind(this), this.onMouseout = this.onMouseout.bind(this), this.afterDraw = this.afterDraw, o && (this.canvas.addEventListener("DOMMouseScroll", this.onMousewheel), this.canvas.addEventListener("mousewheel", this.onMousewheel), this.canvas.addEventListener("mousedown", this.onMousedown), this.canvas.addEventListener("mousemove", this.onMousemove), this.canvas.addEventListener("mouseout", this.onMouseout), this.canvas.addEventListener("dblclick", this.onDblclick), this.canvas.addEventListener("touchstart", this.onTouchstart));
|
|
1357
1413
|
}
|
|
1358
1414
|
onClick(t) {
|
|
1359
1415
|
const { screenX: e, screenY: i } = t;
|
|
@@ -1483,7 +1539,7 @@ class Xt {
|
|
|
1483
1539
|
}
|
|
1484
1540
|
}
|
|
1485
1541
|
const X = {};
|
|
1486
|
-
class
|
|
1542
|
+
class $t {
|
|
1487
1543
|
type = "image";
|
|
1488
1544
|
// 修改为更通用的名称
|
|
1489
1545
|
x;
|
|
@@ -1518,7 +1574,7 @@ class Ft {
|
|
|
1518
1574
|
}
|
|
1519
1575
|
}
|
|
1520
1576
|
}
|
|
1521
|
-
class
|
|
1577
|
+
class Jt {
|
|
1522
1578
|
id = "";
|
|
1523
1579
|
type = "point";
|
|
1524
1580
|
x;
|
|
@@ -1538,8 +1594,8 @@ class Ut {
|
|
|
1538
1594
|
t.beginPath(), t.arc(this.x, this.y, this.r * i, 0, 2 * Math.PI), t.fillStyle = this.backgroundColor, t.fill(), t.font = `${this.r * i}px Microsoft YaHei`, t.textAlign = "center", t.fillStyle = "#FFFFFF", t.fillText(this.text, this.x, this.y + this.r * i / 3), t.restore();
|
|
1539
1595
|
}
|
|
1540
1596
|
}
|
|
1541
|
-
const
|
|
1542
|
-
class
|
|
1597
|
+
const B = {};
|
|
1598
|
+
class qt {
|
|
1543
1599
|
id = "";
|
|
1544
1600
|
type = "issue";
|
|
1545
1601
|
//轨迹点上的事件
|
|
@@ -1559,7 +1615,7 @@ class Yt {
|
|
|
1559
1615
|
this.id = t.id, this.x = t.x, this.y = t.y, this.width = t.width || 0, this.height = t.height || 0, this.index = t.index, this.pIndex = t.pIndex, this.parentId = t.parentId, this.count = t.count || 0, this.badgeR = 3, this.src = t.src, this.redraw = t.redraw, this.img = this.loadImage(t.onload);
|
|
1560
1616
|
}
|
|
1561
1617
|
loadImage(t) {
|
|
1562
|
-
const e =
|
|
1618
|
+
const e = B[this.src];
|
|
1563
1619
|
if (e)
|
|
1564
1620
|
return queueMicrotask(() => {
|
|
1565
1621
|
t?.(e), this.redraw?.();
|
|
@@ -1567,18 +1623,18 @@ class Yt {
|
|
|
1567
1623
|
{
|
|
1568
1624
|
const i = new Image();
|
|
1569
1625
|
return i.src = this.src, i.crossOrigin = "anonymous", i.onload = () => {
|
|
1570
|
-
|
|
1626
|
+
B[this.src] = i, t?.(i), this.redraw?.();
|
|
1571
1627
|
}, i;
|
|
1572
1628
|
}
|
|
1573
1629
|
}
|
|
1574
1630
|
draw(t, e) {
|
|
1575
1631
|
if (!this.img.complete) return;
|
|
1576
|
-
const i = 1 / e.scale, n = this.width * i, o = this.height * i, r = this.x - n / 2, a = this.y - o,
|
|
1577
|
-
t.save(), t.drawImage(this.img, r, a, n, o), t.beginPath(), this.count > 1 && (t.arc(this.x + n * 0.3, this.y - o * 0.8,
|
|
1632
|
+
const i = 1 / e.scale, n = this.width * i, o = this.height * i, r = this.x - n / 2, a = this.y - o, h = this.badgeR * i, l = h * 1.5;
|
|
1633
|
+
t.save(), t.drawImage(this.img, r, a, n, o), t.beginPath(), this.count > 1 && (t.arc(this.x + n * 0.3, this.y - o * 0.8, h, 0, 2 * Math.PI), t.fillStyle = "red", t.fill(), t.font = `${l}px Microsoft YaHei`, t.textAlign = "center", t.fillStyle = "#FFFFFF", t.fillText(this.count.toString(), this.x + n * 0.3, this.y - o * 0.8 + h / 2)), t.restore();
|
|
1578
1634
|
}
|
|
1579
1635
|
}
|
|
1580
1636
|
const U = {};
|
|
1581
|
-
class
|
|
1637
|
+
class Wt {
|
|
1582
1638
|
type = "marker";
|
|
1583
1639
|
x;
|
|
1584
1640
|
y;
|
|
@@ -1632,7 +1688,7 @@ class Gt {
|
|
|
1632
1688
|
}
|
|
1633
1689
|
}
|
|
1634
1690
|
}
|
|
1635
|
-
class
|
|
1691
|
+
class Zt {
|
|
1636
1692
|
type = "radar";
|
|
1637
1693
|
x;
|
|
1638
1694
|
y;
|
|
@@ -1662,7 +1718,7 @@ class Bt {
|
|
|
1662
1718
|
r.addColorStop(0, "rgba(180, 42, 42, 1)"), r.addColorStop(1, "rgba(180, 42, 42, 0.5)"), t.beginPath(), t.moveTo(this.x, this.y), t.arc(this.x, this.y, this.r * i, n, o), t.closePath(), t.fillStyle = r, t.fill(), t.restore();
|
|
1663
1719
|
}
|
|
1664
1720
|
}
|
|
1665
|
-
class
|
|
1721
|
+
class Vt {
|
|
1666
1722
|
type = "region";
|
|
1667
1723
|
x;
|
|
1668
1724
|
y;
|
|
@@ -1683,8 +1739,8 @@ class $t {
|
|
|
1683
1739
|
}
|
|
1684
1740
|
draw(t, e) {
|
|
1685
1741
|
if (t.save(), t.beginPath(), t.globalAlpha = 0.3, t.fillStyle = this.backgroundColor, this.shape === "circle") {
|
|
1686
|
-
const [{ x: i, y: n }, {}, { x: o, y: r }] = this.areaPoints, a = Math.abs(o - i) / 2,
|
|
1687
|
-
t.arc(
|
|
1742
|
+
const [{ x: i, y: n }, {}, { x: o, y: r }] = this.areaPoints, a = Math.abs(o - i) / 2, h = i + (o - i) / 2, l = n + (r - n) / 2;
|
|
1743
|
+
t.arc(h, l, a, 0, 2 * Math.PI);
|
|
1688
1744
|
} else
|
|
1689
1745
|
this.areaPoints.forEach((i, n) => {
|
|
1690
1746
|
const { x: o, y: r } = i;
|
|
@@ -1694,35 +1750,38 @@ class $t {
|
|
|
1694
1750
|
}
|
|
1695
1751
|
}
|
|
1696
1752
|
export {
|
|
1697
|
-
|
|
1753
|
+
ht as APP_SETTING,
|
|
1698
1754
|
w as AppError,
|
|
1699
1755
|
p as AppErrorCode,
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1756
|
+
at as AppObsType,
|
|
1757
|
+
g as CRSTypes,
|
|
1758
|
+
_t as CanvasElement,
|
|
1759
|
+
$t as CanvasImageElement,
|
|
1760
|
+
qt as CanvasIssueElement,
|
|
1761
|
+
Wt as CanvasMarkerElement,
|
|
1762
|
+
Jt as CanvasPointElement,
|
|
1763
|
+
Zt as CanvasRadarElement,
|
|
1764
|
+
Vt as CanvasRegionElement,
|
|
1708
1765
|
R as Coordinate,
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1766
|
+
rt as CoordinateLevel,
|
|
1767
|
+
P as CoordinateModelType,
|
|
1768
|
+
G as CoordinateStatus,
|
|
1769
|
+
v as CoordinateType,
|
|
1770
|
+
Yt as DataHelper,
|
|
1714
1771
|
m as DataSource,
|
|
1715
|
-
|
|
1772
|
+
C as GeoPoint,
|
|
1773
|
+
Y as LocaleType,
|
|
1774
|
+
ut as MAP_PROVIDERS,
|
|
1716
1775
|
f as Point,
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1776
|
+
it as Position,
|
|
1777
|
+
lt as REQUEST_CONFIG,
|
|
1778
|
+
ct as REQUEST_OPTIONS,
|
|
1720
1779
|
y as RelativeMap,
|
|
1721
1780
|
L as RequestContentType,
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1781
|
+
M as RequestMethod,
|
|
1782
|
+
F as RequestResultCode,
|
|
1783
|
+
nt as Vector3,
|
|
1784
|
+
Ut as api,
|
|
1785
|
+
Bt as http,
|
|
1786
|
+
Ft as utils
|
|
1728
1787
|
};
|