feat: add complex junction selection markers
This commit is contained in:
1 parent
57248f1aa4
commit
38ea779d9b
18 files changed
+685
-48
No files matched your search
@@ -69,8 +69,13 @@ export const api = {
|
||||
request<Pick<WorkbenchState, 'trafficSignals' | 'trafficRuntime'>>('/api/traffic-signals/generate', {
|
||||
method: 'POST',
|
||||
}),
|
||||
acceptJunctionCandidate: (index: number) =>
|
||||
request<WorkbenchState & { added: { id: string } }>('/api/junction-clusters', json({ index })),
|
||||
acceptJunctionCandidate: (candidateId: string, nodeIds?: string[]) =>
|
||||
request<WorkbenchState & { added: { id: string } }>(
|
||||
'/api/junction-clusters',
|
||||
json({ candidateId, ...(nodeIds ? { nodeIds } : {}) }),
|
||||
),
|
||||
updateJunctionCluster: (clusterId: string, nodeIds: string[]) =>
|
||||
request<WorkbenchState & { added: { id: string } }>('/api/junction-clusters', json({ clusterId, nodeIds })),
|
||||
|
||||
// Direct-edit endpoints used by the in-page browser/edit switch.
|
||||
editState: (selection?: EditSelection) => {
|
||||
|
||||
Reference in new issue
Block a user