Skip to content

Commit

Permalink
add text, change "variant" to "font"
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar committed May 7, 2024
1 parent 2ca6ef6 commit 3604f3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/any_soup_element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const any_soup_element = z.union([
pcb.pcb_trace_hint,
pcb.pcb_silkscreen_line,
pcb.pcb_silkscreen_path,
pcb.pcb_silkscreen_text,
pcb.pcb_trace_error,
pcb.pcb_placement_error,
pcb.pcb_port_not_matched_error,
Expand Down
2 changes: 1 addition & 1 deletion src/pcb/pcb_silkscreen_text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { point } from "src/common"
export const pcb_silkscreen_text = z
.object({
type: z.literal("pcb_silkscreen_text"),
variant: z.literal("tscircuit2024").default("tscircuit2024"),
font: z.literal("tscircuit2024").default("tscircuit2024"),
pcb_component_id: z.string(),
text: z.string(),
layer: visible_layer,
Expand Down

0 comments on commit 3604f3d

Please sign in to comment.