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
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="1600" height="1140" viewBox="0 0 1600 1140"><defs><radialGradient id="base" cx=".35" cy=".05" r="1"><stop stop-color="#353d49"/><stop offset=".42" stop-color="#131923"/><stop offset="1" stop-color="#080b11"/></radialGradient><linearGradient id="s1" x1="0" y1="0" x2="1" y2=".7"><stop stop-color="#c3cbd2" stop-opacity=".65"/><stop offset=".12" stop-color="#596675" stop-opacity=".26"/><stop offset=".35" stop-color="#2b3441" stop-opacity=".2"/><stop offset="1" stop-color="#02060c" stop-opacity=".85"/></linearGradient><linearGradient id="edge" x1="0" y1="0" x2=".4" y2="1"><stop stop-color="#e2eaf4" stop-opacity=".4"/><stop offset=".55" stop-color="#8995a9" stop-opacity=".03"/><stop offset="1" stop-color="#202a3c" stop-opacity="0"/></linearGradient><filter id="soft"><feGaussianBlur stdDeviation="25"/></filter><filter id="grain"><feTurbulence type="fractalNoise" baseFrequency=".7" numOctaves="3" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/><feComponentTransfer><feFuncA type="linear" slope=".035"/></feComponentTransfer><feBlend in="SourceGraphic" mode="soft-light"/></filter><radialGradient id="shade"><stop offset=".2" stop-color="#000" stop-opacity="0"/><stop offset="1" stop-color="#000" stop-opacity=".23"/></radialGradient></defs><rect width="1600" height="1140" fill="url(#base)"/><ellipse cx="400" cy="-250" rx="780" ry="510" fill="#9daebd" opacity=".12" filter="url(#soft)"/><path d="M-250-80C300-100 580 100 665 470S700 1030 1280 1270H-200Z" fill="url(#s1)"/><path d="M-250-80C300-100 580 100 665 470S700 1030 1280 1270" fill="none" stroke="url(#edge)" stroke-width="2"/><path d="M1560-130C1250 100 1210 410 1390 720S1600 1000 1630 1250H1800V-130Z" fill="#02050b" opacity=".45"/><path d="M1560-130C1250 100 1210 410 1390 720S1600 1000 1630 1250" fill="none" stroke="#a8b8cc" stroke-opacity=".13" stroke-width="1.2"/><rect width="1600" height="1140" fill="url(#shade)"/><rect width="1600" height="1140" filter="url(#grain)" opacity=".08"/></svg>

After

