From d5ed42c06135388584e1ce92d6652062e734c7d8 Mon Sep 17 00:00:00 2001 From: Shibo Date: Fri, 13 Sep 2024 17:38:52 +0200 Subject: [PATCH 1/2] added optional color to fabrication note path/text --- src/pcb/pcb_fabrication_note_path.ts | 1 + src/pcb/pcb_fabrication_note_text.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/pcb/pcb_fabrication_note_path.ts b/src/pcb/pcb_fabrication_note_path.ts index d95579c..1032ead 100644 --- a/src/pcb/pcb_fabrication_note_path.ts +++ b/src/pcb/pcb_fabrication_note_path.ts @@ -11,6 +11,7 @@ export const pcb_fabrication_note_path = z layer: visible_layer, route: z.array(point), stroke_width: length, + color: z.string().optional() }) .describe( "Defines a fabrication path on the PCB for fabricators or assemblers", diff --git a/src/pcb/pcb_fabrication_note_text.ts b/src/pcb/pcb_fabrication_note_text.ts index 0a87af8..e73a492 100644 --- a/src/pcb/pcb_fabrication_note_text.ts +++ b/src/pcb/pcb_fabrication_note_text.ts @@ -15,6 +15,7 @@ export const pcb_fabrication_note_text = z anchor_alignment: z .enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]) .default("center"), + color: z.string().optional() }) .describe( "Defines a fabrication note in text on the PCB, useful for leaving notes for assemblers or fabricators", From b7f5d0ed637163904a0ca7045fafa52fd7315559 Mon Sep 17 00:00:00 2001 From: Shibo Date: Fri, 13 Sep 2024 17:41:22 +0200 Subject: [PATCH 2/2] biome --- src/pcb/pcb_fabrication_note_path.ts | 2 +- src/pcb/pcb_fabrication_note_text.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pcb/pcb_fabrication_note_path.ts b/src/pcb/pcb_fabrication_note_path.ts index 1032ead..ab675f5 100644 --- a/src/pcb/pcb_fabrication_note_path.ts +++ b/src/pcb/pcb_fabrication_note_path.ts @@ -11,7 +11,7 @@ export const pcb_fabrication_note_path = z layer: visible_layer, route: z.array(point), stroke_width: length, - color: z.string().optional() + color: z.string().optional(), }) .describe( "Defines a fabrication path on the PCB for fabricators or assemblers", diff --git a/src/pcb/pcb_fabrication_note_text.ts b/src/pcb/pcb_fabrication_note_text.ts index e73a492..7db9d29 100644 --- a/src/pcb/pcb_fabrication_note_text.ts +++ b/src/pcb/pcb_fabrication_note_text.ts @@ -15,7 +15,7 @@ export const pcb_fabrication_note_text = z anchor_alignment: z .enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]) .default("center"), - color: z.string().optional() + color: z.string().optional(), }) .describe( "Defines a fabrication note in text on the PCB, useful for leaving notes for assemblers or fabricators",