@pasquelin/map3d-plugin-geopf 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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Alban Pasquelin
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,65 @@
1
+ # @pasquelin/map3d-plugin-geopf
2
+
3
+ Bâtiments France (BDTOPO) — enrichissement au pick. Au clic sur un bâtiment 3D, interroge le
4
+ service WFS de la Géoplateforme IGN (`BDTOPO_V3:batiment`) et remonte ses attributs officiels
5
+ (nature, usage, hauteur, étages, date de création, matériaux des murs…) via `useBuildingEnrichment()`.
6
+ Le pick reste **instantané** : `enrichBuilding` s'exécute après `buildingclick`, en tâche de fond.
7
+
8
+ Voie « enrichir » du contrat plugin — zéro marker, zéro couche 3D : uniquement `enrichBuilding`.
9
+
10
+ ## Usage
11
+
12
+ ```tsx
13
+ import { Map } from '@pasquelin/map3d'
14
+ import { geopfBatiments } from '@pasquelin/map3d-plugin-geopf'
15
+
16
+ <Map plugins={[geopfBatiments()]} />
17
+ ```
18
+
19
+ Le plugin est **désactivé par défaut** (`enabledByDefault: false`) : l'utilisateur l'active depuis
20
+ le hub des plugins (menu Réglages). Une fois actif, il s'active sur l'outil « sélectionner un
21
+ bâtiment » (pick de bâtiment 3D) déjà fourni par map3D.
22
+
23
+ Pour lire l'enrichissement dans l'hôte, monter un composant enfant de `<Map>` (le hook exige le
24
+ contexte carte) :
25
+
26
+ ```tsx
27
+ import { useBuildingEnrichment } from '@pasquelin/map3d'
28
+
29
+ function BuildingInfo() {
30
+ const e = useBuildingEnrichment()
31
+ if (e.loading) return <div>Chargement…</div>
32
+ if (e.error) return <div>Indisponible : {e.error.message}</div>
33
+ if (!e.data) return null
34
+ return <div>{Object.entries(e.data).map(([k, v]) => <div key={k}>{k} : {String(v)}</div>)}</div>
35
+ }
36
+ ```
37
+
38
+ ## Configuration (`geopfConfig`)
39
+
40
+ | Clé | Type | Défaut | Refetch | Description |
41
+ |---|---|---|---|---|
42
+ | `searchRadius` | `number` (5–100) | `25` | oui | Rayon de recherche autour du point cliqué, en mètres — détermine la BBOX WFS envoyée. |
43
+ | `count` | `number` (1–100) | `20` | oui | Nombre maximal de features demandées au service (`COUNT`). |
44
+ | `matchContaining` | `boolean` | `true` | oui | Si vrai, retient le polygone qui **contient** le point cliqué ; sinon le plus proche par centroïde. |
45
+ | `showEmpty` | `boolean` | `false` | non | Affiche aussi les attributs BDTOPO vides (sinon élagués). |
46
+ | `apiUrl` | `string` | `https://data.geopf.fr/wfs/ows` | oui | Endpoint WFS (à changer pour un miroir/proxy éventuel). |
47
+
48
+ ## Détail technique
49
+
50
+ - `src/config.ts` : schéma de config (`PluginField[]`) — seule source des défauts.
51
+ - `src/wfs.ts` : `buildGetFeatureUrl` (BBOX carrée EPSG:4326 centrée sur le point) + `pickBuilding`
52
+ (point-dans-polygone par ray casting, zéro dépendance).
53
+ - `src/attributes.ts` : `mapAttributes` — projette les clés BDTOPO brutes sur des étiquettes FR
54
+ stables (table `FIELDS`), élague les valeurs vides sauf `showEmpty`.
55
+ - `src/index.ts` : `geopfBatiments()` — assemble le tout dans `enrichBuilding`.
56
+
57
+ ## Exemple
58
+
59
+ ```bash
60
+ pnpm --filter @pasquelin/map3d-plugin-geopf-example dev
61
+ ```
62
+
63
+ Nécessite `VITE_CESIUM_ION_TOKEN` (fichier `.env` du package `example/`) pour de vrais bâtiments 3D ;
64
+ sans token l'exemple retombe sur le globe ellipsoïde de repli (le pick de bâtiment ne peut alors
65
+ rien enrichir).
@@ -0,0 +1,4 @@
1
+ /** Projette les properties BDTOPO sur des étiquettes stables ; élague les vides sauf showEmpty. */
2
+ export declare function mapAttributes(props: Record<string, unknown>, opts: {
3
+ showEmpty: boolean;
4
+ }): Record<string, unknown>;
@@ -0,0 +1,45 @@
1
+ import { PluginField } from '@pasquelin/map3d';
2
+ type ConfigOf<S extends readonly PluginField[]> = {
3
+ [F in S[number] as F['key']]: F extends {
4
+ type: 'boolean';
5
+ } ? boolean : F extends {
6
+ type: 'number';
7
+ } ? number : string;
8
+ };
9
+ export declare const geopfConfig: readonly [{
10
+ readonly key: "searchRadius";
11
+ readonly type: "number";
12
+ readonly default: 25;
13
+ readonly min: 5;
14
+ readonly max: 100;
15
+ readonly refetch: true;
16
+ readonly label: "Rayon (m)";
17
+ }, {
18
+ readonly key: "count";
19
+ readonly type: "number";
20
+ readonly default: 20;
21
+ readonly min: 1;
22
+ readonly max: 100;
23
+ readonly refetch: true;
24
+ readonly label: "Nombre de features";
25
+ }, {
26
+ readonly key: "matchContaining";
27
+ readonly type: "boolean";
28
+ readonly default: true;
29
+ readonly refetch: true;
30
+ readonly label: "Polygone contenant le point";
31
+ }, {
32
+ readonly key: "showEmpty";
33
+ readonly type: "boolean";
34
+ readonly default: false;
35
+ readonly label: "Afficher les attributs vides";
36
+ }, {
37
+ readonly key: "apiUrl";
38
+ readonly type: "string";
39
+ readonly default: "https://data.geopf.fr/wfs/ows";
40
+ readonly refetch: true;
41
+ readonly label: "Endpoint WFS";
42
+ readonly placeholder: "https://data.geopf.fr/wfs/ows";
43
+ }];
44
+ export type GeopfConfig = ConfigOf<typeof geopfConfig>;
45
+ export {};
package/dist/index.cjs ADDED
@@ -0,0 +1,126 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const map3d = require("@pasquelin/map3d");
4
+ var mdiOfficeBuildingMarkerOutline = "M15 9H17V11H15V9M17 5H15V7H17V5M11 15H13V13H11V15M13 5H11V7H13V5M11 11H13V9H11V11M9 5H7V7H9V5M9 9H7V11H9V9M14.55 21H13V17.5H11V21H5V3H19V11.03C19.71 11.09 20.39 11.31 21 11.63V1H3V23H15.91C15.5 22.44 15 21.76 14.55 21M7 19H9V17H7V19M9 13H7V15H9V13M22 16.5C22 19.1 18.5 23 18.5 23S15 19.1 15 16.5C15 14.6 16.6 13 18.5 13S22 14.6 22 16.5M19.7 16.6C19.7 16 19.1 15.4 18.5 15.4S17.3 15.9 17.3 16.6C17.3 17.2 17.8 17.8 18.5 17.8S19.8 17.2 19.7 16.6Z";
5
+ const geopfConfig = [
6
+ { key: "searchRadius", type: "number", default: 25, min: 5, max: 100, refetch: true, label: "Rayon (m)" },
7
+ { key: "count", type: "number", default: 20, min: 1, max: 100, refetch: true, label: "Nombre de features" },
8
+ { key: "matchContaining", type: "boolean", default: true, refetch: true, label: "Polygone contenant le point" },
9
+ { key: "showEmpty", type: "boolean", default: false, label: "Afficher les attributs vides" },
10
+ {
11
+ key: "apiUrl",
12
+ type: "string",
13
+ default: "https://data.geopf.fr/wfs/ows",
14
+ refetch: true,
15
+ label: "Endpoint WFS",
16
+ placeholder: "https://data.geopf.fr/wfs/ows"
17
+ }
18
+ ];
19
+ const EARTH_R = 6378137;
20
+ const RAD = Math.PI / 180;
21
+ function metersToDeg(radiusM, lat) {
22
+ const dLat = radiusM / EARTH_R / RAD;
23
+ const dLng = dLat / Math.max(0.01, Math.cos(lat * RAD));
24
+ return { dLat, dLng };
25
+ }
26
+ function buildGetFeatureUrl(input) {
27
+ const { lat, lng, config } = input;
28
+ const { dLat, dLng } = metersToDeg(config.searchRadius, lat);
29
+ const bbox = [lng - dLng, lat - dLat, lng + dLng, lat + dLat, "EPSG:4326"].join(",");
30
+ const p = new URLSearchParams({
31
+ SERVICE: "WFS",
32
+ VERSION: "2.0.0",
33
+ REQUEST: "GetFeature",
34
+ TYPENAMES: "BDTOPO_V3:batiment",
35
+ SRSNAME: "EPSG:4326",
36
+ BBOX: bbox,
37
+ OUTPUTFORMAT: "application/json",
38
+ COUNT: String(config.count)
39
+ });
40
+ return `${config.apiUrl}?${p.toString()}`;
41
+ }
42
+ function pointInRing(lng, lat, ring) {
43
+ let inside = false;
44
+ for (let i = 0, j = ring.length - 1; i < ring.length; j = i++) {
45
+ const [xi, yi] = ring[i];
46
+ const [xj, yj] = ring[j];
47
+ if (yi > lat !== yj > lat && lng < (xj - xi) * (lat - yi) / (yj - yi) + xi) inside = !inside;
48
+ }
49
+ return inside;
50
+ }
51
+ function outerRings(g) {
52
+ if (!g) return [];
53
+ return g.type === "Polygon" ? [g.coordinates[0]] : g.coordinates.map((poly) => poly[0]).filter(Boolean);
54
+ }
55
+ function centroid(ring) {
56
+ let sx = 0, sy = 0;
57
+ for (const [x, y] of ring) {
58
+ sx += x;
59
+ sy += y;
60
+ }
61
+ return { lng: sx / ring.length, lat: sy / ring.length };
62
+ }
63
+ function pickBuilding(fc, input) {
64
+ const { lat, lng, config } = input;
65
+ if (!fc.features.length) return null;
66
+ if (config.matchContaining) {
67
+ const hit = fc.features.find((f) => outerRings(f.geometry).some((r) => pointInRing(lng, lat, r)));
68
+ if (hit) return hit.properties;
69
+ }
70
+ let best = null;
71
+ let bestD = Infinity;
72
+ for (const f of fc.features) {
73
+ for (const r of outerRings(f.geometry)) {
74
+ const c = centroid(r);
75
+ const d = (c.lng - lng) ** 2 + (c.lat - lat) ** 2;
76
+ if (d < bestD) {
77
+ bestD = d;
78
+ best = f;
79
+ }
80
+ }
81
+ }
82
+ return best?.properties ?? null;
83
+ }
84
+ const FIELDS = {
85
+ nature: "Nature",
86
+ usage_1: "Usage",
87
+ hauteur: "Hauteur (m)",
88
+ nombre_d_etages: "Étages",
89
+ date_creation: "Créé le",
90
+ materiaux_des_murs: "Murs"
91
+ };
92
+ const isEmpty = (v) => v === null || v === void 0 || v === "";
93
+ function mapAttributes(props, opts) {
94
+ const out = {};
95
+ for (const [key, label] of Object.entries(FIELDS)) {
96
+ if (!(key in props)) continue;
97
+ const v = props[key];
98
+ if (!opts.showEmpty && isEmpty(v)) continue;
99
+ out[label] = v;
100
+ }
101
+ return out;
102
+ }
103
+ const geopfBatiments = () => map3d.definePlugin({
104
+ meta: {
105
+ id: "geopf-batiments",
106
+ name: "Bâtiments France (BDTOPO)",
107
+ description: "Attributs officiels IGN d’un bâtiment au clic",
108
+ icon: mdiOfficeBuildingMarkerOutline,
109
+ version: "0.1.0",
110
+ author: "map3d",
111
+ homepage: "https://geoservices.ign.fr"
112
+ },
113
+ config: geopfConfig,
114
+ enabledByDefault: false,
115
+ enrichBuilding: async (hit, ctx) => {
116
+ const url = buildGetFeatureUrl({ lat: hit.info.lat, lng: hit.info.lng, config: ctx.config });
117
+ const res = await map3d.fetchWithPolicy(url, {}, ctx.fetchPolicy, ctx.signal, "geopf");
118
+ const fc = await res.json();
119
+ const props = pickBuilding(fc, { lat: hit.info.lat, lng: hit.info.lng, config: ctx.config });
120
+ return {
121
+ attrs: props ? mapAttributes(props, { showEmpty: ctx.config.showEmpty }) : {},
122
+ tags: ["geopf-batiments"]
123
+ };
124
+ }
125
+ });
126
+ exports.geopfBatiments = geopfBatiments;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Bâtiments France (BDTOPO) — enrichissement au pick. Au clic sur un bâtiment 3D, va
3
+ * chercher ses attributs officiels IGN et les remonte via `useBuildingEnrichment()`.
4
+ * Le pick reste instantané : cette fonction s'exécute APRÈS `buildingclick`.
5
+ */
6
+ export declare const geopfBatiments: () => import('@pasquelin/map3d').Plugin<{
7
+ searchRadius: number;
8
+ count: number;
9
+ matchContaining: boolean;
10
+ showEmpty: boolean;
11
+ apiUrl: string;
12
+ }>;
package/dist/index.js ADDED
@@ -0,0 +1,126 @@
1
+ import { definePlugin, fetchWithPolicy } from "@pasquelin/map3d";
2
+ var mdiOfficeBuildingMarkerOutline = "M15 9H17V11H15V9M17 5H15V7H17V5M11 15H13V13H11V15M13 5H11V7H13V5M11 11H13V9H11V11M9 5H7V7H9V5M9 9H7V11H9V9M14.55 21H13V17.5H11V21H5V3H19V11.03C19.71 11.09 20.39 11.31 21 11.63V1H3V23H15.91C15.5 22.44 15 21.76 14.55 21M7 19H9V17H7V19M9 13H7V15H9V13M22 16.5C22 19.1 18.5 23 18.5 23S15 19.1 15 16.5C15 14.6 16.6 13 18.5 13S22 14.6 22 16.5M19.7 16.6C19.7 16 19.1 15.4 18.5 15.4S17.3 15.9 17.3 16.6C17.3 17.2 17.8 17.8 18.5 17.8S19.8 17.2 19.7 16.6Z";
3
+ const geopfConfig = [
4
+ { key: "searchRadius", type: "number", default: 25, min: 5, max: 100, refetch: true, label: "Rayon (m)" },
5
+ { key: "count", type: "number", default: 20, min: 1, max: 100, refetch: true, label: "Nombre de features" },
6
+ { key: "matchContaining", type: "boolean", default: true, refetch: true, label: "Polygone contenant le point" },
7
+ { key: "showEmpty", type: "boolean", default: false, label: "Afficher les attributs vides" },
8
+ {
9
+ key: "apiUrl",
10
+ type: "string",
11
+ default: "https://data.geopf.fr/wfs/ows",
12
+ refetch: true,
13
+ label: "Endpoint WFS",
14
+ placeholder: "https://data.geopf.fr/wfs/ows"
15
+ }
16
+ ];
17
+ const EARTH_R = 6378137;
18
+ const RAD = Math.PI / 180;
19
+ function metersToDeg(radiusM, lat) {
20
+ const dLat = radiusM / EARTH_R / RAD;
21
+ const dLng = dLat / Math.max(0.01, Math.cos(lat * RAD));
22
+ return { dLat, dLng };
23
+ }
24
+ function buildGetFeatureUrl(input) {
25
+ const { lat, lng, config } = input;
26
+ const { dLat, dLng } = metersToDeg(config.searchRadius, lat);
27
+ const bbox = [lng - dLng, lat - dLat, lng + dLng, lat + dLat, "EPSG:4326"].join(",");
28
+ const p = new URLSearchParams({
29
+ SERVICE: "WFS",
30
+ VERSION: "2.0.0",
31
+ REQUEST: "GetFeature",
32
+ TYPENAMES: "BDTOPO_V3:batiment",
33
+ SRSNAME: "EPSG:4326",
34
+ BBOX: bbox,
35
+ OUTPUTFORMAT: "application/json",
36
+ COUNT: String(config.count)
37
+ });
38
+ return `${config.apiUrl}?${p.toString()}`;
39
+ }
40
+ function pointInRing(lng, lat, ring) {
41
+ let inside = false;
42
+ for (let i = 0, j = ring.length - 1; i < ring.length; j = i++) {
43
+ const [xi, yi] = ring[i];
44
+ const [xj, yj] = ring[j];
45
+ if (yi > lat !== yj > lat && lng < (xj - xi) * (lat - yi) / (yj - yi) + xi) inside = !inside;
46
+ }
47
+ return inside;
48
+ }
49
+ function outerRings(g) {
50
+ if (!g) return [];
51
+ return g.type === "Polygon" ? [g.coordinates[0]] : g.coordinates.map((poly) => poly[0]).filter(Boolean);
52
+ }
53
+ function centroid(ring) {
54
+ let sx = 0, sy = 0;
55
+ for (const [x, y] of ring) {
56
+ sx += x;
57
+ sy += y;
58
+ }
59
+ return { lng: sx / ring.length, lat: sy / ring.length };
60
+ }
61
+ function pickBuilding(fc, input) {
62
+ const { lat, lng, config } = input;
63
+ if (!fc.features.length) return null;
64
+ if (config.matchContaining) {
65
+ const hit = fc.features.find((f) => outerRings(f.geometry).some((r) => pointInRing(lng, lat, r)));
66
+ if (hit) return hit.properties;
67
+ }
68
+ let best = null;
69
+ let bestD = Infinity;
70
+ for (const f of fc.features) {
71
+ for (const r of outerRings(f.geometry)) {
72
+ const c = centroid(r);
73
+ const d = (c.lng - lng) ** 2 + (c.lat - lat) ** 2;
74
+ if (d < bestD) {
75
+ bestD = d;
76
+ best = f;
77
+ }
78
+ }
79
+ }
80
+ return best?.properties ?? null;
81
+ }
82
+ const FIELDS = {
83
+ nature: "Nature",
84
+ usage_1: "Usage",
85
+ hauteur: "Hauteur (m)",
86
+ nombre_d_etages: "Étages",
87
+ date_creation: "Créé le",
88
+ materiaux_des_murs: "Murs"
89
+ };
90
+ const isEmpty = (v) => v === null || v === void 0 || v === "";
91
+ function mapAttributes(props, opts) {
92
+ const out = {};
93
+ for (const [key, label] of Object.entries(FIELDS)) {
94
+ if (!(key in props)) continue;
95
+ const v = props[key];
96
+ if (!opts.showEmpty && isEmpty(v)) continue;
97
+ out[label] = v;
98
+ }
99
+ return out;
100
+ }
101
+ const geopfBatiments = () => definePlugin({
102
+ meta: {
103
+ id: "geopf-batiments",
104
+ name: "Bâtiments France (BDTOPO)",
105
+ description: "Attributs officiels IGN d’un bâtiment au clic",
106
+ icon: mdiOfficeBuildingMarkerOutline,
107
+ version: "0.1.0",
108
+ author: "map3d",
109
+ homepage: "https://geoservices.ign.fr"
110
+ },
111
+ config: geopfConfig,
112
+ enabledByDefault: false,
113
+ enrichBuilding: async (hit, ctx) => {
114
+ const url = buildGetFeatureUrl({ lat: hit.info.lat, lng: hit.info.lng, config: ctx.config });
115
+ const res = await fetchWithPolicy(url, {}, ctx.fetchPolicy, ctx.signal, "geopf");
116
+ const fc = await res.json();
117
+ const props = pickBuilding(fc, { lat: hit.info.lat, lng: hit.info.lng, config: ctx.config });
118
+ return {
119
+ attrs: props ? mapAttributes(props, { showEmpty: ctx.config.showEmpty }) : {},
120
+ tags: ["geopf-batiments"]
121
+ };
122
+ }
123
+ });
124
+ export {
125
+ geopfBatiments
126
+ };
package/dist/wfs.d.ts ADDED
@@ -0,0 +1,31 @@
1
+ import { GeopfConfig } from './config';
2
+ /** URL GetFeature WFS 2.0.0 pour BDTOPO_V3:batiment, BBOX carré 2×searchRadius. */
3
+ export declare function buildGetFeatureUrl(input: {
4
+ lat: number;
5
+ lng: number;
6
+ config: GeopfConfig;
7
+ }): string;
8
+ type Ring = [number, number, number?][];
9
+ type Geometry = {
10
+ type: 'Polygon';
11
+ coordinates: Ring[];
12
+ } | {
13
+ type: 'MultiPolygon';
14
+ coordinates: Ring[][];
15
+ };
16
+ type Feature = {
17
+ type: 'Feature';
18
+ properties: Record<string, unknown> | null;
19
+ geometry: Geometry | null;
20
+ };
21
+ export type FeatureCollection = {
22
+ type: 'FeatureCollection';
23
+ features: Feature[];
24
+ };
25
+ /** Bâtiment retenu : contenant le point (matchContaining), sinon centroïde le plus proche (y compris en repli si matchContaining est actif mais qu'aucun polygone ne contient le point). */
26
+ export declare function pickBuilding(fc: FeatureCollection, input: {
27
+ lat: number;
28
+ lng: number;
29
+ config: GeopfConfig;
30
+ }): Record<string, unknown> | null;
31
+ export {};
package/package.json ADDED
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "@pasquelin/map3d-plugin-geopf",
3
+ "version": "0.1.0",
4
+ "description": "Plugin map3D — enrichit les bâtiments 3D au clic avec les attributs BDTOPO de la Géoplateforme IGN (WFS), via useBuildingEnrichment().",
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/geopf"
12
+ },
13
+ "homepage": "https://github.com/pasquelin/plugingsMap3D/tree/main/packages/geopf#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
+ }