@tscircuit/props 0.0.433 → 0.0.435
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/dist/index.d.ts +34 -12
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/lib/components/group.ts +2 -0
- package/lib/components/platedhole.ts +4 -4
- package/package.json +1 -1
package/lib/components/group.ts
CHANGED
|
@@ -398,6 +398,7 @@ export const autorouterProp: z.ZodType<AutorouterProp> = z.union([
|
|
|
398
398
|
export interface SubcircuitGroupProps extends BaseGroupProps {
|
|
399
399
|
manualEdits?: ManualEditsFileInput
|
|
400
400
|
routingDisabled?: boolean
|
|
401
|
+
bomDisabled?: boolean
|
|
401
402
|
defaultTraceWidth?: Distance
|
|
402
403
|
minTraceWidth?: Distance
|
|
403
404
|
pcbRouteCache?: PcbRouteCache
|
|
@@ -554,6 +555,7 @@ export const subcircuitGroupProps = baseGroupProps.extend({
|
|
|
554
555
|
schTraceAutoLabelEnabled: z.boolean().optional(),
|
|
555
556
|
schMaxTraceDistance: distance.optional(),
|
|
556
557
|
routingDisabled: z.boolean().optional(),
|
|
558
|
+
bomDisabled: z.boolean().optional(),
|
|
557
559
|
defaultTraceWidth: length.optional(),
|
|
558
560
|
minTraceWidth: length.optional(),
|
|
559
561
|
partsEngine: partsEngine.optional(),
|
|
@@ -83,8 +83,8 @@ export interface PillWithRectPadPlatedHoleProps
|
|
|
83
83
|
name?: string
|
|
84
84
|
connectsTo?: string | string[]
|
|
85
85
|
shape: "pill_hole_with_rect_pad"
|
|
86
|
-
holeShape
|
|
87
|
-
padShape
|
|
86
|
+
holeShape?: "pill"
|
|
87
|
+
padShape?: "rect"
|
|
88
88
|
holeWidth: number | string
|
|
89
89
|
holeHeight: number | string
|
|
90
90
|
rectPadWidth: number | string
|
|
@@ -192,8 +192,8 @@ export const platedHoleProps = z
|
|
|
192
192
|
name: z.string().optional(),
|
|
193
193
|
connectsTo: z.string().or(z.array(z.string())).optional(),
|
|
194
194
|
shape: z.literal("pill_hole_with_rect_pad"),
|
|
195
|
-
holeShape: z.literal("pill"),
|
|
196
|
-
padShape: z.literal("rect"),
|
|
195
|
+
holeShape: z.literal("pill").optional(),
|
|
196
|
+
padShape: z.literal("rect").optional(),
|
|
197
197
|
holeWidth: distance,
|
|
198
198
|
holeHeight: distance,
|
|
199
199
|
rectPadWidth: distance,
|