canvas-globe 0.1.0
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/CHANGELOG.md +137 -0
- package/COPYRIGHT +8 -0
- package/LICENSE +674 -0
- package/LICENSING.md +83 -0
- package/README.md +638 -0
- package/THIRD_PARTY_NOTICES.md +14 -0
- package/codemeta.json +34 -0
- package/dist/canvas-globe.umd.js +4338 -0
- package/dist/package.json +1 -0
- package/package.json +110 -0
- package/src/csv.js +151 -0
- package/src/data/timezones.js +5 -0
- package/src/data/world.js +6 -0
- package/src/element.js +144 -0
- package/src/export.js +19 -0
- package/src/geo-globe.js +2856 -0
- package/src/geo.js +286 -0
- package/src/index.js +19 -0
- package/src/license.js +36 -0
- package/src/media.js +160 -0
- package/src/presets.js +21 -0
- package/src/react.js +60 -0
- package/src/recorder.js +70 -0
- package/src/scenes.js +80 -0
- package/src/texture.js +129 -0
- package/src/themes.js +241 -0
- package/src/viewer.js +130 -0
- package/types/element.d.ts +41 -0
- package/types/index.d.ts +696 -0
- package/types/react.d.ts +15 -0
package/types/react.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { CSSProperties, ForwardRefExoticComponent, RefAttributes } from "react";
|
|
2
|
+
import type { GeoGlobe, GeoGlobeOptions } from "./index.js";
|
|
3
|
+
|
|
4
|
+
export interface GlobeProps extends GeoGlobeOptions {
|
|
5
|
+
className?: string;
|
|
6
|
+
/** Merged over the default `{ width: "100%", aspectRatio }`. */
|
|
7
|
+
style?: CSSProperties;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Canvas-backed React component. The forwarded ref is the `GeoGlobe`
|
|
12
|
+
* instance, so `ref.current.flyTo(...)` works once mounted.
|
|
13
|
+
*/
|
|
14
|
+
export declare const Globe: ForwardRefExoticComponent<GlobeProps & RefAttributes<GeoGlobe | null>>;
|
|
15
|
+
export default Globe;
|