@tscircuit/props 0.0.384 → 0.0.385

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,10 +4,29 @@ import { z } from "zod"
4
4
 
5
5
  export interface PcbStyle {
6
6
  silkscreenFontSize?: string | number
7
+ silkscreenTextPosition?:
8
+ | "centered"
9
+ | "outside"
10
+ | "none"
11
+ | {
12
+ offsetX: number
13
+ offsetY: number
14
+ }
15
+ silkscreenTextVisibility?: "hidden" | "visible" | "inherit"
7
16
  }
8
17
 
9
18
  export const pcbStyle = z.object({
10
19
  silkscreenFontSize: distance.optional(),
20
+ silkscreenTextPosition: z
21
+ .union([
22
+ z.enum(["centered", "outside", "none"]),
23
+ z.object({
24
+ offsetX: z.number(),
25
+ offsetY: z.number(),
26
+ }),
27
+ ])
28
+ .optional(),
29
+ silkscreenTextVisibility: z.enum(["hidden", "visible", "inherit"]).optional(),
11
30
  })
12
31
 
13
32
  expectTypesMatch<PcbStyle, z.input<typeof pcbStyle>>(true)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.384",
3
+ "version": "0.0.385",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",