gralobe 1.0.8 → 1.0.10
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 +500 -483
- package/dist/gralobe.js.map +1 -1
- package/dist/gralobe.umd.cjs +75 -72
- package/dist/gralobe.umd.cjs.map +1 -1
- package/dist/index.d.ts +12 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -169,6 +169,9 @@ export declare class GlobeViz implements GlobeVizAPI {
|
|
|
169
169
|
private currentStatistic;
|
|
170
170
|
private animationId;
|
|
171
171
|
private isDestroyed;
|
|
172
|
+
/** Promise that resolves when fully initialized */
|
|
173
|
+
ready: Promise<void>;
|
|
174
|
+
private resolveReady;
|
|
172
175
|
/**
|
|
173
176
|
* Create a new GlobeViz instance
|
|
174
177
|
* @param container CSS selector or HTMLElement
|
|
@@ -181,6 +184,7 @@ export declare class GlobeViz implements GlobeVizAPI {
|
|
|
181
184
|
private createStars;
|
|
182
185
|
private createGUI;
|
|
183
186
|
private handleResize;
|
|
187
|
+
private handleFullscreenChange;
|
|
184
188
|
private handleKeydown;
|
|
185
189
|
private animate;
|
|
186
190
|
toGlobe(): void;
|
|
@@ -196,6 +200,8 @@ export declare class GlobeViz implements GlobeVizAPI {
|
|
|
196
200
|
recordVideo(options?: ExportOptions): Promise<void>;
|
|
197
201
|
setEffects(effects: Partial<EffectsConfig>): void;
|
|
198
202
|
resize(width: number, height: number): void;
|
|
203
|
+
toggleFullscreen(): Promise<void>;
|
|
204
|
+
isFullscreen(): boolean;
|
|
199
205
|
destroy(): void;
|
|
200
206
|
}
|
|
201
207
|
|
|
@@ -203,6 +209,8 @@ export declare class GlobeViz implements GlobeVizAPI {
|
|
|
203
209
|
* Public API for controlling the globe
|
|
204
210
|
*/
|
|
205
211
|
export declare interface GlobeVizAPI {
|
|
212
|
+
/** Promise that resolves when globe is fully initialized */
|
|
213
|
+
ready: Promise<void>;
|
|
206
214
|
/** Animate to globe view */
|
|
207
215
|
toGlobe(): void;
|
|
208
216
|
/** Animate to flat map view */
|
|
@@ -229,6 +237,10 @@ export declare interface GlobeVizAPI {
|
|
|
229
237
|
setEffects(effects: Partial<EffectsConfig>): void;
|
|
230
238
|
/** Resize the visualization */
|
|
231
239
|
resize(width: number, height: number): void;
|
|
240
|
+
/** Toggle fullscreen mode */
|
|
241
|
+
toggleFullscreen(): Promise<void>;
|
|
242
|
+
/** Check if currently fullscreen */
|
|
243
|
+
isFullscreen(): boolean;
|
|
232
244
|
/** Destroy the instance and clean up */
|
|
233
245
|
destroy(): void;
|
|
234
246
|
}
|
package/package.json
CHANGED