feat(web-ui): 新增首页启动器与地图遮挡感知交互

- 添加首页卡片式应用启动器界面,包含实时视图、登记、
  设置三个入口及对应 SVG 图标资源
- 地图组件新增 ResizeObserver 自动适配容器尺寸变化
- 地图组件引入遮挡区域(occlusion)管理,聚焦时自动
  计算可见填充偏移,避免目标被面板遮挡
- 将地图加载事件从 load 改为 style.load,提升初始化
  可靠性
- 扩展 metrics 接口,返回选中目标像素坐标、遮挡状态、
  画布尺寸等运行时诊断信息
- 补充 web-sys features(HtmlImageElement, Storage,
  PointerEvent, DomRect 等)以支持新 UI 交互
- index.html 新增 workspace/home/registry 样式及资源引用
- .gitignore 忽略 previews 目录与本地编译产物
```
This commit is contained in:
2026-10-22 13:43:58 +08:00
parent 1dfcdb619c
commit 91059cf395
44 changed files with 2787 additions and 3390 deletions
+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" class="app-icon" width="80" height="80" viewBox="0 0 92 92" aria-hidden="true"><defs><linearGradient id="base-realtime" x2="0" y2="1"><stop stop-color="#398b87"></stop><stop offset="1" stop-color="#205c63"></stop></linearGradient></defs><rect x="4" y="5" width="84" height="84" rx="21" fill="#000" opacity=".16"></rect><rect x="4" y="3" width="84" height="84" rx="21" fill="url(#base-realtime)" stroke="#d8edff" stroke-opacity=".3"></rect><path d="M25 5h42c11 0 19 8 19 19" fill="none" stroke="#e3f4ff" stroke-opacity=".22"></path><circle cx="46" cy="45" r="25" fill="none" stroke="#dcfbf6" stroke-width="3"></circle><circle cx="46" cy="45" r="15" fill="none" stroke="#a4d4ce" stroke-width="1.5"></circle><path d="M46 20v25l18-18" fill="#e2fff3" fill-opacity=".19" stroke="#e4fff8" stroke-width="2"></path><path d="M46 16v7m0 45v7M16 45h7m45 0h7" stroke="#bce8df" stroke-width="2"></path><circle cx="34" cy="53" r="3.5" fill="#e5fff8"></circle><circle cx="59" cy="55" r="2.5" fill="#b8e5df"></circle></svg>

After

Width:  |  Height:  |  Size: 1.0 KiB

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" class="app-icon" width="80" height="80" viewBox="0 0 92 92" aria-hidden="true"><defs><linearGradient id="base-register" x2="0" y2="1"><stop stop-color="#3f83c7"></stop><stop offset="1" stop-color="#24588d"></stop></linearGradient></defs><rect x="4" y="5" width="84" height="84" rx="21" fill="#000" opacity=".16"></rect><rect x="4" y="3" width="84" height="84" rx="21" fill="url(#base-register)" stroke="#d8edff" stroke-opacity=".3"></rect><path d="M25 5h42c11 0 19 8 19 19" fill="none" stroke="#e3f4ff" stroke-opacity=".22"></path><path d="M30 20h22l12 12v36H30Z" fill="#edf6ff"></path><path d="M52 20v13h12" fill="#a8c9ed"></path><rect x="23" y="30" width="6" height="35" rx="3" fill="#90b5df"></rect><path d="M38 43h17m-17 8h17m-17 8h10" stroke="#3975b2" stroke-width="3" stroke-linecap="round"></path><circle cx="62" cy="63" r="10" fill="#a6d4ff" stroke="#3c78b7" stroke-width="2"></circle><path d="m57 63 3 3 6-7" fill="none" stroke="#24588f" stroke-width="2.5" stroke-linecap="round"></path></svg>

After

Width:  |  Height:  |  Size: 1.0 KiB

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" class="app-icon" width="80" height="80" viewBox="0 0 92 92" aria-hidden="true"><defs><linearGradient id="base-settings" x2="0" y2="1"><stop stop-color="#91a5b8"></stop><stop offset="1" stop-color="#556c82"></stop></linearGradient></defs><rect x="4" y="5" width="84" height="84" rx="21" fill="#000" opacity=".16"></rect><rect x="4" y="3" width="84" height="84" rx="21" fill="url(#base-settings)" stroke="#d8edff" stroke-opacity=".3"></rect><path d="M25 5h42c11 0 19 8 19 19" fill="none" stroke="#e3f4ff" stroke-opacity=".22"></path><path d="m42 19 10 0 3 8 8 4 8-1 5 9-5 7 0 9 5 7-5 9-8-1-8 4-3 8H42l-3-8-8-4-8 1-5-9 5-7v-9l-5-7 5-9 8 1 8-4 3-8Z" transform="translate(8 0) scale(.84)" fill="#edf3f9"></path><circle cx="47" cy="43" r="14" fill="#50677e"></circle><circle cx="47" cy="43" r="8.5" fill="#a8bbce"></circle><circle cx="47" cy="43" r="4" fill="#e9f1fa"></circle></svg>

After

Width:  |  Height:  |  Size: 917 B