@tscircuit/core 0.0.728 → 0.0.730

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 CHANGED
@@ -1308,6 +1308,7 @@ declare class Board extends Group<typeof boardProps> {
1308
1308
  pcbFlexColumn: zod.ZodOptional<zod.ZodBoolean>;
1309
1309
  pcbGap: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
1310
1310
  pcbPack: zod.ZodOptional<zod.ZodBoolean>;
1311
+ pcbPackGap: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
1311
1312
  schGrid: zod.ZodOptional<zod.ZodBoolean>;
1312
1313
  schGridCols: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
1313
1314
  schGridRows: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
@@ -2003,6 +2004,7 @@ declare class Board extends Group<typeof boardProps> {
2003
2004
  pcbFlexColumn?: boolean | undefined;
2004
2005
  pcbGap?: string | number | undefined;
2005
2006
  pcbPack?: boolean | undefined;
2007
+ pcbPackGap?: string | number | undefined;
2006
2008
  schGrid?: boolean | undefined;
2007
2009
  schGridCols?: string | number | undefined;
2008
2010
  schGridRows?: string | number | undefined;
@@ -2254,6 +2256,7 @@ declare class Board extends Group<typeof boardProps> {
2254
2256
  pcbFlexColumn?: boolean | undefined;
2255
2257
  pcbGap?: string | number | undefined;
2256
2258
  pcbPack?: boolean | undefined;
2259
+ pcbPackGap?: string | number | undefined;
2257
2260
  schGrid?: boolean | undefined;
2258
2261
  schGridCols?: string | number | undefined;
2259
2262
  schGridRows?: string | number | undefined;
@@ -17625,6 +17628,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
17625
17628
  holeDiameter: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
17626
17629
  rectPadWidth: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
17627
17630
  rectPadHeight: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
17631
+ rectBorderRadius: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
17628
17632
  holeShape: zod.ZodOptional<zod.ZodLiteral<"circle">>;
17629
17633
  padShape: zod.ZodOptional<zod.ZodLiteral<"rect">>;
17630
17634
  portHints: zod.ZodOptional<zod.ZodArray<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, "many">>;
@@ -17649,6 +17653,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
17649
17653
  name?: string | undefined;
17650
17654
  connectsTo?: string | string[] | undefined;
17651
17655
  portHints?: (string | number)[] | undefined;
17656
+ rectBorderRadius?: number | undefined;
17652
17657
  holeShape?: "circle" | undefined;
17653
17658
  padShape?: "rect" | undefined;
17654
17659
  pcbHoleOffsetX?: number | undefined;
@@ -17672,6 +17677,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
17672
17677
  name?: string | undefined;
17673
17678
  connectsTo?: string | string[] | undefined;
17674
17679
  portHints?: (string | number)[] | undefined;
17680
+ rectBorderRadius?: string | number | undefined;
17675
17681
  holeShape?: "circle" | undefined;
17676
17682
  padShape?: "rect" | undefined;
17677
17683
  pcbHoleOffsetX?: string | number | undefined;
@@ -17836,6 +17842,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
17836
17842
  name?: string | undefined;
17837
17843
  connectsTo?: string | string[] | undefined;
17838
17844
  portHints?: (string | number)[] | undefined;
17845
+ rectBorderRadius?: number | undefined;
17839
17846
  holeShape?: "circle" | undefined;
17840
17847
  padShape?: "rect" | undefined;
17841
17848
  pcbHoleOffsetX?: number | undefined;
@@ -17945,6 +17952,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
17945
17952
  name?: string | undefined;
17946
17953
  connectsTo?: string | string[] | undefined;
17947
17954
  portHints?: (string | number)[] | undefined;
17955
+ rectBorderRadius?: string | number | undefined;
17948
17956
  holeShape?: "circle" | undefined;
17949
17957
  padShape?: "rect" | undefined;
17950
17958
  pcbHoleOffsetX?: string | number | undefined;
@@ -18489,6 +18497,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
18489
18497
  shape: zod.ZodLiteral<"circle">;
18490
18498
  radius: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
18491
18499
  portHints: zod.ZodOptional<zod.ZodArray<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, "many">>;
18500
+ coveredWithSolderMask: zod.ZodOptional<zod.ZodBoolean>;
18492
18501
  }, "strip", zod.ZodTypeAny, {
18493
18502
  shape: "circle";
18494
18503
  radius: number;
@@ -18506,6 +18515,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
18506
18515
  relative?: boolean | undefined;
18507
18516
  name?: string | undefined;
18508
18517
  portHints?: (string | number)[] | undefined;
18518
+ coveredWithSolderMask?: boolean | undefined;
18509
18519
  }, {
18510
18520
  shape: "circle";
18511
18521
  radius: string | number;
@@ -18525,6 +18535,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
18525
18535
  relative?: boolean | undefined;
18526
18536
  name?: string | undefined;
18527
18537
  portHints?: (string | number)[] | undefined;
18538
+ coveredWithSolderMask?: boolean | undefined;
18528
18539
  }>, zod.ZodObject<Omit<{
18529
18540
  pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
18530
18541
  pcbY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
@@ -18552,7 +18563,9 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
18552
18563
  shape: zod.ZodLiteral<"rect">;
18553
18564
  width: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
18554
18565
  height: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
18566
+ rectBorderRadius: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
18555
18567
  portHints: zod.ZodOptional<zod.ZodArray<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, "many">>;
18568
+ coveredWithSolderMask: zod.ZodOptional<zod.ZodBoolean>;
18556
18569
  }, "strip", zod.ZodTypeAny, {
18557
18570
  shape: "rect";
18558
18571
  width: number;
@@ -18571,6 +18584,8 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
18571
18584
  relative?: boolean | undefined;
18572
18585
  name?: string | undefined;
18573
18586
  portHints?: (string | number)[] | undefined;
18587
+ rectBorderRadius?: number | undefined;
18588
+ coveredWithSolderMask?: boolean | undefined;
18574
18589
  }, {
18575
18590
  shape: "rect";
18576
18591
  width: string | number;
@@ -18591,6 +18606,8 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
18591
18606
  relative?: boolean | undefined;
18592
18607
  name?: string | undefined;
18593
18608
  portHints?: (string | number)[] | undefined;
18609
+ rectBorderRadius?: string | number | undefined;
18610
+ coveredWithSolderMask?: boolean | undefined;
18594
18611
  }>, zod.ZodObject<Omit<{
18595
18612
  pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
18596
18613
  pcbY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
@@ -18620,6 +18637,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
18620
18637
  height: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
18621
18638
  ccwRotation: zod.ZodNumber;
18622
18639
  portHints: zod.ZodOptional<zod.ZodArray<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, "many">>;
18640
+ coveredWithSolderMask: zod.ZodOptional<zod.ZodBoolean>;
18623
18641
  }, "strip", zod.ZodTypeAny, {
18624
18642
  shape: "rotated_rect";
18625
18643
  width: number;
@@ -18639,6 +18657,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
18639
18657
  relative?: boolean | undefined;
18640
18658
  name?: string | undefined;
18641
18659
  portHints?: (string | number)[] | undefined;
18660
+ coveredWithSolderMask?: boolean | undefined;
18642
18661
  }, {
18643
18662
  shape: "rotated_rect";
18644
18663
  width: string | number;
@@ -18660,6 +18679,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
18660
18679
  relative?: boolean | undefined;
18661
18680
  name?: string | undefined;
18662
18681
  portHints?: (string | number)[] | undefined;
18682
+ coveredWithSolderMask?: boolean | undefined;
18663
18683
  }>, zod.ZodObject<Omit<{
18664
18684
  pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
18665
18685
  pcbY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
@@ -18689,6 +18709,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
18689
18709
  height: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
18690
18710
  radius: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
18691
18711
  portHints: zod.ZodOptional<zod.ZodArray<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, "many">>;
18712
+ coveredWithSolderMask: zod.ZodOptional<zod.ZodBoolean>;
18692
18713
  }, "strip", zod.ZodTypeAny, {
18693
18714
  shape: "pill";
18694
18715
  width: number;
@@ -18708,6 +18729,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
18708
18729
  relative?: boolean | undefined;
18709
18730
  name?: string | undefined;
18710
18731
  portHints?: (string | number)[] | undefined;
18732
+ coveredWithSolderMask?: boolean | undefined;
18711
18733
  }, {
18712
18734
  shape: "pill";
18713
18735
  width: string | number;
@@ -18729,6 +18751,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
18729
18751
  relative?: boolean | undefined;
18730
18752
  name?: string | undefined;
18731
18753
  portHints?: (string | number)[] | undefined;
18754
+ coveredWithSolderMask?: boolean | undefined;
18732
18755
  }>, zod.ZodObject<Omit<{
18733
18756
  pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
18734
18757
  pcbY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
@@ -18765,6 +18788,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
18765
18788
  y: string | number;
18766
18789
  }>, "many">;
18767
18790
  portHints: zod.ZodOptional<zod.ZodArray<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, "many">>;
18791
+ coveredWithSolderMask: zod.ZodOptional<zod.ZodBoolean>;
18768
18792
  }, "strip", zod.ZodTypeAny, {
18769
18793
  shape: "polygon";
18770
18794
  points: {
@@ -18785,6 +18809,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
18785
18809
  relative?: boolean | undefined;
18786
18810
  name?: string | undefined;
18787
18811
  portHints?: (string | number)[] | undefined;
18812
+ coveredWithSolderMask?: boolean | undefined;
18788
18813
  }, {
18789
18814
  shape: "polygon";
18790
18815
  points: {
@@ -18807,6 +18832,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
18807
18832
  relative?: boolean | undefined;
18808
18833
  name?: string | undefined;
18809
18834
  portHints?: (string | number)[] | undefined;
18835
+ coveredWithSolderMask?: boolean | undefined;
18810
18836
  }>]>;
18811
18837
  };
18812
18838
  getPcbSize(): {
package/dist/index.js CHANGED
@@ -1861,6 +1861,7 @@ var SmtPad = class extends PrimitiveComponent2 {
1861
1861
  shape: "circle",
1862
1862
  radius: props.radius,
1863
1863
  port_hints: props.portHints.map((ph) => ph.toString()),
1864
+ is_covered_with_solder_mask: props.coveredWithSolderMask ?? false,
1864
1865
  x: position.x,
1865
1866
  y: position.y,
1866
1867
  subcircuit_id: subcircuit?.subcircuit_id ?? void 0
@@ -1886,6 +1887,7 @@ var SmtPad = class extends PrimitiveComponent2 {
1886
1887
  width: isRotated90 ? props.height : props.width,
1887
1888
  height: isRotated90 ? props.width : props.height,
1888
1889
  port_hints: props.portHints.map((ph) => ph.toString()),
1890
+ is_covered_with_solder_mask: props.coveredWithSolderMask ?? false,
1889
1891
  x: position.x,
1890
1892
  y: position.y,
1891
1893
  subcircuit_id: subcircuit?.subcircuit_id ?? void 0,
@@ -1900,6 +1902,7 @@ var SmtPad = class extends PrimitiveComponent2 {
1900
1902
  y: position.y,
1901
1903
  ccw_rotation: parentRotation,
1902
1904
  port_hints: props.portHints.map((ph) => ph.toString()),
1905
+ is_covered_with_solder_mask: props.coveredWithSolderMask ?? false,
1903
1906
  subcircuit_id: subcircuit?.subcircuit_id ?? void 0,
1904
1907
  pcb_group_id: this.getGroup()?.pcb_group_id ?? void 0
1905
1908
  });
@@ -1942,6 +1945,7 @@ var SmtPad = class extends PrimitiveComponent2 {
1942
1945
  y: p.y + position.y
1943
1946
  })),
1944
1947
  port_hints: props.portHints.map((ph) => ph.toString()),
1948
+ is_covered_with_solder_mask: props.coveredWithSolderMask ?? false,
1945
1949
  subcircuit_id: subcircuit?.subcircuit_id ?? void 0,
1946
1950
  pcb_group_id: this.getGroup()?.pcb_group_id ?? void 0
1947
1951
  });
