earthsdk3 3.6.3 → 3.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/earthsdk3.js
CHANGED
|
@@ -44,7 +44,7 @@ function fd(r) {
|
|
|
44
44
|
}
|
|
45
45
|
let nu;
|
|
46
46
|
try {
|
|
47
|
-
const r = "earthsdk3", e = "3.6.
|
|
47
|
+
const r = "earthsdk3", e = "3.6.4", t = "2025-12-22T06:09:09.000Z", n = "北京西部世界科技有限公司", i = "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn", s = "a67eb8137b005cacf83c6ae5569999156227106e", a = ((Date.now() - 1766383749e3) / 36e5).toFixed(1), u = `%c🌏 ${r}%c ${e}.${s.slice(0, 8)}.${t} (距今${a}个小时)
|
|
48
48
|
%c${i ? i + `
|
|
49
49
|
` : ""}当前网站正在使用${r},此软件版权归${n}所有
|
|
50
50
|
`;
|
|
@@ -58,7 +58,7 @@ try {
|
|
|
58
58
|
},
|
|
59
59
|
// @ts-ignore
|
|
60
60
|
get gituri() {
|
|
61
|
-
return GITURI_ && GITURI_.replace("${commitId}", "
|
|
61
|
+
return GITURI_ && GITURI_.replace("${commitId}", "a67eb8137b005cacf83c6ae5569999156227106e");
|
|
62
62
|
},
|
|
63
63
|
// @ts-ignore
|
|
64
64
|
get info() {
|
|
@@ -66,7 +66,7 @@ try {
|
|
|
66
66
|
},
|
|
67
67
|
// @ts-ignore
|
|
68
68
|
get date() {
|
|
69
|
-
return "2025-12-
|
|
69
|
+
return "2025-12-22T06:09:09.000Z";
|
|
70
70
|
},
|
|
71
71
|
// @ts-ignore
|
|
72
72
|
get author() {
|
|
@@ -74,7 +74,7 @@ try {
|
|
|
74
74
|
},
|
|
75
75
|
// @ts-ignore
|
|
76
76
|
get version() {
|
|
77
|
-
return "3.6.
|
|
77
|
+
return "3.6.4";
|
|
78
78
|
},
|
|
79
79
|
// @ts-ignore
|
|
80
80
|
get name() {
|
|
@@ -82,7 +82,7 @@ try {
|
|
|
82
82
|
},
|
|
83
83
|
// @ts-ignore
|
|
84
84
|
get commitId() {
|
|
85
|
-
return "
|
|
85
|
+
return "a67eb8137b005cacf83c6ae5569999156227106e";
|
|
86
86
|
},
|
|
87
87
|
/**
|
|
88
88
|
* 打印版权信息到控制台
|
|
@@ -1048,13 +1048,13 @@ function B(r, e, t, n = !1) {
|
|
|
1048
1048
|
const i = r instanceof rn ? [r, "value", "changed"] : r, s = e instanceof rn ? [e, "value", "changed"] : e;
|
|
1049
1049
|
return Yc(i, s, t, n);
|
|
1050
1050
|
}
|
|
1051
|
-
function
|
|
1051
|
+
function nt(r, e, t, n, i = !1) {
|
|
1052
1052
|
const s = Xc(r), o = Xc(e);
|
|
1053
1053
|
return kv(s, o, t, n, i);
|
|
1054
1054
|
}
|
|
1055
1055
|
function sS(r, e, t, n = !1) {
|
|
1056
1056
|
const [i] = Ss(e);
|
|
1057
|
-
return
|
|
1057
|
+
return nt(
|
|
1058
1058
|
r,
|
|
1059
1059
|
e,
|
|
1060
1060
|
(s) => s ?? t,
|
|
@@ -5912,15 +5912,15 @@ class qy extends V {
|
|
|
5912
5912
|
function Nd(r, e) {
|
|
5913
5913
|
const [t, n, i] = Ss(r), s = k(void 0), o = () => {
|
|
5914
5914
|
const a = t() ?? e;
|
|
5915
|
-
s.value = a &&
|
|
5915
|
+
s.value = a && et.context.getStrFromEnv(a);
|
|
5916
5916
|
};
|
|
5917
|
-
return o(), i && s.d(i.don(o)), s.d(
|
|
5917
|
+
return o(), i && s.d(i.don(o)), s.d(et.context.environmentVariablesChanged.don(o)), s;
|
|
5918
5918
|
}
|
|
5919
5919
|
function zg(r) {
|
|
5920
5920
|
const e = /\${(.*?)\}/g;
|
|
5921
5921
|
if (!e.test(r)) return r;
|
|
5922
5922
|
const t = r.replace(e, (n, i) => {
|
|
5923
|
-
const s =
|
|
5923
|
+
const s = et.context.getEnv(i);
|
|
5924
5924
|
return s === void 0 ? (console.warn(`环境变量(${i})不存在,无法进行转换`), "{env-error}") : s;
|
|
5925
5925
|
});
|
|
5926
5926
|
return zg(t);
|
|
@@ -6828,7 +6828,7 @@ d(gt, "getSceneObjectById", gt.context.getSceneObjectById.bind(gt.context)), /**
|
|
|
6828
6828
|
* @returns 对应的场景对象,如果未找到则返回 undefined。
|
|
6829
6829
|
*/
|
|
6830
6830
|
d(gt, "getSceneObject", gt.context.getSceneObject.bind(gt.context));
|
|
6831
|
-
let
|
|
6831
|
+
let et = gt;
|
|
6832
6832
|
class Yy extends V {
|
|
6833
6833
|
/**
|
|
6834
6834
|
* 构造函数,创建一个新的 ViewerPropSceneObject 实例。
|
|
@@ -7311,7 +7311,7 @@ class Mb {
|
|
|
7311
7311
|
e != null && e.pickedResult && (this.pickResult = e.pickedResult), e != null && e.sceneObject && (this.sceneObject = e.sceneObject), e != null && e.tilesetPickInfo && (this.tilesetPickInfo = e.tilesetPickInfo), e != null && e.geojsonPickInfo && (this.geojsonPickInfo = e.geojsonPickInfo), e != null && e.attachedInfo && (this.attachedInfo = e.attachedInfo), e != null && e.screenPosition && (this.screenPosition = e.screenPosition);
|
|
7312
7312
|
}
|
|
7313
7313
|
}
|
|
7314
|
-
const _e = class _e extends
|
|
7314
|
+
const _e = class _e extends et {
|
|
7315
7315
|
/**
|
|
7316
7316
|
* 构造函数
|
|
7317
7317
|
* @param {string | undefined} id 对象的唯一标识
|
|
@@ -7670,7 +7670,7 @@ const _e = class _e extends nt {
|
|
|
7670
7670
|
}
|
|
7671
7671
|
};
|
|
7672
7672
|
d(_e, "createDefaultProps", () => ({
|
|
7673
|
-
...
|
|
7673
|
+
...et.createDefaultProps(),
|
|
7674
7674
|
/**是否显示 默认true */
|
|
7675
7675
|
show: !0,
|
|
7676
7676
|
/**是否开启碰撞监测 默认true ,主要是UE使用*/
|
|
@@ -7936,10 +7936,10 @@ class Yg extends V {
|
|
|
7936
7936
|
this._id = t, this.d(() => {
|
|
7937
7937
|
this._sceneObject.value = void 0;
|
|
7938
7938
|
});
|
|
7939
|
-
const n =
|
|
7940
|
-
n && (this._sceneObject.value = n), this.d(
|
|
7939
|
+
const n = et.getSceneObjById(this._id);
|
|
7940
|
+
n && (this._sceneObject.value = n), this.d(et.context.sceneObjCreatedEvent.don((i) => {
|
|
7941
7941
|
i.id === this._id && (this._sceneObject.value = i);
|
|
7942
|
-
})), this.d(
|
|
7942
|
+
})), this.d(et.context.sceneObjToDestroyEvent.don((i) => {
|
|
7943
7943
|
i.id === this._id && (this._sceneObject.value = void 0);
|
|
7944
7944
|
}));
|
|
7945
7945
|
}
|
|
@@ -25419,7 +25419,7 @@ class ju extends V {
|
|
|
25419
25419
|
this.sceneObject = void 0;
|
|
25420
25420
|
})), i;
|
|
25421
25421
|
})), this.d(this.sceneObjectChanged.don((n) => {
|
|
25422
|
-
this._propTreeReact.value = void 0, !(!n || !(n instanceof
|
|
25422
|
+
this._propTreeReact.value = void 0, !(!n || !(n instanceof et)) && (this._propTreeReact.value = aE(n, t));
|
|
25423
25423
|
}));
|
|
25424
25424
|
}
|
|
25425
25425
|
/**
|
|
@@ -25463,7 +25463,7 @@ function tx(r, e, t, n = !0) {
|
|
|
25463
25463
|
function cE(r, e) {
|
|
25464
25464
|
const { type: t, id: n } = r;
|
|
25465
25465
|
if (t) {
|
|
25466
|
-
const i =
|
|
25466
|
+
const i = et.create(t, n);
|
|
25467
25467
|
if (i)
|
|
25468
25468
|
return i.json = r, i;
|
|
25469
25469
|
console.warn(`cannot create sceneObject from type(${t})`);
|
|
@@ -25516,7 +25516,7 @@ class In extends Cu {
|
|
|
25516
25516
|
u && (u(), u = void 0);
|
|
25517
25517
|
};
|
|
25518
25518
|
this.dispose(l), this.dispose(this.sceneObjectChanged.disposableOn((c) => {
|
|
25519
|
-
l(), c && (u =
|
|
25519
|
+
l(), c && (u = nt([this, "name"], [c, "name"]));
|
|
25520
25520
|
})), this.dispose(this.showChanged.disposableOn((c) => {
|
|
25521
25521
|
if (t.setSceneObjectShowFunc(this.sceneObject, c), this.tree && this.tree.forceRedraw(), this.children && !this._showChangedNotAffectChildren)
|
|
25522
25522
|
for (let h of this.children)
|
|
@@ -26203,7 +26203,7 @@ const Fn = class Fn extends fu {
|
|
|
26203
26203
|
console.warn(`cannot addNewTreeItem! currentTreeItem(${i ? i.id : "root"})`);
|
|
26204
26204
|
return;
|
|
26205
26205
|
}
|
|
26206
|
-
const a =
|
|
26206
|
+
const a = et.create(t, n);
|
|
26207
26207
|
return a ? this.addNewTreeItem(i, s ?? "FolderInnerOrAfter", !0, a) : void 0;
|
|
26208
26208
|
}
|
|
26209
26209
|
/**
|
|
@@ -26239,7 +26239,7 @@ const Fn = class Fn extends fu {
|
|
|
26239
26239
|
const o = s ?? "FolderInnerOrAfter";
|
|
26240
26240
|
if (!this.testAddNewTreeItem(i, o))
|
|
26241
26241
|
return;
|
|
26242
|
-
const a =
|
|
26242
|
+
const a = et.createFromClass(t, n);
|
|
26243
26243
|
return a ? this.addNewTreeItem(i, o, !0, a) : void 0;
|
|
26244
26244
|
}
|
|
26245
26245
|
/**
|
|
@@ -26253,7 +26253,7 @@ const Fn = class Fn extends fu {
|
|
|
26253
26253
|
const s = i ?? "FolderInnerOrAfter";
|
|
26254
26254
|
if (!this.testAddNewTreeItem(n, s))
|
|
26255
26255
|
return;
|
|
26256
|
-
const o =
|
|
26256
|
+
const o = et.createFromJson(t);
|
|
26257
26257
|
return console.log(o), o ? this.addNewTreeItem(n, i ?? "FolderInnerOrAfter", !0, o) : void 0;
|
|
26258
26258
|
}
|
|
26259
26259
|
/**
|
|
@@ -27824,13 +27824,13 @@ d(qo, "createDefaultProps", () => ({
|
|
|
27824
27824
|
rotationOffset: ft([0, 0, 0])
|
|
27825
27825
|
})), d(qo, "type", qo.register("ESLabel", qo, { chsName: "标签", tags: ["ESObjects"], description: "标签对象" }));
|
|
27826
27826
|
let Tr = qo;
|
|
27827
|
-
const Ho = class Ho extends
|
|
27827
|
+
const Ho = class Ho extends et {
|
|
27828
27828
|
constructor(e) {
|
|
27829
27829
|
super(e);
|
|
27830
27830
|
}
|
|
27831
27831
|
};
|
|
27832
27832
|
d(Ho, "createDefaultProps", () => ({
|
|
27833
|
-
...
|
|
27833
|
+
...et.createDefaultProps(),
|
|
27834
27834
|
show: !0,
|
|
27835
27835
|
fillStyle: wt({ color: [1, 1, 1, 1], material: "", materialParams: {}, ground: !1 })
|
|
27836
27836
|
})), d(Ho, "type", Ho.register("ESTestObject", Ho, { chsName: "测试", tags: ["ESObjects"], description: "" }));
|
|
@@ -29107,7 +29107,7 @@ class gl extends V {
|
|
|
29107
29107
|
};
|
|
29108
29108
|
}
|
|
29109
29109
|
}
|
|
29110
|
-
const sr = class sr extends
|
|
29110
|
+
const sr = class sr extends et {
|
|
29111
29111
|
/**
|
|
29112
29112
|
* 构造函数。
|
|
29113
29113
|
* @param id 对象的 ID,可选。
|
|
@@ -29430,7 +29430,7 @@ const sr = class sr extends nt {
|
|
|
29430
29430
|
* @returns 转换后的图片路径。
|
|
29431
29431
|
*/
|
|
29432
29432
|
transitionImageUrl(t) {
|
|
29433
|
-
return
|
|
29433
|
+
return et.context.getStrFromEnv(t);
|
|
29434
29434
|
}
|
|
29435
29435
|
_flyStep(t) {
|
|
29436
29436
|
var o;
|
|
@@ -29481,7 +29481,7 @@ const sr = class sr extends nt {
|
|
|
29481
29481
|
}
|
|
29482
29482
|
};
|
|
29483
29483
|
d(sr, "createDefaultProps", () => ({
|
|
29484
|
-
...
|
|
29484
|
+
...et.createDefaultProps(),
|
|
29485
29485
|
/**开始播放 */
|
|
29486
29486
|
playing: !1,
|
|
29487
29487
|
//开始播放
|
|
@@ -29839,7 +29839,7 @@ const ev = `class MyDiv {
|
|
|
29839
29839
|
\`\`\`
|
|
29840
29840
|
${ev}
|
|
29841
29841
|
\`\`\`
|
|
29842
|
-
`, or = class or extends
|
|
29842
|
+
`, or = class or extends et {
|
|
29843
29843
|
/**
|
|
29844
29844
|
* 构造函数,初始化 ESCustomDiv 实例。
|
|
29845
29845
|
*
|
|
@@ -30054,7 +30054,7 @@ ${ev}
|
|
|
30054
30054
|
}
|
|
30055
30055
|
};
|
|
30056
30056
|
d(or, "createDefaultProps", () => ({
|
|
30057
|
-
...
|
|
30057
|
+
...et.createDefaultProps(),
|
|
30058
30058
|
/**是否显示 默认true */
|
|
30059
30059
|
show: !0,
|
|
30060
30060
|
/**实例类字符串 */
|
|
@@ -31218,7 +31218,7 @@ const hi = class hi extends Wt {
|
|
|
31218
31218
|
* @param id - 可选的实例 ID。
|
|
31219
31219
|
*/
|
|
31220
31220
|
constructor(e) {
|
|
31221
|
-
super(e), this.ad(
|
|
31221
|
+
super(e), this.ad(nt([this, "czmSplitDirection"], [this, "splitDirection"])), this.ad(nt([this, "czmAlpha"], [this, "opacity"]));
|
|
31222
31222
|
}
|
|
31223
31223
|
/**
|
|
31224
31224
|
* 获取 ES 属性。
|
|
@@ -31554,7 +31554,7 @@ const Ke = class Ke extends st {
|
|
|
31554
31554
|
d(this, "_player", this.dv(new bi()));
|
|
31555
31555
|
{
|
|
31556
31556
|
const n = Ke.defaults;
|
|
31557
|
-
this.d(
|
|
31557
|
+
this.d(nt([this._player, "loop"], [this, "playingLoop"], (i) => i ?? n.playingLoop, (i) => i ?? n.playingLoop)), this.d(nt([this._player, "currentTime"], [this, "currentTime"], (i) => i ?? n.currentTime, (i) => i ?? n.currentTime)), this.d(nt([this._player, "duration"], [this, "duration"], (i) => i ?? n.duration, (i) => i ?? n.duration)), this.d(nt([this._player, "playing"], [this, "playing"], (i) => i ?? n.playing, (i) => i ?? n.playing)), this.d(nt([this._player, "speed"], [this, "playingSpeed"], (i) => i ?? n.playingSpeed, (i) => i ?? n.playingSpeed));
|
|
31558
31558
|
}
|
|
31559
31559
|
}
|
|
31560
31560
|
/**
|
|
@@ -33607,7 +33607,7 @@ ${av}
|
|
|
33607
33607
|
this.features = void 0;
|
|
33608
33608
|
return;
|
|
33609
33609
|
}
|
|
33610
|
-
typeof this.url == "object" ? this.features = this.url : Hg(this.url) ? this.features = JSON.parse(this.url) : await fetch(
|
|
33610
|
+
typeof this.url == "object" ? this.features = this.url : Hg(this.url) ? this.features = JSON.parse(this.url) : await fetch(et.context.getStrFromEnv(this.url), { signal: t }).then((i) => i.json()).then((i) => {
|
|
33611
33611
|
this.features = i;
|
|
33612
33612
|
}).catch((i) => {
|
|
33613
33613
|
i.name != "AbortError" && console.warn("ESGeoJson数据加载失败", i);
|
|
@@ -35784,7 +35784,7 @@ const la = class la extends Ca {
|
|
|
35784
35784
|
this.d(this.components.disposableAdd(this._human, !0)), this.d(this.components.disposableAdd(this._poi));
|
|
35785
35785
|
{
|
|
35786
35786
|
const { _human: n, _poi: i } = this;
|
|
35787
|
-
this.d(B([n, "show"], [this, "show"])), this.d(B([i, "show"], [this, "show"])), this.d(B([n, "allowPicking"], [this, "allowPicking"])), this.d(B([i, "allowPicking"], [this, "allowPicking"])), this.d(
|
|
35787
|
+
this.d(B([n, "show"], [this, "show"])), this.d(B([i, "show"], [this, "show"])), this.d(B([n, "allowPicking"], [this, "allowPicking"])), this.d(B([i, "allowPicking"], [this, "allowPicking"])), this.d(B([n, "scale"], [this, "scale"])), this.d(B([i, "scale"], [this, "scale"])), this.d(B([n, "collision"], [this, "collision"])), this.d(B([i, "collision"], [this, "collision"])), this.d(nt([n, "flyInParam"], [this, "flyInParam"])), this.d(nt([n, "flyToParam"], [this, "flyToParam"])), this.d(B([n, "animation"], [this, "animation"])), this.d(B([n, "mode"], [this, "mode"])), this.d(B([n, "minVisibleDistance"], [this, "minVisibleDistance"])), this.d(B([n, "maxVisibleDistance"], [this, "maxVisibleDistance"])), this.d(B([i, "name"], [this, "name"])), this.d(B([i, "mode"], [this, "poiMode"])), this.d(B([i, "autoAnchor"], [this, "autoAnchor"])), this.d(B([i, "screenRender"], [this, "screenRender"])), this.d(B([i, "size"], [this, "size"])), this.d(B([i, "anchor"], [this, "anchor"])), this.d(B([i, "sizeByContent"], [this, "sizeByContent"])), this.d(B([i, "renderMode"], [this, "renderMode"])), this.d(B([i, "rotationType"], [this, "rotationType"])), this.d(B([i, "zOrder"], [this, "zOrder"])), this.d(B([i, "minVisibleDistance"], [this, "minVisibleDistance"])), this.d(B([i, "maxVisibleDistance"], [this, "maxVisibleDistance"])), this.d(nt([n, "position"], [this, "position"])), this.d(nt([n, "rotation"], [this, "rotation"])), this.d(this.flyInEvent.don((s) => {
|
|
35788
35788
|
n.flyIn(s);
|
|
35789
35789
|
})), this.d(this.flyToEvent.don((s) => {
|
|
35790
35790
|
n.flyTo(s);
|
|
@@ -35931,12 +35931,12 @@ d(Vr, "createDefaultProps", () => ({
|
|
|
35931
35931
|
* 侧面图片纹理
|
|
35932
35932
|
* @type {ESJTexture}
|
|
35933
35933
|
*/
|
|
35934
|
-
sideImage: wt({ url:
|
|
35934
|
+
sideImage: wt({ url: et.context.getStrFromEnv("${earthsdk3-assets-script-dir}/assets/img/ESPit/side.jpg"), uDis: 50, vDis: 50 }),
|
|
35935
35935
|
/**
|
|
35936
35936
|
* 底面图片纹理
|
|
35937
35937
|
* @type {ESJTexture}
|
|
35938
35938
|
*/
|
|
35939
|
-
bottomImage: wt({ url:
|
|
35939
|
+
bottomImage: wt({ url: et.context.getStrFromEnv("${earthsdk3-assets-script-dir}/assets/img/ESPit/bottom.jpg"), uDis: 50, vDis: 50 }),
|
|
35940
35940
|
/**
|
|
35941
35941
|
* 透明度 默认1
|
|
35942
35942
|
*/
|
|
@@ -35979,7 +35979,7 @@ const ca = class ca extends pu {
|
|
|
35979
35979
|
this.d(this.components.disposableAdd(this._excavate)), this.d(this.components.disposableAdd(this._pit, !0));
|
|
35980
35980
|
{
|
|
35981
35981
|
const { _excavate: n, _pit: i } = this;
|
|
35982
|
-
this.d(B([n, "show"], [this, "show"])), this.d(B([i, "show"], [this, "show"])), this.d(B([n, "allowPicking"], [this, "allowPicking"])), this.d(B([i, "allowPicking"], [this, "allowPicking"])), this.d(B([n, "collision"], [this, "collision"])), this.d(B([i, "collision"], [this, "collision"])), this.d(
|
|
35982
|
+
this.d(B([n, "show"], [this, "show"])), this.d(B([i, "show"], [this, "show"])), this.d(B([n, "allowPicking"], [this, "allowPicking"])), this.d(B([i, "allowPicking"], [this, "allowPicking"])), this.d(B([n, "collision"], [this, "collision"])), this.d(B([i, "collision"], [this, "collision"])), this.d(nt([i, "points"], [this, "points"])), this.d(B([n, "points"], [this, "points"])), this.d(B([i, "pointed"], [this, "pointed"])), this.d(B([n, "pointed"], [this, "pointed"])), this.d(B([i, "pointStyle"], [this, "pointStyle"])), this.d(B([n, "pointStyle"], [this, "pointStyle"])), this.d(B([i, "stroked"], [this, "stroked"])), this.d(B([n, "stroked"], [this, "stroked"])), this.d(B([i, "strokeStyle"], [this, "strokeStyle"])), this.d(B([n, "strokeStyle"], [this, "strokeStyle"])), this.d(B([i, "filled"], [this, "filled"])), this.d(B([i, "fillStyle"], [this, "fillStyle"])), this.d(B([n, "fillStyle"], [this, "fillStyle"])), this.d(B([n, "mode"], [this, "mode"])), this.d(B([n, "targetID"], [this, "targetID"])), this.d(B([i, "depth"], [this, "depth"])), this.d(B([i, "sideImage"], [this, "sideImage"])), this.d(B([i, "bottomImage"], [this, "bottomImage"])), this.d(B([i, "opacity"], [this, "opacity"])), this.d(B([i, "interpolation"], [this, "interpolation"])), this.d(nt([i, "flyInParam"], [this, "flyInParam"])), this.d(nt([i, "flyToParam"], [this, "flyToParam"])), this.d(this.flyInEvent.don((s) => {
|
|
35983
35983
|
i.flyIn(s);
|
|
35984
35984
|
})), this.d(this.flyToEvent.don((s) => {
|
|
35985
35985
|
i.flyTo(s);
|
|
@@ -36175,7 +36175,7 @@ const od = {
|
|
|
36175
36175
|
{
|
|
36176
36176
|
this.d(this.components.disposableAdd(this._es3DTileset, !0));
|
|
36177
36177
|
const n = this._es3DTileset;
|
|
36178
|
-
this.d(B([n, "allowPicking"], [this, "allowPicking"])), this.d(B([n, "collision"], [this, "collision"])), this.d(
|
|
36178
|
+
this.d(B([n, "allowPicking"], [this, "allowPicking"])), this.d(B([n, "collision"], [this, "collision"])), this.d(nt([n, "flyToParam"], [this, "flyToParam"])), this.d(nt([n, "flyToParam"], [this, "flyToParam"])), this.d(B([n, "actorTag"], [this, "actorTag"])), this.d(B([n, "materialMode"], [this, "materialMode"])), this.d(B([n, "highlight"], [this, "highlight"])), this.d(B([n, "maximumScreenSpaceError"], [this, "maximumScreenSpaceError"])), this.d(B([n, "highlightID"], [this, "highlightID"])), this.d(B([n, "highlightColor"], [this, "highlightColor"])), this.d(nt([n, "offset"], [this, "offset"])), this.d(nt([n, "rotation"], [this, "rotation"])), this.d(B([n, "czmImageBasedLightingFactor"], [this, "czmImageBasedLightingFactor"])), this.d(B([n, "czmLuminanceAtZenith"], [this, "czmLuminanceAtZenith"])), this.d(B([n, "czmMaximumMemoryUsage"], [this, "czmMaximumMemoryUsage"])), this.d(B([n, "czmClassificationType"], [this, "czmClassificationType"])), this.d(B([n, "czmStyleJson"], [this, "czmStyleJson"])), this.d(B([n, "czmBackFaceCulling"], [this, "czmBackFaceCulling"])), this.d(B([n, "czmDebugShowBoundingVolume"], [this, "czmDebugShowBoundingVolume"])), this.d(B([n, "czmDebugShowContentBoundingVolume"], [this, "czmDebugShowContentBoundingVolume"])), this.d(B([n, "czmSkipLevelOfDetail"], [this, "czmSkipLevelOfDetail"])), this.d(B([n, "colorBlendMode"], [this, "colorBlendMode"])), this.d(B([n, "cacheBytes"], [this, "cacheBytes"])), this.d(B([n, "clippingPlaneEnabled"], [this, "clippingPlaneEnabled"])), this.d(B([n, "unionClippingRegions"], [this, "unionClippingRegions"])), this.d(B([n, "clippingPlaneEdgeColor"], [this, "clippingPlaneEdgeColor"])), this.d(B([n, "clippingPlaneEdgeWidth"], [this, "clippingPlaneEdgeWidth"])), this.d(B([n, "materialParams"], [this, "materialParams"])), this.d(nt([n, "supportEdit"], [this, "supportEdit"])), this.d(nt([n, "clippingPlanesId"], [this, "clippingPlanesId"])), this.d(nt([n, "clippingPlaneIds"], [this, "clippingPlaneIds"])), this.d(nt([n, "flattenedPlaneId"], [this, "flattenedPlaneId"])), this.d(nt([n, "flattenedPlaneEnabled"], [this, "flattenedPlaneEnabled"])), this.d(nt([n, "clippingPlaneId"], [this, "clippingPlaneId"])), this.d(nt([n, "excavateId"], [this, "excavateId"]));
|
|
36179
36179
|
}
|
|
36180
36180
|
{
|
|
36181
36181
|
const n = this._es3DTileset;
|
|
@@ -36618,7 +36618,7 @@ const XE = async (r, e, t) => {
|
|
|
36618
36618
|
{
|
|
36619
36619
|
this.d(this.components.disposableAdd(this._es3DTileset, !0));
|
|
36620
36620
|
const n = this._es3DTileset;
|
|
36621
|
-
this.d(B([n, "allowPicking"], [this, "allowPicking"])), this.d(B([n, "collision"], [this, "collision"])), this.d(
|
|
36621
|
+
this.d(B([n, "allowPicking"], [this, "allowPicking"])), this.d(B([n, "collision"], [this, "collision"])), this.d(nt([n, "flyToParam"], [this, "flyToParam"])), this.d(nt([n, "flyToParam"], [this, "flyToParam"])), this.d(B([n, "actorTag"], [this, "actorTag"])), this.d(B([n, "materialMode"], [this, "materialMode"])), this.d(B([n, "highlight"], [this, "highlight"])), this.d(B([n, "maximumScreenSpaceError"], [this, "maximumScreenSpaceError"])), this.d(B([n, "highlightID"], [this, "highlightID"])), this.d(B([n, "highlightColor"], [this, "highlightColor"])), this.d(nt([n, "offset"], [this, "offset"])), this.d(nt([n, "rotation"], [this, "rotation"])), this.d(B([n, "czmImageBasedLightingFactor"], [this, "czmImageBasedLightingFactor"])), this.d(B([n, "czmLuminanceAtZenith"], [this, "czmLuminanceAtZenith"])), this.d(B([n, "czmMaximumMemoryUsage"], [this, "czmMaximumMemoryUsage"])), this.d(B([n, "czmClassificationType"], [this, "czmClassificationType"])), this.d(B([n, "czmStyleJson"], [this, "czmStyleJson"])), this.d(B([n, "czmBackFaceCulling"], [this, "czmBackFaceCulling"])), this.d(B([n, "czmDebugShowBoundingVolume"], [this, "czmDebugShowBoundingVolume"])), this.d(B([n, "czmDebugShowContentBoundingVolume"], [this, "czmDebugShowContentBoundingVolume"])), this.d(B([n, "czmSkipLevelOfDetail"], [this, "czmSkipLevelOfDetail"])), this.d(B([n, "colorBlendMode"], [this, "colorBlendMode"])), this.d(B([n, "cacheBytes"], [this, "cacheBytes"])), this.d(B([n, "clippingPlaneEnabled"], [this, "clippingPlaneEnabled"])), this.d(B([n, "unionClippingRegions"], [this, "unionClippingRegions"])), this.d(B([n, "clippingPlaneEdgeColor"], [this, "clippingPlaneEdgeColor"])), this.d(B([n, "clippingPlaneEdgeWidth"], [this, "clippingPlaneEdgeWidth"])), this.d(B([n, "materialParams"], [this, "materialParams"])), this.d(nt([n, "supportEdit"], [this, "supportEdit"])), this.d(nt([n, "clippingPlanesId"], [this, "clippingPlanesId"])), this.d(nt([n, "clippingPlaneIds"], [this, "clippingPlaneIds"])), this.d(nt([n, "flattenedPlaneId"], [this, "flattenedPlaneId"])), this.d(nt([n, "flattenedPlaneEnabled"], [this, "flattenedPlaneEnabled"])), this.d(nt([n, "clippingPlaneId"], [this, "clippingPlaneId"])), this.d(nt([n, "excavateId"], [this, "excavateId"]));
|
|
36622
36622
|
}
|
|
36623
36623
|
{
|
|
36624
36624
|
const n = this._es3DTileset;
|
|
@@ -36886,7 +36886,7 @@ d(ro, "createDefaultProps", () => ({
|
|
|
36886
36886
|
*/
|
|
36887
36887
|
d(ro, "type", ro.register("ESPoiTileset", ro, { chsName: "ESPoiTileset", tags: ["ESObjects", "_ES_Impl_UE"], description: "ESPoiTileset" }));
|
|
36888
36888
|
let Ap = ro;
|
|
36889
|
-
const fa = class fa extends
|
|
36889
|
+
const fa = class fa extends et {
|
|
36890
36890
|
/**
|
|
36891
36891
|
* 获取对象的属性列表。
|
|
36892
36892
|
* @returns {Array<GroupProperty | BooleanProperty | EnumProperty | Number2Property>} 属性列表。
|
|
@@ -36906,7 +36906,7 @@ const fa = class fa extends nt {
|
|
|
36906
36906
|
}
|
|
36907
36907
|
};
|
|
36908
36908
|
d(fa, "createDefaultProps", () => ({
|
|
36909
|
-
...
|
|
36909
|
+
...et.createDefaultProps(),
|
|
36910
36910
|
/**
|
|
36911
36911
|
* 是否显示比例尺。
|
|
36912
36912
|
* @type {boolean}
|
|
@@ -36994,7 +36994,7 @@ const io = class io extends Ht {
|
|
|
36994
36994
|
this.d(this.components.disposableAdd(this._classification)), this.d(this.components.disposableAdd(this._geoExtrudedPolygon, !0));
|
|
36995
36995
|
{
|
|
36996
36996
|
const { _classification: n, _geoExtrudedPolygon: i } = this;
|
|
36997
|
-
i.perPositionHeight = !0, this.d(B([n, "collision"], [this, "collision"])), this.d(B([i, "collision"], [this, "collision"])), this.d(
|
|
36997
|
+
i.perPositionHeight = !0, this.d(B([n, "collision"], [this, "collision"])), this.d(B([i, "collision"], [this, "collision"])), this.d(nt([i, "flyInParam"], [this, "flyInParam"])), this.d(nt([i, "flyToParam"], [this, "flyToParam"])), this.d(nt([i, "points"], [this, "points"])), this.d(nt([i, "extrudedHeight"], [this, "height"])), this.d(nt([n, "fillColor"], [this, "overheightColor"])), this.d(nt([i, "fillColor"], [this, "standardColor"]));
|
|
36998
36998
|
{
|
|
36999
36999
|
const s = () => {
|
|
37000
37000
|
const { height: o, points: a, maxHeight: u } = this;
|
|
@@ -37101,7 +37101,7 @@ const Br = class Br extends Wt {
|
|
|
37101
37101
|
d(this, "_data", this.dv(k(void 0)));
|
|
37102
37102
|
{
|
|
37103
37103
|
const n = () => {
|
|
37104
|
-
this.url && (typeof this.url == "object" ? this.data = this.url : Hg(this.url) ? this.data = JSON.parse(this.url) : fetch(
|
|
37104
|
+
this.url && (typeof this.url == "object" ? this.data = this.url : Hg(this.url) ? this.data = JSON.parse(this.url) : fetch(et.context.getStrFromEnv(this.url)).then((i) => i.json()).then((i) => {
|
|
37105
37105
|
this.data = i;
|
|
37106
37106
|
}).catch((i) => {
|
|
37107
37107
|
console.warn("ESEntityCluster数据加载失败", i);
|
|
@@ -37227,7 +37227,7 @@ class Gu extends V {
|
|
|
37227
37227
|
};
|
|
37228
37228
|
n(), this.d(this.startTimeChanged.don(n)), this.d(this.stopTimeChanged.don(n));
|
|
37229
37229
|
}
|
|
37230
|
-
this.d(
|
|
37230
|
+
this.d(nt([t, "playing"], [this, "playing"])), this.d(nt([t, "loop"], [this, "loop"])), this.d(nt([t, "speed"], [this, "speed"])), this.d(t.currentTimeChanged.don(() => {
|
|
37231
37231
|
this.startTime !== void 0 && t.currentTime !== void 0 && (this.currentTime = t.currentTime + this.startTime);
|
|
37232
37232
|
})), this.d(this.currentTimeChanged.don(() => {
|
|
37233
37233
|
if (this.currentTime === void 0 || this.startTime === void 0) return;
|
|
@@ -37266,7 +37266,7 @@ class Gu extends V {
|
|
|
37266
37266
|
}
|
|
37267
37267
|
((r) => {
|
|
37268
37268
|
r.createDefaultProps = () => ({
|
|
37269
|
-
...
|
|
37269
|
+
...et.createDefaultProps(),
|
|
37270
37270
|
/**当前时间 */
|
|
37271
37271
|
currentTime: void 0,
|
|
37272
37272
|
/**开始时间 */
|
|
@@ -37282,7 +37282,7 @@ class Gu extends V {
|
|
|
37282
37282
|
});
|
|
37283
37283
|
})(Gu || (Gu = {}));
|
|
37284
37284
|
zs(Gu.prototype, Gu.createDefaultProps);
|
|
37285
|
-
const pa = class pa extends
|
|
37285
|
+
const pa = class pa extends et {
|
|
37286
37286
|
/**
|
|
37287
37287
|
* 构造函数,初始化 ESPlayer 实例。
|
|
37288
37288
|
* @param id - 可选的实例 ID。
|
|
@@ -37294,7 +37294,7 @@ const pa = class pa extends nt {
|
|
|
37294
37294
|
*/
|
|
37295
37295
|
d(this, "_absolutePlayer", this.dv(new Gu()));
|
|
37296
37296
|
const n = this.absolutePlayer;
|
|
37297
|
-
this.d(
|
|
37297
|
+
this.d(nt([n, "currentTime"], [this, "currentTime"])), this.d(nt([n, "startTime"], [this, "startTime"])), this.d(nt([n, "stopTime"], [this, "stopTime"])), this.d(nt([n, "playing"], [this, "playing"])), this.d(nt([n, "loop"], [this, "loop"])), this.d(nt([n, "speed"], [this, "speed"]));
|
|
37298
37298
|
}
|
|
37299
37299
|
/**
|
|
37300
37300
|
* 获取 AbsolutePlayer 实例。
|
|
@@ -37342,7 +37342,7 @@ const pa = class pa extends nt {
|
|
|
37342
37342
|
}
|
|
37343
37343
|
};
|
|
37344
37344
|
d(pa, "createDefaultProps", () => ({
|
|
37345
|
-
...
|
|
37345
|
+
...et.createDefaultProps(),
|
|
37346
37346
|
/**当前时间*/
|
|
37347
37347
|
currentTime: 0,
|
|
37348
37348
|
/**开始时间*/
|
|
@@ -37632,7 +37632,7 @@ timePosRots是一个内部包含三个元素的数组,第一个表示时间戳
|
|
|
37632
37632
|
this._scratchCurrentInfo.index = o, this._scratchCurrentInfo.position = a, this._scratchCurrentInfo.rotation = u, this._scratchCurrentInfo.ratio = l, this._currentInfo.value = this._scratchCurrentInfo;
|
|
37633
37633
|
}
|
|
37634
37634
|
};
|
|
37635
|
-
i(), this.currentTimeChanged.disposableOn(i), this.timePosRotsChanged.disposableOn(i), this.rotLerpModeChanged.disposableOn(i), this.dispose(
|
|
37635
|
+
i(), this.currentTimeChanged.disposableOn(i), this.timePosRotsChanged.disposableOn(i), this.rotLerpModeChanged.disposableOn(i), this.dispose(nt([this._player, "loop"], [this, "loop"]));
|
|
37636
37636
|
{
|
|
37637
37637
|
const s = () => {
|
|
37638
37638
|
if (this.startTime === void 0 || this.currentTime === void 0) return;
|
|
@@ -37649,7 +37649,7 @@ timePosRots是一个内部包含三个元素的数组,第一个表示时间戳
|
|
|
37649
37649
|
};
|
|
37650
37650
|
s(), this.dispose(this._player.currentTimeChanged.disposableOn(s));
|
|
37651
37651
|
}
|
|
37652
|
-
this.dispose(
|
|
37652
|
+
this.dispose(nt([this._player, "duration"], [this, "duration"])), this.dispose(nt([this._player, "playing"], [this, "playing"])), this.dispose(nt([this._player, "speed"], [this, "speed"]));
|
|
37653
37653
|
{
|
|
37654
37654
|
const s = () => {
|
|
37655
37655
|
(this.autoComputeTimeFromTimePosRots ?? !0) && this.computeTimeFromTimePosRots();
|
|
@@ -38261,7 +38261,7 @@ const so = class so extends It {
|
|
|
38261
38261
|
} catch (n) {
|
|
38262
38262
|
console.error(n), this._lineString.points = void 0;
|
|
38263
38263
|
}
|
|
38264
|
-
}, { immediate: !0 })), this.d(B([this._lineString, "show"], [this, "show"])), this.d(B([this._lineString, "allowPicking"], [this, "allowPicking"])), this.d(B([this._lineString, "collision"], [this, "collision"])), this.d(B([this._lineString, "stroked"], [this, "stroked"])), this.d(B([this._lineString, "strokeStyle"], [this, "strokeStyle"])), this.d(
|
|
38264
|
+
}, { immediate: !0 })), this.d(B([this._lineString, "show"], [this, "show"])), this.d(B([this._lineString, "allowPicking"], [this, "allowPicking"])), this.d(B([this._lineString, "collision"], [this, "collision"])), this.d(B([this._lineString, "stroked"], [this, "stroked"])), this.d(B([this._lineString, "strokeStyle"], [this, "strokeStyle"])), this.d(nt([this._lineString, "flyInParam"], [this, "flyInParam"])), this.d(nt([this._lineString, "flyToParam"], [this, "flyToParam"])), this.d(this.flyInEvent.don((n) => {
|
|
38265
38265
|
this._lineString.flyIn(n);
|
|
38266
38266
|
})), this.d(this.flyToEvent.don((n) => {
|
|
38267
38267
|
this._lineString.flyTo(n);
|
|
@@ -38492,7 +38492,7 @@ ${dv}
|
|
|
38492
38492
|
`, gu = Date.now();
|
|
38493
38493
|
new Date(gu).toISOString();
|
|
38494
38494
|
new Date(gu + 24 * 60 * 60 * 1e3).toISOString();
|
|
38495
|
-
const mi = class mi extends
|
|
38495
|
+
const mi = class mi extends et {
|
|
38496
38496
|
/**
|
|
38497
38497
|
* 构造函数,可传入对象的 ID
|
|
38498
38498
|
* @param id - 对象的唯一标识符,可选参数
|
|
@@ -38507,7 +38507,7 @@ const mi = class mi extends nt {
|
|
|
38507
38507
|
* 重置时钟事件,当调用 resetClock 方法时触发
|
|
38508
38508
|
*/
|
|
38509
38509
|
d(this, "_resetClockEvent", this.disposeVar(new T()));
|
|
38510
|
-
this.ad(
|
|
38510
|
+
this.ad(nt([this, "uri"], [this, "url"]));
|
|
38511
38511
|
}
|
|
38512
38512
|
/**
|
|
38513
38513
|
* 获取飞入事件的监听器
|
|
@@ -38603,13 +38603,13 @@ d(mi, "createDefaultProps", () => ({
|
|
|
38603
38603
|
shouldAnimate: !1,
|
|
38604
38604
|
/**加载函数字符串 */
|
|
38605
38605
|
loadFuncStr: void 0,
|
|
38606
|
-
...
|
|
38606
|
+
...et.createDefaultProps()
|
|
38607
38607
|
})), /**
|
|
38608
38608
|
* 类的类型名称,用于注册和标识
|
|
38609
38609
|
*/
|
|
38610
38610
|
d(mi, "type", mi.register("ESCzml", mi, { chsName: "ESCzml", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "Czml数据加载" }));
|
|
38611
38611
|
let Gp = mi;
|
|
38612
|
-
const va = class va extends
|
|
38612
|
+
const va = class va extends et {
|
|
38613
38613
|
/**
|
|
38614
38614
|
* 重写获取属性的方法,返回导航控件的属性列表。
|
|
38615
38615
|
* @returns 属性列表数组。
|
|
@@ -38630,7 +38630,7 @@ const va = class va extends nt {
|
|
|
38630
38630
|
}
|
|
38631
38631
|
};
|
|
38632
38632
|
d(va, "createDefaultProps", () => ({
|
|
38633
|
-
...
|
|
38633
|
+
...et.createDefaultProps(),
|
|
38634
38634
|
/**
|
|
38635
38635
|
* 是否显示导航控件,默认为true。
|
|
38636
38636
|
*/
|
|
@@ -38647,13 +38647,13 @@ d(va, "createDefaultProps", () => ({
|
|
|
38647
38647
|
* 图片地址,默认为ESNavigator的默认图片地址。
|
|
38648
38648
|
* @type {string}
|
|
38649
38649
|
*/
|
|
38650
|
-
imgUrl:
|
|
38650
|
+
imgUrl: et.context.getStrFromEnv("${earthsdk3-assets-script-dir}/assets/img/zhinanzhen.png")
|
|
38651
38651
|
})), /**
|
|
38652
38652
|
* 静态属性,用于注册ESNavigator类,包含类型名称、中文名称、标签和描述信息。
|
|
38653
38653
|
*/
|
|
38654
38654
|
d(va, "type", va.register("ESNavigator", va, { chsName: "导航控件", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "导航控件" }));
|
|
38655
38655
|
let Wp = va;
|
|
38656
|
-
const vi = class vi extends
|
|
38656
|
+
const vi = class vi extends et {
|
|
38657
38657
|
/**
|
|
38658
38658
|
* 构造函数,可传入一个可选的场景对象键。
|
|
38659
38659
|
* @param id - 场景对象键,可选参数。
|
|
@@ -38681,7 +38681,7 @@ const vi = class vi extends nt {
|
|
|
38681
38681
|
}
|
|
38682
38682
|
};
|
|
38683
38683
|
d(vi, "createDefaultProps", () => ({
|
|
38684
|
-
...
|
|
38684
|
+
...et.createDefaultProps(),
|
|
38685
38685
|
/**
|
|
38686
38686
|
* 是否显示状态栏,默认为 true。
|
|
38687
38687
|
*/
|
|
@@ -38704,7 +38704,7 @@ d(vi, "createDefaultProps", () => ({
|
|
|
38704
38704
|
*/
|
|
38705
38705
|
d(vi, "type", vi.register("ESViewerStatusBar", vi, { chsName: "状态栏", tags: ["ESObjects", "_ES_Impl_Cesium", "_ES_Impl_UE"], description: "状态栏" }));
|
|
38706
38706
|
let qp = vi;
|
|
38707
|
-
const yi = class yi extends
|
|
38707
|
+
const yi = class yi extends et {
|
|
38708
38708
|
/**
|
|
38709
38709
|
* 构造函数,创建 ESViewerStatusBarScale 实例。
|
|
38710
38710
|
* @param {SceneObjectKey} [id] - 场景对象的唯一标识符。
|
|
@@ -38733,7 +38733,7 @@ const yi = class yi extends nt {
|
|
|
38733
38733
|
}
|
|
38734
38734
|
};
|
|
38735
38735
|
d(yi, "createDefaultProps", () => ({
|
|
38736
|
-
...
|
|
38736
|
+
...et.createDefaultProps(),
|
|
38737
38737
|
/**
|
|
38738
38738
|
* 是否显示状态栏,默认为 true。
|
|
38739
38739
|
*/
|
|
@@ -39854,7 +39854,7 @@ const Ui = class Ui extends V {
|
|
|
39854
39854
|
if (this._loading = !0, globalThis.Hls)
|
|
39855
39855
|
console.info("可能系统已经加载hlsjs,此处不再加载!");
|
|
39856
39856
|
else {
|
|
39857
|
-
const n =
|
|
39857
|
+
const n = et.context.getStrFromEnv(Ui.path);
|
|
39858
39858
|
await t.promise(wg(n));
|
|
39859
39859
|
}
|
|
39860
39860
|
this._loading = !1, this._loaded = !0, this._loadedEvent.emit(), this._loadedPromiseResolve();
|
|
@@ -39982,7 +39982,7 @@ const Gi = class Gi extends V {
|
|
|
39982
39982
|
if (this._loading = !0, globalThis.flvjs)
|
|
39983
39983
|
console.info("可能系统已经加载flvjs,此处不再加载!");
|
|
39984
39984
|
else {
|
|
39985
|
-
const n =
|
|
39985
|
+
const n = et.context.getStrFromEnv(Gi.path);
|
|
39986
39986
|
await t.promise(wg(n));
|
|
39987
39987
|
}
|
|
39988
39988
|
this._loading = !1, this._loaded = !0, this._loadedEvent.emit(), this._loadedPromiseResolve();
|
|
@@ -41192,9 +41192,9 @@ class xC extends V {
|
|
|
41192
41192
|
if (this.channels.length === 0) return;
|
|
41193
41193
|
const n = [];
|
|
41194
41194
|
for (let i = 0; i < this.channels.length; i++) {
|
|
41195
|
-
const s = this.channels[i], o =
|
|
41195
|
+
const s = this.channels[i], o = et.getSceneObjById(s.pathId);
|
|
41196
41196
|
if (!o || !(o instanceof qu)) continue;
|
|
41197
|
-
const u = s.sceneObjectIds.map((l) =>
|
|
41197
|
+
const u = s.sceneObjectIds.map((l) => et.getSceneObjById(l)).filter((l) => l !== void 0);
|
|
41198
41198
|
u.length !== 0 && n.push({ path: o, sceneObjects: u });
|
|
41199
41199
|
}
|
|
41200
41200
|
if (n.length !== 0)
|
|
@@ -41344,7 +41344,7 @@ class OC extends V {
|
|
|
41344
41344
|
const [i, s] = t;
|
|
41345
41345
|
i[s] = !0;
|
|
41346
41346
|
}
|
|
41347
|
-
})),
|
|
41347
|
+
})), et.context.sceneObjCreatedEvent.don((t) => {
|
|
41348
41348
|
t.dv(new TC(t, this));
|
|
41349
41349
|
});
|
|
41350
41350
|
}
|
|
@@ -41433,7 +41433,7 @@ class NC extends V {
|
|
|
41433
41433
|
* @returns {T | undefined} 如果创建成功返回场景对象,否则返回 undefined。
|
|
41434
41434
|
*/
|
|
41435
41435
|
createSceneObject(t, n) {
|
|
41436
|
-
const i =
|
|
41436
|
+
const i = et.context.createSceneObject(t, n);
|
|
41437
41437
|
return i && this.addSceneObject(i), i;
|
|
41438
41438
|
}
|
|
41439
41439
|
/**
|
|
@@ -41443,7 +41443,7 @@ class NC extends V {
|
|
|
41443
41443
|
* @returns 创建的场景对象。
|
|
41444
41444
|
*/
|
|
41445
41445
|
createSceneObjectFromUrl(t, n) {
|
|
41446
|
-
const i =
|
|
41446
|
+
const i = et.context.createSceneObjectFromUrl(t, n);
|
|
41447
41447
|
return i && this.addSceneObject(i), i;
|
|
41448
41448
|
}
|
|
41449
41449
|
/**
|
|
@@ -41453,7 +41453,7 @@ class NC extends V {
|
|
|
41453
41453
|
* @returns {T | undefined} 如果创建成功返回场景对象,否则返回 undefined。
|
|
41454
41454
|
*/
|
|
41455
41455
|
createSceneObjectFromClass(t, n) {
|
|
41456
|
-
const i =
|
|
41456
|
+
const i = et.context.createSceneObjectFromClass(t, n);
|
|
41457
41457
|
return i && this.addSceneObject(i), i;
|
|
41458
41458
|
}
|
|
41459
41459
|
/**
|
|
@@ -41462,7 +41462,7 @@ class NC extends V {
|
|
|
41462
41462
|
* @returns {T | undefined} 如果创建成功返回场景对象,否则返回 undefined。
|
|
41463
41463
|
*/
|
|
41464
41464
|
createSceneObjectFromJson(t) {
|
|
41465
|
-
const n =
|
|
41465
|
+
const n = et.context.createSceneObjectFromJson(t);
|
|
41466
41466
|
return n && this.addSceneObject(n), n;
|
|
41467
41467
|
}
|
|
41468
41468
|
}
|
|
@@ -42293,7 +42293,7 @@ const Wi = class Wi extends V {
|
|
|
42293
42293
|
add(...t) {
|
|
42294
42294
|
for (let n of t)
|
|
42295
42295
|
if (!this.has(n)) {
|
|
42296
|
-
|
|
42296
|
+
et.context.addSceneObject(n);
|
|
42297
42297
|
const i = Xa.context.createEngineObject(n, this);
|
|
42298
42298
|
i && this._sceneObjectsMap.set(n, i), n.viewerAttached.emit(this);
|
|
42299
42299
|
}
|
|
@@ -42306,7 +42306,7 @@ const Wi = class Wi extends V {
|
|
|
42306
42306
|
for (let n of t)
|
|
42307
42307
|
if (this.has(n)) {
|
|
42308
42308
|
const i = this._sceneObjectsMap.get(n);
|
|
42309
|
-
i && i.destroy(),
|
|
42309
|
+
i && i.destroy(), et.context.deleteSceneObject(n), this._sceneObjectsMap.delete(n), n.viewerDetached.emit(this);
|
|
42310
42310
|
}
|
|
42311
42311
|
}
|
|
42312
42312
|
/**
|
|
@@ -43200,7 +43200,7 @@ class qc extends V {
|
|
|
43200
43200
|
* 获取所有环境变量的静态属性。
|
|
43201
43201
|
*/
|
|
43202
43202
|
static get envs() {
|
|
43203
|
-
return
|
|
43203
|
+
return et.context.environmentVariables;
|
|
43204
43204
|
}
|
|
43205
43205
|
/**
|
|
43206
43206
|
* 根据对象 ID 获取场景对象。
|
|
@@ -43208,7 +43208,7 @@ class qc extends V {
|
|
|
43208
43208
|
* @returns 对应的场景对象或者undefined。
|
|
43209
43209
|
*/
|
|
43210
43210
|
getSceneObjectById(t) {
|
|
43211
|
-
return
|
|
43211
|
+
return et.getSceneObjectById(t);
|
|
43212
43212
|
}
|
|
43213
43213
|
/**
|
|
43214
43214
|
* 获取场景对象。
|
|
@@ -43216,13 +43216,13 @@ class qc extends V {
|
|
|
43216
43216
|
* @returns 单个场景对象、场景对象数组或undefined。
|
|
43217
43217
|
*/
|
|
43218
43218
|
getSceneObject(t) {
|
|
43219
|
-
return
|
|
43219
|
+
return et.getSceneObject(t);
|
|
43220
43220
|
}
|
|
43221
43221
|
/**
|
|
43222
43222
|
* 获取场景对象的引用。
|
|
43223
43223
|
*/
|
|
43224
43224
|
get $refs() {
|
|
43225
|
-
return
|
|
43225
|
+
return et.$refs;
|
|
43226
43226
|
}
|
|
43227
43227
|
/**
|
|
43228
43228
|
* 获取拖动开始数据管理器。
|
|
@@ -43571,15 +43571,15 @@ class qc extends V {
|
|
|
43571
43571
|
* @param id - 对象的 ID。
|
|
43572
43572
|
* @returns 对应的场景对象。
|
|
43573
43573
|
*/
|
|
43574
|
-
d(qc, "getSceneObjById",
|
|
43574
|
+
d(qc, "getSceneObjById", et.context.getSceneObjectById.bind(et.context)), /**
|
|
43575
43575
|
* 获取环境变量的静态方法。
|
|
43576
43576
|
* @returns 当前的环境变量。
|
|
43577
43577
|
*/
|
|
43578
|
-
d(qc, "getEnv",
|
|
43578
|
+
d(qc, "getEnv", et.context.getEnv.bind(et.context)), /**
|
|
43579
43579
|
* 设置环境变量的静态方法。
|
|
43580
43580
|
* @param env - 要设置的环境变量。
|
|
43581
43581
|
*/
|
|
43582
|
-
d(qc, "setEnv",
|
|
43582
|
+
d(qc, "setEnv", et.context.setEnv.bind(et.context));
|
|
43583
43583
|
export {
|
|
43584
43584
|
Zm as BasePropTreeItem,
|
|
43585
43585
|
mb as Boolean2Property,
|
|
@@ -43700,7 +43700,7 @@ export {
|
|
|
43700
43700
|
Rp as ESRtsFeatureEditing,
|
|
43701
43701
|
Mp as ESRtsTileset,
|
|
43702
43702
|
kp as ESScale,
|
|
43703
|
-
|
|
43703
|
+
et as ESSceneObject,
|
|
43704
43704
|
d_ as ESSceneObjectWithId,
|
|
43705
43705
|
sp as ESSeparateFoliage,
|
|
43706
43706
|
Jp as ESSkylineAnalysis,
|
|
@@ -43837,7 +43837,7 @@ export {
|
|
|
43837
43837
|
bh as animateFrame,
|
|
43838
43838
|
ES as ary2Ns,
|
|
43839
43839
|
MS as asyncFuncToCancelablePromise,
|
|
43840
|
-
|
|
43840
|
+
nt as bind,
|
|
43841
43841
|
l_ as bindCustomEditing,
|
|
43842
43842
|
sS as bindu,
|
|
43843
43843
|
qb as booleanPointInPolygon,
|