@tscircuit/props 0.0.481 → 0.0.483

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.
@@ -49,6 +49,7 @@ export interface PcbLayoutProps {
49
49
  pcbRotation?: string | number
50
50
  pcbPositionAnchor?: string
51
51
  pcbPositionMode?: PcbPositionMode
52
+ shouldBeOnEdgeOfBoard?: boolean
52
53
  layer?: LayerRefInput
53
54
  pcbMarginTop?: string | number
54
55
  pcbMarginRight?: string | number
@@ -84,6 +85,7 @@ export interface CommonLayoutProps {
84
85
  pcbRotation?: string | number
85
86
  pcbPositionAnchor?: string
86
87
  pcbPositionMode?: PcbPositionMode
88
+ shouldBeOnEdgeOfBoard?: boolean
87
89
 
88
90
  pcbMarginTop?: string | number
89
91
  pcbMarginRight?: string | number
@@ -145,6 +147,7 @@ export const pcbLayoutProps = z.object({
145
147
  "relative_to_component_anchor",
146
148
  ])
147
149
  .optional(),
150
+ shouldBeOnEdgeOfBoard: z.boolean().optional(),
148
151
  layer: layer_ref.optional(),
149
152
  pcbMarginTop: distance.optional(),
150
153
  pcbMarginRight: distance.optional(),
@@ -179,6 +182,7 @@ export const commonLayoutProps = z.object({
179
182
  "relative_to_component_anchor",
180
183
  ])
181
184
  .optional(),
185
+ shouldBeOnEdgeOfBoard: z.boolean().optional(),
182
186
  pcbMarginTop: distance.optional(),
183
187
  pcbMarginRight: distance.optional(),
184
188
  pcbMarginBottom: distance.optional(),
@@ -275,6 +279,8 @@ export interface PinAttributeMap {
275
279
  isUsingOpenDrain?: boolean
276
280
  canUsePushPull?: boolean
277
281
  isUsingPushPull?: boolean
282
+ shouldHaveDecouplingCapacitor?: boolean
283
+ recommendedDecouplingCapacitorCapacitance?: string | number
278
284
  }
279
285
 
280
286
  export const pinAttributeMap = z.object({
@@ -338,6 +344,10 @@ export const pinAttributeMap = z.object({
338
344
  isUsingOpenDrain: z.boolean().optional(),
339
345
  canUsePushPull: z.boolean().optional(),
340
346
  isUsingPushPull: z.boolean().optional(),
347
+ shouldHaveDecouplingCapacitor: z.boolean().optional(),
348
+ recommendedDecouplingCapacitorCapacitance: z
349
+ .union([z.string(), z.number()])
350
+ .optional(),
341
351
  })
342
352
 
343
353
  expectTypesMatch<PinAttributeMap, z.input<typeof pinAttributeMap>>(true)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.481",
3
+ "version": "0.0.483",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",