sat-earth 0.9.5 → 0.9.7

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.
@@ -22,7 +22,7 @@ export declare class SatMap {
22
22
  constructor(eleId: string, options: SatMapOptions, viewer?: mars3d.Cesium.Viewer);
23
23
  createMap(eleId: string, options: SatMapOptions, viewer?: mars3d.Cesium.Viewer): Mars3dMap;
24
24
  inited(): Promise<unknown>;
25
- destroy(): void;
25
+ destroy(eleId?: string): void;
26
26
  customRenderer(map: Mars3dMap, options: SatMapOptions): void;
27
27
  addSplitLayerToolbar(map: Mars3dMap, flag?: boolean): void;
28
28
  addCameraBookmarkToolbar(map: Mars3dMap, flag?: boolean): void;
@@ -1830,7 +1830,7 @@ const Ie = class {
1830
1830
  return fe(Ie, st)[e];
1831
1831
  }
1832
1832
  createMap(e, t, l) {
1833
- Ie.webglreport() || Ie.webglerror(), this.destroy();
1833
+ Ie.webglreport() || Ie.webglerror(), this.destroy(e);
1834
1834
  const s = Gt(t, {
1835
1835
  map3d: {
1836
1836
  control: {
@@ -1862,16 +1862,16 @@ const Ie = class {
1862
1862
  }
1863
1863
  });
1864
1864
  }
1865
- destroy() {
1866
- var e, t;
1865
+ destroy(e) {
1866
+ var t, l;
1867
1867
  Ze(this, Ye, !1), Ze(this, Ge, 3);
1868
1868
  try {
1869
- (e = this.plot) == null || e.destroy(), (t = this.map) == null || t.destroy();
1869
+ (t = this.plot) == null || t.destroy(), (l = this.map) == null || l.destroy();
1870
1870
  } catch {
1871
1871
  } finally {
1872
1872
  this.layer = void 0, this.measure = void 0, this.plot = void 0, this.spatialAnalysis = void 0, this.map = void 0;
1873
1873
  }
1874
- fe(Ie, st)[fe(this, je)] = void 0;
1874
+ fe(Ie, st)[e || fe(this, je)] = void 0;
1875
1875
  }
1876
1876
  customRenderer(e, t) {
1877
1877
  var l, s, o, u, n, r, i, m, f, g, c, d, p;
@@ -10433,7 +10433,7 @@ const Mr = /* @__PURE__ */ te(Tr, [["__scopeId", "data-v-2b446e23"]]), Gr = {
10433
10433
  [Z, E(r)]
10434
10434
  ]) : I("", !0);
10435
10435
  }
10436
- }), Jr = ye(Ur), Wr = (a) => (ve("data-v-e638e186"), a = a(), _e(), a), Kr = /* @__PURE__ */ Wr(() => /* @__PURE__ */ b("div", { class: "sat-task-view__trigger" }, [
10436
+ }), Jr = ye(Ur), Wr = (a) => (ve("data-v-e039eecd"), a = a(), _e(), a), Kr = /* @__PURE__ */ Wr(() => /* @__PURE__ */ b("div", { class: "sat-task-view__trigger" }, [
10437
10437
  /* @__PURE__ */ b("i", { class: "fa fa-window-restore" })
10438
10438
  ], -1)), Qr = ["onMouseenter", "onClick"], Yr = { class: "sat-task-view__item-header" }, qr = ["title"], Xr = ["onClick"], Zr = { class: "fa fa-close" }, $r = ["id"], ed = {
10439
10439
  name: "SatTaskView"
@@ -10450,9 +10450,10 @@ const Mr = /* @__PURE__ */ te(Tr, [["__scopeId", "data-v-2b446e23"]]), Gr = {
10450
10450
  c ? (ta.start(), m.value.forEach((d) => {
10451
10451
  re("#" + d.eleId + s).empty();
10452
10452
  const p = re("#" + d.eleId);
10453
- p.attr("old-dz", p[0].style.display + "," + p[0].style.zIndex), p[0].style.display = "block", p[0].style.zIndex = "-1";
10454
- const v = p.clone();
10455
- v.attr("id", qe()), re("#" + d.eleId + s).append(v);
10453
+ p.attr("old-dz", p[0].style.display + "," + p[0].style.zIndex), p[0].style.display = "block", p[0].style.zIndex = "-1", setTimeout(() => {
10454
+ const v = p.clone();
10455
+ v.attr("id", qe()), re("#" + d.eleId + s).append(v);
10456
+ }, 100);
10456
10457
  }), ta.done(), document.onkeydown = (d) => {
10457
10458
  (d.key == "Escape" || d.keyCode == 27) && o(!1);
10458
10459
  }) : (document.onkeydown = null, m.value.forEach((d) => {
@@ -10554,7 +10555,7 @@ const Mr = /* @__PURE__ */ te(Tr, [["__scopeId", "data-v-2b446e23"]]), Gr = {
10554
10555
  };
10555
10556
  }
10556
10557
  });
10557
- const ad = /* @__PURE__ */ te(td, [["__scopeId", "data-v-e638e186"]]), ld = ye(ad), sd = [
10558
+ const ad = /* @__PURE__ */ te(td, [["__scopeId", "data-v-e039eecd"]]), ld = ye(ad), sd = [
10558
10559
  lu,
10559
10560
  Fu,
10560
10561
  Cu,