gralobe 1.0.13 → 1.0.14

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/gralobe.js CHANGED
@@ -6358,13 +6358,20 @@ class xo {
6358
6358
  this.stars = new S.Points(t, s), this.scene.add(this.stars);
6359
6359
  }
6360
6360
  createGUI() {
6361
- this.gui = new Vi({ title: "Globe Controls", width: 300 });
6362
- const e = this.gui.addFolder("View");
6363
- e.add({ toGlobe: () => this.toGlobe() }, "toGlobe").name("→ Globe"), e.add({ toFlat: () => this.toFlat() }, "toFlat").name("→ Flat Map"), e.add({ morph: this.morph }, "morph", 0, 1).name("Morph").onChange((r) => this.setMorph(r)), e.open();
6364
- const t = this.gui.addFolder("Statistics"), i = Object.keys(wi);
6365
- t.add({ stat: this.config.statistic }, "stat", i).name("Statistic").onChange((r) => this.setStatistic(r)), t.open();
6366
- const n = ["none", "minimal", "major", "all"];
6367
- this.gui.add({ labels: this.config.labels }, "labels", n).name("Labels").onChange((r) => this.setLabels(r)), this.gui.add(this.config, "autoRotate").name("Auto Rotate");
6361
+ getComputedStyle(this.container).position === "static" && (this.container.style.position = "relative"), this.gui = new Vi({
6362
+ container: this.container,
6363
+ title: " Controls",
6364
+ width: 220,
6365
+ closeFolders: !0
6366
+ });
6367
+ const t = this.gui.domElement;
6368
+ t.style.position = "absolute", t.style.top = "8px", t.style.right = "8px", t.style.zIndex = "100", this.gui.close();
6369
+ const i = this.gui.addFolder("View");
6370
+ i.add({ toGlobe: () => this.toGlobe() }, "toGlobe").name("→ Globe"), i.add({ toFlat: () => this.toFlat() }, "toFlat").name("→ Flat"), i.add({ morph: this.morph }, "morph", 0, 1).name("Morph").onChange((o) => this.setMorph(o));
6371
+ const n = this.gui.addFolder("Statistics"), r = Object.keys(wi);
6372
+ n.add({ stat: this.config.statistic }, "stat", r).name("Statistic").onChange((o) => this.setStatistic(o));
6373
+ const s = ["none", "minimal", "major", "all"];
6374
+ this.gui.addFolder("Display").add({ labels: this.config.labels }, "labels", s).name("Labels").onChange((o) => this.setLabels(o)), this.gui.add(this.config, "autoRotate").name("Auto Rotate");
6368
6375
  }
6369
6376
  handleResize = () => {
6370
6377
  if (this.isDestroyed) return;