From 94e0bf71233cff51006cdf8ea48d8f5755d8e215 Mon Sep 17 00:00:00 2001 From: mohan-bee Date: Sat, 18 Apr 2026 12:18:11 +0530 Subject: [PATCH] Add Add minViaDiameter and minViaHole --- src/pcb/pcb_board.ts | 4 ++++ src/source/source_board.ts | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/src/pcb/pcb_board.ts b/src/pcb/pcb_board.ts index dcae43f9..95c527df 100644 --- a/src/pcb/pcb_board.ts +++ b/src/pcb/pcb_board.ts @@ -35,6 +35,8 @@ export const pcb_board = z ), thickness: length.optional().default(1.4), num_layers: z.number().optional().default(4), + min_via_diameter: length.optional(), + min_via_hole: length.optional(), outline: z.array(point).optional(), shape: z.enum(["rect", "polygon"]).optional(), material: z.enum(["fr4", "fr1"]).default("fr4"), @@ -61,6 +63,8 @@ export interface PcbBoard { display_offset_y?: string thickness: Length num_layers: number + min_via_diameter?: Length + min_via_hole?: Length center: Point outline?: Point[] shape?: "rect" | "polygon" diff --git a/src/source/source_board.ts b/src/source/source_board.ts index 8c3b5a8d..f303d92f 100644 --- a/src/source/source_board.ts +++ b/src/source/source_board.ts @@ -1,4 +1,5 @@ import { z } from "zod" +import { length, type Length } from "src/units" import { expectTypesMatch } from "src/utils/expect-types-match" export const source_board = z @@ -7,6 +8,8 @@ export const source_board = z source_board_id: z.string(), source_group_id: z.string(), title: z.string().optional(), + min_via_diameter: length.optional(), + min_via_hole: length.optional(), }) .describe("Defines a board in the source domain") @@ -21,6 +24,8 @@ export interface SourceBoard { source_board_id: string source_group_id: string title?: string + min_via_diameter?: Length + min_via_hole?: Length } expectTypesMatch(true)