Skip to content

Commit

Permalink
fix: add anchor position and alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar committed May 26, 2024
1 parent 926fc60 commit 2f70854
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/pcb/pcb_silkscreen_text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@ export const pcb_silkscreen_text = z
.object({
type: z.literal("pcb_silkscreen_text"),
font: z.literal("tscircuit2024").default("tscircuit2024"),
font_size: distance.default("1mm"),
font_size: distance.default("0.2mm"),
pcb_component_id: z.string(),
text: z.string(),
layer: visible_layer,
center: point,
anchor_position: point.default({ x: 0, y: 0 }),
anchor_alignment: z
.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"])
.default("center"),
})
.describe("Defines silkscreen text on the PCB")

Expand Down

0 comments on commit 2f70854

Please sign in to comment.