gralobe 1.0.64 → 1.0.67

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/index.d.ts CHANGED
@@ -174,6 +174,9 @@ export declare class GlobeViz implements GlobeVizAPI {
174
174
  private animationId;
175
175
  private isDestroyed;
176
176
  private urbanPoints;
177
+ private resizeObserver;
178
+ private lastContainerWidth;
179
+ private lastContainerHeight;
177
180
  /** Promise that resolves when fully initialized */
178
181
  ready: Promise<void>;
179
182
  private resolveReady;
@@ -218,6 +221,9 @@ export declare class GlobeViz implements GlobeVizAPI {
218
221
  */
219
222
  clearCustomLabels(): void;
220
223
  setTexture(preset: TexturePreset): Promise<void>;
224
+ private loadTextureSource;
225
+ private loadSvgTexture;
226
+ private resizeSvgTexture;
221
227
  setAutoRotate(enabled: boolean): void;
222
228
  screenshot(options?: ExportOptions): void;
223
229
  recordGif(options?: ExportOptions): Promise<void>;
@@ -242,6 +248,9 @@ export declare class GlobeViz implements GlobeVizAPI {
242
248
  private getStatisticMetadata;
243
249
  }
244
250
 
251
+ /**
252
+ * Texture sources are defined in a dedicated module to keep URLs testable.
253
+ */
245
254
  /**
246
255
  * Public API for controlling the globe
247
256
  */
@@ -537,7 +546,7 @@ export declare interface StatisticDefinition {
537
546
  /**
538
547
  * Available texture presets for the globe
539
548
  */
540
- export declare type TexturePreset = "satellite" | "natural" | "dark" | "light" | "night" | "topographic" | "day" | "bathymetry";
549
+ export declare type TexturePreset = "satellite" | "natural" | "dark" | "light" | "night" | "topographic" | "day" | "bathymetry" | "atlas";
541
550
 
542
551
  /**
543
552
  * ISO 3166-1 country code mappings
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gralobe",
3
- "version": "1.0.64",
3
+ "version": "1.0.67",
4
4
  "description": "Interactive 3D globe visualization with statistics, smooth flat map ↔ globe transitions, and country labels",
5
5
  "type": "module",
6
6
  "main": "./dist/gralobe.umd.cjs",
@@ -35,22 +35,9 @@
35
35
  "license": "MIT",
36
36
  "repository": {
37
37
  "type": "git",
38
- "url": "https://github.com/batikanor/gralobe"
38
+ "url": "git+https://github.com/batikanor/gralobe.git"
39
39
  },
40
40
  "homepage": "https://github.com/batikanor/gralobe#readme",
41
- "scripts": {
42
- "dev": "vite",
43
- "build": "tsc && vite build",
44
- "build:lib": "tsc && vite build --mode lib",
45
- "preview": "vite preview",
46
- "test": "vitest run",
47
- "test:watch": "vitest",
48
- "test:e2e": "playwright test",
49
- "test:ui": "playwright test --ui",
50
- "lint": "biome check .",
51
- "format": "biome check --write .",
52
- "prepublishOnly": "npm run build:lib"
53
- },
54
41
  "peerDependencies": {
55
42
  "three": ">=0.150.0"
56
43
  },
@@ -74,5 +61,17 @@
74
61
  "three": ">=0.150.0",
75
62
  "topojson-client": "^3.1.0",
76
63
  "world-atlas": "^2.0.2"
64
+ },
65
+ "scripts": {
66
+ "dev": "vite",
67
+ "build": "tsc && vite build",
68
+ "build:lib": "tsc && vite build --mode lib",
69
+ "preview": "vite preview",
70
+ "test": "vitest run",
71
+ "test:watch": "vitest",
72
+ "test:e2e": "playwright test",
73
+ "test:ui": "playwright test --ui",
74
+ "lint": "biome check .",
75
+ "format": "biome check --write ."
77
76
  }
78
- }
77
+ }