earthsdk3 3.2.0-beta.8 → 3.3.0-beta.2

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
@@ -22027,6 +22027,10 @@ const mr = class mr extends Ce {
22027
22027
  * 私有属性,高亮特征并飞行到该特征的事件,携带特征 ID、笛卡尔坐标系的球体信息、可选的高亮颜色和可选的飞行时间作为参数。
22028
22028
  */
22029
22029
  f(this, "_highlightFeatureAndFlyToEvent", this.dv(new V()));
22030
+ /**
22031
+ * 私有属性,描边特征的事件,携带特征和可选的描边颜色作为参数。
22032
+ */
22033
+ f(this, "_strokeFeatureEvent", this.disposeVar(new V()));
22030
22034
  /**
22031
22035
  * 私有属性,获取特征表的事件。
22032
22036
  */
@@ -22184,6 +22188,21 @@ const mr = class mr extends Ce {
22184
22188
  highlightFeatureAndFlyTo(t, r, i, s) {
22185
22189
  this._highlightFeatureAndFlyToEvent.emit(t, r, i, s);
22186
22190
  }
22191
+ /**
22192
+ * 获取描边特征的事件。
22193
+ * @returns 描边特征的事件对象。
22194
+ */
22195
+ get strokeFeatureEvent() {
22196
+ return this._strokeFeatureEvent;
22197
+ }
22198
+ /**
22199
+ * 描边特征,参数为特征数组和可选的描边颜色。
22200
+ * @param feature 特征数组。Cesium.Cesium3DTileFeature[]
22201
+ * @param color 可选的描边颜色。 ESJColor,默认 [1, 0, 0, 1]
22202
+ */
22203
+ strokeFeature(t, r = [1, 0, 0, 1]) {
22204
+ this._strokeFeatureEvent.emit(t, r);
22205
+ }
22187
22206
  /**
22188
22207
  * 获取获取特征表的事件。
22189
22208
  * @returns 获取特征表的事件对象。
@@ -37731,7 +37750,9 @@ class P0 extends ae {
37731
37750
  * @throws 如果没有找到类型为 option.type 的 Viewer 构造器,会抛出错误。
37732
37751
  */
37733
37752
  createViewer(t) {
37734
- const r = t.type, i = this.getViewerConstructor(r);
37753
+ const r = t.type;
37754
+ console.log(t);
37755
+ const i = this.getViewerConstructor(r);
37735
37756
  if (!i)
37736
37757
  throw new Error(`没有找到类型为${r}的Viewer构造器!`);
37737
37758
  return new i(t);
@@ -39294,7 +39315,7 @@ class Eo extends ae {
39294
39315
  return console.log("ESViewer exists, will be used"), r && up(this, a), i && this._lastActiveViewerJson && (cp(a, this._lastActiveViewerJson), this._lastActiveViewerJson = void 0), a.container === jd(t.container) ? (a.containerOrId = t.container, a.forceRecreate()) : a.containerOrId = t.container, this.activeViewer = a, a;
39295
39316
  console.log("No ESViewer exists, will be created");
39296
39317
  const l = this.createViewer(t);
39297
- return r && up(this, l), i && this._lastActiveViewerJson && (cp(l, this._lastActiveViewerJson), this._lastActiveViewerJson = void 0), this.activeViewer = l, l;
39318
+ return console.log(t), console.log(this), r && up(this, l), i && this._lastActiveViewerJson && (cp(l, this._lastActiveViewerJson), this._lastActiveViewerJson = void 0), this.activeViewer = l, l;
39298
39319
  }
39299
39320
  switchToCesiumViewer(...t) {
39300
39321
  if (typeof t[0] == "object" && !(t[0] instanceof HTMLDivElement)) {
@@ -39326,6 +39347,11 @@ class Eo extends ae {
39326
39347
  if (typeof t[0] == "object" && !(t[0] instanceof HTMLDivElement) ? r = { ...t[0], type: "ESCesiumViewer" } : (typeof t[0] == "string" || t[0] instanceof HTMLDivElement) && (r = { container: t[0], options: t[1] ?? void 0, id: t[2] ?? void 0, type: "ESCesiumViewer" }), !r) throw new Error("参数错误");
39327
39348
  return this.createViewer(r);
39328
39349
  }
39350
+ createOpenLayersViewer(...t) {
39351
+ let r;
39352
+ if (typeof t[0] == "object" && !(t[0] instanceof HTMLDivElement) ? r = { ...t[0], type: "ESOlViewer" } : (typeof t[0] == "string" || t[0] instanceof HTMLDivElement) && (r = { container: t[0], options: t[1] ?? void 0, id: t[2] ?? void 0, type: "ESOlViewer" }), !r) throw new Error("参数错误");
39353
+ return this.createViewer(r);
39354
+ }
39329
39355
  createUeViewer(...t) {
39330
39356
  let r;
39331
39357
  if (typeof t[0] == "object" && !(t[0] instanceof HTMLDivElement) ? r = { ...t[0], type: "ESUeViewer" } : (typeof t[0] == "string" || t[0] instanceof HTMLDivElement) && (typeof t[1] == "string" && t[1].startsWith("ws") ? r = { type: "ESUeViewer", container: t[0], id: t[3] ?? void 0, options: { ws: t[1], esmsg: t[2] ?? void 0 } } : typeof t[1] == "string" && t[1].startsWith("http") ? r = { type: "ESUeViewer", container: t[0], id: t[4] ?? void 0, options: { uri: t[1], app: t[2], token: t[3] ?? void 0 } } : r = { type: "ESUeViewer", container: t[0], id: t[3] ?? void 0, options: { project: t[1], baseUrl: t[2] ?? void 0 } }), !r) throw new Error("参数错误");
@@ -39449,7 +39475,7 @@ function hp(n) {
39449
39475
  }
39450
39476
  let Ql;
39451
39477
  try {
39452
- const n = "earthsdk3", e = "3.2.0-beta.8", t = "2025-07-10T02:26:15.000Z", r = "北京西部世界科技有限公司", i = "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn", s = "438106fa287696ea5a7360fbf8419c12016c53b4", a = ((Date.now() - 1752114375e3) / 36e5).toFixed(1), l = `%c🌏 ${n}%c ${e}.${s.slice(0, 8)}.${t} (距今${a}个小时)
39478
+ const n = "earthsdk3", e = "3.3.0-beta.2", t = "2025-07-14T10:21:51.000Z", r = "北京西部世界科技有限公司", i = "地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn", s = "287689aaef871c16fc805227f2acb20ac1a5f1ad", a = ((Date.now() - 1752488511e3) / 36e5).toFixed(1), l = `%c🌏 ${n}%c ${e}.${s.slice(0, 8)}.${t} (距今${a}个小时)
39453
39479
  %c${i ? i + `
39454
39480
  ` : ""}当前网站正在使用${n},此软件版权归${r}所有
39455
39481
  `;
@@ -39463,7 +39489,7 @@ try {
39463
39489
  },
39464
39490
  // @ts-ignore
39465
39491
  get gituri() {
39466
- return GITURI_ && GITURI_.replace("${commitId}", "438106fa287696ea5a7360fbf8419c12016c53b4");
39492
+ return GITURI_ && GITURI_.replace("${commitId}", "287689aaef871c16fc805227f2acb20ac1a5f1ad");
39467
39493
  },
39468
39494
  // @ts-ignore
39469
39495
  get info() {
@@ -39471,7 +39497,7 @@ try {
39471
39497
  },
39472
39498
  // @ts-ignore
39473
39499
  get date() {
39474
- return "2025-07-10T02:26:15.000Z";
39500
+ return "2025-07-14T10:21:51.000Z";
39475
39501
  },
39476
39502
  // @ts-ignore
39477
39503
  get author() {
@@ -39479,7 +39505,7 @@ try {
39479
39505
  },
39480
39506
  // @ts-ignore
39481
39507
  get version() {
39482
- return "3.2.0-beta.8";
39508
+ return "3.3.0-beta.2";
39483
39509
  },
39484
39510
  // @ts-ignore
39485
39511
  get name() {
@@ -39487,7 +39513,7 @@ try {
39487
39513
  },
39488
39514
  // @ts-ignore
39489
39515
  get commitId() {
39490
- return "438106fa287696ea5a7360fbf8419c12016c53b4";
39516
+ return "287689aaef871c16fc805227f2acb20ac1a5f1ad";
39491
39517
  },
39492
39518
  /**
39493
39519
  * 打印版权信息到控制台