The arrow on a lane came from the OSM turn:lanes tag with no way to change it, and a lane the tag skipped got no arrow at all. lane-maneuver is a v1 override that sets it. v1 rather than a v2 constraint, because "which arrow" is a discrete attribute of a lane with no station to anchor to, while every v2 anchor is positional. The existing road override already covers OSM-derived values this way — laneCount, width, sidewalks — and this is the same kind of thing. Arrow *placement* is the positional half and stays out; it also still has an open question about whether a group is a lane or a single arrow. Three behaviours, each measured against compiled output: an override replaces the tag's maneuver, it adds arrows to a lane the tag never marked, and '' removes one the tag asked for. The empty string is therefore distinguished from "no override" rather than falling through to the tag. An empty override set leaves the arrows byte-identical and the fixtures untouched. Validation lists the accepted maneuvers and rejects anything else, including correctly-spelled components in the wrong order. It cannot be left to normalizeManeuver(), which returns unrecognised input unchanged — a typo would otherwise reach the template lookup and silently produce no arrow. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
52 lines
1.7 KiB
JSON
52 lines
1.7 KiB
JSON
{
|
|
"id": "direct-manipulation-road-editor",
|
|
"name": "direct-manipulation-road-editor",
|
|
"title": "直接操纵道路编辑工作台",
|
|
"description": "探索类似 Drawtonomy 的直接操纵道路编辑,保持结构化 overrides、可审计性和可重编译性",
|
|
"status": "planning",
|
|
"dev_type": "feature",
|
|
"scope": "road-editor",
|
|
"package": null,
|
|
"priority": "P2",
|
|
"creator": "dingkang",
|
|
"assignee": "dingkang",
|
|
"createdAt": "2026-08-26",
|
|
"completedAt": null,
|
|
"branch": null,
|
|
"base_branch": "main",
|
|
"worktree_path": null,
|
|
"commit": null,
|
|
"pr_url": null,
|
|
"subtasks": [],
|
|
"children": [
|
|
"08-26-direct-edit-documents",
|
|
"08-26-direct-edit-solver-api",
|
|
"08-26-direct-edit-map-editor",
|
|
"08-26-direct-edit-junction-tools",
|
|
"08-27-junction-dominated-roads",
|
|
"08-28-edit-interaction-polish",
|
|
"08-28-junction-control-offsets",
|
|
"08-28-crosswalk-element-editor",
|
|
"08-31-parameter-panel-binding",
|
|
"08-31-constraint-range-validation",
|
|
"08-31-lane-maneuver-override"
|
|
],
|
|
"parent": null,
|
|
"relatedFiles": [
|
|
"src/compile/compiler.js",
|
|
"src/compile/native-road.js",
|
|
"src/compile/complex-junction.js",
|
|
"src/compile/layer-manifest.js",
|
|
"src/geometry/lane-geometry.js",
|
|
"workbench/server.js",
|
|
"workbench/client/src/App.tsx",
|
|
"workbench/client/src/components/MapCanvas.tsx",
|
|
"workbench/client/src/map/layers.ts",
|
|
"workbench/client/src/lib/api.ts",
|
|
"workbench/client/src/types/state.ts",
|
|
"test/index.js",
|
|
"test/fixtures.js"
|
|
],
|
|
"notes": "父任务:持有需求集、design.md 权威合约、跨子任务验收与第 8 步集成验证。实现落在三个子任务。",
|
|
"meta": {}
|
|
} |