@tscircuit/props 0.0.650 → 0.0.651
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.
- package/README.md +4 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/lib/components/board.ts +16 -0
- package/package.json +1 -1
package/lib/components/board.ts
CHANGED
|
@@ -124,6 +124,10 @@ export interface BoardProps
|
|
|
124
124
|
* to false.
|
|
125
125
|
*/
|
|
126
126
|
automaticPoursEnabled?: boolean
|
|
127
|
+
/** Whether to stitch copper pours on the same net across layers with vias. Defaults to false. */
|
|
128
|
+
enableViaStitching?: boolean
|
|
129
|
+
/** Positive center-to-center stitching via spacing in millimeters or a unit string. Omitted uses the solver default. Does not enable stitching by itself. */
|
|
130
|
+
viaStitchPitch?: Distance
|
|
127
131
|
/** Whether this board should be omitted from the schematic view */
|
|
128
132
|
schematicDisabled?: boolean
|
|
129
133
|
}
|
|
@@ -176,6 +180,18 @@ export const boardProps = subcircuitGroupProps
|
|
|
176
180
|
.describe(
|
|
177
181
|
"Whether implicit copper pours should be generated automatically. Defaults to false.",
|
|
178
182
|
),
|
|
183
|
+
enableViaStitching: z
|
|
184
|
+
.boolean()
|
|
185
|
+
.default(false)
|
|
186
|
+
.describe(
|
|
187
|
+
"Whether to stitch copper pours on the same net across layers with vias. Defaults to false.",
|
|
188
|
+
),
|
|
189
|
+
viaStitchPitch: distance
|
|
190
|
+
.pipe(z.number().positive().finite())
|
|
191
|
+
.optional()
|
|
192
|
+
.describe(
|
|
193
|
+
"Positive center-to-center stitching via spacing in millimeters or a unit string, parsed to millimeters. Omitted uses the solver default. Does not enable stitching by itself.",
|
|
194
|
+
),
|
|
179
195
|
schematicDisabled: z.boolean().optional(),
|
|
180
196
|
})
|
|
181
197
|
|