gralobe 1.0.13 → 1.0.15

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
@@ -5312,44 +5312,48 @@ class ho {
5312
5312
  e.textContent = `
5313
5313
  .country-label {
5314
5314
  font-family: system-ui, -apple-system, sans-serif;
5315
- font-weight: 400;
5316
- color: rgba(255, 255, 255, 0.65);
5315
+ font-weight: 500;
5316
+ color: rgba(255, 255, 255, 0.9);
5317
5317
  text-shadow:
5318
- 0 0 2px rgba(0, 0, 0, 0.9),
5319
- 0 0 4px rgba(0, 0, 0, 0.5);
5318
+ 0 1px 2px rgba(0, 0, 0, 1),
5319
+ 0 0 4px rgba(0, 0, 0, 0.9),
5320
+ 0 0 8px rgba(0, 0, 0, 0.7),
5321
+ 0 0 12px rgba(0, 0, 0, 0.5);
5320
5322
  white-space: nowrap;
5321
5323
  pointer-events: none;
5322
5324
  user-select: none;
5323
5325
  transform: translateX(-50%);
5324
5326
  transition: opacity 0.3s ease;
5325
- letter-spacing: 0.5px;
5327
+ letter-spacing: 1px;
5326
5328
  text-transform: uppercase;
5327
5329
  }
5328
5330
 
5329
5331
  /* Size categories - proportional to country size */
5330
5332
  .country-label.size-large {
5333
+ font-size: 11px;
5334
+ font-weight: 600;
5335
+ letter-spacing: 2.5px;
5336
+ color: rgba(255, 255, 255, 0.95);
5337
+ }
5338
+
5339
+ .country-label.size-medium {
5331
5340
  font-size: 9px;
5332
5341
  font-weight: 500;
5333
- letter-spacing: 2px;
5334
- color: rgba(255, 255, 255, 0.7);
5342
+ letter-spacing: 1.5px;
5343
+ color: rgba(255, 255, 255, 0.9);
5335
5344
  }
5336
5345
 
5337
- .country-label.size-medium {
5346
+ .country-label.size-small {
5338
5347
  font-size: 7px;
5348
+ font-weight: 500;
5339
5349
  letter-spacing: 1px;
5340
- color: rgba(255, 255, 255, 0.6);
5350
+ color: rgba(255, 255, 255, 0.8);
5341
5351
  }
5342
5352
 
5343
- .country-label.size-small {
5353
+ .country-label.size-tiny {
5344
5354
  font-size: 6px;
5345
5355
  letter-spacing: 0.5px;
5346
- color: rgba(255, 255, 255, 0.5);
5347
- }
5348
-
5349
- .country-label.size-tiny {
5350
- font-size: 5px;
5351
- letter-spacing: 0.3px;
5352
- color: rgba(255, 255, 255, 0.4);
5356
+ color: rgba(255, 255, 255, 0.7);
5353
5357
  }
5354
5358
 
5355
5359
  .country-label.hidden {
@@ -5357,37 +5361,38 @@ class ho {
5357
5361
  visibility: hidden;
5358
5362
  }
5359
5363
 
5360
- /* Minimal style - slightly bolder for the 7 largest */
5364
+ /* Minimal style - bold for the 7 largest */
5361
5365
  .label-style-minimal .country-label.size-large {
5362
- font-size: 10px;
5363
- font-weight: 600;
5366
+ font-size: 12px;
5367
+ font-weight: 700;
5364
5368
  letter-spacing: 3px;
5365
- color: rgba(255, 255, 255, 0.75);
5369
+ color: #fff;
5366
5370
  }
5367
5371
 
5368
5372
  /* Major style - balanced visibility */
5369
5373
  .label-style-major .country-label.size-large {
5370
- font-size: 8px;
5374
+ font-size: 10px;
5375
+ font-weight: 600;
5371
5376
  letter-spacing: 2px;
5372
5377
  }
5373
5378
 
5374
5379
  .label-style-major .country-label.size-medium {
5375
- font-size: 6px;
5380
+ font-size: 8px;
5376
5381
  }
5377
5382
 
5378
- /* All style - keep everything subtle */
5383
+ /* All style - slightly more subtle but still readable */
5379
5384
  .label-style-all .country-label {
5380
- color: rgba(255, 255, 255, 0.5);
5385
+ color: rgba(255, 255, 255, 0.85);
5381
5386
  }
5382
5387
 
5383
5388
  .label-style-all .country-label.size-large {
5384
- font-size: 8px;
5385
- color: rgba(255, 255, 255, 0.6);
5389
+ font-size: 9px;
5390
+ color: rgba(255, 255, 255, 0.9);
5386
5391
  }
5387
5392
 
5388
5393
  .label-style-all .country-label.size-tiny {
5389
- font-size: 4px;
5390
- color: rgba(255, 255, 255, 0.35);
5394
+ font-size: 5px;
5395
+ color: rgba(255, 255, 255, 0.6);
5391
5396
  }
5392
5397
  `, document.head.appendChild(e);
5393
5398
  }
@@ -6358,13 +6363,20 @@ class xo {
6358
6363
  this.stars = new S.Points(t, s), this.scene.add(this.stars);
6359
6364
  }
6360
6365
  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");
6366
+ getComputedStyle(this.container).position === "static" && (this.container.style.position = "relative"), this.gui = new Vi({
6367
+ container: this.container,
6368
+ title: " Controls",
6369
+ width: 220,
6370
+ closeFolders: !0
6371
+ });
6372
+ const t = this.gui.domElement;
6373
+ t.style.position = "absolute", t.style.top = "8px", t.style.right = "8px", t.style.zIndex = "100", this.gui.close();
6374
+ const i = this.gui.addFolder("View");
6375
+ 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));
6376
+ const n = this.gui.addFolder("Statistics"), r = Object.keys(wi);
6377
+ n.add({ stat: this.config.statistic }, "stat", r).name("Statistic").onChange((o) => this.setStatistic(o));
6378
+ const s = ["none", "minimal", "major", "all"];
6379
+ 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
6380
  }
6369
6381
  handleResize = () => {
6370
6382
  if (this.isDestroyed) return;