chore(task): archive direct edit junction tools
This commit is contained in:
1 parent
1f439d98de
commit
57248f1aa4
7 files changed
+2
-2
No files matched your search
@@ -0,0 +1,4 @@
|
||||
{"file": ".trellis/tasks/08-26-direct-manipulation-road-editor/research/junction-tools.md", "reason": "逐条核对四态语义、会话互斥与「应用不等于保存」是否被正确实现"}
|
||||
{"file": ".trellis/tasks/08-26-direct-manipulation-road-editor/design.md", "reason": "核对路口三个 kind 的锚点、approach 优先级与 reserve 独占边界"}
|
||||
{"file": ".trellis/tasks/08-26-direct-manipulation-road-editor/research/joint-solver.md", "reason": "核对预览是否覆盖全部受影响派生对象,以及拟合失败时的诊断行为"}
|
||||
{"file": ".trellis/spec/guides/code-reuse-thinking-guide.md", "reason": "检查是否重复实现 EditSession、命令栈或 ghost/preview 图层"}
|
||||
@@ -0,0 +1,34 @@
|
||||
# 总体设计
|
||||
|
||||
## 边界
|
||||
|
||||
`JunctionTools` 是主地图之外的局部编辑器。主地图只负责显示派生热区和进入入口;编辑器负责一个 `JunctionRef` 的上下文、草稿、预览、应用、保存和取消。
|
||||
|
||||
## 数据流
|
||||
|
||||
`compiled model/junctionPlans` → `junction descriptors` → `hotspot layer` → `JunctionRef` → `junction session` → `semantic constraints` → `/api/edit-preview` → affected layers → apply/save → active document/revision。
|
||||
|
||||
热区是派生显示对象,不新增持久化 schema。node 使用 node id,cluster 使用 cluster id 加 arm/corner 锚点。所有长度使用米,位置锚定 station 或 OSM node。
|
||||
|
||||
## 编辑器分层
|
||||
|
||||
- `junction-detection`:纯逻辑识别 descriptor、状态和热区几何。
|
||||
- `junction-workspace`:路由、上下文加载、session 四态和主地图返回。
|
||||
- `junction-solver`:把 node/cluster 约束归一为 effective plan,供普通与复杂几何共同消费。
|
||||
- `junction-facilities`:设施联动、诊断汇总和发布前检查。
|
||||
- OpenLayers 仅作为显示/输入 adapter,不能直接写正式编译 source。
|
||||
|
||||
## 首期决策约束
|
||||
|
||||
- `JunctionRef` 首期只允许 `type: 'node'` 进入可编辑 session;`cluster` 和 `candidate` descriptor 可展示但不可写入。
|
||||
- 工作区与主地图共享 undo/redo 栈;一次“应用到工作区”是一个历史边界,拖拽过程只产生 draft/preview。
|
||||
- 工作区离开由显式守卫控制:有未处理草稿时必须应用、放弃或取消离开;不得静默处理草稿。
|
||||
- 保存请求必须携带打开时的文档/编译版本。版本不一致返回冲突,保留本地草稿,不做强制覆盖或隐式 rebase。
|
||||
- 阶段 B 的求解写入仅覆盖三种既有 junction constraint;车道、connector 和设施在此阶段只作为派生上下文与诊断输入。
|
||||
- 设施编辑只允许修改已有设施的语义 override,不新增或删除设施身份。
|
||||
- 诊断接口必须提供稳定 `code` 和 `severity`,几何非法为 `blocking`,非致命设施问题可为 `warning`。
|
||||
- JunctionTools 通过独立路由承载 `JunctionRef`,路由变化不得重建 `MapCanvas`,返回时恢复主地图视角和选择快照。
|
||||
|
||||
## 兼容与回滚
|
||||
|
||||
阶段 A/B 可挂在现有编辑开关下;未进入 JunctionTools 时主地图行为不变。cluster 几何统一前不得开放 cluster 写入。任何阶段失败都可回退到只读热区或现有普通路口编辑,不影响 v1 overrides、v2 文档和导出包。
|
||||
@@ -0,0 +1,6 @@
|
||||
{"file": ".trellis/tasks/08-26-direct-manipulation-road-editor/design.md", "reason": "父任务权威合约:三个 junction kind、编辑所有权、handle manifest、预览时序、directEdit 开关"}
|
||||
{"file": ".trellis/tasks/08-26-direct-manipulation-road-editor/research/junction-tools.md", "reason": "会话边界、四态语义、入口与上下文加载范围、所有权划分的完整推导"}
|
||||
{"file": ".trellis/tasks/08-26-direct-manipulation-road-editor/research/joint-solver.md", "reason": "路口局部求解必须一起重算的派生对象清单与约束不变量"}
|
||||
{"file": ".trellis/tasks/08-26-direct-manipulation-road-editor/research/current-system.md", "reason": "现有 compileJunctionPlans、cutbackMeters 与 junctionTemplates 的能力边界"}
|
||||
{"file": ".trellis/spec/guides/code-reuse-thinking-guide.md", "reason": "必须复用 EditSession、ghost/preview source 与命令栈,禁止新建第二套编辑基础设施"}
|
||||
{"file": ".trellis/spec/guides/cross-layer-thinking-guide.md", "reason": "会话状态与约束在客户端、API、求解器之间的流转一致性"}
|
||||
@@ -0,0 +1,10 @@
|
||||
# 执行计划
|
||||
|
||||
1. 完成 RoadRunner 对标和本项目需求基线,冻结术语、范围、验收。
|
||||
2. 实现纯逻辑 junction descriptor 与热区显示;普通 node 可进入,candidate/cluster 状态明确。
|
||||
3. 建立独立 JunctionTools 路由与上下文快照,闭合 draft/apply/save/cancel 和返回主地图。
|
||||
4. 统一 node/cluster 的 effective junction plan,让宽度、cutback、圆角真正驱动同一套几何预览。
|
||||
5. 接入车道、connector、斑马线、停止线、信号灯的联动诊断和发布校验。
|
||||
6. 运行全量服务端、客户端、E2E、导出契约测试,完成用户复核后再提交。
|
||||
|
||||
每一步先写纯逻辑测试,再接 UI;不使用绝对像素作为核心契约,不自动提交。
|
||||
@@ -0,0 +1,110 @@
|
||||
# JunctionTools 路口编辑工作区
|
||||
|
||||
父任务:`.trellis/tasks/08-26-direct-manipulation-road-editor`。需求来源与权威合约在父任务的 `prd.md` / `design.md`。
|
||||
|
||||
## 目标
|
||||
|
||||
用地图上的可识别路口区域作为入口,进入一个独立的 JunctionTools 路口编辑页面。页面专注展示单个路口及其完整局部上下文,在同一可视化画布和同一编辑会话中同时承载路口几何、已有设施、参数双向联动、预览和诊断。主地图只负责发现、导航和返回,不承载完整路口编辑体验。
|
||||
|
||||
## 当前产品设想
|
||||
|
||||
- 主地图识别普通路口和已配置的复杂路口 cluster,并以可点击热区表达,而不是依赖点击某一条道路或控制柄。
|
||||
- 点击热区后进入独立 JunctionTools 编辑器,聚焦路口局部上下文;返回主地图时保留原地图视角、选中对象和未保存编辑。
|
||||
- 编辑器首版即作为一体化路口工作区:进口宽度、cutback、角部圆角、路口面、车道/connector、斑马线、停止线、信号灯和诊断在同一 session 中协调;内部可以分区,但用户不需要跨页面切换。
|
||||
- 所有编辑复用现有 direct-edit 文档、preview、revision、undo/redo 和导出契约,不建立第二套持久化几何。
|
||||
|
||||
## RoadRunner 对标拆解
|
||||
|
||||
RoadRunner 的路口能力不能简化成几个拖拽手柄。对本项目有价值的能力可拆成四层:
|
||||
|
||||
1. 路口识别与入口:从相交道路形成可识别的 junction 对象,并在场景中提供明确的选择目标。
|
||||
2. 局部工作区:聚焦一个路口,显示进口、边界、车道、连接关系、标线和诊断,编辑完成后回到整体场景。
|
||||
3. 几何与拓扑编辑:调整进口宽度、路口边界、转角圆角、车道连接和车道数,并让派生几何保持连续、合法。
|
||||
4. 设施与验证:在路口上下文中布置或调整停止线、斑马线、信号灯等设施,并对冲突、自交、车道宽度和连接状态给出反馈。
|
||||
|
||||
本项目的映射不是复制 RoadRunner 内部实现:OSM 中心线和拓扑是只读输入,GeoJSON 是派生输出;可持久化的对象必须是 node/cluster 锚定的语义约束。当前代码已经具备 cluster candidate 检测、complex-junction 几何生成、三类 junction 约束和 preview/save/revision 基础,但缺少“热区 → JunctionTools 工作区”的产品层闭环。
|
||||
|
||||
## 分阶段方向
|
||||
|
||||
- 阶段 A:派生路口热区和识别状态(普通 node、已确认 cluster、候选 cluster),点击后进入/返回工作区。
|
||||
- 阶段 B:独立单路口页面、局部上下文和现有三项几何参数编辑闭环。
|
||||
- 阶段 C:在同一页面接入车道/connector、斑马线、停止线、信号灯的联动编辑和冲突诊断;这是实现顺序,不是拆开的产品功能。
|
||||
- 阶段 D:cluster 多节点、多进口、多角部及更接近 RoadRunner 的拓扑创作能力。
|
||||
|
||||
阶段 A 不应把热区写成新的几何事实;它应由编译模型和 junction plan 派生,避免出现 UI 有路口而编译器不认的第二套数据。
|
||||
|
||||
## 本轮已决边界
|
||||
|
||||
- 首期只有普通 `node` 可编辑;已确认 `cluster` 只读,`candidate cluster` 只展示识别结果与诊断。
|
||||
- 阶段 B 只开放进口宽度、cutback、单角部圆角;车道/connector 先展示并诊断,不开放拓扑写入。
|
||||
- 设施首期允许移动或修改已有斑马线、停止线、信号灯,但不允许创建或删除设施。
|
||||
- “应用到工作区”形成一个 undo 步骤,并进入主地图共用历史栈;连续拖拽不逐帧进入 undo。
|
||||
- 离开工作区前必须选择应用并返回、放弃并返回或留在工作区,不自动应用或自动放弃。
|
||||
- 保存时若编译模型或文档版本变化,拒绝保存并保留草稿,要求重新加载后处理,不自动覆盖或自动 rebase。
|
||||
- candidate 不得在本轮被确认或转化为持久化 cluster。
|
||||
- 自交、越界、最小车道宽度等几何非法诊断为 `blocking`;可修复的设施缺失或间距问题可为 `warning`。
|
||||
- JunctionTools 使用独立 URL 路由,例如 `/junction/:type/:id`,支持刷新、浏览器返回和深链接。
|
||||
|
||||
## 总体约束
|
||||
|
||||
- OSM 节点、道路中心线和基础拓扑只读;编辑保存语义约束,不保存派生 GeoJSON。
|
||||
- 普通 node 与复杂 cluster 使用不同的 `JunctionRef` 锚点,不把 cluster 降级成多个普通 node。
|
||||
- 热区、路口边界和可编辑对象必须来自同一份编译状态;候选识别不能静默改变几何。
|
||||
- 路口编辑必须复用现有 preview、active document、revision、版本冲突保护和 undo/redo。
|
||||
- 无效几何不得替换最后有效预览;必须返回结构化诊断。
|
||||
- 路口 session 与主地图 session 互斥,切换对象前必须应用或取消草稿。
|
||||
- 导出包契约保持 `native-road-package/v1.1` 不变。
|
||||
|
||||
## 子任务地图
|
||||
|
||||
1. `09-02-junction-requirements-research`:RoadRunner 能力、用户流程、术语和需求验收基线。
|
||||
2. `09-02-junction-detection-hotspot`:node/cluster/candidate 识别、热区派生模型和点击入口。
|
||||
3. `09-02-junction-tools-workspace`:独立工作区路由、上下文加载、返回和 session 状态机。
|
||||
4. `09-02-junction-geometry-editor`:进口宽度、cutback、圆角、车道/connector 的统一求解与预览。
|
||||
5. `09-02-junction-facilities-validation`:斑马线、停止线、信号灯联动、诊断和最终发布验证。
|
||||
|
||||
依赖顺序为 1 → 2 → 3 → 4 → 5;每个子任务独立验收,父任务负责跨任务契约和最终集成。
|
||||
|
||||
## 顺序依赖
|
||||
|
||||
前置:`direct-edit-solver-api`(junction 相关的三个 kind 求解与预览端点)与 `direct-edit-map-editor`(`EditSession`、ghost/preview 图层、命令栈)。
|
||||
后继:无。cluster 高级编辑、多路口联动为独立后续任务。
|
||||
|
||||
## 范围
|
||||
|
||||
- 路口识别结果和热区入口的最小交互。
|
||||
- 单 `JunctionRef`(`{type:'node'|'cluster', id}`)的工作区路由与返回主地图的上下文保持;首期只有 `node` 进入可编辑 session,`cluster` 与 candidate 只读。
|
||||
- 加载该路口的编辑上下文:路口面、进口、相邻道路短上下文、车道/connector、步行带、停止线、斑马线、诊断与当前约束。
|
||||
- 三项可拖能力:进口宽度、cutback、单个角部圆角。
|
||||
- session draft:首次拖拽即 ghost,防抖后服务端权威局部预览。
|
||||
- 「应用到工作区」合并有效草稿为活动副本的未保存约束;「保存」持久化;「取消」丢弃草稿并复原。
|
||||
- 会话边界:切换相邻路口前必须应用或取消。
|
||||
|
||||
## 不做
|
||||
|
||||
- cluster 的高级编辑与复合路口模板编排。
|
||||
- 多个路口的联合会话或联动编辑。
|
||||
- 控制设施的新建、删除和身份创建;首期只允许修改已有设施的语义参数。
|
||||
- 主地图道路区间的编辑(属 `direct-edit-map-editor`)。
|
||||
- OSM 图拓扑的修改。
|
||||
- 一次性实现 RoadRunner 级别的完整路口建模、任意拓扑创作或多路口联合编辑。
|
||||
|
||||
## 验收标准
|
||||
|
||||
### 独立一体化页面方向(2026-09-03)
|
||||
|
||||
- [ ] `/junction/:type/:id` 是独立路口编辑页面,进入后自动聚焦单个路口;主地图只作为入口和返回目标。
|
||||
- [ ] 页面画布持续展示路口几何与已有斑马线、停止线、信号灯,参数面板不得遮挡主要路口视图。
|
||||
- [ ] 几何参数和已有设施调整在同一页面、同一 draft/preview/undo/apply/save/cancel 链路中完成。
|
||||
- [ ] 表单与地图操作双向同步:表单修改反映到画布,地图拖拽回写参数;失败预览保留最后有效几何并显示诊断。
|
||||
- [ ] 首版支持已有设施的移动或已有字段修改,不创建、删除或跨路口迁移设施;cluster 与 candidate 继续只读。
|
||||
|
||||
- [ ] 从路口面或诊断可进入工作区,并能带位置返回主地图。
|
||||
- [ ] 三项能力各自可拖,首次拖拽即有 ghost,防抖后显示服务端权威几何。
|
||||
- [ ] 预览包含全部受影响派生对象:道路面、路口面、步行带、车道中心线、connector/movement、停止线、斑马线、标线。
|
||||
- [ ] 拟合失败时返回最后有效几何加结构化诊断,不把非法图形显示成已应用。
|
||||
- [ ] 「应用到工作区」后返回主地图仍显示同一几何,且该编辑处于未保存状态、可被主地图 undo/redo 管理。
|
||||
- [ ] 「取消」后回到进入工作区前的状态,活动副本无残留。
|
||||
- [ ] 未处理草稿时切换相邻路口被拒绝,并提示先应用或取消。
|
||||
- [ ] 「保存」后重新编译几何不变,约束状态 `exact`。
|
||||
- [ ] `npm run format:check`、`npm run test`、`npm run test:client`、`npm run test:client:unit`、`npm run build` 全绿。
|
||||
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"id": "direct-edit-junction-tools",
|
||||
"name": "direct-edit-junction-tools",
|
||||
"title": "最小 JunctionTools",
|
||||
"description": "单一普通路口的进口宽度、cutback、单角部圆角与预览/应用/取消",
|
||||
"status": "completed",
|
||||
"dev_type": null,
|
||||
"scope": null,
|
||||
"package": null,
|
||||
"priority": "P2",
|
||||
"creator": "dingkang",
|
||||
"assignee": "dingkang",
|
||||
"createdAt": "2026-08-26",
|
||||
"completedAt": "2026-09-04",
|
||||
"branch": null,
|
||||
"base_branch": "main",
|
||||
"worktree_path": null,
|
||||
"commit": null,
|
||||
"pr_url": null,
|
||||
"subtasks": [],
|
||||
"children": [
|
||||
"09-02-junction-requirements-research",
|
||||
"09-02-junction-detection-hotspot",
|
||||
"09-02-junction-tools-workspace",
|
||||
"09-02-junction-geometry-editor",
|
||||
"09-02-junction-facilities-validation"
|
||||
],
|
||||
"parent": "08-26-direct-manipulation-road-editor",
|
||||
"relatedFiles": [],
|
||||
"notes": "",
|
||||
"meta": {}
|
||||
}
|
||||
@@ -0,0 +1,154 @@
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>JunctionTools UI Prototype</title>
|
||||
<style>
|
||||
:root {
|
||||
color: #dfe9e5;
|
||||
background: #101a18;
|
||||
font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
|
||||
}
|
||||
* { box-sizing: border-box; }
|
||||
body { margin: 0; min-width: 1080px; }
|
||||
button, input { font: inherit; }
|
||||
button { cursor: pointer; }
|
||||
.app { min-height: 100vh; display: grid; grid-template-rows: 64px 1fr 38px; }
|
||||
.topbar { display: flex; align-items: center; gap: 22px; padding: 0 22px; background: #173b32; border-bottom: 1px solid #2d594d; }
|
||||
.brand { letter-spacing: .14em; font-size: 12px; color: #95b5aa; text-transform: uppercase; }
|
||||
.title { font-size: 18px; font-weight: 700; color: #f5fbf8; }
|
||||
.crumb { color: #9eb9ae; font-size: 13px; }
|
||||
.topbar-spacer { flex: 1; }
|
||||
.top-action { border: 1px solid #6d988a; color: #e9f4ef; background: transparent; padding: 8px 12px; border-radius: 4px; }
|
||||
.top-action.primary { background: #d3e9df; border-color: #d3e9df; color: #183a31; font-weight: 700; }
|
||||
.workspace { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 360px; }
|
||||
.canvas { position: relative; overflow: hidden; background: #d9dfda; }
|
||||
.canvas-head { position: absolute; z-index: 2; left: 20px; top: 18px; display: flex; gap: 8px; }
|
||||
.chip { border: 1px solid #b3c0ba; background: #eff4f0e8; color: #29483e; border-radius: 4px; padding: 7px 10px; font-size: 12px; box-shadow: 0 2px 8px #263b3222; }
|
||||
.chip.active { border-color: #2f755d; background: #e0f1e8; color: #205a45; }
|
||||
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
|
||||
.map-label { font-size: 13px; fill: #345448; font-weight: 700; }
|
||||
.map-note { position: absolute; left: 20px; bottom: 18px; padding: 9px 12px; color: #3c574d; background: #eef3efdf; border: 1px solid #b8c7bf; border-radius: 4px; font-size: 12px; }
|
||||
.inspector { overflow: auto; padding: 20px 18px; background: #f7faf8; color: #20352d; border-left: 1px solid #cad9d1; }
|
||||
.section { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid #dbe6e0; }
|
||||
.section:last-child { border-bottom: 0; }
|
||||
.section-title { margin: 0 0 12px; font-size: 14px; color: #173b32; }
|
||||
.section-subtitle { margin: -5px 0 12px; color: #71847b; font-size: 12px; }
|
||||
.field { display: grid; grid-template-columns: 1fr 104px; gap: 10px; align-items: center; margin: 11px 0; }
|
||||
.field label { font-size: 13px; }
|
||||
.field small { display: block; color: #82938b; font-size: 11px; margin-top: 3px; }
|
||||
.field input { width: 100%; border: 1px solid #aabdb3; border-radius: 3px; padding: 7px 8px; color: #173b32; background: white; text-align: right; }
|
||||
.unit { position: relative; }
|
||||
.unit span { position: absolute; right: 8px; top: 8px; color: #7c9187; font-size: 12px; pointer-events: none; }
|
||||
.unit input { padding-right: 28px; }
|
||||
.range { height: 4px; margin: 6px 0 0; border-radius: 10px; background: #c9d9d1; }
|
||||
.range i { display: block; width: 57%; height: 100%; background: #3d8b6c; border-radius: 10px; }
|
||||
.facility { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-top: 1px solid #e5ede8; font-size: 13px; }
|
||||
.facility:first-of-type { border-top: 0; }
|
||||
.facility strong { color: #245b47; }
|
||||
.status { display: flex; align-items: center; gap: 8px; color: #2e7558; font-size: 12px; }
|
||||
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3d9a6c; }
|
||||
.diagnostic { padding: 9px 10px; background: #edf5f0; border-left: 3px solid #3d8b6c; color: #45665a; font-size: 12px; line-height: 1.5; }
|
||||
.actions { display: flex; gap: 8px; }
|
||||
.action { flex: 1; padding: 9px 8px; border: 1px solid #9bb2a7; border-radius: 3px; background: white; color: #245241; }
|
||||
.action.main { background: #286b52; color: white; border-color: #286b52; }
|
||||
.footer { display: flex; align-items: center; gap: 18px; padding: 0 20px; background: #18322b; color: #b7cdc3; font-size: 12px; }
|
||||
.footer strong { color: #e1f1ea; }
|
||||
.legend { margin-left: auto; display: flex; gap: 14px; }
|
||||
.legend span::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 50%; background: currentColor; }
|
||||
.legend .geometry { color: #2f7e61; }
|
||||
.legend .facility-dot { color: #b1783c; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="app">
|
||||
<header class="topbar">
|
||||
<span class="brand">JunctionTools</span>
|
||||
<span class="title">路口节点 1140799919</span>
|
||||
<span class="crumb">独立编辑页面 / 普通路口</span>
|
||||
<span class="topbar-spacer"></span>
|
||||
<button class="top-action">撤销</button>
|
||||
<button class="top-action">重做</button>
|
||||
<button class="top-action">返回主地图</button>
|
||||
<button class="top-action primary">保存并重新生成</button>
|
||||
</header>
|
||||
|
||||
<main class="workspace">
|
||||
<section class="canvas" aria-label="路口可视化画布">
|
||||
<div class="canvas-head">
|
||||
<span class="chip active">路口几何</span>
|
||||
<span class="chip">斑马线</span>
|
||||
<span class="chip">停止线</span>
|
||||
<span class="chip">信号灯</span>
|
||||
</div>
|
||||
<svg class="map-svg" viewBox="0 0 900 700" role="img" aria-label="单个路口及其设施预览">
|
||||
<rect width="900" height="700" fill="#d9dfda" />
|
||||
<path d="M0 285 H900 V415 H0 Z" fill="#7e8987" />
|
||||
<path d="M385 0 H515 V700 H385 Z" fill="#7e8987" />
|
||||
<path d="M0 280 H900 M0 420 H900 M380 0 V700 M520 0 V700" stroke="#d5dcda" stroke-width="3" />
|
||||
<path d="M0 350 H900 M450 0 V700" stroke="#f4f5ed" stroke-width="2" stroke-dasharray="14 13" opacity=".7" />
|
||||
<path d="M320 285 H580 V415 H320 Z" fill="#697673" stroke="#286b52" stroke-width="4" stroke-dasharray="9 7" />
|
||||
<g fill="#f5f8ef">
|
||||
<path d="M346 265 h75 v12 h-75z M346 423 h75 v12 h-75z" />
|
||||
<path d="M479 265 h75 v12 h-75z M479 423 h75 v12 h-75z" />
|
||||
<path d="M305 305 h12 v90 h-12z M573 305 h12 v90 h-12z" />
|
||||
</g>
|
||||
<g stroke="#e8eee9" stroke-width="9" opacity=".95">
|
||||
<path d="M347 286 V330 M365 286 V330 M383 286 V330 M401 286 V330" />
|
||||
<path d="M499 370 V414 M517 370 V414 M535 370 V414 M553 370 V414" />
|
||||
</g>
|
||||
<g fill="none" stroke="#b1783c" stroke-width="6"><path d="M330 275 H430" /><path d="M470 425 H570" /></g>
|
||||
<g fill="#d4934b" stroke="#704c2b" stroke-width="2"><circle cx="300" cy="270" r="9" /><circle cx="600" cy="430" r="9" /><circle cx="565" cy="270" r="9" /></g>
|
||||
<g fill="#2f7e61" stroke="#f2fff8" stroke-width="3"><circle cx="450" cy="285" r="11" /><circle cx="385" cy="350" r="11" /><circle cx="515" cy="350" r="11" /><circle cx="450" cy="415" r="11" /></g>
|
||||
<g stroke="#2f7e61" stroke-width="2" fill="none"><path d="M450 285 L450 210" /><path d="M385 350 L300 350" /><path d="M515 350 L600 350" /><path d="M450 415 L450 490" /></g>
|
||||
<g class="map-label"><text x="30" y="80">北进口</text><text x="680" y="80">东进口</text><text x="30" y="635">南进口</text><text x="680" y="635">西进口</text></g>
|
||||
<g fill="#173b32"><text x="655" y="520" class="map-label">预览中 · 路口边界</text></g>
|
||||
</svg>
|
||||
<div class="map-note">拖动绿色控制点调整几何;橙色设施可单独移动或编辑</div>
|
||||
</section>
|
||||
|
||||
<aside class="inspector" aria-label="路口配置与诊断">
|
||||
<section class="section">
|
||||
<h2 class="section-title">路口几何</h2>
|
||||
<p class="section-subtitle">修改后立即在画布显示服务端预览</p>
|
||||
<div class="field"><label>北进口宽度<small>合法范围 3.6–12.0 m</small></label><div class="unit"><input value="7.20" /><span>m</span></div></div>
|
||||
<div class="range"><i></i></div>
|
||||
<div class="field"><label>东进口收口距离<small>合法范围 1.0–18.0 m</small></label><div class="unit"><input value="5.40" /><span>m</span></div></div>
|
||||
<div class="range"><i style="width: 32%"></i></div>
|
||||
<div class="field"><label>北→东角部圆角<small>合法范围 1.0–12.0 m</small></label><div class="unit"><input value="4.00" /><span>m</span></div></div>
|
||||
<div class="range"><i style="width: 40%"></i></div>
|
||||
</section>
|
||||
|
||||
<section class="section">
|
||||
<h2 class="section-title">已有设施</h2>
|
||||
<p class="section-subtitle">选择画布中的设施可编辑其语义参数</p>
|
||||
<div class="facility"><span>斑马线 · 北侧</span><strong>6 条带 · 退让 1.5 m</strong></div>
|
||||
<div class="facility"><span>停止线 · 北侧</span><strong>偏移 2.7 m</strong></div>
|
||||
<div class="facility"><span>信号灯组 · 3 组</span><strong>可移动 / 可旋转</strong></div>
|
||||
</section>
|
||||
|
||||
<section class="section">
|
||||
<h2 class="section-title">验证诊断</h2>
|
||||
<div class="diagnostic">当前几何合法,进口截面连续,路口面无自交。所有预览对象均落在所属道路范围内。</div>
|
||||
</section>
|
||||
|
||||
<section class="section">
|
||||
<div class="status"><span class="dot"></span><strong>预览已同步</strong><span>preview #18 · 142 ms</span></div>
|
||||
</section>
|
||||
|
||||
<div class="actions">
|
||||
<button class="action">放弃草稿</button>
|
||||
<button class="action main">应用到工作区</button>
|
||||
</div>
|
||||
</aside>
|
||||
</main>
|
||||
|
||||
<footer class="footer">
|
||||
<strong>草稿 · 3 项未应用</strong>
|
||||
<span>路口面、斑马线、停止线将随本次预览同步更新</span>
|
||||
<div class="legend"><span class="geometry">几何控制</span><span class="facility-dot">设施控制</span></div>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user