animaps-react 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/README.md +51 -0
- package/dist/animaps.cjs +2 -0
- package/dist/animaps.css +1 -0
- package/dist/animaps.js +1480 -0
- package/dist/index.d.ts +28 -0
- package/package.json +62 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { JSX } from 'react';
|
|
3
|
+
|
|
4
|
+
export declare function AniMaps({ className, initialStops, routeColor, style }: AniMapsProps): JSX.Element;
|
|
5
|
+
|
|
6
|
+
export declare type AniMapsLeg = {
|
|
7
|
+
transport: AniMapsTransport;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export declare type AniMapsMapStyle = 'earth' | 'eco' | 'night' | 'light';
|
|
11
|
+
|
|
12
|
+
export declare type AniMapsProps = {
|
|
13
|
+
className?: string;
|
|
14
|
+
initialStops?: AniMapsStop[];
|
|
15
|
+
routeColor?: string;
|
|
16
|
+
style?: CSSProperties;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export declare type AniMapsStop = {
|
|
20
|
+
city: string;
|
|
21
|
+
country: string;
|
|
22
|
+
lat: number;
|
|
23
|
+
lng: number;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export declare type AniMapsTransport = 'plane' | 'car' | 'train' | 'boat' | 'walk' | 'bike';
|
|
27
|
+
|
|
28
|
+
export { }
|
package/package.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "animaps-react",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "animated travel route maps for react",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "mortspace",
|
|
8
|
+
"homepage": "https://github.com/mortspace/animaps",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/mortspace/animaps.git"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"maps",
|
|
15
|
+
"maplibre",
|
|
16
|
+
"travel",
|
|
17
|
+
"route",
|
|
18
|
+
"animation",
|
|
19
|
+
"video",
|
|
20
|
+
"react"
|
|
21
|
+
],
|
|
22
|
+
"main": "./dist/animaps.cjs",
|
|
23
|
+
"module": "./dist/animaps.js",
|
|
24
|
+
"types": "./dist/index.d.ts",
|
|
25
|
+
"exports": {
|
|
26
|
+
".": {
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
28
|
+
"import": "./dist/animaps.js",
|
|
29
|
+
"require": "./dist/animaps.cjs"
|
|
30
|
+
},
|
|
31
|
+
"./style.css": "./dist/animaps.css"
|
|
32
|
+
},
|
|
33
|
+
"sideEffects": [
|
|
34
|
+
"**/*.css"
|
|
35
|
+
],
|
|
36
|
+
"files": [
|
|
37
|
+
"dist"
|
|
38
|
+
],
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build": "vite build",
|
|
41
|
+
"prepublishOnly": "npm run build"
|
|
42
|
+
},
|
|
43
|
+
"peerDependencies": {
|
|
44
|
+
"react": ">=18",
|
|
45
|
+
"react-dom": ">=18"
|
|
46
|
+
},
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"maplibre-gl": "^5.24.0",
|
|
49
|
+
"motion": "^12.0.0",
|
|
50
|
+
"mp4-muxer": "^5.2.2",
|
|
51
|
+
"webm-muxer": "^5.1.4"
|
|
52
|
+
},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"@types/geojson": "^7946.0.16",
|
|
55
|
+
"@types/react": "^19.0.0",
|
|
56
|
+
"@types/react-dom": "^19.0.0",
|
|
57
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
58
|
+
"typescript": "^5.7.0",
|
|
59
|
+
"vite": "^6.0.0",
|
|
60
|
+
"vite-plugin-dts": "^4.3.0"
|
|
61
|
+
}
|
|
62
|
+
}
|