Skip to content

Commit

Permalink
add support for route_order_index
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar committed Sep 21, 2024
1 parent ba5adf1 commit f587fd8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/pcb/pcb_trace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export const pcb_trace = z
.enum(["constant", "interpolated"])
.default("constant")
.optional(),
route_order_index: z.number().optional(),
should_round_corners: z.boolean().optional(),
route: z.array(
z.union([
Expand Down Expand Up @@ -93,6 +94,13 @@ export interface PcbTrace {
source_trace_id?: string
pcb_component_id?: string
pcb_trace_id: string
/**
* The order that this trace was routed in. This can be used to debug the
* autorouter and to understand the trace path better
*
* The route_order_index should be relative to a subcircuit
*/
route_order_index?: number
route_thickness_mode?: "constant" | "interpolated"
should_round_corners?: boolean
route: Array<PcbTraceRoutePoint>
Expand Down

0 comments on commit f587fd8

Please sign in to comment.