@tscircuit/props 0.0.604 → 0.0.605
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 +2 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/lib/components/board.ts +8 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -393,6 +393,8 @@ export interface BoardProps extends Omit<
|
|
|
393
393
|
bottomSilkscreenColor?: BoardColor;
|
|
394
394
|
/** Whether the board should be assembled on both sides */
|
|
395
395
|
doubleSidedAssembly?: boolean;
|
|
396
|
+
/** Whether vias may be placed inside PCB pads */
|
|
397
|
+
isViaInPadAllowed?: boolean;
|
|
396
398
|
/** Whether this board should be omitted from the schematic view */
|
|
397
399
|
schematicDisabled?: boolean;
|
|
398
400
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -24705,6 +24705,8 @@ interface BoardProps extends Omit<SubcircuitGroupProps, "subcircuit" | "connecti
|
|
|
24705
24705
|
bottomSilkscreenColor?: BoardColor;
|
|
24706
24706
|
/** Whether the board should be assembled on both sides */
|
|
24707
24707
|
doubleSidedAssembly?: boolean;
|
|
24708
|
+
/** Whether vias may be placed inside PCB pads */
|
|
24709
|
+
isViaInPadAllowed?: boolean;
|
|
24708
24710
|
/** Whether this board should be omitted from the schematic view */
|
|
24709
24711
|
schematicDisabled?: boolean;
|
|
24710
24712
|
}
|
|
@@ -25498,6 +25500,7 @@ declare const boardProps: z.ZodObject<Omit<{
|
|
|
25498
25500
|
topSilkscreenColor: z.ZodOptional<z.ZodType<BoardColor, z.ZodTypeDef, BoardColor>>;
|
|
25499
25501
|
bottomSilkscreenColor: z.ZodOptional<z.ZodType<BoardColor, z.ZodTypeDef, BoardColor>>;
|
|
25500
25502
|
doubleSidedAssembly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
25503
|
+
isViaInPadAllowed: z.ZodOptional<z.ZodBoolean>;
|
|
25501
25504
|
schematicDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
25502
25505
|
}, "strip", z.ZodTypeAny, {
|
|
25503
25506
|
layers: 1 | 2 | 4 | 6 | 8 | 10;
|
|
@@ -25834,6 +25837,7 @@ declare const boardProps: z.ZodObject<Omit<{
|
|
|
25834
25837
|
silkscreenColor?: BoardColor | undefined;
|
|
25835
25838
|
topSilkscreenColor?: BoardColor | undefined;
|
|
25836
25839
|
bottomSilkscreenColor?: BoardColor | undefined;
|
|
25840
|
+
isViaInPadAllowed?: boolean | undefined;
|
|
25837
25841
|
schematicDisabled?: boolean | undefined;
|
|
25838
25842
|
}, {
|
|
25839
25843
|
symbol?: SymbolProp | undefined;
|
|
@@ -26174,6 +26178,7 @@ declare const boardProps: z.ZodObject<Omit<{
|
|
|
26174
26178
|
topSilkscreenColor?: BoardColor | undefined;
|
|
26175
26179
|
bottomSilkscreenColor?: BoardColor | undefined;
|
|
26176
26180
|
doubleSidedAssembly?: boolean | undefined;
|
|
26181
|
+
isViaInPadAllowed?: boolean | undefined;
|
|
26177
26182
|
schematicDisabled?: boolean | undefined;
|
|
26178
26183
|
}>;
|
|
26179
26184
|
|
|
@@ -90143,6 +90148,7 @@ declare const stampboardProps: z.ZodObject<Omit<{
|
|
|
90143
90148
|
topSilkscreenColor: z.ZodOptional<z.ZodType<BoardColor, z.ZodTypeDef, BoardColor>>;
|
|
90144
90149
|
bottomSilkscreenColor: z.ZodOptional<z.ZodType<BoardColor, z.ZodTypeDef, BoardColor>>;
|
|
90145
90150
|
doubleSidedAssembly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
90151
|
+
isViaInPadAllowed: z.ZodOptional<z.ZodBoolean>;
|
|
90146
90152
|
schematicDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
90147
90153
|
} & {
|
|
90148
90154
|
leftPinCount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -90494,6 +90500,7 @@ declare const stampboardProps: z.ZodObject<Omit<{
|
|
|
90494
90500
|
silkscreenColor?: BoardColor | undefined;
|
|
90495
90501
|
topSilkscreenColor?: BoardColor | undefined;
|
|
90496
90502
|
bottomSilkscreenColor?: BoardColor | undefined;
|
|
90503
|
+
isViaInPadAllowed?: boolean | undefined;
|
|
90497
90504
|
schematicDisabled?: boolean | undefined;
|
|
90498
90505
|
leftPins?: string[] | undefined;
|
|
90499
90506
|
rightPins?: string[] | undefined;
|
|
@@ -90844,6 +90851,7 @@ declare const stampboardProps: z.ZodObject<Omit<{
|
|
|
90844
90851
|
topSilkscreenColor?: BoardColor | undefined;
|
|
90845
90852
|
bottomSilkscreenColor?: BoardColor | undefined;
|
|
90846
90853
|
doubleSidedAssembly?: boolean | undefined;
|
|
90854
|
+
isViaInPadAllowed?: boolean | undefined;
|
|
90847
90855
|
schematicDisabled?: boolean | undefined;
|
|
90848
90856
|
leftPins?: string[] | undefined;
|
|
90849
90857
|
rightPins?: string[] | undefined;
|
package/dist/index.js
CHANGED
|
@@ -16565,6 +16565,9 @@ var boardProps = subcircuitGroupProps.omit({ connections: true }).extend({
|
|
|
16565
16565
|
topSilkscreenColor: boardColor.optional(),
|
|
16566
16566
|
bottomSilkscreenColor: boardColor.optional(),
|
|
16567
16567
|
doubleSidedAssembly: z42.boolean().optional().default(false),
|
|
16568
|
+
isViaInPadAllowed: z42.boolean().optional().describe(
|
|
16569
|
+
"Allows intentional via-in-pad designs to pass DRC. Omitted or false keeps via-in-pad disallowed."
|
|
16570
|
+
),
|
|
16568
16571
|
schematicDisabled: z42.boolean().optional()
|
|
16569
16572
|
});
|
|
16570
16573
|
expectTypesMatch(true);
|