Skip to content

Commit

Permalink
added pcb_trace trace_length and source_trace max_length (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
Abse2001 authored Dec 29, 2024
1 parent d20496e commit bef09e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pcb/pcb_trace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export const pcb_trace = z
.optional(),
route_order_index: z.number().optional(),
should_round_corners: z.boolean().optional(),
trace_length: z.number().optional(),
route: z.array(
z.union([
z.object({
Expand Down Expand Up @@ -103,6 +104,7 @@ export interface PcbTrace {
route_order_index?: number
route_thickness_mode?: "constant" | "interpolated"
should_round_corners?: boolean
trace_length?: number
route: Array<PcbTraceRoutePoint>
}

Expand Down
2 changes: 2 additions & 0 deletions src/source/source_trace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export interface SourceTrace {
connected_source_port_ids: string[]
connected_source_net_ids: string[]
subcircuit_connectivity_map_key?: string
max_length?: number
}

export const source_trace = z.object({
Expand All @@ -15,6 +16,7 @@ export const source_trace = z.object({
connected_source_port_ids: z.array(z.string()),
connected_source_net_ids: z.array(z.string()),
subcircuit_connectivity_map_key: z.string().optional(),
max_length: z.number().optional(),
})

type InferredSourceTrace = z.infer<typeof source_trace>
Expand Down

0 comments on commit bef09e2

Please sign in to comment.