Width:  |  Height:  |  Size: 2.0 KiB

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="1600" height="1140" viewBox="0 0 1600 1140"><defs><linearGradient id="base" x2=".8" y2="1"><stop stop-color="#101926"/><stop offset=".55" stop-color="#0b1120"/><stop offset="1" stop-color="#03070f"/></linearGradient><linearGradient id="silk" x1="0" y1="1" x2=".8" y2="0"><stop stop-color="#102037"/><stop offset=".4" stop-color="#132b50"/><stop offset=".64" stop-color="#365c82"/><stop offset=".72" stop-color="#779ebc"/><stop offset=".735" stop-color="#a4bdd0"/><stop offset=".75" stop-color="#385978"/><stop offset=".86" stop-color="#142841"/><stop offset="1" stop-color="#08121f"/></linearGradient><linearGradient id="fold" x1="0" y1="0" x2=".8" y2=".8"><stop stop-color="#080f1a"/><stop offset=".54" stop-color="#1c304a"/><stop offset=".68" stop-color="#4a6580"/><stop offset=".72" stop-color="#75899c"/><stop offset=".74" stop-color="#23374d"/><stop offset="1" stop-color="#090f19"/></linearGradient><filter id="grain"><feTurbulence type="fractalNoise" baseFrequency=".7" numOctaves="3" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/><feComponentTransfer><feFuncA type="linear" slope=".035"/></feComponentTransfer><feBlend in="SourceGraphic" mode="soft-light"/></filter><radialGradient id="shade"><stop offset=".2" stop-color="#000" stop-opacity="0"/><stop offset="1" stop-color="#000" stop-opacity=".23"/></radialGradient></defs><rect width="1600" height="1140" fill="url(#base)"/><path d="M-200 1250C-60 920 650 1040 980 620S1130-70 1800-170V1250Z" fill="url(#silk)"/><path d="M-160 1190C180 830 700 1100 1140 680S1350 0 1770-110V1250Z" fill="url(#fold)" opacity=".8"/><path d="M-200 1250C-60 920 650 1040 980 620S1130-70 1800-170" fill="none" stroke="#d9e9f2" stroke-opacity=".2" stroke-width="1"/><rect width="1600" height="1140" fill="url(#shade)"/><rect width="1600" height="1140" filter="url(#grain)" opacity=".08"/></svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="1600" height="1140" viewBox="0 0 1600 1140"><defs><radialGradient id="base" cx=".8" cy=".1"><stop stop-color="#3c424b"/><stop offset=".45" stop-color="#1b2028"/><stop offset="1" stop-color="#0b0f17"/></radialGradient><linearGradient id="plane" x1="0" y1="0" x2="1" y2=".8"><stop stop-color="#d4dee5" stop-opacity=".5"/><stop offset=".25" stop-color="#7d8a9b" stop-opacity=".12"/><stop offset="1" stop-color="#1a212d" stop-opacity=".18"/></linearGradient><linearGradient id="rim" x1="0" y1="0" x2="1" y2="1"><stop stop-color="#edf4fa" stop-opacity=".5"/><stop offset=".5" stop-color="#aab8ca" stop-opacity=".07"/><stop offset="1" stop-color="#fff" stop-opacity=".02"/></linearGradient><filter id="blur"><feGaussianBlur stdDeviation="13"/></filter><filter id="grain"><feTurbulence type="fractalNoise" baseFrequency=".7" numOctaves="3" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/><feComponentTransfer><feFuncA type="linear" slope=".035"/></feComponentTransfer><feBlend in="SourceGraphic" mode="soft-light"/></filter><radialGradient id="shade"><stop offset=".2" stop-color="#000" stop-opacity="0"/><stop offset="1" stop-color="#000" stop-opacity=".23"/></radialGradient></defs><rect width="1600" height="1140" fill="url(#base)"/><g transform="translate(950 -300) rotate(32)"><rect x="-100" y="100" width="630" height="1600" rx="180" fill="#02050a" opacity=".5" filter="url(#blur)"/><rect width="630" height="1600" rx="180" fill="url(#plane)" stroke="url(#rim)" stroke-width="2"/><rect x="24" y="24" width="582" height="1552" rx="160" fill="none" stroke="#d8e4f1" stroke-opacity=".05"/></g><g transform="translate(-100 350) rotate(-32)"><rect width="430" height="1200" rx="170" fill="url(#plane)" stroke="url(#rim)" stroke-width="1.4"/></g><rect width="1600" height="1140" fill="url(#shade)"/><rect width="1600" height="1140" filter="url(#grain)" opacity=".08"/></svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1600 1000" preserveAspectRatio="xMidYMid slice"><defs><radialGradient id="wash" cx=".5" cy=".52" r=".73"><stop stop-color="#183243"></stop><stop offset=".57" stop-color="#101f2d"></stop><stop offset="1" stop-color="#080f17"></stop></radialGradient><linearGradient id="grid" x2="0" y2="1"><stop stop-color="#71a5ba" stop-opacity="0"></stop><stop offset="1" stop-color="#71a5ba" stop-opacity=".15"></stop></linearGradient><linearGradient id="pane" x2="1" y2="1"><stop stop-color="#9ab2c3" stop-opacity=".1"></stop><stop offset=".5" stop-color="#597b98" stop-opacity=".02"></stop><stop offset="1" stop-color="#afcadb" stop-opacity=".07"></stop></linearGradient></defs><rect width="1600" height="1000" fill="url(#wash)"></rect><g fill="none" stroke="url(#grid)" stroke-width="1"><path d="M448 620 -850 1100"></path><path d="M480 620 -700 1100"></path><path d="M512 620 -550 1100"></path><path d="M544 620 -400 1100"></path><path d="M576 620 -250 1100"></path><path d="M608 620 -100 1100"></path><path d="M640 620 50 1100"></path><path d="M672 620 200 1100"></path><path d="M704 620 350 1100"></path><path d="M736 620 500 1100"></path><path d="M768 620 650 1100"></path><path d="M800 620 800 1100"></path><path d="M832 620 950 1100"></path><path d="M864 620 1100 1100"></path><path d="M896 620 1250 1100"></path><path d="M928 620 1400 1100"></path><path d="M960 620 1550 1100"></path><path d="M992 620 1700 1100"></path><path d="M1024 620 1850 1100"></path><path d="M1056 620 2000 1100"></path><path d="M1088 620 2150 1100"></path><path d="M1120 620 2300 1100"></path><path d="M1152 620 2450 1100"></path><path d="M0 650H1600"></path><path d="M0 655H1600"></path><path d="M0 670H1600"></path><path d="M0 695H1600"></path><path d="M0 730H1600"></path><path d="M0 775H1600"></path><path d="M0 830H1600"></path><path d="M0 895H1600"></path><path d="M0 970H1600"></path><path d="M0 1055H1600"></path></g><path d="M0 620h1600" stroke="#a7c9dc" stroke-opacity=".025"></path><g fill="none" stroke="#709ab5" stroke-opacity=".09"><path d="M90 190h115m-115 0v80M1510 190h-115m115 0v80M90 810h115m-115 0v-80M1510 810h-115m115 0v-80"></path></g></svg>

After

Width:  |  Height:  |  Size: 2.1 KiB