@@ -2405,7 +2409,8 @@ var PlatedHole = class extends PrimitiveComponent2 {
2405
2409
  subcircuit_id: subcircuit?.subcircuit_id ?? void 0,
2406
2410
  pcb_group_id: this.getGroup()?.pcb_group_id ?? void 0,
2407
2411
  hole_offset_x: props.pcbHoleOffsetX ?? 0,
2408
- hole_offset_y: props.pcbHoleOffsetY ?? 0
2412
+ hole_offset_y: props.pcbHoleOffsetY ?? 0,
2413
+ rect_border_radius: props.rectBorderRadius ?? 0
2409
2414
  });
2410
2415
  this.pcb_plated_hole_id = pcb_plated_hole.pcb_plated_hole_id;
2411
2416
  } else if (props.shape === "pill_hole_with_rect_pad") {
@@ -2806,7 +2811,8 @@ var createComponentsFromCircuitJson = ({
2806
2811
  shape: "rect",
2807
2812
  height: elm.height,
2808
2813
  width: elm.width,
2809
- portHints: elm.port_hints
2814
+ portHints: elm.port_hints,
2815
+ rectBorderRadius: elm.rect_border_radius
2810
2816
  })
2811
2817
  );
2812
2818
  } else if (elm.type === "pcb_smtpad" && elm.shape === "circle") {
@@ -2851,7 +2857,8 @@ var createComponentsFromCircuitJson = ({
2851
2857
  rectPadWidth: elm.rect_pad_width,
2852
2858
  portHints: elm.port_hints,
2853
2859
  pcbHoleOffsetX: elm.hole_offset_x,
2854
- pcbHoleOffsetY: elm.hole_offset_y
2860
+ pcbHoleOffsetY: elm.hole_offset_y,
2861
+ rectBorderRadius: elm.rect_border_radius
2855
2862
  })
2856
2863
  );
