gralobe 1.0.69 → 1.0.70

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/README.md CHANGED
@@ -299,6 +299,24 @@ npm run build:lib
299
299
  npm run build
300
300
  ```
301
301
 
302
+ ## Z-Index Layering
303
+
304
+ Gralobe constrains all UI elements to z-index range **5-99** for predictable layering:
305
+
306
+ | Z-Index | Element |
307
+ |---------|---------|
308
+ | 5 | Country labels |
309
+ | 10 | Legend |
310
+ | 50 | Toolbar (bottom-right buttons) |
311
+ | 60 | Hover tooltips |
312
+ | 70 | lil-gui control panels |
313
+ | 80 | Data grid overlay |
314
+ | 90 | Category bar |
315
+ | 95 | GUI toggle button |
316
+ | 99 | Peak tooltips |
317
+
318
+ **For host applications:** Use z-index 100+ for any UI that must appear above gralobe controls (navbars, modals, install prompts, etc.).
319
+
302
320
  ## Browser Support
303
321
 
304
322
  Gralobe requires WebGL support. It works in all modern browsers:
package/dist/gralobe.js CHANGED
@@ -6111,7 +6111,7 @@ function pa() {
6111
6111
  display: flex;
6112
6112
  align-items: center;
6113
6113
  justify-content: center;
6114
- z-index: 1000;
6114
+ z-index: 80;
6115
6115
  opacity: 0;
6116
6116
  pointer-events: none;
6117
6117
  transition: opacity 0.3s ease;
@@ -7711,7 +7711,7 @@ function Ha() {
7711
7711
  right: 12px;
7712
7712
  display: flex;
7713
7713
  gap: 8px;
7714
- z-index: 100;
7714
+ z-index: 50;
7715
7715
  pointer-events: auto;
7716
7716
  }
7717
7717
 
@@ -8360,7 +8360,7 @@ class Za {
8360
8360
  align-items: center !important;
8361
8361
  justify-content: center !important;
8362
8362
  cursor: pointer !important;
8363
- z-index: 1002 !important;
8363
+ z-index: 95 !important;
8364
8364
  backdrop-filter: blur(4px) !important;
8365
8365
  -webkit-backdrop-filter: blur(4px) !important;
8366
8366
  transition: all 0.2s ease !important;
@@ -8394,7 +8394,7 @@ class Za {
8394
8394
  display: flex !important;
8395
8395
  flex-direction: column !important;
8396
8396
  gap: 6px !important;
8397
- z-index: 1001 !important;
8397
+ z-index: 90 !important;
8398
8398
  transition: opacity 0.2s ease, transform 0.2s ease !important;
8399
8399
  pointer-events: none !important;
8400
8400
  opacity: 0 !important;
@@ -8443,7 +8443,7 @@ class Za {
8443
8443
  top: 50px !important; /* Align with top of toolbar */
8444
8444
  right: 100px !important; /* To the left of the toolbar */
8445
8445
  width: 160px !important;
8446
- z-index: 1000 !important;
8446
+ z-index: 70 !important;
8447
8447
 
8448
8448
  --background-color: rgba(0, 10, 20, 0.9) !important;
8449
8449
  --text-color: #ddd !important;
@@ -8891,7 +8891,7 @@ class Za {
8891
8891
  position: "absolute",
8892
8892
  display: "none",
8893
8893
  pointerEvents: "none",
8894
- zIndex: "1000",
8894
+ zIndex: "60",
8895
8895
  padding: "8px 12px",
8896
8896
  borderRadius: "6px",
8897
8897
  fontSize: "12px",
@@ -9293,7 +9293,7 @@ class Za {
9293
9293
  fontSize: "12px",
9294
9294
  lineHeight: "1.5",
9295
9295
  maxWidth: "250px",
9296
- zIndex: "100000",
9296
+ zIndex: "99",
9297
9297
  border: "1px solid rgba(0, 180, 255, 0.3)",
9298
9298
  boxShadow: "0 8px 32px rgba(0,0,0,0.8)",
9299
9299
  pointerEvents: "none",