@tscircuit/core 0.0.517 → 0.0.519
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 +89 -2
- package/dist/index.js +17 -7
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1360,6 +1360,7 @@ declare class Board extends Group<typeof boardProps> {
|
|
|
1360
1360
|
matchAdaptTemplate: zod.ZodOptional<zod.ZodAny>;
|
|
1361
1361
|
name: zod.ZodOptional<zod.ZodString>;
|
|
1362
1362
|
children: zod.ZodOptional<zod.ZodAny>;
|
|
1363
|
+
schTitle: zod.ZodOptional<zod.ZodString>;
|
|
1363
1364
|
key: zod.ZodOptional<zod.ZodAny>;
|
|
1364
1365
|
layout: zod.ZodOptional<zod.ZodType<_tscircuit_layout.LayoutBuilder, zod.ZodTypeDef, _tscircuit_layout.LayoutBuilder>>;
|
|
1365
1366
|
manualEdits: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -1619,6 +1620,7 @@ declare class Board extends Group<typeof boardProps> {
|
|
|
1619
1620
|
height?: number | undefined;
|
|
1620
1621
|
matchAdapt?: boolean | undefined;
|
|
1621
1622
|
matchAdaptTemplate?: any;
|
|
1623
|
+
schTitle?: string | undefined;
|
|
1622
1624
|
pcbWidth?: number | undefined;
|
|
1623
1625
|
pcbHeight?: number | undefined;
|
|
1624
1626
|
schWidth?: number | undefined;
|
|
@@ -1789,6 +1791,7 @@ declare class Board extends Group<typeof boardProps> {
|
|
|
1789
1791
|
height?: string | number | undefined;
|
|
1790
1792
|
matchAdapt?: boolean | undefined;
|
|
1791
1793
|
matchAdaptTemplate?: any;
|
|
1794
|
+
schTitle?: string | undefined;
|
|
1792
1795
|
pcbWidth?: string | number | undefined;
|
|
1793
1796
|
pcbHeight?: string | number | undefined;
|
|
1794
1797
|
schWidth?: string | number | undefined;
|
|
@@ -2208,6 +2211,7 @@ declare class Capacitor extends NormalComponent<typeof capacitorProps, Polarized
|
|
|
2208
2211
|
bypassFor: zod.ZodOptional<zod.ZodString>;
|
|
2209
2212
|
bypassTo: zod.ZodOptional<zod.ZodString>;
|
|
2210
2213
|
maxDecouplingTraceLength: zod.ZodOptional<zod.ZodNumber>;
|
|
2214
|
+
schOrientation: zod.ZodOptional<zod.ZodEnum<["vertical", "horizontal", "pos_top", "pos_bottom", "pos_left", "pos_right", "neg_top", "neg_bottom", "neg_left", "neg_right"]>>;
|
|
2211
2215
|
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">]>>>;
|
|
2212
2216
|
}, "strip", zod.ZodTypeAny, {
|
|
2213
2217
|
name: string;
|
|
@@ -2281,6 +2285,7 @@ declare class Capacitor extends NormalComponent<typeof capacitorProps, Polarized
|
|
|
2281
2285
|
symbolName?: string | undefined;
|
|
2282
2286
|
doNotPlace?: boolean | undefined;
|
|
2283
2287
|
connections?: Partial<Record<"pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
|
|
2288
|
+
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
2284
2289
|
maxVoltageRating?: number | undefined;
|
|
2285
2290
|
decouplingFor?: string | undefined;
|
|
2286
2291
|
decouplingTo?: string | undefined;
|
|
@@ -2360,6 +2365,7 @@ declare class Capacitor extends NormalComponent<typeof capacitorProps, Polarized
|
|
|
2360
2365
|
doNotPlace?: boolean | undefined;
|
|
2361
2366
|
connections?: Partial<Record<"pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
|
|
2362
2367
|
schShowRatings?: boolean | undefined;
|
|
2368
|
+
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
2363
2369
|
maxVoltageRating?: string | number | undefined;
|
|
2364
2370
|
polarized?: boolean | undefined;
|
|
2365
2371
|
decouplingFor?: string | undefined;
|
|
@@ -3454,6 +3460,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
|
|
|
3454
3460
|
zener: zod.ZodOptional<zod.ZodBoolean>;
|
|
3455
3461
|
photo: zod.ZodOptional<zod.ZodBoolean>;
|
|
3456
3462
|
tvs: zod.ZodOptional<zod.ZodBoolean>;
|
|
3463
|
+
schOrientation: zod.ZodOptional<zod.ZodEnum<["vertical", "horizontal", "pos_top", "pos_bottom", "pos_left", "pos_right", "neg_top", "neg_bottom", "neg_left", "neg_right"]>>;
|
|
3457
3464
|
}, "strip", zod.ZodTypeAny, {
|
|
3458
3465
|
name: string;
|
|
3459
3466
|
variant: "standard" | "schottky" | "zener" | "photo" | "tvs";
|
|
@@ -3525,6 +3532,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
|
|
|
3525
3532
|
doNotPlace?: boolean | undefined;
|
|
3526
3533
|
connections?: Partial<Record<"pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
|
|
3527
3534
|
standard?: boolean | undefined;
|
|
3535
|
+
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
3528
3536
|
schottky?: boolean | undefined;
|
|
3529
3537
|
zener?: boolean | undefined;
|
|
3530
3538
|
photo?: boolean | undefined;
|
|
@@ -3601,6 +3609,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
|
|
|
3601
3609
|
doNotPlace?: boolean | undefined;
|
|
3602
3610
|
connections?: Partial<Record<"pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
|
|
3603
3611
|
standard?: boolean | undefined;
|
|
3612
|
+
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
3604
3613
|
schottky?: boolean | undefined;
|
|
3605
3614
|
zener?: boolean | undefined;
|
|
3606
3615
|
photo?: boolean | undefined;
|
|
@@ -3677,6 +3686,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
|
|
|
3677
3686
|
doNotPlace?: boolean | undefined;
|
|
3678
3687
|
connections?: Partial<Record<"pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
|
|
3679
3688
|
standard?: boolean | undefined;
|
|
3689
|
+
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
3680
3690
|
schottky?: boolean | undefined;
|
|
3681
3691
|
zener?: boolean | undefined;
|
|
3682
3692
|
photo?: boolean | undefined;
|
|
@@ -3753,6 +3763,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
|
|
|
3753
3763
|
doNotPlace?: boolean | undefined;
|
|
3754
3764
|
connections?: Partial<Record<"pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
|
|
3755
3765
|
standard?: boolean | undefined;
|
|
3766
|
+
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
3756
3767
|
schottky?: boolean | undefined;
|
|
3757
3768
|
zener?: boolean | undefined;
|
|
3758
3769
|
photo?: boolean | undefined;
|
|
@@ -3833,6 +3844,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
|
|
|
3833
3844
|
symbolName?: string | undefined;
|
|
3834
3845
|
doNotPlace?: boolean | undefined;
|
|
3835
3846
|
connections?: Partial<Record<"pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
|
|
3847
|
+
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
3836
3848
|
}, {
|
|
3837
3849
|
name: string;
|
|
3838
3850
|
pcbX?: string | number | undefined;
|
|
@@ -3905,6 +3917,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
|
|
|
3905
3917
|
doNotPlace?: boolean | undefined;
|
|
3906
3918
|
connections?: Partial<Record<"pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
|
|
3907
3919
|
standard?: boolean | undefined;
|
|
3920
|
+
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
3908
3921
|
schottky?: boolean | undefined;
|
|
3909
3922
|
zener?: boolean | undefined;
|
|
3910
3923
|
photo?: boolean | undefined;
|
|
@@ -4186,6 +4199,7 @@ declare class Fuse extends NormalComponent<typeof fuseProps, PassivePorts> {
|
|
|
4186
4199
|
currentRating: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
|
|
4187
4200
|
voltageRating: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
|
4188
4201
|
schShowRatings: zod.ZodOptional<zod.ZodBoolean>;
|
|
4202
|
+
schOrientation: zod.ZodOptional<zod.ZodEnum<["vertical", "horizontal", "pos_top", "pos_bottom", "pos_left", "pos_right", "neg_top", "neg_bottom", "neg_left", "neg_right"]>>;
|
|
4189
4203
|
connections: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<[zod.ZodString, zod.ZodReadonly<zod.ZodArray<zod.ZodString, "many">>, zod.ZodArray<zod.ZodString, "many">]>>>;
|
|
4190
4204
|
}, "strip", zod.ZodTypeAny, {
|
|
4191
4205
|
name: string;
|
|
@@ -4259,6 +4273,7 @@ declare class Fuse extends NormalComponent<typeof fuseProps, PassivePorts> {
|
|
|
4259
4273
|
connections?: Record<string, string | readonly string[] | string[]> | undefined;
|
|
4260
4274
|
voltageRating?: string | number | undefined;
|
|
4261
4275
|
schShowRatings?: boolean | undefined;
|
|
4276
|
+
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
4262
4277
|
}, {
|
|
4263
4278
|
name: string;
|
|
4264
4279
|
currentRating: string | number;
|
|
@@ -4333,6 +4348,7 @@ declare class Fuse extends NormalComponent<typeof fuseProps, PassivePorts> {
|
|
|
4333
4348
|
connections?: Record<string, string | readonly string[] | string[]> | undefined;
|
|
4334
4349
|
voltageRating?: string | number | undefined;
|
|
4335
4350
|
schShowRatings?: boolean | undefined;
|
|
4351
|
+
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
4336
4352
|
}>;
|
|
4337
4353
|
sourceFtype: "simple_fuse";
|
|
4338
4354
|
};
|
|
@@ -5381,6 +5397,7 @@ declare class SolderJumper<PinLabels extends string = never> extends NormalCompo
|
|
|
5381
5397
|
connections: zod.ZodOptional<zod.ZodPipeline<zod.ZodType<Partial<Record<string, string | string[] | readonly string[]>>, zod.ZodTypeDef, Partial<Record<string, string | string[] | readonly string[]>>>, zod.ZodRecord<zod.ZodString, zod.ZodUnion<[zod.ZodUnion<[zod.ZodString, zod.ZodReadonly<zod.ZodArray<zod.ZodString, "many">>]>, zod.ZodArray<zod.ZodString, "many">]>>>>;
|
|
5382
5398
|
} & {
|
|
5383
5399
|
bridgedPins: zod.ZodOptional<zod.ZodArray<zod.ZodArray<zod.ZodString, "many">, "many">>;
|
|
5400
|
+
bridged: zod.ZodOptional<zod.ZodBoolean>;
|
|
5384
5401
|
}, "strip", zod.ZodTypeAny, {
|
|
5385
5402
|
name: string;
|
|
5386
5403
|
pcbX?: number | undefined;
|
|
@@ -5495,6 +5512,7 @@ declare class SolderJumper<PinLabels extends string = never> extends NormalCompo
|
|
|
5495
5512
|
schDirection?: "left" | "right" | undefined;
|
|
5496
5513
|
pinCount?: 2 | 3 | undefined;
|
|
5497
5514
|
bridgedPins?: string[][] | undefined;
|
|
5515
|
+
bridged?: boolean | undefined;
|
|
5498
5516
|
}, {
|
|
5499
5517
|
name: string;
|
|
5500
5518
|
pcbX?: string | number | undefined;
|
|
@@ -5611,6 +5629,7 @@ declare class SolderJumper<PinLabels extends string = never> extends NormalCompo
|
|
|
5611
5629
|
schDirection?: "left" | "right" | undefined;
|
|
5612
5630
|
pinCount?: 2 | 3 | undefined;
|
|
5613
5631
|
bridgedPins?: string[][] | undefined;
|
|
5632
|
+
bridged?: boolean | undefined;
|
|
5614
5633
|
}>;
|
|
5615
5634
|
shouldRenderAsSchematicBox: boolean;
|
|
5616
5635
|
};
|
|
@@ -5885,6 +5904,8 @@ declare class Led extends NormalComponent<typeof ledProps, PolarizedPassivePorts
|
|
|
5885
5904
|
color: zod.ZodOptional<zod.ZodString>;
|
|
5886
5905
|
wavelength: zod.ZodOptional<zod.ZodString>;
|
|
5887
5906
|
schDisplayValue: zod.ZodOptional<zod.ZodString>;
|
|
5907
|
+
schOrientation: zod.ZodOptional<zod.ZodEnum<["vertical", "horizontal", "pos_top", "pos_bottom", "pos_left", "pos_right", "neg_top", "neg_bottom", "neg_left", "neg_right"]>>;
|
|
5908
|
+
connections: zod.ZodOptional<zod.ZodRecord<zod.ZodEnum<["pin1", "left", "anode", "pos", "pin2", "right", "cathode", "neg"]>, zod.ZodUnion<[zod.ZodUnion<[zod.ZodString, zod.ZodReadonly<zod.ZodArray<zod.ZodString, "many">>]>, zod.ZodArray<zod.ZodString, "many">]>>>;
|
|
5888
5909
|
}, "strip", zod.ZodTypeAny, {
|
|
5889
5910
|
name: string;
|
|
5890
5911
|
pcbX?: number | undefined;
|
|
@@ -5953,6 +5974,8 @@ declare class Led extends NormalComponent<typeof ledProps, PolarizedPassivePorts
|
|
|
5953
5974
|
children?: any;
|
|
5954
5975
|
symbolName?: string | undefined;
|
|
5955
5976
|
doNotPlace?: boolean | undefined;
|
|
5977
|
+
connections?: Partial<Record<"left" | "right" | "pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
|
|
5978
|
+
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
5956
5979
|
color?: string | undefined;
|
|
5957
5980
|
wavelength?: string | undefined;
|
|
5958
5981
|
schDisplayValue?: string | undefined;
|
|
@@ -6026,6 +6049,8 @@ declare class Led extends NormalComponent<typeof ledProps, PolarizedPassivePorts
|
|
|
6026
6049
|
children?: any;
|
|
6027
6050
|
symbolName?: string | undefined;
|
|
6028
6051
|
doNotPlace?: boolean | undefined;
|
|
6052
|
+
connections?: Partial<Record<"left" | "right" | "pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
|
|
6053
|
+
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
6029
6054
|
color?: string | undefined;
|
|
6030
6055
|
wavelength?: string | undefined;
|
|
6031
6056
|
schDisplayValue?: string | undefined;
|
|
@@ -6722,6 +6747,7 @@ declare class Resistor extends NormalComponent<typeof resistorProps, PassivePort
|
|
|
6722
6747
|
pullupTo: zod.ZodOptional<zod.ZodString>;
|
|
6723
6748
|
pulldownFor: zod.ZodOptional<zod.ZodString>;
|
|
6724
6749
|
pulldownTo: zod.ZodOptional<zod.ZodString>;
|
|
6750
|
+
schOrientation: zod.ZodOptional<zod.ZodEnum<["vertical", "horizontal", "pos_top", "pos_bottom", "pos_left", "pos_right", "neg_top", "neg_bottom", "neg_left", "neg_right"]>>;
|
|
6725
6751
|
connections: zod.ZodOptional<zod.ZodRecord<zod.ZodEnum<["pin1", "pin2", "pos", "neg"]>, zod.ZodUnion<[zod.ZodUnion<[zod.ZodString, zod.ZodReadonly<zod.ZodArray<zod.ZodString, "many">>]>, zod.ZodArray<zod.ZodString, "many">]>>>;
|
|
6726
6752
|
}, "strip", zod.ZodTypeAny, {
|
|
6727
6753
|
name: string;
|
|
@@ -6793,6 +6819,7 @@ declare class Resistor extends NormalComponent<typeof resistorProps, PassivePort
|
|
|
6793
6819
|
symbolName?: string | undefined;
|
|
6794
6820
|
doNotPlace?: boolean | undefined;
|
|
6795
6821
|
connections?: Partial<Record<"pin1" | "pin2" | "pos" | "neg", string | readonly string[] | string[]>> | undefined;
|
|
6822
|
+
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
6796
6823
|
pullupFor?: string | undefined;
|
|
6797
6824
|
pullupTo?: string | undefined;
|
|
6798
6825
|
pulldownFor?: string | undefined;
|
|
@@ -6869,6 +6896,7 @@ declare class Resistor extends NormalComponent<typeof resistorProps, PassivePort
|
|
|
6869
6896
|
symbolName?: string | undefined;
|
|
6870
6897
|
doNotPlace?: boolean | undefined;
|
|
6871
6898
|
connections?: Partial<Record<"pin1" | "pin2" | "pos" | "neg", string | readonly string[] | string[]>> | undefined;
|
|
6899
|
+
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
6872
6900
|
pullupFor?: string | undefined;
|
|
6873
6901
|
pullupTo?: string | undefined;
|
|
6874
6902
|
pulldownFor?: string | undefined;
|
|
@@ -7365,18 +7393,18 @@ declare class NetLabel extends PrimitiveComponent<typeof netLabelProps> {
|
|
|
7365
7393
|
schX?: number | undefined;
|
|
7366
7394
|
schY?: number | undefined;
|
|
7367
7395
|
schRotation?: number | undefined;
|
|
7396
|
+
connectsTo?: string | string[] | undefined;
|
|
7368
7397
|
net?: string | undefined;
|
|
7369
7398
|
connection?: string | undefined;
|
|
7370
7399
|
anchorSide?: "left" | "right" | "top" | "bottom" | undefined;
|
|
7371
|
-
connectsTo?: string | string[] | undefined;
|
|
7372
7400
|
}, {
|
|
7373
7401
|
schX?: string | number | undefined;
|
|
7374
7402
|
schY?: string | number | undefined;
|
|
7375
7403
|
schRotation?: string | number | undefined;
|
|
7404
|
+
connectsTo?: string | string[] | undefined;
|
|
7376
7405
|
net?: string | undefined;
|
|
7377
7406
|
connection?: string | undefined;
|
|
7378
7407
|
anchorSide?: "left" | "right" | "top" | "bottom" | undefined;
|
|
7379
|
-
connectsTo?: string | string[] | undefined;
|
|
7380
7408
|
}>;
|
|
7381
7409
|
};
|
|
7382
7410
|
doInitialSchematicComponentRender(): void;
|
|
@@ -7407,6 +7435,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7407
7435
|
}>>;
|
|
7408
7436
|
}, "pcbRotation" | "layer"> & {
|
|
7409
7437
|
name: zod.ZodOptional<zod.ZodString>;
|
|
7438
|
+
connectsTo: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodArray<zod.ZodString, "many">]>>;
|
|
7410
7439
|
shape: zod.ZodLiteral<"circle">;
|
|
7411
7440
|
holeDiameter: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
7412
7441
|
outerDiameter: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
@@ -7418,6 +7447,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7418
7447
|
pcbX?: number | undefined;
|
|
7419
7448
|
pcbY?: number | undefined;
|
|
7420
7449
|
name?: string | undefined;
|
|
7450
|
+
connectsTo?: string | string[] | undefined;
|
|
7421
7451
|
portHints?: (string | number)[] | undefined;
|
|
7422
7452
|
}, {
|
|
7423
7453
|
shape: "circle";
|
|
@@ -7426,6 +7456,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7426
7456
|
pcbX?: string | number | undefined;
|
|
7427
7457
|
pcbY?: string | number | undefined;
|
|
7428
7458
|
name?: string | undefined;
|
|
7459
|
+
connectsTo?: string | string[] | undefined;
|
|
7429
7460
|
portHints?: (string | number)[] | undefined;
|
|
7430
7461
|
}>, zod.ZodObject<Omit<{
|
|
7431
7462
|
pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
@@ -7442,6 +7473,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7442
7473
|
}>>;
|
|
7443
7474
|
}, "pcbRotation" | "layer"> & {
|
|
7444
7475
|
name: zod.ZodOptional<zod.ZodString>;
|
|
7476
|
+
connectsTo: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodArray<zod.ZodString, "many">]>>;
|
|
7445
7477
|
shape: zod.ZodLiteral<"oval">;
|
|
7446
7478
|
outerWidth: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
7447
7479
|
outerHeight: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
@@ -7457,6 +7489,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7457
7489
|
pcbX?: number | undefined;
|
|
7458
7490
|
pcbY?: number | undefined;
|
|
7459
7491
|
name?: string | undefined;
|
|
7492
|
+
connectsTo?: string | string[] | undefined;
|
|
7460
7493
|
portHints?: (string | number)[] | undefined;
|
|
7461
7494
|
holeWidth?: number | undefined;
|
|
7462
7495
|
holeHeight?: number | undefined;
|
|
@@ -7471,6 +7504,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7471
7504
|
pcbX?: string | number | undefined;
|
|
7472
7505
|
pcbY?: string | number | undefined;
|
|
7473
7506
|
name?: string | undefined;
|
|
7507
|
+
connectsTo?: string | string[] | undefined;
|
|
7474
7508
|
portHints?: (string | number)[] | undefined;
|
|
7475
7509
|
innerWidth?: string | number | undefined;
|
|
7476
7510
|
innerHeight?: string | number | undefined;
|
|
@@ -7489,6 +7523,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7489
7523
|
}>>;
|
|
7490
7524
|
}, "pcbRotation" | "layer"> & {
|
|
7491
7525
|
name: zod.ZodOptional<zod.ZodString>;
|
|
7526
|
+
connectsTo: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodArray<zod.ZodString, "many">]>>;
|
|
7492
7527
|
shape: zod.ZodLiteral<"pill">;
|
|
7493
7528
|
outerWidth: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
7494
7529
|
outerHeight: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
@@ -7504,6 +7539,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7504
7539
|
pcbX?: number | undefined;
|
|
7505
7540
|
pcbY?: number | undefined;
|
|
7506
7541
|
name?: string | undefined;
|
|
7542
|
+
connectsTo?: string | string[] | undefined;
|
|
7507
7543
|
portHints?: (string | number)[] | undefined;
|
|
7508
7544
|
holeWidth?: number | undefined;
|
|
7509
7545
|
holeHeight?: number | undefined;
|
|
@@ -7518,6 +7554,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7518
7554
|
pcbX?: string | number | undefined;
|
|
7519
7555
|
pcbY?: string | number | undefined;
|
|
7520
7556
|
name?: string | undefined;
|
|
7557
|
+
connectsTo?: string | string[] | undefined;
|
|
7521
7558
|
portHints?: (string | number)[] | undefined;
|
|
7522
7559
|
innerWidth?: string | number | undefined;
|
|
7523
7560
|
innerHeight?: string | number | undefined;
|
|
@@ -7536,6 +7573,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7536
7573
|
}>>;
|
|
7537
7574
|
}, "pcbRotation" | "layer"> & {
|
|
7538
7575
|
name: zod.ZodOptional<zod.ZodString>;
|
|
7576
|
+
connectsTo: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodArray<zod.ZodString, "many">]>>;
|
|
7539
7577
|
shape: zod.ZodLiteral<"circular_hole_with_rect_pad">;
|
|
7540
7578
|
holeDiameter: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
7541
7579
|
rectPadWidth: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
@@ -7551,6 +7589,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7551
7589
|
pcbX?: number | undefined;
|
|
7552
7590
|
pcbY?: number | undefined;
|
|
7553
7591
|
name?: string | undefined;
|
|
7592
|
+
connectsTo?: string | string[] | undefined;
|
|
7554
7593
|
portHints?: (string | number)[] | undefined;
|
|
7555
7594
|
holeShape?: "circle" | undefined;
|
|
7556
7595
|
padShape?: "rect" | undefined;
|
|
@@ -7562,6 +7601,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7562
7601
|
pcbX?: string | number | undefined;
|
|
7563
7602
|
pcbY?: string | number | undefined;
|
|
7564
7603
|
name?: string | undefined;
|
|
7604
|
+
connectsTo?: string | string[] | undefined;
|
|
7565
7605
|
portHints?: (string | number)[] | undefined;
|
|
7566
7606
|
holeShape?: "circle" | undefined;
|
|
7567
7607
|
padShape?: "rect" | undefined;
|
|
@@ -7580,6 +7620,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7580
7620
|
}>>;
|
|
7581
7621
|
}, "pcbRotation" | "layer"> & {
|
|
7582
7622
|
name: zod.ZodOptional<zod.ZodString>;
|
|
7623
|
+
connectsTo: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodArray<zod.ZodString, "many">]>>;
|
|
7583
7624
|
shape: zod.ZodLiteral<"pill_hole_with_rect_pad">;
|
|
7584
7625
|
holeShape: zod.ZodLiteral<"pill">;
|
|
7585
7626
|
padShape: zod.ZodLiteral<"rect">;
|
|
@@ -7599,6 +7640,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7599
7640
|
pcbX?: number | undefined;
|
|
7600
7641
|
pcbY?: number | undefined;
|
|
7601
7642
|
name?: string | undefined;
|
|
7643
|
+
connectsTo?: string | string[] | undefined;
|
|
7602
7644
|
portHints?: (string | number)[] | undefined;
|
|
7603
7645
|
}, {
|
|
7604
7646
|
shape: "pill_hole_with_rect_pad";
|
|
@@ -7611,6 +7653,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7611
7653
|
pcbX?: string | number | undefined;
|
|
7612
7654
|
pcbY?: string | number | undefined;
|
|
7613
7655
|
name?: string | undefined;
|
|
7656
|
+
connectsTo?: string | string[] | undefined;
|
|
7614
7657
|
portHints?: (string | number)[] | undefined;
|
|
7615
7658
|
}>]>, {
|
|
7616
7659
|
shape: "circle";
|
|
@@ -7619,6 +7662,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7619
7662
|
pcbX?: number | undefined;
|
|
7620
7663
|
pcbY?: number | undefined;
|
|
7621
7664
|
name?: string | undefined;
|
|
7665
|
+
connectsTo?: string | string[] | undefined;
|
|
7622
7666
|
portHints?: (string | number)[] | undefined;
|
|
7623
7667
|
} | {
|
|
7624
7668
|
shape: "oval";
|
|
@@ -7627,6 +7671,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7627
7671
|
pcbX?: number | undefined;
|
|
7628
7672
|
pcbY?: number | undefined;
|
|
7629
7673
|
name?: string | undefined;
|
|
7674
|
+
connectsTo?: string | string[] | undefined;
|
|
7630
7675
|
portHints?: (string | number)[] | undefined;
|
|
7631
7676
|
holeWidth?: number | undefined;
|
|
7632
7677
|
holeHeight?: number | undefined;
|
|
@@ -7639,6 +7684,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7639
7684
|
pcbX?: number | undefined;
|
|
7640
7685
|
pcbY?: number | undefined;
|
|
7641
7686
|
name?: string | undefined;
|
|
7687
|
+
connectsTo?: string | string[] | undefined;
|
|
7642
7688
|
portHints?: (string | number)[] | undefined;
|
|
7643
7689
|
holeWidth?: number | undefined;
|
|
7644
7690
|
holeHeight?: number | undefined;
|
|
@@ -7652,6 +7698,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7652
7698
|
pcbX?: number | undefined;
|
|
7653
7699
|
pcbY?: number | undefined;
|
|
7654
7700
|
name?: string | undefined;
|
|
7701
|
+
connectsTo?: string | string[] | undefined;
|
|
7655
7702
|
portHints?: (string | number)[] | undefined;
|
|
7656
7703
|
holeShape?: "circle" | undefined;
|
|
7657
7704
|
padShape?: "rect" | undefined;
|
|
@@ -7666,6 +7713,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7666
7713
|
pcbX?: number | undefined;
|
|
7667
7714
|
pcbY?: number | undefined;
|
|
7668
7715
|
name?: string | undefined;
|
|
7716
|
+
connectsTo?: string | string[] | undefined;
|
|
7669
7717
|
portHints?: (string | number)[] | undefined;
|
|
7670
7718
|
}, {
|
|
7671
7719
|
shape: "circle";
|
|
@@ -7674,6 +7722,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7674
7722
|
pcbX?: string | number | undefined;
|
|
7675
7723
|
pcbY?: string | number | undefined;
|
|
7676
7724
|
name?: string | undefined;
|
|
7725
|
+
connectsTo?: string | string[] | undefined;
|
|
7677
7726
|
portHints?: (string | number)[] | undefined;
|
|
7678
7727
|
} | {
|
|
7679
7728
|
shape: "oval";
|
|
@@ -7684,6 +7733,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7684
7733
|
pcbX?: string | number | undefined;
|
|
7685
7734
|
pcbY?: string | number | undefined;
|
|
7686
7735
|
name?: string | undefined;
|
|
7736
|
+
connectsTo?: string | string[] | undefined;
|
|
7687
7737
|
portHints?: (string | number)[] | undefined;
|
|
7688
7738
|
innerWidth?: string | number | undefined;
|
|
7689
7739
|
innerHeight?: string | number | undefined;
|
|
@@ -7696,6 +7746,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7696
7746
|
pcbX?: string | number | undefined;
|
|
7697
7747
|
pcbY?: string | number | undefined;
|
|
7698
7748
|
name?: string | undefined;
|
|
7749
|
+
connectsTo?: string | string[] | undefined;
|
|
7699
7750
|
portHints?: (string | number)[] | undefined;
|
|
7700
7751
|
innerWidth?: string | number | undefined;
|
|
7701
7752
|
innerHeight?: string | number | undefined;
|
|
@@ -7707,6 +7758,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7707
7758
|
pcbX?: string | number | undefined;
|
|
7708
7759
|
pcbY?: string | number | undefined;
|
|
7709
7760
|
name?: string | undefined;
|
|
7761
|
+
connectsTo?: string | string[] | undefined;
|
|
7710
7762
|
portHints?: (string | number)[] | undefined;
|
|
7711
7763
|
holeShape?: "circle" | undefined;
|
|
7712
7764
|
padShape?: "rect" | undefined;
|
|
@@ -7721,6 +7773,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7721
7773
|
pcbX?: string | number | undefined;
|
|
7722
7774
|
pcbY?: string | number | undefined;
|
|
7723
7775
|
name?: string | undefined;
|
|
7776
|
+
connectsTo?: string | string[] | undefined;
|
|
7724
7777
|
portHints?: (string | number)[] | undefined;
|
|
7725
7778
|
}>;
|
|
7726
7779
|
};
|
|
@@ -8057,6 +8110,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
8057
8110
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8058
8111
|
}>>;
|
|
8059
8112
|
}, "pcbRotation"> & {
|
|
8113
|
+
name: zod.ZodOptional<zod.ZodString>;
|
|
8060
8114
|
shape: zod.ZodLiteral<"circle">;
|
|
8061
8115
|
radius: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
8062
8116
|
portHints: zod.ZodOptional<zod.ZodArray<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, "many">>;
|
|
@@ -8066,6 +8120,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
8066
8120
|
pcbX?: number | undefined;
|
|
8067
8121
|
pcbY?: number | undefined;
|
|
8068
8122
|
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
8123
|
+
name?: string | undefined;
|
|
8069
8124
|
portHints?: (string | number)[] | undefined;
|
|
8070
8125
|
}, {
|
|
8071
8126
|
shape: "circle";
|
|
@@ -8075,6 +8130,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
8075
8130
|
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
8076
8131
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8077
8132
|
} | undefined;
|
|
8133
|
+
name?: string | undefined;
|
|
8078
8134
|
portHints?: (string | number)[] | undefined;
|
|
8079
8135
|
}>, zod.ZodObject<Omit<{
|
|
8080
8136
|
pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
@@ -8090,6 +8146,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
8090
8146
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8091
8147
|
}>>;
|
|
8092
8148
|
}, "pcbRotation"> & {
|
|
8149
|
+
name: zod.ZodOptional<zod.ZodString>;
|
|
8093
8150
|
shape: zod.ZodLiteral<"rect">;
|
|
8094
8151
|
width: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
8095
8152
|
height: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
@@ -8101,6 +8158,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
8101
8158
|
pcbX?: number | undefined;
|
|
8102
8159
|
pcbY?: number | undefined;
|
|
8103
8160
|
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
8161
|
+
name?: string | undefined;
|
|
8104
8162
|
portHints?: (string | number)[] | undefined;
|
|
8105
8163
|
}, {
|
|
8106
8164
|
shape: "rect";
|
|
@@ -8111,6 +8169,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
8111
8169
|
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
8112
8170
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8113
8171
|
} | undefined;
|
|
8172
|
+
name?: string | undefined;
|
|
8114
8173
|
portHints?: (string | number)[] | undefined;
|
|
8115
8174
|
}>, zod.ZodObject<Omit<{
|
|
8116
8175
|
pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
@@ -8126,6 +8185,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
8126
8185
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8127
8186
|
}>>;
|
|
8128
8187
|
}, "pcbRotation"> & {
|
|
8188
|
+
name: zod.ZodOptional<zod.ZodString>;
|
|
8129
8189
|
shape: zod.ZodLiteral<"rotated_rect">;
|
|
8130
8190
|
width: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
8131
8191
|
height: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
@@ -8139,6 +8199,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
8139
8199
|
pcbX?: number | undefined;
|
|
8140
8200
|
pcbY?: number | undefined;
|
|
8141
8201
|
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
8202
|
+
name?: string | undefined;
|
|
8142
8203
|
portHints?: (string | number)[] | undefined;
|
|
8143
8204
|
}, {
|
|
8144
8205
|
shape: "rotated_rect";
|
|
@@ -8150,6 +8211,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
8150
8211
|
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
8151
8212
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8152
8213
|
} | undefined;
|
|
8214
|
+
name?: string | undefined;
|
|
8153
8215
|
portHints?: (string | number)[] | undefined;
|
|
8154
8216
|
}>, zod.ZodObject<Omit<{
|
|
8155
8217
|
pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
@@ -8165,6 +8227,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
8165
8227
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8166
8228
|
}>>;
|
|
8167
8229
|
}, "pcbRotation"> & {
|
|
8230
|
+
name: zod.ZodOptional<zod.ZodString>;
|
|
8168
8231
|
shape: zod.ZodLiteral<"pill">;
|
|
8169
8232
|
width: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
8170
8233
|
height: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
@@ -8178,6 +8241,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
8178
8241
|
pcbX?: number | undefined;
|
|
8179
8242
|
pcbY?: number | undefined;
|
|
8180
8243
|
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
8244
|
+
name?: string | undefined;
|
|
8181
8245
|
portHints?: (string | number)[] | undefined;
|
|
8182
8246
|
}, {
|
|
8183
8247
|
shape: "pill";
|
|
@@ -8189,6 +8253,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
8189
8253
|
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
8190
8254
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8191
8255
|
} | undefined;
|
|
8256
|
+
name?: string | undefined;
|
|
8192
8257
|
portHints?: (string | number)[] | undefined;
|
|
8193
8258
|
}>, zod.ZodObject<Omit<{
|
|
8194
8259
|
pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
@@ -8204,6 +8269,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
8204
8269
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8205
8270
|
}>>;
|
|
8206
8271
|
}, "pcbRotation"> & {
|
|
8272
|
+
name: zod.ZodOptional<zod.ZodString>;
|
|
8207
8273
|
shape: zod.ZodLiteral<"polygon">;
|
|
8208
8274
|
points: zod.ZodArray<zod.ZodObject<{
|
|
8209
8275
|
x: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
@@ -8225,6 +8291,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
8225
8291
|
pcbX?: number | undefined;
|
|
8226
8292
|
pcbY?: number | undefined;
|
|
8227
8293
|
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
8294
|
+
name?: string | undefined;
|
|
8228
8295
|
portHints?: (string | number)[] | undefined;
|
|
8229
8296
|
}, {
|
|
8230
8297
|
shape: "polygon";
|
|
@@ -8237,6 +8304,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
8237
8304
|
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
8238
8305
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8239
8306
|
} | undefined;
|
|
8307
|
+
name?: string | undefined;
|
|
8240
8308
|
portHints?: (string | number)[] | undefined;
|
|
8241
8309
|
}>]>;
|
|
8242
8310
|
};
|
|
@@ -8695,6 +8763,7 @@ declare class Via extends PrimitiveComponent<typeof viaProps> {
|
|
|
8695
8763
|
}>>;
|
|
8696
8764
|
footprint: zod.ZodOptional<zod.ZodType<_tscircuit_props.FootprintProp, zod.ZodTypeDef, _tscircuit_props.FootprintProp>>;
|
|
8697
8765
|
} & {
|
|
8766
|
+
name: zod.ZodOptional<zod.ZodString>;
|
|
8698
8767
|
fromLayer: zod.ZodEffects<zod.ZodUnion<[zod.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, zod.ZodObject<{
|
|
8699
8768
|
name: zod.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
|
|
8700
8769
|
}, "strip", zod.ZodTypeAny, {
|
|
@@ -8715,6 +8784,7 @@ declare class Via extends PrimitiveComponent<typeof viaProps> {
|
|
|
8715
8784
|
}>;
|
|
8716
8785
|
holeDiameter: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
8717
8786
|
outerDiameter: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
8787
|
+
connectsTo: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodArray<zod.ZodString, "many">]>>;
|
|
8718
8788
|
}, "strip", zod.ZodTypeAny, {
|
|
8719
8789
|
holeDiameter: number;
|
|
8720
8790
|
outerDiameter: number;
|
|
@@ -8728,6 +8798,8 @@ declare class Via extends PrimitiveComponent<typeof viaProps> {
|
|
|
8728
8798
|
schY?: number | undefined;
|
|
8729
8799
|
schRotation?: number | undefined;
|
|
8730
8800
|
footprint?: _tscircuit_props.FootprintProp | undefined;
|
|
8801
|
+
name?: string | undefined;
|
|
8802
|
+
connectsTo?: string | string[] | undefined;
|
|
8731
8803
|
}, {
|
|
8732
8804
|
holeDiameter: string | number;
|
|
8733
8805
|
outerDiameter: string | number;
|
|
@@ -8747,6 +8819,8 @@ declare class Via extends PrimitiveComponent<typeof viaProps> {
|
|
|
8747
8819
|
schY?: string | number | undefined;
|
|
8748
8820
|
schRotation?: string | number | undefined;
|
|
8749
8821
|
footprint?: _tscircuit_props.FootprintProp | undefined;
|
|
8822
|
+
name?: string | undefined;
|
|
8823
|
+
connectsTo?: string | string[] | undefined;
|
|
8750
8824
|
}>;
|
|
8751
8825
|
};
|
|
8752
8826
|
getAvailablePcbLayers(): string[];
|
|
@@ -9175,6 +9249,7 @@ declare class Battery extends NormalComponent<typeof batteryProps, PassivePorts>
|
|
|
9175
9249
|
doNotPlace: zod.ZodOptional<zod.ZodBoolean>;
|
|
9176
9250
|
} & {
|
|
9177
9251
|
capacity: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>, number, string | number>>;
|
|
9252
|
+
schOrientation: zod.ZodOptional<zod.ZodEnum<["vertical", "horizontal", "pos_top", "pos_bottom", "pos_left", "pos_right", "neg_top", "neg_bottom", "neg_left", "neg_right"]>>;
|
|
9178
9253
|
}, "strip", zod.ZodTypeAny, {
|
|
9179
9254
|
name: string;
|
|
9180
9255
|
pcbX?: number | undefined;
|
|
@@ -9243,6 +9318,7 @@ declare class Battery extends NormalComponent<typeof batteryProps, PassivePorts>
|
|
|
9243
9318
|
children?: any;
|
|
9244
9319
|
symbolName?: string | undefined;
|
|
9245
9320
|
doNotPlace?: boolean | undefined;
|
|
9321
|
+
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
9246
9322
|
capacity?: number | undefined;
|
|
9247
9323
|
}, {
|
|
9248
9324
|
name: string;
|
|
@@ -9314,6 +9390,7 @@ declare class Battery extends NormalComponent<typeof batteryProps, PassivePorts>
|
|
|
9314
9390
|
children?: any;
|
|
9315
9391
|
symbolName?: string | undefined;
|
|
9316
9392
|
doNotPlace?: boolean | undefined;
|
|
9393
|
+
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
9317
9394
|
capacity?: string | number | undefined;
|
|
9318
9395
|
}>;
|
|
9319
9396
|
sourceFtype: Ftype;
|
|
@@ -10651,6 +10728,7 @@ declare class Inductor extends NormalComponent<typeof inductorProps, PassivePort
|
|
|
10651
10728
|
} & {
|
|
10652
10729
|
inductance: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
10653
10730
|
maxCurrentRating: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>>;
|
|
10731
|
+
schOrientation: zod.ZodOptional<zod.ZodEnum<["vertical", "horizontal", "pos_top", "pos_bottom", "pos_left", "pos_right", "neg_top", "neg_bottom", "neg_left", "neg_right"]>>;
|
|
10654
10732
|
}, "strip", zod.ZodTypeAny, {
|
|
10655
10733
|
name: string;
|
|
10656
10734
|
inductance: number;
|
|
@@ -10720,6 +10798,7 @@ declare class Inductor extends NormalComponent<typeof inductorProps, PassivePort
|
|
|
10720
10798
|
children?: any;
|
|
10721
10799
|
symbolName?: string | undefined;
|
|
10722
10800
|
doNotPlace?: boolean | undefined;
|
|
10801
|
+
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
10723
10802
|
maxCurrentRating?: string | number | undefined;
|
|
10724
10803
|
}, {
|
|
10725
10804
|
name: string;
|
|
@@ -10792,6 +10871,7 @@ declare class Inductor extends NormalComponent<typeof inductorProps, PassivePort
|
|
|
10792
10871
|
children?: any;
|
|
10793
10872
|
symbolName?: string | undefined;
|
|
10794
10873
|
doNotPlace?: boolean | undefined;
|
|
10874
|
+
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
10795
10875
|
maxCurrentRating?: string | number | undefined;
|
|
10796
10876
|
}>;
|
|
10797
10877
|
sourceFtype: "simple_inductor";
|
|
@@ -12287,6 +12367,7 @@ declare class Crystal extends NormalComponent<typeof crystalProps, PolarizedPass
|
|
|
12287
12367
|
frequency: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
12288
12368
|
loadCapacitance: zod.ZodEffects<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>, number, string | number>;
|
|
12289
12369
|
pinVariant: zod.ZodOptional<zod.ZodEnum<["two_pin", "four_pin"]>>;
|
|
12370
|
+
schOrientation: zod.ZodOptional<zod.ZodEnum<["vertical", "horizontal", "pos_top", "pos_bottom", "pos_left", "pos_right", "neg_top", "neg_bottom", "neg_left", "neg_right"]>>;
|
|
12290
12371
|
}, "strip", zod.ZodTypeAny, {
|
|
12291
12372
|
name: string;
|
|
12292
12373
|
frequency: number;
|
|
@@ -12357,6 +12438,7 @@ declare class Crystal extends NormalComponent<typeof crystalProps, PolarizedPass
|
|
|
12357
12438
|
children?: any;
|
|
12358
12439
|
symbolName?: string | undefined;
|
|
12359
12440
|
doNotPlace?: boolean | undefined;
|
|
12441
|
+
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
12360
12442
|
pinVariant?: "two_pin" | "four_pin" | undefined;
|
|
12361
12443
|
}, {
|
|
12362
12444
|
name: string;
|
|
@@ -12430,6 +12512,7 @@ declare class Crystal extends NormalComponent<typeof crystalProps, PolarizedPass
|
|
|
12430
12512
|
children?: any;
|
|
12431
12513
|
symbolName?: string | undefined;
|
|
12432
12514
|
doNotPlace?: boolean | undefined;
|
|
12515
|
+
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
12433
12516
|
pinVariant?: "two_pin" | "four_pin" | undefined;
|
|
12434
12517
|
}>;
|
|
12435
12518
|
sourceFtype: Ftype;
|
|
@@ -14597,6 +14680,8 @@ declare const useLed: <PropsFromHook extends Omit<{
|
|
|
14597
14680
|
children?: any;
|
|
14598
14681
|
symbolName?: string | undefined;
|
|
14599
14682
|
doNotPlace?: boolean | undefined;
|
|
14683
|
+
connections?: Partial<Record<"left" | "right" | "pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
|
|
14684
|
+
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
14600
14685
|
color?: string | undefined;
|
|
14601
14686
|
wavelength?: string | undefined;
|
|
14602
14687
|
schDisplayValue?: string | undefined;
|
|
@@ -14670,6 +14755,8 @@ declare const useLed: <PropsFromHook extends Omit<{
|
|
|
14670
14755
|
children?: any;
|
|
14671
14756
|
symbolName?: string | undefined;
|
|
14672
14757
|
doNotPlace?: boolean | undefined;
|
|
14758
|
+
connections?: Partial<Record<"left" | "right" | "pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
|
|
14759
|
+
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
14673
14760
|
color?: string | undefined;
|
|
14674
14761
|
wavelength?: string | undefined;
|
|
14675
14762
|
schDisplayValue?: string | undefined;
|
package/dist/index.js
CHANGED
|
@@ -8722,6 +8722,10 @@ var SolderJumper = class extends NormalComponent {
|
|
|
8722
8722
|
return port?._parsedProps.pinNumber ?? null;
|
|
8723
8723
|
}
|
|
8724
8724
|
get defaultInternallyConnectedPinNames() {
|
|
8725
|
+
if (this._parsedProps.bridged) {
|
|
8726
|
+
const pins = this.children.filter((c) => c.componentName === "Port").map((p) => p.name);
|
|
8727
|
+
return pins.length > 0 ? [pins] : [];
|
|
8728
|
+
}
|
|
8725
8729
|
return this._parsedProps.bridgedPins ?? [];
|
|
8726
8730
|
}
|
|
8727
8731
|
get config() {
|
|
@@ -8745,15 +8749,21 @@ var SolderJumper = class extends NormalComponent {
|
|
|
8745
8749
|
} else {
|
|
8746
8750
|
symbolName = "solderjumper";
|
|
8747
8751
|
}
|
|
8752
|
+
let bridgedPinNumbers = [];
|
|
8748
8753
|
if (Array.isArray(props.bridgedPins) && props.bridgedPins.length > 0) {
|
|
8749
|
-
|
|
8754
|
+
bridgedPinNumbers = Array.from(
|
|
8750
8755
|
new Set(
|
|
8751
8756
|
props.bridgedPins.flat().map((pinName) => this._getPinNumberFromBridgedPinName(pinName)).filter((n) => n !== null)
|
|
8752
8757
|
)
|
|
8753
8758
|
).sort((a, b) => a - b);
|
|
8754
|
-
|
|
8755
|
-
|
|
8756
|
-
|
|
8759
|
+
} else if (props.bridged && resolvedPinCount) {
|
|
8760
|
+
bridgedPinNumbers = Array.from(
|
|
8761
|
+
{ length: resolvedPinCount },
|
|
8762
|
+
(_, i) => i + 1
|
|
8763
|
+
);
|
|
8764
|
+
}
|
|
8765
|
+
if (bridgedPinNumbers.length > 0) {
|
|
8766
|
+
symbolName += `_bridged${bridgedPinNumbers.join("")}`;
|
|
8757
8767
|
}
|
|
8758
8768
|
return {
|
|
8759
8769
|
schematicSymbolName: symbolName,
|
|
@@ -10442,7 +10452,7 @@ import { identity as identity4 } from "transformation-matrix";
|
|
|
10442
10452
|
var package_default = {
|
|
10443
10453
|
name: "@tscircuit/core",
|
|
10444
10454
|
type: "module",
|
|
10445
|
-
version: "0.0.
|
|
10455
|
+
version: "0.0.518",
|
|
10446
10456
|
types: "dist/index.d.ts",
|
|
10447
10457
|
main: "dist/index.js",
|
|
10448
10458
|
module: "dist/index.js",
|
|
@@ -10467,14 +10477,14 @@ var package_default = {
|
|
|
10467
10477
|
"@biomejs/biome": "^1.8.3",
|
|
10468
10478
|
"@tscircuit/capacity-autorouter": "^0.0.75",
|
|
10469
10479
|
"@tscircuit/checks": "^0.0.52",
|
|
10470
|
-
"@tscircuit/footprinter": "^0.0.182",
|
|
10471
10480
|
"@tscircuit/circuit-json-util": "^0.0.49",
|
|
10481
|
+
"@tscircuit/footprinter": "^0.0.182",
|
|
10472
10482
|
"@tscircuit/import-snippet": "^0.0.4",
|
|
10473
10483
|
"@tscircuit/infgrid-ijump-astar": "^0.0.33",
|
|
10474
10484
|
"@tscircuit/layout": "^0.0.28",
|
|
10475
10485
|
"@tscircuit/log-soup": "^1.0.2",
|
|
10476
10486
|
"@tscircuit/math-utils": "^0.0.18",
|
|
10477
|
-
"@tscircuit/props": "^0.0.
|
|
10487
|
+
"@tscircuit/props": "^0.0.244",
|
|
10478
10488
|
"@tscircuit/schematic-autolayout": "^0.0.6",
|
|
10479
10489
|
"@tscircuit/schematic-match-adapt": "^0.0.16",
|
|
10480
10490
|
"@tscircuit/simple-3d-svg": "^0.0.6",
|
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.519",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
"@biomejs/biome": "^1.8.3",
|
|
27
27
|
"@tscircuit/capacity-autorouter": "^0.0.75",
|
|
28
28
|
"@tscircuit/checks": "^0.0.52",
|
|
29
|
-
"@tscircuit/footprinter": "^0.0.182",
|
|
30
29
|
"@tscircuit/circuit-json-util": "^0.0.49",
|
|
30
|
+
"@tscircuit/footprinter": "^0.0.182",
|
|
31
31
|
"@tscircuit/import-snippet": "^0.0.4",
|
|
32
32
|
"@tscircuit/infgrid-ijump-astar": "^0.0.33",
|
|
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.244",
|
|
37
37
|
"@tscircuit/schematic-autolayout": "^0.0.6",
|
|
38
38
|
"@tscircuit/schematic-match-adapt": "^0.0.16",
|
|
39
39
|
"@tscircuit/simple-3d-svg": "^0.0.6",
|