@tscircuit/core 0.0.728 → 0.0.729
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 +15 -0
- package/dist/index.js +7 -3
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -18489,6 +18489,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
18489
18489
|
shape: zod.ZodLiteral<"circle">;
|
|
18490
18490
|
radius: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
18491
18491
|
portHints: zod.ZodOptional<zod.ZodArray<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, "many">>;
|
|
18492
|
+
coveredWithSolderMask: zod.ZodOptional<zod.ZodBoolean>;
|
|
18492
18493
|
}, "strip", zod.ZodTypeAny, {
|
|
18493
18494
|
shape: "circle";
|
|
18494
18495
|
radius: number;
|
|
@@ -18506,6 +18507,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
18506
18507
|
relative?: boolean | undefined;
|
|
18507
18508
|
name?: string | undefined;
|
|
18508
18509
|
portHints?: (string | number)[] | undefined;
|
|
18510
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
18509
18511
|
}, {
|
|
18510
18512
|
shape: "circle";
|
|
18511
18513
|
radius: string | number;
|
|
@@ -18525,6 +18527,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
18525
18527
|
relative?: boolean | undefined;
|
|
18526
18528
|
name?: string | undefined;
|
|
18527
18529
|
portHints?: (string | number)[] | undefined;
|
|
18530
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
18528
18531
|
}>, zod.ZodObject<Omit<{
|
|
18529
18532
|
pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
18530
18533
|
pcbY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
@@ -18553,6 +18556,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
18553
18556
|
width: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
18554
18557
|
height: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
18555
18558
|
portHints: zod.ZodOptional<zod.ZodArray<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, "many">>;
|
|
18559
|
+
coveredWithSolderMask: zod.ZodOptional<zod.ZodBoolean>;
|
|
18556
18560
|
}, "strip", zod.ZodTypeAny, {
|
|
18557
18561
|
shape: "rect";
|
|
18558
18562
|
width: number;
|
|
@@ -18571,6 +18575,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
18571
18575
|
relative?: boolean | undefined;
|
|
18572
18576
|
name?: string | undefined;
|
|
18573
18577
|
portHints?: (string | number)[] | undefined;
|
|
18578
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
18574
18579
|
}, {
|
|
18575
18580
|
shape: "rect";
|
|
18576
18581
|
width: string | number;
|
|
@@ -18591,6 +18596,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
18591
18596
|
relative?: boolean | undefined;
|
|
18592
18597
|
name?: string | undefined;
|
|
18593
18598
|
portHints?: (string | number)[] | undefined;
|
|
18599
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
18594
18600
|
}>, zod.ZodObject<Omit<{
|
|
18595
18601
|
pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
18596
18602
|
pcbY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
@@ -18620,6 +18626,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
18620
18626
|
height: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
18621
18627
|
ccwRotation: zod.ZodNumber;
|
|
18622
18628
|
portHints: zod.ZodOptional<zod.ZodArray<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, "many">>;
|
|
18629
|
+
coveredWithSolderMask: zod.ZodOptional<zod.ZodBoolean>;
|
|
18623
18630
|
}, "strip", zod.ZodTypeAny, {
|
|
18624
18631
|
shape: "rotated_rect";
|
|
18625
18632
|
width: number;
|
|
@@ -18639,6 +18646,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
18639
18646
|
relative?: boolean | undefined;
|
|
18640
18647
|
name?: string | undefined;
|
|
18641
18648
|
portHints?: (string | number)[] | undefined;
|
|
18649
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
18642
18650
|
}, {
|
|
18643
18651
|
shape: "rotated_rect";
|
|
18644
18652
|
width: string | number;
|
|
@@ -18660,6 +18668,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
18660
18668
|
relative?: boolean | undefined;
|
|
18661
18669
|
name?: string | undefined;
|
|
18662
18670
|
portHints?: (string | number)[] | undefined;
|
|
18671
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
18663
18672
|
}>, zod.ZodObject<Omit<{
|
|
18664
18673
|
pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
18665
18674
|
pcbY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
@@ -18689,6 +18698,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
18689
18698
|
height: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
18690
18699
|
radius: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
18691
18700
|
portHints: zod.ZodOptional<zod.ZodArray<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, "many">>;
|
|
18701
|
+
coveredWithSolderMask: zod.ZodOptional<zod.ZodBoolean>;
|
|
18692
18702
|
}, "strip", zod.ZodTypeAny, {
|
|
18693
18703
|
shape: "pill";
|
|
18694
18704
|
width: number;
|
|
@@ -18708,6 +18718,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
18708
18718
|
relative?: boolean | undefined;
|
|
18709
18719
|
name?: string | undefined;
|
|
18710
18720
|
portHints?: (string | number)[] | undefined;
|
|
18721
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
18711
18722
|
}, {
|
|
18712
18723
|
shape: "pill";
|
|
18713
18724
|
width: string | number;
|
|
@@ -18729,6 +18740,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
18729
18740
|
relative?: boolean | undefined;
|
|
18730
18741
|
name?: string | undefined;
|
|
18731
18742
|
portHints?: (string | number)[] | undefined;
|
|
18743
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
18732
18744
|
}>, zod.ZodObject<Omit<{
|
|
18733
18745
|
pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
18734
18746
|
pcbY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
@@ -18765,6 +18777,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
18765
18777
|
y: string | number;
|
|
18766
18778
|
}>, "many">;
|
|
18767
18779
|
portHints: zod.ZodOptional<zod.ZodArray<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, "many">>;
|
|
18780
|
+
coveredWithSolderMask: zod.ZodOptional<zod.ZodBoolean>;
|
|
18768
18781
|
}, "strip", zod.ZodTypeAny, {
|
|
18769
18782
|
shape: "polygon";
|
|
18770
18783
|
points: {
|
|
@@ -18785,6 +18798,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
18785
18798
|
relative?: boolean | undefined;
|
|
18786
18799
|
name?: string | undefined;
|
|
18787
18800
|
portHints?: (string | number)[] | undefined;
|
|
18801
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
18788
18802
|
}, {
|
|
18789
18803
|
shape: "polygon";
|
|
18790
18804
|
points: {
|
|
@@ -18807,6 +18821,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
18807
18821
|
relative?: boolean | undefined;
|
|
18808
18822
|
name?: string | undefined;
|
|
18809
18823
|
portHints?: (string | number)[] | undefined;
|
|
18824
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
18810
18825
|
}>]>;
|
|
18811
18826
|
};
|
|
18812
18827
|
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
|
});
|
|
@@ -15242,7 +15246,7 @@ import { identity as identity6 } from "transformation-matrix";
|
|
|
15242
15246
|
var package_default = {
|
|
15243
15247
|
name: "@tscircuit/core",
|
|
15244
15248
|
type: "module",
|
|
15245
|
-
version: "0.0.
|
|
15249
|
+
version: "0.0.728",
|
|
15246
15250
|
types: "dist/index.d.ts",
|
|
15247
15251
|
main: "dist/index.js",
|
|
15248
15252
|
module: "dist/index.js",
|
|
@@ -15281,7 +15285,7 @@ var package_default = {
|
|
|
15281
15285
|
"@tscircuit/matchpack": "^0.0.16",
|
|
15282
15286
|
"@tscircuit/math-utils": "^0.0.21",
|
|
15283
15287
|
"@tscircuit/miniflex": "^0.0.4",
|
|
15284
|
-
"@tscircuit/props": "0.0.
|
|
15288
|
+
"@tscircuit/props": "0.0.322",
|
|
15285
15289
|
"@tscircuit/schematic-autolayout": "^0.0.6",
|
|
15286
15290
|
"@tscircuit/schematic-match-adapt": "^0.0.16",
|
|
15287
15291
|
"@tscircuit/schematic-trace-solver": "^0.0.37",
|
|
@@ -15295,7 +15299,7 @@ var package_default = {
|
|
|
15295
15299
|
"bun-match-svg": "0.0.12",
|
|
15296
15300
|
"calculate-elbow": "^0.0.12",
|
|
15297
15301
|
"chokidar-cli": "^3.0.0",
|
|
15298
|
-
"circuit-json": "^0.0.
|
|
15302
|
+
"circuit-json": "^0.0.253",
|
|
15299
15303
|
"circuit-json-to-bpc": "^0.0.13",
|
|
15300
15304
|
"circuit-json-to-connectivity-map": "^0.0.22",
|
|
15301
15305
|
"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.
|
|
4
|
+
"version": "0.0.729",
|
|
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.
|
|
43
|
+
"@tscircuit/props": "0.0.322",
|
|
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.
|
|
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",
|