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 目录与本地编译产物 ```
18 lines
916 B
TOML
18 lines
916 B
TOML
[package]
|
|
name = "rid-web-ui"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[dependencies]
|
|
rid-shared = { path = "../rid-shared" }
|
|
leptos = { version = "=0.8.22", features = ["csr"] }
|
|
wasm-bindgen = "=0.2.129"
|
|
web-sys = { version = "0.3", features = ["Window", "Location", "Document", "HtmlElement", "Element", "NodeList", "HtmlInputElement", "HtmlButtonElement", "HtmlAnchorElement", "HtmlDialogElement", "HtmlCanvasElement", "HtmlImageElement", "HtmlSelectElement", "CssStyleDeclaration", "Storage", "KeyboardEvent", "BeforeUnloadEvent", "CanvasRenderingContext2d", "File", "FileList", "Blob", "Url", "Navigator", "Clipboard", "Worker", "WorkerOptions", "WorkerType", "MessageEvent", "CustomEvent", "PointerEvent", "KeyboardEvent", "DomRect", "console"] }
|
|
js-sys = "0.3"
|
|
wasm-bindgen-futures = "0.4"
|
|
gloo-net = "0.6"
|
|
gloo-timers = { version = "0.3", features = ["futures"] }
|
|
serde_json = "1"
|
|
base64 = "0.22"
|
|
qrcodegen = "1"
|