gralobe 1.0.59 → 1.0.61
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 +14 -3
- package/dist/gralobe.js +1939 -1730
- package/dist/gralobe.js.map +1 -1
- package/dist/gralobe.umd.cjs +131 -34
- package/dist/gralobe.umd.cjs.map +1 -1
- package/dist/index.d.ts +6 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -59,7 +59,7 @@ const globe = new GlobeViz('#container', {
|
|
|
59
59
|
// Earth texture: 'satellite' | 'natural' | 'dark' | 'light' | 'night' | 'topographic'
|
|
60
60
|
texture: 'satellite',
|
|
61
61
|
|
|
62
|
-
// Label style: 'none' | 'minimal' | 'major' | 'all'
|
|
62
|
+
// Label style: 'none' | 'minimal' | 'major' | 'all' | 'data'
|
|
63
63
|
labels: 'all',
|
|
64
64
|
|
|
65
65
|
// Initial statistic to display (built-in ID or custom StatisticData)
|
|
@@ -71,7 +71,7 @@ const globe = new GlobeViz('#container', {
|
|
|
71
71
|
// Enable auto-rotation
|
|
72
72
|
autoRotate: false,
|
|
73
73
|
|
|
74
|
-
// Show control panel (lil-gui)
|
|
74
|
+
// Show control panel (lil-gui) - Now a modular Category Bar in top-right
|
|
75
75
|
showControls: true,
|
|
76
76
|
|
|
77
77
|
// Show legend
|
|
@@ -143,7 +143,7 @@ globe.setStatistic('gdpPerCapita');
|
|
|
143
143
|
|
|
144
144
|
```typescript
|
|
145
145
|
// Change label style
|
|
146
|
-
globe.setLabels('major'); // 'none' | 'minimal' | 'major' | 'all'
|
|
146
|
+
globe.setLabels('major'); // 'none' | 'minimal' | 'major' | 'all' | 'data'
|
|
147
147
|
```
|
|
148
148
|
|
|
149
149
|
### Texture
|
|
@@ -178,6 +178,17 @@ await globe.recordGif({ duration: 5, fps: 30 });
|
|
|
178
178
|
await globe.recordVideo({ duration: 10 });
|
|
179
179
|
```
|
|
180
180
|
|
|
181
|
+
### Urban Data (Points)
|
|
182
|
+
|
|
183
|
+
Visualize city-level or point-based data with synthetic boundaries.
|
|
184
|
+
|
|
185
|
+
```typescript
|
|
186
|
+
globe.setUrbanData([
|
|
187
|
+
{ lat: 40.7128, lon: -74.0060, value: 100, name: "New York" },
|
|
188
|
+
{ lat: 35.6762, lon: 139.6503, value: 85, name: "Tokyo" },
|
|
189
|
+
]);
|
|
190
|
+
```
|
|
191
|
+
|
|
181
192
|
### Other
|
|
182
193
|
|
|
183
194
|
```typescript
|