Skip to content

Commit

Permalink
Upd types to new kapsule version
Browse files Browse the repository at this point in the history
  • Loading branch information
vasturiano committed Dec 3, 2024
1 parent 1ee51a1 commit 11cc630
Show file tree
Hide file tree
Showing 3 changed files with 164 additions and 162 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"dist/**/*"
],
"dependencies": {
"globe.gl": "^2.33",
"globe.gl": "^2.34",
"prop-types": "15",
"react-kapsule": "^2.5"
},
Expand All @@ -63,9 +63,9 @@
"@rollup/plugin-terser": "^0.4.4",
"@types/react": "^18.3.12",
"rimraf": "^6.0.1",
"rollup": "^4.27.2",
"rollup": "^4.28.0",
"rollup-plugin-dts": "^6.1.1",
"typescript": "^5.6.3"
"typescript": "^5.7.2"
},
"engines": {
"node": ">=12"
Expand Down
10 changes: 5 additions & 5 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react';
import { Light, Scene, Camera, WebGLRenderer, Object3D, Material } from 'three';
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js';
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer.js';
import { ConfigOptions, GlobeInstance as GlobeKapsuleInstance } from 'globe.gl';
import GlobeKapsule, { ConfigOptions } from 'globe.gl';

type Accessor<In, Out> = Out | string | ((obj: In) => Out);
type ObjAccessor<T> = Accessor<object, T>;
Expand Down Expand Up @@ -269,11 +269,11 @@ export interface GlobeProps extends ConfigOptions {
export interface GlobeMethods {
// Render control
pointOfView(): GeoCoords;
pointOfView(pov: { lat?: number, lng?: number, altitude?: number }, transitionMs?: number): GlobeKapsuleInstance;
pauseAnimation(): GlobeKapsuleInstance;
resumeAnimation(): GlobeKapsuleInstance;
pointOfView(pov: { lat?: number, lng?: number, altitude?: number }, transitionMs?: number): GlobeKapsule;
pauseAnimation(): GlobeKapsule;
resumeAnimation(): GlobeKapsule;
lights(): Light[];
lights(lights: Light[]): GlobeKapsuleInstance;
lights(lights: Light[]): GlobeKapsule;
scene(): Scene;
camera(): Camera;
renderer(): WebGLRenderer;
Expand Down
Loading

0 comments on commit 11cc630

Please sign in to comment.