@tscircuit/props 0.0.409 → 0.0.411

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 CHANGED
@@ -217,7 +217,7 @@ export interface BoardProps
217
217
  title?: string;
218
218
  material?: "fr4" | "fr1";
219
219
  /** Number of layers for the PCB */
220
- layers?: 2 | 4;
220
+ layers?: 1 | 2 | 4;
221
221
  borderRadius?: Distance;
222
222
  thickness?: Distance;
223
223
  boardAnchorPosition?: Point;
@@ -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
@@ -11434,7 +11434,7 @@ interface BoardProps extends Omit<SubcircuitGroupProps, "subcircuit" | "connecti
11434
11434
  title?: string;
11435
11435
  material?: "fr4" | "fr1";
11436
11436
  /** Number of layers for the PCB */
11437
- layers?: 2 | 4;
11437
+ layers?: 1 | 2 | 4;
11438
11438
  borderRadius?: Distance;
11439
11439
  thickness?: Distance;
11440
11440
  boardAnchorPosition?: Point;
@@ -12160,7 +12160,7 @@ declare const boardProps: z.ZodObject<Omit<{
12160
12160
  circuitJson: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
12161
12161
  }, "connections"> & {
12162
12162
  material: z.ZodDefault<z.ZodEnum<["fr4", "fr1"]>>;
12163
- layers: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
12163
+ layers: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
12164
12164
  borderRadius: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
12165
12165
  thickness: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
12166
12166
  boardAnchorPosition: z.ZodOptional<z.ZodObject<{
@@ -12185,7 +12185,7 @@ declare const boardProps: z.ZodObject<Omit<{
12185
12185
  schematicDisabled: z.ZodOptional<z.ZodBoolean>;
12186
12186
  }, "strip", z.ZodTypeAny, {
12187
12187
  material: "fr4" | "fr1";
12188
- layers: 2 | 4;
12188
+ layers: 1 | 2 | 4;
12189
12189
  doubleSidedAssembly: boolean;
12190
12190
  symbol?: SymbolProp | undefined;
12191
12191
  key?: any;
@@ -12783,7 +12783,7 @@ declare const boardProps: z.ZodObject<Omit<{
12783
12783
  circuitJson?: any[] | undefined;
12784
12784
  title?: string | undefined;
12785
12785
  material?: "fr4" | "fr1" | undefined;
12786
- layers?: 2 | 4 | undefined;
12786
+ layers?: 1 | 2 | 4 | undefined;
12787
12787
  borderRadius?: string | number | undefined;
12788
12788
  thickness?: string | number | undefined;
12789
12789
  boardAnchorPosition?: {
@@ -31508,7 +31508,7 @@ declare const stampboardProps: z.ZodObject<Omit<{
31508
31508
  circuitJson: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
31509
31509
  }, "connections"> & {
31510
31510
  material: z.ZodDefault<z.ZodEnum<["fr4", "fr1"]>>;
31511
- layers: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
31511
+ layers: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
31512
31512
  borderRadius: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
31513
31513
  thickness: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
31514
31514
  boardAnchorPosition: z.ZodOptional<z.ZodObject<{
@@ -31544,7 +31544,7 @@ declare const stampboardProps: z.ZodObject<Omit<{
31544
31544
  innerHoles: z.ZodOptional<z.ZodBoolean>;
31545
31545
  }, "strip", z.ZodTypeAny, {
31546
31546
  material: "fr4" | "fr1";
31547
- layers: 2 | 4;
31547
+ layers: 1 | 2 | 4;
31548
31548
  doubleSidedAssembly: boolean;
31549
31549
  symbol?: SymbolProp | undefined;
31550
31550
  key?: any;
@@ -32156,7 +32156,7 @@ declare const stampboardProps: z.ZodObject<Omit<{
32156
32156
  circuitJson?: any[] | undefined;
32157
32157
  title?: string | undefined;
32158
32158
  material?: "fr4" | "fr1" | undefined;
32159
- layers?: 2 | 4 | undefined;
32159
+ layers?: 1 | 2 | 4 | undefined;
32160
32160
  borderRadius?: string | number | undefined;
32161
32161
  thickness?: string | number | undefined;
32162
32162
  boardAnchorPosition?: {
@@ -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
@@ -705,7 +705,7 @@ expectTypesMatch(true);
705
705
  var boardColor = z29.custom((value) => typeof value === "string");
706
706
  var boardProps = subcircuitGroupProps.omit({ connections: true }).extend({
707
707
  material: z29.enum(["fr4", "fr1"]).default("fr4"),
708
- layers: z29.union([z29.literal(2), z29.literal(4)]).default(2),
708
+ layers: z29.union([z29.literal(1), z29.literal(2), z29.literal(4)]).default(2),
709
709
  borderRadius: distance.optional(),
710
710
  thickness: distance.optional(),
711
711
  boardAnchorPosition: point.optional(),
@@ -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(),