@tscircuit/props 0.0.636 → 0.0.638

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.
@@ -119,6 +119,11 @@ export interface BoardProps
119
119
  doubleSidedAssembly?: boolean
120
120
  /** Whether vias may be placed inside PCB pads */
121
121
  isViaInPadAllowed?: boolean
122
+ /**
123
+ * Whether implicit copper pours should be generated automatically. Defaults
124
+ * to false.
125
+ */
126
+ automaticPoursEnabled?: boolean
122
127
  /** Whether this board should be omitted from the schematic view */
123
128
  schematicDisabled?: boolean
124
129
  }
@@ -165,6 +170,12 @@ export const boardProps = subcircuitGroupProps
165
170
  .describe(
166
171
  "Allows intentional via-in-pad designs to pass DRC. Omitted or false keeps via-in-pad disallowed.",
167
172
  ),
173
+ automaticPoursEnabled: z
174
+ .boolean()
175
+ .default(false)
176
+ .describe(
177
+ "Whether implicit copper pours should be generated automatically. Defaults to false.",
178
+ ),
168
179
  schematicDisabled: z.boolean().optional(),
169
180
  })
170
181
 
@@ -1,10 +1,14 @@
1
1
  import { z } from "zod"
2
2
  import { expectTypesMatch } from "lib/typecheck"
3
3
 
4
+ export type SchematicSheetSize = "A4" | "ANSI_B"
5
+
4
6
  export interface SchematicSheetProps {
5
7
  name: string
6
8
  displayName: string
7
9
  sheetIndex?: number
10
+ /** Sheet size used to render the schematic. Defaults to A4. */
11
+ sheetSize?: SchematicSheetSize
8
12
  children?: any
9
13
  }
10
14
 
@@ -12,6 +16,7 @@ export const schematicSheetProps = z.object({
12
16
  name: z.string(),
13
17
  displayName: z.string(),
14
18
  sheetIndex: z.number().optional(),
19
+ sheetSize: z.enum(["A4", "ANSI_B"]).default("A4"),
15
20
  children: z.any().optional(),
16
21
  })
17
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.636",
3
+ "version": "0.0.638",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",