Port the prototype massing.js to a client-only React component (MassingScene) behind a dynamic(ssr:false) wrapper (MassingViewer), wired into the future3d + insolation drawers, replacing the СКОРО SoonCards. Generative mass from parcel area (real geometry_suitability.area_ha) × КСИТ-цель 3.5 (labelled regulation-default · НСПД — honest, real max_far not in /analyze), OrbitControls (orbit/zoom/auto-rotate), time-of-day sun with shadows (insolation preview), live GFA/КСИТ-факт metrics (green ≤3.5 / amber over). Full renderer/ scene/RAF dispose on drawer close; graceful WebGL-unavailable fallback. Adds three@0.184.0 + @types/three (package.json + package-lock.json in sync). SSR-isolated (three imported only in MassingScene). TS strict, no any.
52 lines
1.4 KiB
JSON
52 lines
1.4 KiB
JSON
{
|
|
"name": "gendesign-frontend",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"lint": "next lint",
|
|
"type-check": "tsc --noEmit",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"codegen": "openapi-typescript http://localhost:8000/openapi.json -o src/lib/api-types.ts"
|
|
},
|
|
"dependencies": {
|
|
"@sentry/nextjs": "^10.53.1",
|
|
"@tanstack/react-query": "^5.50.0",
|
|
"@types/three": "^0.184.1",
|
|
"echarts": "^6.0.0",
|
|
"echarts-for-react": "^3.0.6",
|
|
"leaflet": "^1.9.4",
|
|
"leaflet-draw": "^1.0.4",
|
|
"lucide-react": "^0.511.0",
|
|
"next": "^15.0.0",
|
|
"react": "^19.0.0",
|
|
"react-dom": "^19.0.0",
|
|
"react-leaflet": "^5.0.0",
|
|
"three": "^0.184.0",
|
|
"tslib": "^2.8.1"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/postcss": "^4.0.0",
|
|
"@testing-library/dom": "^10.4.0",
|
|
"@testing-library/jest-dom": "^6.6.3",
|
|
"@testing-library/react": "^16.1.0",
|
|
"@testing-library/user-event": "^14.5.2",
|
|
"@types/leaflet": "^1.9.0",
|
|
"@types/leaflet-draw": "^1.0.0",
|
|
"@types/node": "^22.0.0",
|
|
"@types/react": "^19.0.0",
|
|
"@types/react-dom": "^19.0.0",
|
|
"@vitejs/plugin-react": "^4.3.4",
|
|
"eslint": "^9.0.0",
|
|
"eslint-config-next": "^15.0.0",
|
|
"jsdom": "^25.0.1",
|
|
"openapi-typescript": "^7.0.0",
|
|
"postcss": "^8.4.0",
|
|
"tailwindcss": "^4.0.0",
|
|
"typescript": "5.9.3",
|
|
"vitest": "^2.1.9"
|
|
}
|
|
}
|