@tscircuit/props 0.0.409 → 0.0.410
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 +12 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/lib/components/trace.ts +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -772,6 +772,8 @@ export interface CircleHoleProps extends PcbLayoutProps {
|
|
|
772
772
|
shape?: "circle";
|
|
773
773
|
diameter?: Distance;
|
|
774
774
|
radius?: Distance;
|
|
775
|
+
solderMaskMargin?: Distance;
|
|
776
|
+
coveredWithSolderMask?: boolean;
|
|
775
777
|
}
|
|
776
778
|
```
|
|
777
779
|
|
|
@@ -908,6 +910,13 @@ export interface PanelProps extends BaseGroupProps {
|
|
|
908
910
|
* If true, prevent a solder mask from being applied to this panel.
|
|
909
911
|
*/
|
|
910
912
|
noSolderMask?: boolean;
|
|
913
|
+
/** Method for panelization */
|
|
914
|
+
panelizationMethod?: "tab-routing" | "none";
|
|
915
|
+
/** Gap between boards in a panel */
|
|
916
|
+
boardGap?: Distance;
|
|
917
|
+
tabWidth?: Distance;
|
|
918
|
+
tabLength?: Distance;
|
|
919
|
+
mouseBites?: boolean;
|
|
911
920
|
}
|
|
912
921
|
```
|
|
913
922
|
|
|
@@ -1140,6 +1149,8 @@ export interface CirclePlatedHoleProps
|
|
|
1140
1149
|
holeDiameter: number | string;
|
|
1141
1150
|
outerDiameter: number | string;
|
|
1142
1151
|
portHints?: PortHints;
|
|
1152
|
+
solderMaskMargin?: Distance;
|
|
1153
|
+
coveredWithSolderMask?: boolean;
|
|
1143
1154
|
}
|
|
1144
1155
|
```
|
|
1145
1156
|
|
|
@@ -1362,6 +1373,7 @@ export interface RectSmtPadProps extends Omit<PcbLayoutProps, "pcbRotation"> {
|
|
|
1362
1373
|
cornerRadius?: Distance;
|
|
1363
1374
|
portHints?: PortHints;
|
|
1364
1375
|
coveredWithSolderMask?: boolean;
|
|
1376
|
+
solderMaskMargin?: Distance;
|
|
1365
1377
|
}
|
|
1366
1378
|
```
|
|
1367
1379
|
|
package/dist/index.d.ts
CHANGED
|
@@ -36598,6 +36598,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
36598
36598
|
x: string | number;
|
|
36599
36599
|
y: string | number;
|
|
36600
36600
|
}>, z.ZodString]>, "many">>;
|
|
36601
|
+
pcbStraightLine: z.ZodOptional<z.ZodBoolean>;
|
|
36601
36602
|
schDisplayLabel: z.ZodOptional<z.ZodString>;
|
|
36602
36603
|
schStroke: z.ZodOptional<z.ZodString>;
|
|
36603
36604
|
highlightColor: z.ZodOptional<z.ZodString>;
|
|
@@ -36633,6 +36634,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
36633
36634
|
x: number;
|
|
36634
36635
|
y: number;
|
|
36635
36636
|
})[] | undefined;
|
|
36637
|
+
pcbStraightLine?: boolean | undefined;
|
|
36636
36638
|
schDisplayLabel?: string | undefined;
|
|
36637
36639
|
schStroke?: string | undefined;
|
|
36638
36640
|
}, {
|
|
@@ -36662,6 +36664,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
36662
36664
|
x: string | number;
|
|
36663
36665
|
y: string | number;
|
|
36664
36666
|
})[] | undefined;
|
|
36667
|
+
pcbStraightLine?: boolean | undefined;
|
|
36665
36668
|
schDisplayLabel?: string | undefined;
|
|
36666
36669
|
schStroke?: string | undefined;
|
|
36667
36670
|
}>, z.ZodObject<{
|
|
@@ -36718,6 +36721,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
36718
36721
|
x: string | number;
|
|
36719
36722
|
y: string | number;
|
|
36720
36723
|
}>, z.ZodString]>, "many">>;
|
|
36724
|
+
pcbStraightLine: z.ZodOptional<z.ZodBoolean>;
|
|
36721
36725
|
schDisplayLabel: z.ZodOptional<z.ZodString>;
|
|
36722
36726
|
schStroke: z.ZodOptional<z.ZodString>;
|
|
36723
36727
|
highlightColor: z.ZodOptional<z.ZodString>;
|
|
@@ -36761,6 +36765,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
36761
36765
|
x: number;
|
|
36762
36766
|
y: number;
|
|
36763
36767
|
})[] | undefined;
|
|
36768
|
+
pcbStraightLine?: boolean | undefined;
|
|
36764
36769
|
schDisplayLabel?: string | undefined;
|
|
36765
36770
|
schStroke?: string | undefined;
|
|
36766
36771
|
}, {
|
|
@@ -36793,6 +36798,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
36793
36798
|
x: string | number;
|
|
36794
36799
|
y: string | number;
|
|
36795
36800
|
})[] | undefined;
|
|
36801
|
+
pcbStraightLine?: boolean | undefined;
|
|
36796
36802
|
schDisplayLabel?: string | undefined;
|
|
36797
36803
|
schStroke?: string | undefined;
|
|
36798
36804
|
}>]>;
|
package/dist/index.js
CHANGED
|
@@ -1302,6 +1302,7 @@ var baseTraceProps = z51.object({
|
|
|
1302
1302
|
pcbRouteHints: z51.array(route_hint_point2).optional(),
|
|
1303
1303
|
pcbPathRelativeTo: z51.string().optional(),
|
|
1304
1304
|
pcbPath: z51.array(z51.union([point, z51.string()])).optional(),
|
|
1305
|
+
pcbStraightLine: z51.boolean().optional().describe("Draw a straight pcb trace between the connected points"),
|
|
1305
1306
|
schDisplayLabel: z51.string().optional(),
|
|
1306
1307
|
schStroke: z51.string().optional(),
|
|
1307
1308
|
highlightColor: z51.string().optional(),
|