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 +14 -7
- package/dist/gralobe.js.map +1 -1
- package/dist/gralobe.umd.cjs +1 -1
- package/dist/gralobe.umd.cjs.map +1 -1
- package/package.json +1 -1
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.
|
|
6362
|
-
|
|
6363
|
-
|
|
6364
|
-
|
|
6365
|
-
|
|
6366
|
-
|
|
6367
|
-
|
|
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;
|