feat(workbench): drag control markings as elements

This commit is contained in:
que01 committed 2026-09-02 16:04:38 +08:00
1 parent 834470cfa1
commit 31552a5b6f
9 files changed
+244 -75

No files matched your search

+8
View File
@@ -82,6 +82,14 @@ export class EditGhostLayer {
* whether you have hit the limit.
*/
show(handle: EditHandle, value: number): void {
// Control markings are dragged from their selected outline, like lane
// maneuvers. The generic scalar knob/readout would reintroduce a confusing
// blue point and "+N 米" label, so let the preview outline be the only feedback.
if (handle.kind === 'junction-crosswalk-inset' || handle.kind === 'junction-stop-line-offset') {
this.pending = false;
this.source.clear();
return;
}
const clamped = value >= handle.value.max - 1e-6 || value <= handle.value.min + 1e-6;
const delta = value - handle.value.current;
this.pending = false;