@pasquelin/map3d-plugin-windy 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/LICENSE +21 -0
- package/README.md +71 -0
- package/dist/api.d.ts +41 -0
- package/dist/config.d.ts +6 -0
- package/dist/index.cjs +1183 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +1183 -0
- package/dist/marker.d.ts +15 -0
- package/package.json +45 -0
package/dist/marker.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MarkerData, MenuItem } from '@pasquelin/map3d';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
/** Payload porté par chaque marker webcam (assemblé par `api.ts#mapWebcams`). */
|
|
4
|
+
export type WindyMarkerData = {
|
|
5
|
+
place: string;
|
|
6
|
+
detail?: string;
|
|
7
|
+
thumb?: string;
|
|
8
|
+
};
|
|
9
|
+
/** Infobulle au survol : vignette de la webcam + titre + localisation. */
|
|
10
|
+
export declare function webcamTooltip(m: MarkerData<unknown>): {
|
|
11
|
+
title?: ReactNode;
|
|
12
|
+
content?: ReactNode;
|
|
13
|
+
} | null;
|
|
14
|
+
/** Menu contextuel : ouvrir la webcam / copier le lien — inertes sans `detail`. */
|
|
15
|
+
export declare function webcamMenu(m: MarkerData<unknown>): MenuItem[];
|
package/package.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pasquelin/map3d-plugin-windy",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Plugin map3D — pose un marker par webcam publique autour de la vue (voie « markers »), via l'API Windy Webcams v3.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "Alban Pasquelin <alban.pasquelin@gmail.com>",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/pasquelin/plugingsMap3D.git",
|
|
11
|
+
"directory": "packages/windy"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://github.com/pasquelin/plugingsMap3D/tree/main/packages/windy#readme",
|
|
14
|
+
"bugs": "https://github.com/pasquelin/plugingsMap3D/issues",
|
|
15
|
+
"publishConfig": {
|
|
16
|
+
"access": "public",
|
|
17
|
+
"provenance": true
|
|
18
|
+
},
|
|
19
|
+
"sideEffects": false,
|
|
20
|
+
"files": [
|
|
21
|
+
"dist",
|
|
22
|
+
"LICENSE",
|
|
23
|
+
"README.md"
|
|
24
|
+
],
|
|
25
|
+
"main": "./dist/index.cjs",
|
|
26
|
+
"module": "./dist/index.js",
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
28
|
+
"exports": {
|
|
29
|
+
".": {
|
|
30
|
+
"types": "./dist/index.d.ts",
|
|
31
|
+
"import": "./dist/index.js",
|
|
32
|
+
"require": "./dist/index.cjs"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build": "vite build",
|
|
37
|
+
"typecheck": "tsc --noEmit"
|
|
38
|
+
},
|
|
39
|
+
"peerDependencies": {
|
|
40
|
+
"@pasquelin/map3d": "^0.2.0",
|
|
41
|
+
"react": "^19.0.0",
|
|
42
|
+
"react-dom": "^19.0.0",
|
|
43
|
+
"three": ">=0.169.0"
|
|
44
|
+
}
|
|
45
|
+
}
|