2857
2864
  } else if (elm.shape === "pill" || elm.shape === "oval") {
@@ -10409,7 +10416,6 @@ var Group_doInitialPcbLayoutPack = (group) => {
10409
10416
  packPlacementStrategy,
10410
10417
  gap: gapProp,
10411
10418
  pcbGap,
10412
- // @ts-expect-error remove when props introduces pcbPackGap
10413
10419
  pcbPackGap
10414
10420
  } = props;
10415
10421
  const gap = pcbPackGap ?? pcbGap ?? gapProp;
@@ -15242,7 +15248,7 @@ import { identity as identity6 } from "transformation-matrix";
15242
15248
  var package_default = {
15243
15249
  name: "@tscircuit/core",
15244
15250
  type: "module",
15245
- version: "0.0.727",
15251
+ version: "0.0.729",
15246
15252
  types: "dist/index.d.ts",
15247
15253
  main: "dist/index.js",
15248
15254
  module: "dist/index.js",
@@ -15281,7 +15287,7 @@ var package_default = {
15281
15287
  "@tscircuit/matchpack": "^0.0.16",
15282
15288
  "@tscircuit/math-utils": "^0.0.21",
15283
15289
  "@tscircuit/miniflex": "^0.0.4",
15284
- "@tscircuit/props": "0.0.321",
15290
+ "@tscircuit/props": "0.0.324",
15285
15291
  "@tscircuit/schematic-autolayout": "^0.0.6",
15286
15292
  "@tscircuit/schematic-match-adapt": "^0.0.16",
15287
15293
  "@tscircuit/schematic-trace-solver": "^0.0.37",
@@ -15295,7 +15301,7 @@ var package_default = {
15295
15301
  "bun-match-svg": "0.0.12",
15296
15302
  "calculate-elbow": "^0.0.12",
15297
15303
  "chokidar-cli": "^3.0.0",
15298
- "circuit-json": "^0.0.252",
15304
+ "circuit-json": "^0.0.253",
15299
15305
  "circuit-json-to-bpc": "^0.0.13",
15300
15306
  "circuit-json-to-connectivity-map": "^0.0.22",
15301
15307
  "circuit-json-to-simple-3d": "^0.0.8",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.728",
4
+ "version": "0.0.730",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -40,7 +40,7 @@
40
40
  "@tscircuit/matchpack": "^0.0.16",
41
41
  "@tscircuit/math-utils": "^0.0.21",
42
42
  "@tscircuit/miniflex": "^0.0.4",
43
- "@tscircuit/props": "0.0.321",
43
+ "@tscircuit/props": "0.0.324",
44
44
  "@tscircuit/schematic-autolayout": "^0.0.6",
45
45
  "@tscircuit/schematic-match-adapt": "^0.0.16",
46
46
  "@tscircuit/schematic-trace-solver": "^0.0.37",
@@ -54,7 +54,7 @@
54
54
  "bun-match-svg": "0.0.12",
55
55
  "calculate-elbow": "^0.0.12",
56
56
  "chokidar-cli": "^3.0.0",
57
- "circuit-json": "^0.0.252",
57
+ "circuit-json": "^0.0.253",
58
58
  "circuit-json-to-bpc": "^0.0.13",
59
59
  "circuit-json-to-connectivity-map": "^0.0.22",
60
60
  "circuit-json-to-simple-3d": "^0.0.8",