@tscircuit/props 0.0.408 → 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 +28 -0
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/lib/components/panel.ts +12 -0
- 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
|
@@ -12809,6 +12809,13 @@ interface PanelProps extends BaseGroupProps {
|
|
|
12809
12809
|
* If true, prevent a solder mask from being applied to this panel.
|
|
12810
12810
|
*/
|
|
12811
12811
|
noSolderMask?: boolean;
|
|
12812
|
+
/** Method for panelization */
|
|
12813
|
+
panelizationMethod?: "tab-routing" | "none";
|
|
12814
|
+
/** Gap between boards in a panel */
|
|
12815
|
+
boardGap?: Distance;
|
|
12816
|
+
tabWidth?: Distance;
|
|
12817
|
+
tabLength?: Distance;
|
|
12818
|
+
mouseBites?: boolean;
|
|
12812
12819
|
}
|
|
12813
12820
|
declare const panelProps: z.ZodObject<Omit<{
|
|
12814
12821
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -13327,6 +13334,11 @@ declare const panelProps: z.ZodObject<Omit<{
|
|
|
13327
13334
|
height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
13328
13335
|
children: z.ZodOptional<z.ZodAny>;
|
|
13329
13336
|
noSolderMask: z.ZodOptional<z.ZodBoolean>;
|
|
13337
|
+
panelizationMethod: z.ZodOptional<z.ZodEnum<["tab-routing", "none"]>>;
|
|
13338
|
+
boardGap: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
13339
|
+
tabWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
13340
|
+
tabLength: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
13341
|
+
mouseBites: z.ZodOptional<z.ZodBoolean>;
|
|
13330
13342
|
}, "strip", z.ZodTypeAny, {
|
|
13331
13343
|
width: number;
|
|
13332
13344
|
height: number;
|
|
@@ -13571,6 +13583,11 @@ declare const panelProps: z.ZodObject<Omit<{
|
|
|
13571
13583
|
schPack?: boolean | undefined;
|
|
13572
13584
|
schMatchAdapt?: boolean | undefined;
|
|
13573
13585
|
noSolderMask?: boolean | undefined;
|
|
13586
|
+
panelizationMethod?: "none" | "tab-routing" | undefined;
|
|
13587
|
+
boardGap?: number | undefined;
|
|
13588
|
+
tabWidth?: number | undefined;
|
|
13589
|
+
tabLength?: number | undefined;
|
|
13590
|
+
mouseBites?: boolean | undefined;
|
|
13574
13591
|
}, {
|
|
13575
13592
|
width: string | number;
|
|
13576
13593
|
height: string | number;
|
|
@@ -13817,6 +13834,11 @@ declare const panelProps: z.ZodObject<Omit<{
|
|
|
13817
13834
|
schPack?: boolean | undefined;
|
|
13818
13835
|
schMatchAdapt?: boolean | undefined;
|
|
13819
13836
|
noSolderMask?: boolean | undefined;
|
|
13837
|
+
panelizationMethod?: "none" | "tab-routing" | undefined;
|
|
13838
|
+
boardGap?: string | number | undefined;
|
|
13839
|
+
tabWidth?: string | number | undefined;
|
|
13840
|
+
tabLength?: string | number | undefined;
|
|
13841
|
+
mouseBites?: boolean | undefined;
|
|
13820
13842
|
}>;
|
|
13821
13843
|
|
|
13822
13844
|
interface BreakoutProps extends Omit<SubcircuitGroupProps, "subcircuit"> {
|
|
@@ -36576,6 +36598,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
36576
36598
|
x: string | number;
|
|
36577
36599
|
y: string | number;
|
|
36578
36600
|
}>, z.ZodString]>, "many">>;
|
|
36601
|
+
pcbStraightLine: z.ZodOptional<z.ZodBoolean>;
|
|
36579
36602
|
schDisplayLabel: z.ZodOptional<z.ZodString>;
|
|
36580
36603
|
schStroke: z.ZodOptional<z.ZodString>;
|
|
36581
36604
|
highlightColor: z.ZodOptional<z.ZodString>;
|
|
@@ -36611,6 +36634,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
36611
36634
|
x: number;
|
|
36612
36635
|
y: number;
|
|
36613
36636
|
})[] | undefined;
|
|
36637
|
+
pcbStraightLine?: boolean | undefined;
|
|
36614
36638
|
schDisplayLabel?: string | undefined;
|
|
36615
36639
|
schStroke?: string | undefined;
|
|
36616
36640
|
}, {
|
|
@@ -36640,6 +36664,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
36640
36664
|
x: string | number;
|
|
36641
36665
|
y: string | number;
|
|
36642
36666
|
})[] | undefined;
|
|
36667
|
+
pcbStraightLine?: boolean | undefined;
|
|
36643
36668
|
schDisplayLabel?: string | undefined;
|
|
36644
36669
|
schStroke?: string | undefined;
|
|
36645
36670
|
}>, z.ZodObject<{
|
|
@@ -36696,6 +36721,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
36696
36721
|
x: string | number;
|
|
36697
36722
|
y: string | number;
|
|
36698
36723
|
}>, z.ZodString]>, "many">>;
|
|
36724
|
+
pcbStraightLine: z.ZodOptional<z.ZodBoolean>;
|
|
36699
36725
|
schDisplayLabel: z.ZodOptional<z.ZodString>;
|
|
36700
36726
|
schStroke: z.ZodOptional<z.ZodString>;
|
|
36701
36727
|
highlightColor: z.ZodOptional<z.ZodString>;
|
|
@@ -36739,6 +36765,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
36739
36765
|
x: number;
|
|
36740
36766
|
y: number;
|
|
36741
36767
|
})[] | undefined;
|
|
36768
|
+
pcbStraightLine?: boolean | undefined;
|
|
36742
36769
|
schDisplayLabel?: string | undefined;
|
|
36743
36770
|
schStroke?: string | undefined;
|
|
36744
36771
|
}, {
|
|
@@ -36771,6 +36798,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
36771
36798
|
x: string | number;
|
|
36772
36799
|
y: string | number;
|
|
36773
36800
|
})[] | undefined;
|
|
36801
|
+
pcbStraightLine?: boolean | undefined;
|
|
36774
36802
|
schDisplayLabel?: string | undefined;
|
|
36775
36803
|
schStroke?: string | undefined;
|
|
36776
36804
|
}>]>;
|
package/dist/index.js
CHANGED
|
@@ -732,7 +732,12 @@ var panelProps = baseGroupProps.omit({
|
|
|
732
732
|
width: distance,
|
|
733
733
|
height: distance,
|
|
734
734
|
children: z30.any().optional(),
|
|
735
|
-
noSolderMask: z30.boolean().optional()
|
|
735
|
+
noSolderMask: z30.boolean().optional(),
|
|
736
|
+
panelizationMethod: z30.enum(["tab-routing", "none"]).optional(),
|
|
737
|
+
boardGap: distance.optional(),
|
|
738
|
+
tabWidth: distance.optional(),
|
|
739
|
+
tabLength: distance.optional(),
|
|
740
|
+
mouseBites: z30.boolean().optional()
|
|
736
741
|
});
|
|
737
742
|
expectTypesMatch(true);
|
|
738
743
|
|
|
@@ -1297,6 +1302,7 @@ var baseTraceProps = z51.object({
|
|
|
1297
1302
|
pcbRouteHints: z51.array(route_hint_point2).optional(),
|
|
1298
1303
|
pcbPathRelativeTo: z51.string().optional(),
|
|
1299
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"),
|
|
1300
1306
|
schDisplayLabel: z51.string().optional(),
|
|
1301
1307
|
schStroke: z51.string().optional(),
|
|
1302
1308
|
highlightColor: z51.string().optional(),
|