Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added pcb_trace trace_length and source_trace max_length #113

Merged
merged 1 commit into from
Dec 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading