chore(task): bound the crosswalk experiment to position editing

A four-arm junction already carries 20 handles across 4 segments, and the main
map shows only the selected segment's — so seeing one junction whole takes four
selections. That is why element-level selection is a prerequisite for complex
junction work rather than a refinement of it.

The experiment stays crosswalk-only by decision, to keep the risk small. What
that costs is now written down: a crosswalk moves but does not reshape the
junction, so passing this proves the select-and-position path and nothing about
approach width, cutback or corner radius, which change the junction polygon
itself and have to be validated separately.

Also records that the parameter form half already exists, so the element
controls join the existing exits instead of growing a second preview or undo
path.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
que01andClaude Opus 5 committed 2026-08-31 12:04:09 +08:00
1 parent 1c27501534
commit 6663c289e7
1 file changed
+20
@@ -12,6 +12,7 @@
- `compileControlMarkings()` 为一组斑马线生成多条 `crosswalk` GeoJSON feature;每条 feature 的属性目前不足以作为稳定的组级编辑目标。
- 浏览器已有 `EditSession`、服务端权威 preview、保存、重编译与撤销链路。编辑数据必须保持语义约束,不得保存派生 GeoJSON 或屏幕坐标。
- 当前普通道路级手柄仍服务于横断面参数,不应与元素级选择共用或互相覆盖。
- `08-31-parameter-panel-binding` 已交付参数表单那一半:`ParameterPanel` 组件、`edit/parameter.ts` 的文本↔数值/范围判定/单位换算,以及 `App.tsx` 中通道无关的三个出口 `draftValue()`(预览)、`settleValue()`(提交一步 undo)、`abandonGesture()`(放弃)。元素级控件应接入同一组出口,**不要新建第二条预览或 undo 链路**。
## 范围
@@ -52,6 +53,25 @@
- 选中框是交互反馈,不能成为第二个几何模型;所有位置、范围和尺寸的权威值由后端 element manifest 给出。
- 当前地图 feature 的属性可能缺少足以识别 crossing 的稳定字段。需要先通过编译器补充,不可在客户端按经纬度近似聚类。
### 试验对象的覆盖边界(2026-08-31 决定)
本任务的上游动机是**为复杂路口做前置**:普通四岔口已有 20 个手柄分属 4 条 segment,
主地图一次只显示当前选中 segment 的手柄,要看全一个路口需依次选中 4 条道路。
每参数一个圆点的模型撑不到复杂路口,元素级选中是必需品而非优化。
已明确决定:**第一次试验只做斑马线,不并入形状类元素**,以控制风险。
代价必须记录在案——斑马线是**位置类**元素,`design.md` 明确「不改变路口形状,
只移动标线,因此不触发路口边界重算」。而复杂路口真正难的是
`junction-approach-width` / `junction-cutback` / `junction-corner-radius`:
它们改变路口多边形本身,涉及边界连续、面自交、cutback 处截面衔接。
因此:
- 本试验通过 **只证明**「选中 + 位置编辑」这条链路可行。
- 它 **不证明** 形状类元素的元素级编辑可行,那是另一个几何类别。
- 推广到形状类元素前必须单独验证,不得以本试验的结论替代。
## Acceptance Criteria
- [ ] TBD