初始工程:智能网联监管平台风险热力图(方案C 双图层)
- 工程:React19+Vite6+TS+antd6+zustand+pnpm workspace,参考 uj-store 同构 - 数据管线:列式定点整数 + 字典索引 + 详情列懒加载(scripts/preprocess.mjs) - 聚合引擎:Web Worker 内筛选/分桶/统计/桶内明细,Transferable 零拷贝回传 - 热力层视口无关全量降采样,桶数封顶(maxBuckets)防卡顿 - 聚合圆圈层视口驱动聚合,桶数天然收敛到屏幕格子量级 - 双图层:AMap.HeatMap 热力底色 + AMap.CustomLayer 自绘聚合圆圈/数字(弃用 MarkerCluster,口径与内存双约束) - 界面:浅色政务科技风(深城交 #4653A2 主色),顶栏+筛选+统计+地图,点击桶弹窗下钻 - 缺 Key 兜底:loadAmap 拒绝并触发 MapKeyGuide 引导层 - 数据:41234 条深圳模拟数据已生成(public/data,可 pnpm data:build 重建) - typecheck + build 通过(3165 模块),dev server 冒烟 200
0 parents
Showing
55 changed files
with
3320 additions
and
0 deletions
.env.example
0 → 100644
.gitignore
0 → 100644
.npmrc
0 → 100644
.prettierignore
0 → 100644
.prettierrc.json
0 → 100644
README.md
0 → 100644
config/grid.json
0 → 100644
config/shenzhen-districts.json
0 → 100644
This diff is collapsed.
Click to expand it.
docs/技术方案与决策记录.md
0 → 100644
eslint.config.js
0 → 100644
index.html
0 → 100644
package.json
0 → 100644
packages/ui/package.json
0 → 100644
packages/ui/src/components/BrandMark.tsx
0 → 100644
packages/ui/src/components/Empty.tsx
0 → 100644
packages/ui/src/components/Field.tsx
0 → 100644
packages/ui/src/components/Panel.tsx
0 → 100644
packages/ui/src/components/SplitBar.tsx
0 → 100644
packages/ui/src/components/StatTile.tsx
0 → 100644
packages/ui/src/index.ts
0 → 100644
packages/ui/tsconfig.json
0 → 100644
pnpm-lock.yaml
0 → 100644
This diff could not be displayed because it is too large.
pnpm-workspace.yaml
0 → 100644
scripts/generate-sample.mjs
0 → 100644
scripts/preprocess.mjs
0 → 100644
This diff is collapsed.
Click to expand it.
src/App.tsx
0 → 100644
src/features/heatmap/MapKeyGuide.tsx
0 → 100644
src/features/heatmap/MapStage.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
src/features/heatmap/aggregate/grid.ts
0 → 100644
src/features/heatmap/aggregate/types.ts
0 → 100644
src/features/heatmap/data/detailLoader.ts
0 → 100644
src/features/heatmap/data/loadData.ts
0 → 100644
src/features/heatmap/detail/BucketCard.tsx
0 → 100644
src/features/heatmap/detail/BucketDrawer.tsx
0 → 100644
src/features/heatmap/map/ClusterLayer.ts
0 → 100644
This diff is collapsed.
Click to expand it.
src/features/heatmap/map/HeatLayer.ts
0 → 100644
src/features/heatmap/map/loadAmap.ts
0 → 100644
src/features/heatmap/map/palette.ts
0 → 100644
src/features/heatmap/panels/FilterPanel.tsx
0 → 100644
src/features/heatmap/panels/StatsPanel.tsx
0 → 100644
src/features/heatmap/useBootstrap.ts
0 → 100644
src/layout/HeaderBar.tsx
0 → 100644
src/main.tsx
0 → 100644
src/store/useHeatmapStore.ts
0 → 100644
src/theme/design.css
0 → 100644
This diff is collapsed.
Click to expand it.
src/theme/themeConfig.ts
0 → 100644
src/types/amap.d.ts
0 → 100644
src/utils/format.ts
0 → 100644
src/vite-env.d.ts
0 → 100644
tsconfig.json
0 → 100644
tsconfig.node.json
0 → 100644
vite.config.ts
0 → 100644
vitest.config.ts
0 → 100644
-
Please register or sign in to post a comment