@tscircuit/core 0.0.424 → 0.0.425
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 +268 -40
- package/dist/index.js +15 -4
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -567,17 +567,17 @@ declare class Trace extends PrimitiveComponent<typeof traceProps> implements Tra
|
|
|
567
567
|
}, "strip", z.ZodTypeAny, {
|
|
568
568
|
x: number;
|
|
569
569
|
y: number;
|
|
570
|
-
trace_width?: number | undefined;
|
|
571
570
|
via?: boolean | undefined;
|
|
572
571
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
572
|
+
trace_width?: number | undefined;
|
|
573
573
|
}, {
|
|
574
574
|
x: string | number;
|
|
575
575
|
y: string | number;
|
|
576
|
-
trace_width?: string | number | undefined;
|
|
577
576
|
via?: boolean | undefined;
|
|
578
577
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
579
578
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
580
579
|
} | undefined;
|
|
580
|
+
trace_width?: string | number | undefined;
|
|
581
581
|
}>, "many">>;
|
|
582
582
|
schDisplayLabel: z.ZodOptional<z.ZodString>;
|
|
583
583
|
maxLength: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -600,9 +600,9 @@ declare class Trace extends PrimitiveComponent<typeof traceProps> implements Tra
|
|
|
600
600
|
pcbRouteHints?: {
|
|
601
601
|
x: number;
|
|
602
602
|
y: number;
|
|
603
|
-
trace_width?: number | undefined;
|
|
604
603
|
via?: boolean | undefined;
|
|
605
604
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
605
|
+
trace_width?: number | undefined;
|
|
606
606
|
}[] | undefined;
|
|
607
607
|
schDisplayLabel?: string | undefined;
|
|
608
608
|
maxLength?: number | undefined;
|
|
@@ -619,11 +619,11 @@ declare class Trace extends PrimitiveComponent<typeof traceProps> implements Tra
|
|
|
619
619
|
pcbRouteHints?: {
|
|
620
620
|
x: string | number;
|
|
621
621
|
y: string | number;
|
|
622
|
-
trace_width?: string | number | undefined;
|
|
623
622
|
via?: boolean | undefined;
|
|
624
623
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
625
624
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
626
625
|
} | undefined;
|
|
626
|
+
trace_width?: string | number | undefined;
|
|
627
627
|
}[] | undefined;
|
|
628
628
|
schDisplayLabel?: string | undefined;
|
|
629
629
|
maxLength?: string | number | undefined;
|
|
@@ -657,17 +657,17 @@ declare class Trace extends PrimitiveComponent<typeof traceProps> implements Tra
|
|
|
657
657
|
}, "strip", z.ZodTypeAny, {
|
|
658
658
|
x: number;
|
|
659
659
|
y: number;
|
|
660
|
-
trace_width?: number | undefined;
|
|
661
660
|
via?: boolean | undefined;
|
|
662
661
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
662
|
+
trace_width?: number | undefined;
|
|
663
663
|
}, {
|
|
664
664
|
x: string | number;
|
|
665
665
|
y: string | number;
|
|
666
|
-
trace_width?: string | number | undefined;
|
|
667
666
|
via?: boolean | undefined;
|
|
668
667
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
669
668
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
670
669
|
} | undefined;
|
|
670
|
+
trace_width?: string | number | undefined;
|
|
671
671
|
}>, "many">>;
|
|
672
672
|
schDisplayLabel: z.ZodOptional<z.ZodString>;
|
|
673
673
|
maxLength: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -698,9 +698,9 @@ declare class Trace extends PrimitiveComponent<typeof traceProps> implements Tra
|
|
|
698
698
|
pcbRouteHints?: {
|
|
699
699
|
x: number;
|
|
700
700
|
y: number;
|
|
701
|
-
trace_width?: number | undefined;
|
|
702
701
|
via?: boolean | undefined;
|
|
703
702
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
703
|
+
trace_width?: number | undefined;
|
|
704
704
|
}[] | undefined;
|
|
705
705
|
schDisplayLabel?: string | undefined;
|
|
706
706
|
maxLength?: number | undefined;
|
|
@@ -720,11 +720,11 @@ declare class Trace extends PrimitiveComponent<typeof traceProps> implements Tra
|
|
|
720
720
|
pcbRouteHints?: {
|
|
721
721
|
x: string | number;
|
|
722
722
|
y: string | number;
|
|
723
|
-
trace_width?: string | number | undefined;
|
|
724
723
|
via?: boolean | undefined;
|
|
725
724
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
726
725
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
727
726
|
} | undefined;
|
|
727
|
+
trace_width?: string | number | undefined;
|
|
728
728
|
}[] | undefined;
|
|
729
729
|
schDisplayLabel?: string | undefined;
|
|
730
730
|
maxLength?: string | number | undefined;
|
|
@@ -1259,37 +1259,37 @@ declare class Board extends Group<typeof boardProps> {
|
|
|
1259
1259
|
}, "strip", zod.ZodTypeAny, {
|
|
1260
1260
|
x: number;
|
|
1261
1261
|
y: number;
|
|
1262
|
-
trace_width?: number | undefined;
|
|
1263
1262
|
via?: boolean | undefined;
|
|
1264
1263
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
1264
|
+
trace_width?: number | undefined;
|
|
1265
1265
|
}, {
|
|
1266
1266
|
x: string | number;
|
|
1267
1267
|
y: string | number;
|
|
1268
|
-
trace_width?: string | number | undefined;
|
|
1269
1268
|
via?: boolean | undefined;
|
|
1270
1269
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
1271
1270
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1272
1271
|
} | undefined;
|
|
1272
|
+
trace_width?: string | number | undefined;
|
|
1273
1273
|
}>, "many">;
|
|
1274
1274
|
}, "strip", zod.ZodTypeAny, {
|
|
1275
1275
|
pcb_port_selector: string;
|
|
1276
1276
|
offsets: {
|
|
1277
1277
|
x: number;
|
|
1278
1278
|
y: number;
|
|
1279
|
-
trace_width?: number | undefined;
|
|
1280
1279
|
via?: boolean | undefined;
|
|
1281
1280
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
1281
|
+
trace_width?: number | undefined;
|
|
1282
1282
|
}[];
|
|
1283
1283
|
}, {
|
|
1284
1284
|
pcb_port_selector: string;
|
|
1285
1285
|
offsets: {
|
|
1286
1286
|
x: string | number;
|
|
1287
1287
|
y: string | number;
|
|
1288
|
-
trace_width?: string | number | undefined;
|
|
1289
1288
|
via?: boolean | undefined;
|
|
1290
1289
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
1291
1290
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1292
1291
|
} | undefined;
|
|
1292
|
+
trace_width?: string | number | undefined;
|
|
1293
1293
|
}[];
|
|
1294
1294
|
}>, "many">>;
|
|
1295
1295
|
schematic_placements: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
@@ -1334,9 +1334,9 @@ declare class Board extends Group<typeof boardProps> {
|
|
|
1334
1334
|
offsets: {
|
|
1335
1335
|
x: number;
|
|
1336
1336
|
y: number;
|
|
1337
|
-
trace_width?: number | undefined;
|
|
1338
1337
|
via?: boolean | undefined;
|
|
1339
1338
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
1339
|
+
trace_width?: number | undefined;
|
|
1340
1340
|
}[];
|
|
1341
1341
|
}[] | undefined;
|
|
1342
1342
|
schematic_placements?: {
|
|
@@ -1361,11 +1361,11 @@ declare class Board extends Group<typeof boardProps> {
|
|
|
1361
1361
|
offsets: {
|
|
1362
1362
|
x: string | number;
|
|
1363
1363
|
y: string | number;
|
|
1364
|
-
trace_width?: string | number | undefined;
|
|
1365
1364
|
via?: boolean | undefined;
|
|
1366
1365
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
1367
1366
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1368
1367
|
} | undefined;
|
|
1368
|
+
trace_width?: string | number | undefined;
|
|
1369
1369
|
}[];
|
|
1370
1370
|
}[] | undefined;
|
|
1371
1371
|
schematic_placements?: {
|
|
@@ -1512,9 +1512,9 @@ declare class Board extends Group<typeof boardProps> {
|
|
|
1512
1512
|
offsets: {
|
|
1513
1513
|
x: number;
|
|
1514
1514
|
y: number;
|
|
1515
|
-
trace_width?: number | undefined;
|
|
1516
1515
|
via?: boolean | undefined;
|
|
1517
1516
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
1517
|
+
trace_width?: number | undefined;
|
|
1518
1518
|
}[];
|
|
1519
1519
|
}[] | undefined;
|
|
1520
1520
|
schematic_placements?: {
|
|
@@ -1636,11 +1636,11 @@ declare class Board extends Group<typeof boardProps> {
|
|
|
1636
1636
|
offsets: {
|
|
1637
1637
|
x: string | number;
|
|
1638
1638
|
y: string | number;
|
|
1639
|
-
trace_width?: string | number | undefined;
|
|
1640
1639
|
via?: boolean | undefined;
|
|
1641
1640
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
1642
1641
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1643
1642
|
} | undefined;
|
|
1643
|
+
trace_width?: string | number | undefined;
|
|
1644
1644
|
}[];
|
|
1645
1645
|
}[] | undefined;
|
|
1646
1646
|
schematic_placements?: {
|
|
@@ -1955,7 +1955,7 @@ declare class Capacitor extends NormalComponent<typeof capacitorProps, PassivePo
|
|
|
1955
1955
|
children: zod.ZodOptional<zod.ZodAny>;
|
|
1956
1956
|
symbolName: zod.ZodOptional<zod.ZodString>;
|
|
1957
1957
|
} & {
|
|
1958
|
-
capacitance: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
1958
|
+
capacitance: zod.ZodEffects<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>, number, string | number>;
|
|
1959
1959
|
maxVoltageRating: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
1960
1960
|
schShowRatings: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
|
|
1961
1961
|
polarized: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
|
|
@@ -1967,8 +1967,8 @@ declare class Capacitor extends NormalComponent<typeof capacitorProps, PassivePo
|
|
|
1967
1967
|
connections: zod.ZodOptional<zod.ZodRecord<zod.ZodEnum<["pin1", "pin2", "pos", "neg", "anode", "cathode"]>, zod.ZodUnion<[zod.ZodUnion<[zod.ZodString, zod.ZodReadonly<zod.ZodArray<zod.ZodString, "many">>]>, zod.ZodArray<zod.ZodString, "many">]>>>;
|
|
1968
1968
|
}, "strip", zod.ZodTypeAny, {
|
|
1969
1969
|
name: string;
|
|
1970
|
-
capacitance: number;
|
|
1971
1970
|
schShowRatings: boolean;
|
|
1971
|
+
capacitance: number;
|
|
1972
1972
|
polarized: boolean;
|
|
1973
1973
|
pcbX?: number | undefined;
|
|
1974
1974
|
pcbY?: number | undefined;
|
|
@@ -2113,8 +2113,8 @@ declare class Capacitor extends NormalComponent<typeof capacitorProps, PassivePo
|
|
|
2113
2113
|
children?: any;
|
|
2114
2114
|
symbolName?: string | undefined;
|
|
2115
2115
|
connections?: Partial<Record<"pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
|
|
2116
|
-
maxVoltageRating?: string | number | undefined;
|
|
2117
2116
|
schShowRatings?: boolean | undefined;
|
|
2117
|
+
maxVoltageRating?: string | number | undefined;
|
|
2118
2118
|
polarized?: boolean | undefined;
|
|
2119
2119
|
decouplingFor?: string | undefined;
|
|
2120
2120
|
decouplingTo?: string | undefined;
|
|
@@ -4556,6 +4556,7 @@ declare class Led extends NormalComponent<typeof ledProps, PolarizedPassivePorts
|
|
|
4556
4556
|
symbolName: zod.ZodOptional<zod.ZodString>;
|
|
4557
4557
|
} & {
|
|
4558
4558
|
color: zod.ZodOptional<zod.ZodString>;
|
|
4559
|
+
wavelength: zod.ZodOptional<zod.ZodString>;
|
|
4559
4560
|
}, "strip", zod.ZodTypeAny, {
|
|
4560
4561
|
name: string;
|
|
4561
4562
|
pcbX?: number | undefined;
|
|
@@ -4624,6 +4625,7 @@ declare class Led extends NormalComponent<typeof ledProps, PolarizedPassivePorts
|
|
|
4624
4625
|
children?: any;
|
|
4625
4626
|
symbolName?: string | undefined;
|
|
4626
4627
|
color?: string | undefined;
|
|
4628
|
+
wavelength?: string | undefined;
|
|
4627
4629
|
}, {
|
|
4628
4630
|
name: string;
|
|
4629
4631
|
pcbX?: string | number | undefined;
|
|
@@ -4694,6 +4696,7 @@ declare class Led extends NormalComponent<typeof ledProps, PolarizedPassivePorts
|
|
|
4694
4696
|
children?: any;
|
|
4695
4697
|
symbolName?: string | undefined;
|
|
4696
4698
|
color?: string | undefined;
|
|
4699
|
+
wavelength?: string | undefined;
|
|
4697
4700
|
}>;
|
|
4698
4701
|
sourceFtype: Ftype;
|
|
4699
4702
|
};
|
|
@@ -5660,17 +5663,17 @@ declare class FabricationNotePath extends PrimitiveComponent<typeof fabricationN
|
|
|
5660
5663
|
}, "strip", zod.ZodTypeAny, {
|
|
5661
5664
|
x: number;
|
|
5662
5665
|
y: number;
|
|
5663
|
-
trace_width?: number | undefined;
|
|
5664
5666
|
via?: boolean | undefined;
|
|
5665
5667
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
5668
|
+
trace_width?: number | undefined;
|
|
5666
5669
|
}, {
|
|
5667
5670
|
x: string | number;
|
|
5668
5671
|
y: string | number;
|
|
5669
|
-
trace_width?: string | number | undefined;
|
|
5670
5672
|
via?: boolean | undefined;
|
|
5671
5673
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
5672
5674
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
5673
5675
|
} | undefined;
|
|
5676
|
+
trace_width?: string | number | undefined;
|
|
5674
5677
|
}>, "many">;
|
|
5675
5678
|
strokeWidth: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
5676
5679
|
color: zod.ZodOptional<zod.ZodString>;
|
|
@@ -5678,9 +5681,9 @@ declare class FabricationNotePath extends PrimitiveComponent<typeof fabricationN
|
|
|
5678
5681
|
route: {
|
|
5679
5682
|
x: number;
|
|
5680
5683
|
y: number;
|
|
5681
|
-
trace_width?: number | undefined;
|
|
5682
5684
|
via?: boolean | undefined;
|
|
5683
5685
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
5686
|
+
trace_width?: number | undefined;
|
|
5684
5687
|
}[];
|
|
5685
5688
|
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
5686
5689
|
color?: string | undefined;
|
|
@@ -5689,11 +5692,11 @@ declare class FabricationNotePath extends PrimitiveComponent<typeof fabricationN
|
|
|
5689
5692
|
route: {
|
|
5690
5693
|
x: string | number;
|
|
5691
5694
|
y: string | number;
|
|
5692
|
-
trace_width?: string | number | undefined;
|
|
5693
5695
|
via?: boolean | undefined;
|
|
5694
5696
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
5695
5697
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
5696
5698
|
} | undefined;
|
|
5699
|
+
trace_width?: string | number | undefined;
|
|
5697
5700
|
}[];
|
|
5698
5701
|
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
5699
5702
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
@@ -6170,6 +6173,53 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
6170
6173
|
portHints?: (string | number)[] | undefined;
|
|
6171
6174
|
holeShape?: "circle" | undefined;
|
|
6172
6175
|
padShape?: "rect" | undefined;
|
|
6176
|
+
}>, zod.ZodObject<Omit<{
|
|
6177
|
+
pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
6178
|
+
pcbY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
6179
|
+
pcbRotation: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
6180
|
+
layer: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, zod.ZodObject<{
|
|
6181
|
+
name: zod.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
|
|
6182
|
+
}, "strip", zod.ZodTypeAny, {
|
|
6183
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
6184
|
+
}, {
|
|
6185
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
6186
|
+
}>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
6187
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
6188
|
+
}>>;
|
|
6189
|
+
}, "pcbRotation" | "layer"> & {
|
|
6190
|
+
name: zod.ZodOptional<zod.ZodString>;
|
|
6191
|
+
shape: zod.ZodLiteral<"pill_hole_with_rect_pad">;
|
|
6192
|
+
holeShape: zod.ZodLiteral<"pill">;
|
|
6193
|
+
padShape: zod.ZodLiteral<"rect">;
|
|
6194
|
+
holeWidth: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
6195
|
+
holeHeight: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
6196
|
+
rectPadWidth: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
6197
|
+
rectPadHeight: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
6198
|
+
portHints: zod.ZodOptional<zod.ZodArray<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, "many">>;
|
|
6199
|
+
}, "strip", zod.ZodTypeAny, {
|
|
6200
|
+
shape: "pill_hole_with_rect_pad";
|
|
6201
|
+
holeWidth: number;
|
|
6202
|
+
holeHeight: number;
|
|
6203
|
+
rectPadWidth: number;
|
|
6204
|
+
rectPadHeight: number;
|
|
6205
|
+
holeShape: "pill";
|
|
6206
|
+
padShape: "rect";
|
|
6207
|
+
pcbX?: number | undefined;
|
|
6208
|
+
pcbY?: number | undefined;
|
|
6209
|
+
name?: string | undefined;
|
|
6210
|
+
portHints?: (string | number)[] | undefined;
|
|
6211
|
+
}, {
|
|
6212
|
+
shape: "pill_hole_with_rect_pad";
|
|
6213
|
+
holeWidth: string | number;
|
|
6214
|
+
holeHeight: string | number;
|
|
6215
|
+
rectPadWidth: string | number;
|
|
6216
|
+
rectPadHeight: string | number;
|
|
6217
|
+
holeShape: "pill";
|
|
6218
|
+
padShape: "rect";
|
|
6219
|
+
pcbX?: string | number | undefined;
|
|
6220
|
+
pcbY?: string | number | undefined;
|
|
6221
|
+
name?: string | undefined;
|
|
6222
|
+
portHints?: (string | number)[] | undefined;
|
|
6173
6223
|
}>]>, {
|
|
6174
6224
|
shape: "circle";
|
|
6175
6225
|
holeDiameter: number;
|
|
@@ -6213,6 +6263,18 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
6213
6263
|
portHints?: (string | number)[] | undefined;
|
|
6214
6264
|
holeShape?: "circle" | undefined;
|
|
6215
6265
|
padShape?: "rect" | undefined;
|
|
6266
|
+
} | {
|
|
6267
|
+
shape: "pill_hole_with_rect_pad";
|
|
6268
|
+
holeWidth: number;
|
|
6269
|
+
holeHeight: number;
|
|
6270
|
+
rectPadWidth: number;
|
|
6271
|
+
rectPadHeight: number;
|
|
6272
|
+
holeShape: "pill";
|
|
6273
|
+
padShape: "rect";
|
|
6274
|
+
pcbX?: number | undefined;
|
|
6275
|
+
pcbY?: number | undefined;
|
|
6276
|
+
name?: string | undefined;
|
|
6277
|
+
portHints?: (string | number)[] | undefined;
|
|
6216
6278
|
}, {
|
|
6217
6279
|
shape: "circle";
|
|
6218
6280
|
holeDiameter: string | number;
|
|
@@ -6256,6 +6318,18 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
6256
6318
|
portHints?: (string | number)[] | undefined;
|
|
6257
6319
|
holeShape?: "circle" | undefined;
|
|
6258
6320
|
padShape?: "rect" | undefined;
|
|
6321
|
+
} | {
|
|
6322
|
+
shape: "pill_hole_with_rect_pad";
|
|
6323
|
+
holeWidth: string | number;
|
|
6324
|
+
holeHeight: string | number;
|
|
6325
|
+
rectPadWidth: string | number;
|
|
6326
|
+
rectPadHeight: string | number;
|
|
6327
|
+
holeShape: "pill";
|
|
6328
|
+
padShape: "rect";
|
|
6329
|
+
pcbX?: string | number | undefined;
|
|
6330
|
+
pcbY?: string | number | undefined;
|
|
6331
|
+
name?: string | undefined;
|
|
6332
|
+
portHints?: (string | number)[] | undefined;
|
|
6259
6333
|
}>;
|
|
6260
6334
|
};
|
|
6261
6335
|
getAvailablePcbLayers(): string[];
|
|
@@ -6372,26 +6446,26 @@ declare class SilkscreenPath extends PrimitiveComponent<typeof silkscreenPathPro
|
|
|
6372
6446
|
}, "strip", zod.ZodTypeAny, {
|
|
6373
6447
|
x: number;
|
|
6374
6448
|
y: number;
|
|
6375
|
-
trace_width?: number | undefined;
|
|
6376
6449
|
via?: boolean | undefined;
|
|
6377
6450
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
6451
|
+
trace_width?: number | undefined;
|
|
6378
6452
|
}, {
|
|
6379
6453
|
x: string | number;
|
|
6380
6454
|
y: string | number;
|
|
6381
|
-
trace_width?: string | number | undefined;
|
|
6382
6455
|
via?: boolean | undefined;
|
|
6383
6456
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
6384
6457
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
6385
6458
|
} | undefined;
|
|
6459
|
+
trace_width?: string | number | undefined;
|
|
6386
6460
|
}>, "many">;
|
|
6387
6461
|
strokeWidth: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
6388
6462
|
}, "strip", zod.ZodTypeAny, {
|
|
6389
6463
|
route: {
|
|
6390
6464
|
x: number;
|
|
6391
6465
|
y: number;
|
|
6392
|
-
trace_width?: number | undefined;
|
|
6393
6466
|
via?: boolean | undefined;
|
|
6394
6467
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
6468
|
+
trace_width?: number | undefined;
|
|
6395
6469
|
}[];
|
|
6396
6470
|
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
6397
6471
|
strokeWidth?: number | undefined;
|
|
@@ -6399,11 +6473,11 @@ declare class SilkscreenPath extends PrimitiveComponent<typeof silkscreenPathPro
|
|
|
6399
6473
|
route: {
|
|
6400
6474
|
x: string | number;
|
|
6401
6475
|
y: string | number;
|
|
6402
|
-
trace_width?: string | number | undefined;
|
|
6403
6476
|
via?: boolean | undefined;
|
|
6404
6477
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
6405
6478
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
6406
6479
|
} | undefined;
|
|
6480
|
+
trace_width?: string | number | undefined;
|
|
6407
6481
|
}[];
|
|
6408
6482
|
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
6409
6483
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
@@ -6490,12 +6564,12 @@ declare class SilkscreenText extends PrimitiveComponent<typeof silkscreenTextPro
|
|
|
6490
6564
|
}>>;
|
|
6491
6565
|
} & {
|
|
6492
6566
|
text: zod.ZodString;
|
|
6493
|
-
anchorAlignment: zod.ZodDefault<zod.ZodEnum<["
|
|
6567
|
+
anchorAlignment: zod.ZodDefault<zod.ZodEnum<["top_left", "top_center", "top_right", "center_left", "center", "center_right", "bottom_left", "bottom_center", "bottom_right"]>>;
|
|
6494
6568
|
font: zod.ZodOptional<zod.ZodEnum<["tscircuit2024"]>>;
|
|
6495
6569
|
fontSize: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
6496
6570
|
}, "strip", zod.ZodTypeAny, {
|
|
6497
6571
|
text: string;
|
|
6498
|
-
anchorAlignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
|
|
6572
|
+
anchorAlignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | "top_center" | "center_left" | "center_right" | "bottom_center";
|
|
6499
6573
|
pcbX?: number | undefined;
|
|
6500
6574
|
pcbY?: number | undefined;
|
|
6501
6575
|
pcbRotation?: number | undefined;
|
|
@@ -6510,7 +6584,7 @@ declare class SilkscreenText extends PrimitiveComponent<typeof silkscreenTextPro
|
|
|
6510
6584
|
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
6511
6585
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
6512
6586
|
} | undefined;
|
|
6513
|
-
anchorAlignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
|
|
6587
|
+
anchorAlignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | "top_center" | "center_left" | "center_right" | "bottom_center" | undefined;
|
|
6514
6588
|
font?: "tscircuit2024" | undefined;
|
|
6515
6589
|
fontSize?: string | number | undefined;
|
|
6516
6590
|
}>;
|
|
@@ -6994,17 +7068,17 @@ declare class TraceHint extends PrimitiveComponent<typeof traceHintProps> {
|
|
|
6994
7068
|
}, "strip", zod.ZodTypeAny, {
|
|
6995
7069
|
x: number;
|
|
6996
7070
|
y: number;
|
|
6997
|
-
trace_width?: number | undefined;
|
|
6998
7071
|
via?: boolean | undefined;
|
|
6999
7072
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
7073
|
+
trace_width?: number | undefined;
|
|
7000
7074
|
}, {
|
|
7001
7075
|
x: string | number;
|
|
7002
7076
|
y: string | number;
|
|
7003
|
-
trace_width?: string | number | undefined;
|
|
7004
7077
|
via?: boolean | undefined;
|
|
7005
7078
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
7006
7079
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
7007
7080
|
} | undefined;
|
|
7081
|
+
trace_width?: string | number | undefined;
|
|
7008
7082
|
}>, zod.ZodObject<{
|
|
7009
7083
|
x: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
7010
7084
|
y: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
@@ -7048,17 +7122,17 @@ declare class TraceHint extends PrimitiveComponent<typeof traceHintProps> {
|
|
|
7048
7122
|
}, "strip", zod.ZodTypeAny, {
|
|
7049
7123
|
x: number;
|
|
7050
7124
|
y: number;
|
|
7051
|
-
trace_width?: number | undefined;
|
|
7052
7125
|
via?: boolean | undefined;
|
|
7053
7126
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
7127
|
+
trace_width?: number | undefined;
|
|
7054
7128
|
}, {
|
|
7055
7129
|
x: string | number;
|
|
7056
7130
|
y: string | number;
|
|
7057
|
-
trace_width?: string | number | undefined;
|
|
7058
7131
|
via?: boolean | undefined;
|
|
7059
7132
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
7060
7133
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
7061
7134
|
} | undefined;
|
|
7135
|
+
trace_width?: string | number | undefined;
|
|
7062
7136
|
}>, "many">, zod.ZodArray<zod.ZodObject<{
|
|
7063
7137
|
x: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
7064
7138
|
y: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
@@ -7090,9 +7164,9 @@ declare class TraceHint extends PrimitiveComponent<typeof traceHintProps> {
|
|
|
7090
7164
|
offsets?: {
|
|
7091
7165
|
x: number;
|
|
7092
7166
|
y: number;
|
|
7093
|
-
trace_width?: number | undefined;
|
|
7094
7167
|
via?: boolean | undefined;
|
|
7095
7168
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
7169
|
+
trace_width?: number | undefined;
|
|
7096
7170
|
}[] | {
|
|
7097
7171
|
x: number;
|
|
7098
7172
|
y: number;
|
|
@@ -7104,9 +7178,9 @@ declare class TraceHint extends PrimitiveComponent<typeof traceHintProps> {
|
|
|
7104
7178
|
offset?: {
|
|
7105
7179
|
x: number;
|
|
7106
7180
|
y: number;
|
|
7107
|
-
trace_width?: number | undefined;
|
|
7108
7181
|
via?: boolean | undefined;
|
|
7109
7182
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
7183
|
+
trace_width?: number | undefined;
|
|
7110
7184
|
} | {
|
|
7111
7185
|
x: number;
|
|
7112
7186
|
y: number;
|
|
@@ -7118,11 +7192,11 @@ declare class TraceHint extends PrimitiveComponent<typeof traceHintProps> {
|
|
|
7118
7192
|
offsets?: {
|
|
7119
7193
|
x: string | number;
|
|
7120
7194
|
y: string | number;
|
|
7121
|
-
trace_width?: string | number | undefined;
|
|
7122
7195
|
via?: boolean | undefined;
|
|
7123
7196
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
7124
7197
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
7125
7198
|
} | undefined;
|
|
7199
|
+
trace_width?: string | number | undefined;
|
|
7126
7200
|
}[] | {
|
|
7127
7201
|
x: string | number;
|
|
7128
7202
|
y: string | number;
|
|
@@ -7136,11 +7210,11 @@ declare class TraceHint extends PrimitiveComponent<typeof traceHintProps> {
|
|
|
7136
7210
|
offset?: {
|
|
7137
7211
|
x: string | number;
|
|
7138
7212
|
y: string | number;
|
|
7139
|
-
trace_width?: string | number | undefined;
|
|
7140
7213
|
via?: boolean | undefined;
|
|
7141
7214
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
7142
7215
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
7143
7216
|
} | undefined;
|
|
7217
|
+
trace_width?: string | number | undefined;
|
|
7144
7218
|
} | {
|
|
7145
7219
|
x: string | number;
|
|
7146
7220
|
y: string | number;
|
|
@@ -8075,6 +8149,106 @@ declare class PinHeader extends NormalComponent<typeof pinHeaderProps> {
|
|
|
8075
8149
|
platedDiameter: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
8076
8150
|
pinLabels: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
8077
8151
|
facingDirection: zod.ZodOptional<zod.ZodEnum<["left", "right"]>>;
|
|
8152
|
+
schPinArrangement: zod.ZodOptional<zod.ZodObject<{
|
|
8153
|
+
leftSize: zod.ZodOptional<zod.ZodNumber>;
|
|
8154
|
+
topSize: zod.ZodOptional<zod.ZodNumber>;
|
|
8155
|
+
rightSize: zod.ZodOptional<zod.ZodNumber>;
|
|
8156
|
+
bottomSize: zod.ZodOptional<zod.ZodNumber>;
|
|
8157
|
+
leftPinCount: zod.ZodOptional<zod.ZodNumber>;
|
|
8158
|
+
rightPinCount: zod.ZodOptional<zod.ZodNumber>;
|
|
8159
|
+
topPinCount: zod.ZodOptional<zod.ZodNumber>;
|
|
8160
|
+
bottomPinCount: zod.ZodOptional<zod.ZodNumber>;
|
|
8161
|
+
leftSide: zod.ZodOptional<zod.ZodObject<{
|
|
8162
|
+
pins: zod.ZodArray<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>, "many">;
|
|
8163
|
+
direction: zod.ZodUnion<[zod.ZodLiteral<"top-to-bottom">, zod.ZodLiteral<"left-to-right">, zod.ZodLiteral<"bottom-to-top">, zod.ZodLiteral<"right-to-left">]>;
|
|
8164
|
+
}, "strip", zod.ZodTypeAny, {
|
|
8165
|
+
pins: (string | number)[];
|
|
8166
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
8167
|
+
}, {
|
|
8168
|
+
pins: (string | number)[];
|
|
8169
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
8170
|
+
}>>;
|
|
8171
|
+
rightSide: zod.ZodOptional<zod.ZodObject<{
|
|
8172
|
+
pins: zod.ZodArray<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>, "many">;
|
|
8173
|
+
direction: zod.ZodUnion<[zod.ZodLiteral<"top-to-bottom">, zod.ZodLiteral<"left-to-right">, zod.ZodLiteral<"bottom-to-top">, zod.ZodLiteral<"right-to-left">]>;
|
|
8174
|
+
}, "strip", zod.ZodTypeAny, {
|
|
8175
|
+
pins: (string | number)[];
|
|
8176
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
8177
|
+
}, {
|
|
8178
|
+
pins: (string | number)[];
|
|
8179
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
8180
|
+
}>>;
|
|
8181
|
+
topSide: zod.ZodOptional<zod.ZodObject<{
|
|
8182
|
+
pins: zod.ZodArray<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>, "many">;
|
|
8183
|
+
direction: zod.ZodUnion<[zod.ZodLiteral<"top-to-bottom">, zod.ZodLiteral<"left-to-right">, zod.ZodLiteral<"bottom-to-top">, zod.ZodLiteral<"right-to-left">]>;
|
|
8184
|
+
}, "strip", zod.ZodTypeAny, {
|
|
8185
|
+
pins: (string | number)[];
|
|
8186
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
8187
|
+
}, {
|
|
8188
|
+
pins: (string | number)[];
|
|
8189
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
8190
|
+
}>>;
|
|
8191
|
+
bottomSide: zod.ZodOptional<zod.ZodObject<{
|
|
8192
|
+
pins: zod.ZodArray<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>, "many">;
|
|
8193
|
+
direction: zod.ZodUnion<[zod.ZodLiteral<"top-to-bottom">, zod.ZodLiteral<"left-to-right">, zod.ZodLiteral<"bottom-to-top">, zod.ZodLiteral<"right-to-left">]>;
|
|
8194
|
+
}, "strip", zod.ZodTypeAny, {
|
|
8195
|
+
pins: (string | number)[];
|
|
8196
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
8197
|
+
}, {
|
|
8198
|
+
pins: (string | number)[];
|
|
8199
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
8200
|
+
}>>;
|
|
8201
|
+
}, "strip", zod.ZodTypeAny, {
|
|
8202
|
+
leftSize?: number | undefined;
|
|
8203
|
+
topSize?: number | undefined;
|
|
8204
|
+
rightSize?: number | undefined;
|
|
8205
|
+
bottomSize?: number | undefined;
|
|
8206
|
+
leftSide?: {
|
|
8207
|
+
pins: (string | number)[];
|
|
8208
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
8209
|
+
} | undefined;
|
|
8210
|
+
topSide?: {
|
|
8211
|
+
pins: (string | number)[];
|
|
8212
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
8213
|
+
} | undefined;
|
|
8214
|
+
rightSide?: {
|
|
8215
|
+
pins: (string | number)[];
|
|
8216
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
8217
|
+
} | undefined;
|
|
8218
|
+
bottomSide?: {
|
|
8219
|
+
pins: (string | number)[];
|
|
8220
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
8221
|
+
} | undefined;
|
|
8222
|
+
leftPinCount?: number | undefined;
|
|
8223
|
+
rightPinCount?: number | undefined;
|
|
8224
|
+
topPinCount?: number | undefined;
|
|
8225
|
+
bottomPinCount?: number | undefined;
|
|
8226
|
+
}, {
|
|
8227
|
+
leftSize?: number | undefined;
|
|
8228
|
+
topSize?: number | undefined;
|
|
8229
|
+
rightSize?: number | undefined;
|
|
8230
|
+
bottomSize?: number | undefined;
|
|
8231
|
+
leftSide?: {
|
|
8232
|
+
pins: (string | number)[];
|
|
8233
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
8234
|
+
} | undefined;
|
|
8235
|
+
topSide?: {
|
|
8236
|
+
pins: (string | number)[];
|
|
8237
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
8238
|
+
} | undefined;
|
|
8239
|
+
rightSide?: {
|
|
8240
|
+
pins: (string | number)[];
|
|
8241
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
8242
|
+
} | undefined;
|
|
8243
|
+
bottomSide?: {
|
|
8244
|
+
pins: (string | number)[];
|
|
8245
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
8246
|
+
} | undefined;
|
|
8247
|
+
leftPinCount?: number | undefined;
|
|
8248
|
+
rightPinCount?: number | undefined;
|
|
8249
|
+
topPinCount?: number | undefined;
|
|
8250
|
+
bottomPinCount?: number | undefined;
|
|
8251
|
+
}>>;
|
|
8078
8252
|
}, "strip", zod.ZodTypeAny, {
|
|
8079
8253
|
name: string;
|
|
8080
8254
|
pinCount: number;
|
|
@@ -8145,6 +8319,32 @@ declare class PinHeader extends NormalComponent<typeof pinHeaderProps> {
|
|
|
8145
8319
|
children?: any;
|
|
8146
8320
|
symbolName?: string | undefined;
|
|
8147
8321
|
pinLabels?: string[] | undefined;
|
|
8322
|
+
schPinArrangement?: {
|
|
8323
|
+
leftSize?: number | undefined;
|
|
8324
|
+
topSize?: number | undefined;
|
|
8325
|
+
rightSize?: number | undefined;
|
|
8326
|
+
bottomSize?: number | undefined;
|
|
8327
|
+
leftSide?: {
|
|
8328
|
+
pins: (string | number)[];
|
|
8329
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
8330
|
+
} | undefined;
|
|
8331
|
+
topSide?: {
|
|
8332
|
+
pins: (string | number)[];
|
|
8333
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
8334
|
+
} | undefined;
|
|
8335
|
+
rightSide?: {
|
|
8336
|
+
pins: (string | number)[];
|
|
8337
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
8338
|
+
} | undefined;
|
|
8339
|
+
bottomSide?: {
|
|
8340
|
+
pins: (string | number)[];
|
|
8341
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
8342
|
+
} | undefined;
|
|
8343
|
+
leftPinCount?: number | undefined;
|
|
8344
|
+
rightPinCount?: number | undefined;
|
|
8345
|
+
topPinCount?: number | undefined;
|
|
8346
|
+
bottomPinCount?: number | undefined;
|
|
8347
|
+
} | undefined;
|
|
8148
8348
|
holeDiameter?: number | undefined;
|
|
8149
8349
|
pitch?: number | undefined;
|
|
8150
8350
|
schFacingDirection?: "up" | "down" | "left" | "right" | undefined;
|
|
@@ -8223,6 +8423,32 @@ declare class PinHeader extends NormalComponent<typeof pinHeaderProps> {
|
|
|
8223
8423
|
children?: any;
|
|
8224
8424
|
symbolName?: string | undefined;
|
|
8225
8425
|
pinLabels?: string[] | undefined;
|
|
8426
|
+
schPinArrangement?: {
|
|
8427
|
+
leftSize?: number | undefined;
|
|
8428
|
+
topSize?: number | undefined;
|
|
8429
|
+
rightSize?: number | undefined;
|
|
8430
|
+
bottomSize?: number | undefined;
|
|
8431
|
+
leftSide?: {
|
|
8432
|
+
pins: (string | number)[];
|
|
8433
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
8434
|
+
} | undefined;
|
|
8435
|
+
topSide?: {
|
|
8436
|
+
pins: (string | number)[];
|
|
8437
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
8438
|
+
} | undefined;
|
|
8439
|
+
rightSide?: {
|
|
8440
|
+
pins: (string | number)[];
|
|
8441
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
8442
|
+
} | undefined;
|
|
8443
|
+
bottomSide?: {
|
|
8444
|
+
pins: (string | number)[];
|
|
8445
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
8446
|
+
} | undefined;
|
|
8447
|
+
leftPinCount?: number | undefined;
|
|
8448
|
+
rightPinCount?: number | undefined;
|
|
8449
|
+
topPinCount?: number | undefined;
|
|
8450
|
+
bottomPinCount?: number | undefined;
|
|
8451
|
+
} | undefined;
|
|
8226
8452
|
holeDiameter?: string | number | undefined;
|
|
8227
8453
|
pitch?: string | number | undefined;
|
|
8228
8454
|
schFacingDirection?: "up" | "down" | "left" | "right" | undefined;
|
|
@@ -8502,7 +8728,7 @@ declare class Resonator extends NormalComponent<typeof resonatorProps> {
|
|
|
8502
8728
|
symbolName: zod.ZodOptional<zod.ZodString>;
|
|
8503
8729
|
} & {
|
|
8504
8730
|
frequency: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
8505
|
-
loadCapacitance: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
8731
|
+
loadCapacitance: zod.ZodEffects<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>, number, string | number>;
|
|
8506
8732
|
pinVariant: zod.ZodOptional<zod.ZodEnum<["no_ground", "ground_pin", "two_ground_pins"]>>;
|
|
8507
8733
|
}, "strip", zod.ZodTypeAny, {
|
|
8508
8734
|
name: string;
|
|
@@ -10532,7 +10758,7 @@ declare class Crystal extends NormalComponent<typeof crystalProps, PolarizedPass
|
|
|
10532
10758
|
symbolName: zod.ZodOptional<zod.ZodString>;
|
|
10533
10759
|
} & {
|
|
10534
10760
|
frequency: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
10535
|
-
loadCapacitance: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
10761
|
+
loadCapacitance: zod.ZodEffects<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>, number, string | number>;
|
|
10536
10762
|
pinVariant: zod.ZodOptional<zod.ZodEnum<["two_pin", "four_pin"]>>;
|
|
10537
10763
|
}, "strip", zod.ZodTypeAny, {
|
|
10538
10764
|
name: string;
|
|
@@ -12127,6 +12353,7 @@ declare const useLed: <PropsFromHook extends Omit<{
|
|
|
12127
12353
|
children?: any;
|
|
12128
12354
|
symbolName?: string | undefined;
|
|
12129
12355
|
color?: string | undefined;
|
|
12356
|
+
wavelength?: string | undefined;
|
|
12130
12357
|
}, "name"> | undefined = undefined>(name: string, props?: PropsFromHook | undefined) => ComponentWithPins<{
|
|
12131
12358
|
name: string;
|
|
12132
12359
|
pcbX?: string | number | undefined;
|
|
@@ -12197,6 +12424,7 @@ declare const useLed: <PropsFromHook extends Omit<{
|
|
|
12197
12424
|
children?: any;
|
|
12198
12425
|
symbolName?: string | undefined;
|
|
12199
12426
|
color?: string | undefined;
|
|
12427
|
+
wavelength?: string | undefined;
|
|
12200
12428
|
}, "left" | "right" | "pin1" | "pin2" | "anode" | "cathode" | "pos" | "neg", PropsFromHook>;
|
|
12201
12429
|
|
|
12202
12430
|
declare const useResistor: <PropsFromHook extends Omit<ResistorProps, "name"> | undefined = undefined>(name: string, props?: PropsFromHook | undefined) => ComponentWithPins<ResistorProps, "left" | "right" | "pin1" | "pin2", PropsFromHook>;
|
package/dist/index.js
CHANGED
|
@@ -8156,9 +8156,20 @@ var PinHeader = class extends NormalComponent {
|
|
|
8156
8156
|
_getSchematicPortArrangement() {
|
|
8157
8157
|
const pinCount = this._parsedProps.pinCount ?? 1;
|
|
8158
8158
|
const facingDirection = this._parsedProps.facingDirection ?? "right";
|
|
8159
|
+
const schPinArrangement = this._parsedProps.schPinArrangement;
|
|
8160
|
+
if (facingDirection === "left") {
|
|
8161
|
+
return {
|
|
8162
|
+
leftSide: {
|
|
8163
|
+
direction: schPinArrangement?.leftSide?.direction ?? "top-to-bottom",
|
|
8164
|
+
pins: schPinArrangement?.leftSide?.pins ?? Array.from({ length: pinCount }, (_, i) => `pin${i + 1}`)
|
|
8165
|
+
}
|
|
8166
|
+
};
|
|
8167
|
+
}
|
|
8159
8168
|
return {
|
|
8160
|
-
|
|
8161
|
-
|
|
8169
|
+
rightSide: {
|
|
8170
|
+
direction: schPinArrangement?.rightSide?.direction ?? "top-to-bottom",
|
|
8171
|
+
pins: schPinArrangement?.rightSide?.pins ?? Array.from({ length: pinCount }, (_, i) => `pin${i + 1}`)
|
|
8172
|
+
}
|
|
8162
8173
|
};
|
|
8163
8174
|
}
|
|
8164
8175
|
doInitialSourceRender() {
|
|
@@ -8519,7 +8530,7 @@ import { identity as identity4 } from "transformation-matrix";
|
|
|
8519
8530
|
var package_default = {
|
|
8520
8531
|
name: "@tscircuit/core",
|
|
8521
8532
|
type: "module",
|
|
8522
|
-
version: "0.0.
|
|
8533
|
+
version: "0.0.424",
|
|
8523
8534
|
types: "dist/index.d.ts",
|
|
8524
8535
|
main: "dist/index.js",
|
|
8525
8536
|
module: "dist/index.js",
|
|
@@ -8551,7 +8562,7 @@ var package_default = {
|
|
|
8551
8562
|
"@tscircuit/layout": "^0.0.28",
|
|
8552
8563
|
"@tscircuit/log-soup": "^1.0.2",
|
|
8553
8564
|
"@tscircuit/math-utils": "^0.0.18",
|
|
8554
|
-
"@tscircuit/props": "^0.0.
|
|
8565
|
+
"@tscircuit/props": "^0.0.190",
|
|
8555
8566
|
"@tscircuit/schematic-autolayout": "^0.0.6",
|
|
8556
8567
|
"@types/bun": "latest",
|
|
8557
8568
|
"@types/debug": "^4.1.12",
|
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.425",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@tscircuit/layout": "^0.0.28",
|
|
34
34
|
"@tscircuit/log-soup": "^1.0.2",
|
|
35
35
|
"@tscircuit/math-utils": "^0.0.18",
|
|
36
|
-
"@tscircuit/props": "^0.0.
|
|
36
|
+
"@tscircuit/props": "^0.0.190",
|
|
37
37
|
"@tscircuit/schematic-autolayout": "^0.0.6",
|
|
38
38
|
"@types/bun": "latest",
|
|
39
39
|
"@types/debug": "^4.1.12",
|