-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { z } from "zod" | ||
import { visible_layer } from "./properties/layer_ref" | ||
import { point } from "src/common" | ||
|
||
export const fabrication_note_path = z | ||
.object({ | ||
type: z.literal("fabrication_note_path"), | ||
pcb_silkscreen_path_id: z.string(), | ||
pcb_component_id: z.string(), | ||
layer: visible_layer, | ||
route: z.array(point), | ||
}) | ||
.describe( | ||
"Defines a fabrication path on the PCB for fabricators or assemblers" | ||
) | ||
|
||
export type FabricationNotePath = z.infer<typeof fabrication_note_path> | ||
export type FabricationNotePathInput = z.input<typeof fabrication_note_path> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { z } from "zod" | ||
import { visible_layer } from "./properties/layer_ref" | ||
import { point } from "src/common" | ||
import { distance } from "src/units" | ||
|
||
export const fabrication_note_text = z | ||
.object({ | ||
type: z.literal("fabrication_note_text"), | ||
font: z.literal("tscircuit2024").default("tscircuit2024"), | ||
font_size: distance.default("1mm"), | ||
pcb_component_id: z.string(), | ||
text: z.string(), | ||
layer: visible_layer, | ||
center: point, | ||
}) | ||
.describe( | ||
"Defines a fabrication note in text on the PCB, useful for leaving notes for assemblers or fabricators" | ||
) | ||
|
||
export type FabricationNoteText = z.infer<typeof fabrication_note_text> | ||
export type FabricationNoteTextInput = z.input<typeof fabrication_note_text> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters