@tscircuit/core 0.0.516 → 0.0.518
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 +84 -2
- package/dist/index.js +18 -8
- package/package.json +4 -4
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,7 @@ 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"]>>;
|
|
5888
5908
|
}, "strip", zod.ZodTypeAny, {
|
|
5889
5909
|
name: string;
|
|
5890
5910
|
pcbX?: number | undefined;
|
|
@@ -5953,6 +5973,7 @@ declare class Led extends NormalComponent<typeof ledProps, PolarizedPassivePorts
|
|
|
5953
5973
|
children?: any;
|
|
5954
5974
|
symbolName?: string | undefined;
|
|
5955
5975
|
doNotPlace?: boolean | undefined;
|
|
5976
|
+
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
5956
5977
|
color?: string | undefined;
|
|
5957
5978
|
wavelength?: string | undefined;
|
|
5958
5979
|
schDisplayValue?: string | undefined;
|
|
@@ -6026,6 +6047,7 @@ declare class Led extends NormalComponent<typeof ledProps, PolarizedPassivePorts
|
|
|
6026
6047
|
children?: any;
|
|
6027
6048
|
symbolName?: string | undefined;
|
|
6028
6049
|
doNotPlace?: boolean | undefined;
|
|
6050
|
+
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
6029
6051
|
color?: string | undefined;
|
|
6030
6052
|
wavelength?: string | undefined;
|
|
6031
6053
|
schDisplayValue?: string | undefined;
|
|
@@ -6722,6 +6744,7 @@ declare class Resistor extends NormalComponent<typeof resistorProps, PassivePort
|
|
|
6722
6744
|
pullupTo: zod.ZodOptional<zod.ZodString>;
|
|
6723
6745
|
pulldownFor: zod.ZodOptional<zod.ZodString>;
|
|
6724
6746
|
pulldownTo: zod.ZodOptional<zod.ZodString>;
|
|
6747
|
+
schOrientation: zod.ZodOptional<zod.ZodEnum<["vertical", "horizontal", "pos_top", "pos_bottom", "pos_left", "pos_right", "neg_top", "neg_bottom", "neg_left", "neg_right"]>>;
|
|
6725
6748
|
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
6749
|
}, "strip", zod.ZodTypeAny, {
|
|
6727
6750
|
name: string;
|
|
@@ -6793,6 +6816,7 @@ declare class Resistor extends NormalComponent<typeof resistorProps, PassivePort
|
|
|
6793
6816
|
symbolName?: string | undefined;
|
|
6794
6817
|
doNotPlace?: boolean | undefined;
|
|
6795
6818
|
connections?: Partial<Record<"pin1" | "pin2" | "pos" | "neg", string | readonly string[] | string[]>> | undefined;
|
|
6819
|
+
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
6796
6820
|
pullupFor?: string | undefined;
|
|
6797
6821
|
pullupTo?: string | undefined;
|
|
6798
6822
|
pulldownFor?: string | undefined;
|
|
@@ -6869,6 +6893,7 @@ declare class Resistor extends NormalComponent<typeof resistorProps, PassivePort
|
|
|
6869
6893
|
symbolName?: string | undefined;
|
|
6870
6894
|
doNotPlace?: boolean | undefined;
|
|
6871
6895
|
connections?: Partial<Record<"pin1" | "pin2" | "pos" | "neg", string | readonly string[] | string[]>> | undefined;
|
|
6896
|
+
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
6872
6897
|
pullupFor?: string | undefined;
|
|
6873
6898
|
pullupTo?: string | undefined;
|
|
6874
6899
|
pulldownFor?: string | undefined;
|
|
@@ -7365,18 +7390,18 @@ declare class NetLabel extends PrimitiveComponent<typeof netLabelProps> {
|
|
|
7365
7390
|
schX?: number | undefined;
|
|
7366
7391
|
schY?: number | undefined;
|
|
7367
7392
|
schRotation?: number | undefined;
|
|
7393
|
+
connectsTo?: string | string[] | undefined;
|
|
7368
7394
|
net?: string | undefined;
|
|
7369
7395
|
connection?: string | undefined;
|
|
7370
7396
|
anchorSide?: "left" | "right" | "top" | "bottom" | undefined;
|
|
7371
|
-
connectsTo?: string | string[] | undefined;
|
|
7372
7397
|
}, {
|
|
7373
7398
|
schX?: string | number | undefined;
|
|
7374
7399
|
schY?: string | number | undefined;
|
|
7375
7400
|
schRotation?: string | number | undefined;
|
|
7401
|
+
connectsTo?: string | string[] | undefined;
|
|
7376
7402
|
net?: string | undefined;
|
|
7377
7403
|
connection?: string | undefined;
|
|
7378
7404
|
anchorSide?: "left" | "right" | "top" | "bottom" | undefined;
|
|
7379
|
-
connectsTo?: string | string[] | undefined;
|
|
7380
7405
|
}>;
|
|
7381
7406
|
};
|
|
7382
7407
|
doInitialSchematicComponentRender(): void;
|
|
@@ -7407,6 +7432,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7407
7432
|
}>>;
|
|
7408
7433
|
}, "pcbRotation" | "layer"> & {
|
|
7409
7434
|
name: zod.ZodOptional<zod.ZodString>;
|
|
7435
|
+
connectsTo: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodArray<zod.ZodString, "many">]>>;
|
|
7410
7436
|
shape: zod.ZodLiteral<"circle">;
|
|
7411
7437
|
holeDiameter: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
7412
7438
|
outerDiameter: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
@@ -7418,6 +7444,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7418
7444
|
pcbX?: number | undefined;
|
|
7419
7445
|
pcbY?: number | undefined;
|
|
7420
7446
|
name?: string | undefined;
|
|
7447
|
+
connectsTo?: string | string[] | undefined;
|
|
7421
7448
|
portHints?: (string | number)[] | undefined;
|
|
7422
7449
|
}, {
|
|
7423
7450
|
shape: "circle";
|
|
@@ -7426,6 +7453,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7426
7453
|
pcbX?: string | number | undefined;
|
|
7427
7454
|
pcbY?: string | number | undefined;
|
|
7428
7455
|
name?: string | undefined;
|
|
7456
|
+
connectsTo?: string | string[] | undefined;
|
|
7429
7457
|
portHints?: (string | number)[] | undefined;
|
|
7430
7458
|
}>, zod.ZodObject<Omit<{
|
|
7431
7459
|
pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
@@ -7442,6 +7470,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7442
7470
|
}>>;
|
|
7443
7471
|
}, "pcbRotation" | "layer"> & {
|
|
7444
7472
|
name: zod.ZodOptional<zod.ZodString>;
|
|
7473
|
+
connectsTo: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodArray<zod.ZodString, "many">]>>;
|
|
7445
7474
|
shape: zod.ZodLiteral<"oval">;
|
|
7446
7475
|
outerWidth: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
7447
7476
|
outerHeight: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
@@ -7457,6 +7486,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7457
7486
|
pcbX?: number | undefined;
|
|
7458
7487
|
pcbY?: number | undefined;
|
|
7459
7488
|
name?: string | undefined;
|
|
7489
|
+
connectsTo?: string | string[] | undefined;
|
|
7460
7490
|
portHints?: (string | number)[] | undefined;
|
|
7461
7491
|
holeWidth?: number | undefined;
|
|
7462
7492
|
holeHeight?: number | undefined;
|
|
@@ -7471,6 +7501,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7471
7501
|
pcbX?: string | number | undefined;
|
|
7472
7502
|
pcbY?: string | number | undefined;
|
|
7473
7503
|
name?: string | undefined;
|
|
7504
|
+
connectsTo?: string | string[] | undefined;
|
|
7474
7505
|
portHints?: (string | number)[] | undefined;
|
|
7475
7506
|
innerWidth?: string | number | undefined;
|
|
7476
7507
|
innerHeight?: string | number | undefined;
|
|
@@ -7489,6 +7520,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7489
7520
|
}>>;
|
|
7490
7521
|
}, "pcbRotation" | "layer"> & {
|
|
7491
7522
|
name: zod.ZodOptional<zod.ZodString>;
|
|
7523
|
+
connectsTo: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodArray<zod.ZodString, "many">]>>;
|
|
7492
7524
|
shape: zod.ZodLiteral<"pill">;
|
|
7493
7525
|
outerWidth: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
7494
7526
|
outerHeight: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
@@ -7504,6 +7536,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7504
7536
|
pcbX?: number | undefined;
|
|
7505
7537
|
pcbY?: number | undefined;
|
|
7506
7538
|
name?: string | undefined;
|
|
7539
|
+
connectsTo?: string | string[] | undefined;
|
|
7507
7540
|
portHints?: (string | number)[] | undefined;
|
|
7508
7541
|
holeWidth?: number | undefined;
|
|
7509
7542
|
holeHeight?: number | undefined;
|
|
@@ -7518,6 +7551,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7518
7551
|
pcbX?: string | number | undefined;
|
|
7519
7552
|
pcbY?: string | number | undefined;
|
|
7520
7553
|
name?: string | undefined;
|
|
7554
|
+
connectsTo?: string | string[] | undefined;
|
|
7521
7555
|
portHints?: (string | number)[] | undefined;
|
|
7522
7556
|
innerWidth?: string | number | undefined;
|
|
7523
7557
|
innerHeight?: string | number | undefined;
|
|
@@ -7536,6 +7570,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7536
7570
|
}>>;
|
|
7537
7571
|
}, "pcbRotation" | "layer"> & {
|
|
7538
7572
|
name: zod.ZodOptional<zod.ZodString>;
|
|
7573
|
+
connectsTo: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodArray<zod.ZodString, "many">]>>;
|
|
7539
7574
|
shape: zod.ZodLiteral<"circular_hole_with_rect_pad">;
|
|
7540
7575
|
holeDiameter: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
7541
7576
|
rectPadWidth: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
@@ -7551,6 +7586,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7551
7586
|
pcbX?: number | undefined;
|
|
7552
7587
|
pcbY?: number | undefined;
|
|
7553
7588
|
name?: string | undefined;
|
|
7589
|
+
connectsTo?: string | string[] | undefined;
|
|
7554
7590
|
portHints?: (string | number)[] | undefined;
|
|
7555
7591
|
holeShape?: "circle" | undefined;
|
|
7556
7592
|
padShape?: "rect" | undefined;
|
|
@@ -7562,6 +7598,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7562
7598
|
pcbX?: string | number | undefined;
|
|
7563
7599
|
pcbY?: string | number | undefined;
|
|
7564
7600
|
name?: string | undefined;
|
|
7601
|
+
connectsTo?: string | string[] | undefined;
|
|
7565
7602
|
portHints?: (string | number)[] | undefined;
|
|
7566
7603
|
holeShape?: "circle" | undefined;
|
|
7567
7604
|
padShape?: "rect" | undefined;
|
|
@@ -7580,6 +7617,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7580
7617
|
}>>;
|
|
7581
7618
|
}, "pcbRotation" | "layer"> & {
|
|
7582
7619
|
name: zod.ZodOptional<zod.ZodString>;
|
|
7620
|
+
connectsTo: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodArray<zod.ZodString, "many">]>>;
|
|
7583
7621
|
shape: zod.ZodLiteral<"pill_hole_with_rect_pad">;
|
|
7584
7622
|
holeShape: zod.ZodLiteral<"pill">;
|
|
7585
7623
|
padShape: zod.ZodLiteral<"rect">;
|
|
@@ -7599,6 +7637,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7599
7637
|
pcbX?: number | undefined;
|
|
7600
7638
|
pcbY?: number | undefined;
|
|
7601
7639
|
name?: string | undefined;
|
|
7640
|
+
connectsTo?: string | string[] | undefined;
|
|
7602
7641
|
portHints?: (string | number)[] | undefined;
|
|
7603
7642
|
}, {
|
|
7604
7643
|
shape: "pill_hole_with_rect_pad";
|
|
@@ -7611,6 +7650,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7611
7650
|
pcbX?: string | number | undefined;
|
|
7612
7651
|
pcbY?: string | number | undefined;
|
|
7613
7652
|
name?: string | undefined;
|
|
7653
|
+
connectsTo?: string | string[] | undefined;
|
|
7614
7654
|
portHints?: (string | number)[] | undefined;
|
|
7615
7655
|
}>]>, {
|
|
7616
7656
|
shape: "circle";
|
|
@@ -7619,6 +7659,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7619
7659
|
pcbX?: number | undefined;
|
|
7620
7660
|
pcbY?: number | undefined;
|
|
7621
7661
|
name?: string | undefined;
|
|
7662
|
+
connectsTo?: string | string[] | undefined;
|
|
7622
7663
|
portHints?: (string | number)[] | undefined;
|
|
7623
7664
|
} | {
|
|
7624
7665
|
shape: "oval";
|
|
@@ -7627,6 +7668,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7627
7668
|
pcbX?: number | undefined;
|
|
7628
7669
|
pcbY?: number | undefined;
|
|
7629
7670
|
name?: string | undefined;
|
|
7671
|
+
connectsTo?: string | string[] | undefined;
|
|
7630
7672
|
portHints?: (string | number)[] | undefined;
|
|
7631
7673
|
holeWidth?: number | undefined;
|
|
7632
7674
|
holeHeight?: number | undefined;
|
|
@@ -7639,6 +7681,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7639
7681
|
pcbX?: number | undefined;
|
|
7640
7682
|
pcbY?: number | undefined;
|
|
7641
7683
|
name?: string | undefined;
|
|
7684
|
+
connectsTo?: string | string[] | undefined;
|
|
7642
7685
|
portHints?: (string | number)[] | undefined;
|
|
7643
7686
|
holeWidth?: number | undefined;
|
|
7644
7687
|
holeHeight?: number | undefined;
|
|
@@ -7652,6 +7695,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7652
7695
|
pcbX?: number | undefined;
|
|
7653
7696
|
pcbY?: number | undefined;
|
|
7654
7697
|
name?: string | undefined;
|
|
7698
|
+
connectsTo?: string | string[] | undefined;
|
|
7655
7699
|
portHints?: (string | number)[] | undefined;
|
|
7656
7700
|
holeShape?: "circle" | undefined;
|
|
7657
7701
|
padShape?: "rect" | undefined;
|
|
@@ -7666,6 +7710,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7666
7710
|
pcbX?: number | undefined;
|
|
7667
7711
|
pcbY?: number | undefined;
|
|
7668
7712
|
name?: string | undefined;
|
|
7713
|
+
connectsTo?: string | string[] | undefined;
|
|
7669
7714
|
portHints?: (string | number)[] | undefined;
|
|
7670
7715
|
}, {
|
|
7671
7716
|
shape: "circle";
|
|
@@ -7674,6 +7719,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7674
7719
|
pcbX?: string | number | undefined;
|
|
7675
7720
|
pcbY?: string | number | undefined;
|
|
7676
7721
|
name?: string | undefined;
|
|
7722
|
+
connectsTo?: string | string[] | undefined;
|
|
7677
7723
|
portHints?: (string | number)[] | undefined;
|
|
7678
7724
|
} | {
|
|
7679
7725
|
shape: "oval";
|
|
@@ -7684,6 +7730,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7684
7730
|
pcbX?: string | number | undefined;
|
|
7685
7731
|
pcbY?: string | number | undefined;
|
|
7686
7732
|
name?: string | undefined;
|
|
7733
|
+
connectsTo?: string | string[] | undefined;
|
|
7687
7734
|
portHints?: (string | number)[] | undefined;
|
|
7688
7735
|
innerWidth?: string | number | undefined;
|
|
7689
7736
|
innerHeight?: string | number | undefined;
|
|
@@ -7696,6 +7743,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7696
7743
|
pcbX?: string | number | undefined;
|
|
7697
7744
|
pcbY?: string | number | undefined;
|
|
7698
7745
|
name?: string | undefined;
|
|
7746
|
+
connectsTo?: string | string[] | undefined;
|
|
7699
7747
|
portHints?: (string | number)[] | undefined;
|
|
7700
7748
|
innerWidth?: string | number | undefined;
|
|
7701
7749
|
innerHeight?: string | number | undefined;
|
|
@@ -7707,6 +7755,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7707
7755
|
pcbX?: string | number | undefined;
|
|
7708
7756
|
pcbY?: string | number | undefined;
|
|
7709
7757
|
name?: string | undefined;
|
|
7758
|
+
connectsTo?: string | string[] | undefined;
|
|
7710
7759
|
portHints?: (string | number)[] | undefined;
|
|
7711
7760
|
holeShape?: "circle" | undefined;
|
|
7712
7761
|
padShape?: "rect" | undefined;
|
|
@@ -7721,6 +7770,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
7721
7770
|
pcbX?: string | number | undefined;
|
|
7722
7771
|
pcbY?: string | number | undefined;
|
|
7723
7772
|
name?: string | undefined;
|
|
7773
|
+
connectsTo?: string | string[] | undefined;
|
|
7724
7774
|
portHints?: (string | number)[] | undefined;
|
|
7725
7775
|
}>;
|
|
7726
7776
|
};
|
|
@@ -8057,6 +8107,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
8057
8107
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8058
8108
|
}>>;
|
|
8059
8109
|
}, "pcbRotation"> & {
|
|
8110
|
+
name: zod.ZodOptional<zod.ZodString>;
|
|
8060
8111
|
shape: zod.ZodLiteral<"circle">;
|
|
8061
8112
|
radius: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
8062
8113
|
portHints: zod.ZodOptional<zod.ZodArray<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, "many">>;
|
|
@@ -8066,6 +8117,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
8066
8117
|
pcbX?: number | undefined;
|
|
8067
8118
|
pcbY?: number | undefined;
|
|
8068
8119
|
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
8120
|
+
name?: string | undefined;
|
|
8069
8121
|
portHints?: (string | number)[] | undefined;
|
|
8070
8122
|
}, {
|
|
8071
8123
|
shape: "circle";
|
|
@@ -8075,6 +8127,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
8075
8127
|
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
8076
8128
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8077
8129
|
} | undefined;
|
|
8130
|
+
name?: string | undefined;
|
|
8078
8131
|
portHints?: (string | number)[] | undefined;
|
|
8079
8132
|
}>, zod.ZodObject<Omit<{
|
|
8080
8133
|
pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
@@ -8090,6 +8143,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
8090
8143
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8091
8144
|
}>>;
|
|
8092
8145
|
}, "pcbRotation"> & {
|
|
8146
|
+
name: zod.ZodOptional<zod.ZodString>;
|
|
8093
8147
|
shape: zod.ZodLiteral<"rect">;
|
|
8094
8148
|
width: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
8095
8149
|
height: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
@@ -8101,6 +8155,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
8101
8155
|
pcbX?: number | undefined;
|
|
8102
8156
|
pcbY?: number | undefined;
|
|
8103
8157
|
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
8158
|
+
name?: string | undefined;
|
|
8104
8159
|
portHints?: (string | number)[] | undefined;
|
|
8105
8160
|
}, {
|
|
8106
8161
|
shape: "rect";
|
|
@@ -8111,6 +8166,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
8111
8166
|
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
8112
8167
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8113
8168
|
} | undefined;
|
|
8169
|
+
name?: string | undefined;
|
|
8114
8170
|
portHints?: (string | number)[] | undefined;
|
|
8115
8171
|
}>, zod.ZodObject<Omit<{
|
|
8116
8172
|
pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
@@ -8126,6 +8182,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
8126
8182
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8127
8183
|
}>>;
|
|
8128
8184
|
}, "pcbRotation"> & {
|
|
8185
|
+
name: zod.ZodOptional<zod.ZodString>;
|
|
8129
8186
|
shape: zod.ZodLiteral<"rotated_rect">;
|
|
8130
8187
|
width: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
8131
8188
|
height: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
@@ -8139,6 +8196,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
8139
8196
|
pcbX?: number | undefined;
|
|
8140
8197
|
pcbY?: number | undefined;
|
|
8141
8198
|
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
8199
|
+
name?: string | undefined;
|
|
8142
8200
|
portHints?: (string | number)[] | undefined;
|
|
8143
8201
|
}, {
|
|
8144
8202
|
shape: "rotated_rect";
|
|
@@ -8150,6 +8208,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
8150
8208
|
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
8151
8209
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8152
8210
|
} | undefined;
|
|
8211
|
+
name?: string | undefined;
|
|
8153
8212
|
portHints?: (string | number)[] | undefined;
|
|
8154
8213
|
}>, zod.ZodObject<Omit<{
|
|
8155
8214
|
pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
@@ -8165,6 +8224,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
8165
8224
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8166
8225
|
}>>;
|
|
8167
8226
|
}, "pcbRotation"> & {
|
|
8227
|
+
name: zod.ZodOptional<zod.ZodString>;
|
|
8168
8228
|
shape: zod.ZodLiteral<"pill">;
|
|
8169
8229
|
width: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
8170
8230
|
height: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
@@ -8178,6 +8238,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
8178
8238
|
pcbX?: number | undefined;
|
|
8179
8239
|
pcbY?: number | undefined;
|
|
8180
8240
|
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
8241
|
+
name?: string | undefined;
|
|
8181
8242
|
portHints?: (string | number)[] | undefined;
|
|
8182
8243
|
}, {
|
|
8183
8244
|
shape: "pill";
|
|
@@ -8189,6 +8250,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
8189
8250
|
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
8190
8251
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8191
8252
|
} | undefined;
|
|
8253
|
+
name?: string | undefined;
|
|
8192
8254
|
portHints?: (string | number)[] | undefined;
|
|
8193
8255
|
}>, zod.ZodObject<Omit<{
|
|
8194
8256
|
pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
@@ -8204,6 +8266,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
8204
8266
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8205
8267
|
}>>;
|
|
8206
8268
|
}, "pcbRotation"> & {
|
|
8269
|
+
name: zod.ZodOptional<zod.ZodString>;
|
|
8207
8270
|
shape: zod.ZodLiteral<"polygon">;
|
|
8208
8271
|
points: zod.ZodArray<zod.ZodObject<{
|
|
8209
8272
|
x: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
@@ -8225,6 +8288,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
8225
8288
|
pcbX?: number | undefined;
|
|
8226
8289
|
pcbY?: number | undefined;
|
|
8227
8290
|
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
8291
|
+
name?: string | undefined;
|
|
8228
8292
|
portHints?: (string | number)[] | undefined;
|
|
8229
8293
|
}, {
|
|
8230
8294
|
shape: "polygon";
|
|
@@ -8237,6 +8301,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
8237
8301
|
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
8238
8302
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8239
8303
|
} | undefined;
|
|
8304
|
+
name?: string | undefined;
|
|
8240
8305
|
portHints?: (string | number)[] | undefined;
|
|
8241
8306
|
}>]>;
|
|
8242
8307
|
};
|
|
@@ -8695,6 +8760,7 @@ declare class Via extends PrimitiveComponent<typeof viaProps> {
|
|
|
8695
8760
|
}>>;
|
|
8696
8761
|
footprint: zod.ZodOptional<zod.ZodType<_tscircuit_props.FootprintProp, zod.ZodTypeDef, _tscircuit_props.FootprintProp>>;
|
|
8697
8762
|
} & {
|
|
8763
|
+
name: zod.ZodOptional<zod.ZodString>;
|
|
8698
8764
|
fromLayer: zod.ZodEffects<zod.ZodUnion<[zod.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, zod.ZodObject<{
|
|
8699
8765
|
name: zod.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
|
|
8700
8766
|
}, "strip", zod.ZodTypeAny, {
|
|
@@ -8715,6 +8781,7 @@ declare class Via extends PrimitiveComponent<typeof viaProps> {
|
|
|
8715
8781
|
}>;
|
|
8716
8782
|
holeDiameter: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
8717
8783
|
outerDiameter: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
8784
|
+
connectsTo: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodArray<zod.ZodString, "many">]>>;
|
|
8718
8785
|
}, "strip", zod.ZodTypeAny, {
|
|
8719
8786
|
holeDiameter: number;
|
|
8720
8787
|
outerDiameter: number;
|
|
@@ -8728,6 +8795,8 @@ declare class Via extends PrimitiveComponent<typeof viaProps> {
|
|
|
8728
8795
|
schY?: number | undefined;
|
|
8729
8796
|
schRotation?: number | undefined;
|
|
8730
8797
|
footprint?: _tscircuit_props.FootprintProp | undefined;
|
|
8798
|
+
name?: string | undefined;
|
|
8799
|
+
connectsTo?: string | string[] | undefined;
|
|
8731
8800
|
}, {
|
|
8732
8801
|
holeDiameter: string | number;
|
|
8733
8802
|
outerDiameter: string | number;
|
|
@@ -8747,6 +8816,8 @@ declare class Via extends PrimitiveComponent<typeof viaProps> {
|
|
|
8747
8816
|
schY?: string | number | undefined;
|
|
8748
8817
|
schRotation?: string | number | undefined;
|
|
8749
8818
|
footprint?: _tscircuit_props.FootprintProp | undefined;
|
|
8819
|
+
name?: string | undefined;
|
|
8820
|
+
connectsTo?: string | string[] | undefined;
|
|
8750
8821
|
}>;
|
|
8751
8822
|
};
|
|
8752
8823
|
getAvailablePcbLayers(): string[];
|
|
@@ -9175,6 +9246,7 @@ declare class Battery extends NormalComponent<typeof batteryProps, PassivePorts>
|
|
|
9175
9246
|
doNotPlace: zod.ZodOptional<zod.ZodBoolean>;
|
|
9176
9247
|
} & {
|
|
9177
9248
|
capacity: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>, number, string | number>>;
|
|
9249
|
+
schOrientation: zod.ZodOptional<zod.ZodEnum<["vertical", "horizontal", "pos_top", "pos_bottom", "pos_left", "pos_right", "neg_top", "neg_bottom", "neg_left", "neg_right"]>>;
|
|
9178
9250
|
}, "strip", zod.ZodTypeAny, {
|
|
9179
9251
|
name: string;
|
|
9180
9252
|
pcbX?: number | undefined;
|
|
@@ -9243,6 +9315,7 @@ declare class Battery extends NormalComponent<typeof batteryProps, PassivePorts>
|
|
|
9243
9315
|
children?: any;
|
|
9244
9316
|
symbolName?: string | undefined;
|
|
9245
9317
|
doNotPlace?: boolean | undefined;
|
|
9318
|
+
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
9246
9319
|
capacity?: number | undefined;
|
|
9247
9320
|
}, {
|
|
9248
9321
|
name: string;
|
|
@@ -9314,6 +9387,7 @@ declare class Battery extends NormalComponent<typeof batteryProps, PassivePorts>
|
|
|
9314
9387
|
children?: any;
|
|
9315
9388
|
symbolName?: string | undefined;
|
|
9316
9389
|
doNotPlace?: boolean | undefined;
|
|
9390
|
+
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
9317
9391
|
capacity?: string | number | undefined;
|
|
9318
9392
|
}>;
|
|
9319
9393
|
sourceFtype: Ftype;
|
|
@@ -10651,6 +10725,7 @@ declare class Inductor extends NormalComponent<typeof inductorProps, PassivePort
|
|
|
10651
10725
|
} & {
|
|
10652
10726
|
inductance: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
10653
10727
|
maxCurrentRating: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>>;
|
|
10728
|
+
schOrientation: zod.ZodOptional<zod.ZodEnum<["vertical", "horizontal", "pos_top", "pos_bottom", "pos_left", "pos_right", "neg_top", "neg_bottom", "neg_left", "neg_right"]>>;
|
|
10654
10729
|
}, "strip", zod.ZodTypeAny, {
|
|
10655
10730
|
name: string;
|
|
10656
10731
|
inductance: number;
|
|
@@ -10720,6 +10795,7 @@ declare class Inductor extends NormalComponent<typeof inductorProps, PassivePort
|
|
|
10720
10795
|
children?: any;
|
|
10721
10796
|
symbolName?: string | undefined;
|
|
10722
10797
|
doNotPlace?: boolean | undefined;
|
|
10798
|
+
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
10723
10799
|
maxCurrentRating?: string | number | undefined;
|
|
10724
10800
|
}, {
|
|
10725
10801
|
name: string;
|
|
@@ -10792,6 +10868,7 @@ declare class Inductor extends NormalComponent<typeof inductorProps, PassivePort
|
|
|
10792
10868
|
children?: any;
|
|
10793
10869
|
symbolName?: string | undefined;
|
|
10794
10870
|
doNotPlace?: boolean | undefined;
|
|
10871
|
+
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
10795
10872
|
maxCurrentRating?: string | number | undefined;
|
|
10796
10873
|
}>;
|
|
10797
10874
|
sourceFtype: "simple_inductor";
|
|
@@ -12287,6 +12364,7 @@ declare class Crystal extends NormalComponent<typeof crystalProps, PolarizedPass
|
|
|
12287
12364
|
frequency: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
12288
12365
|
loadCapacitance: zod.ZodEffects<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>, number, string | number>;
|
|
12289
12366
|
pinVariant: zod.ZodOptional<zod.ZodEnum<["two_pin", "four_pin"]>>;
|
|
12367
|
+
schOrientation: zod.ZodOptional<zod.ZodEnum<["vertical", "horizontal", "pos_top", "pos_bottom", "pos_left", "pos_right", "neg_top", "neg_bottom", "neg_left", "neg_right"]>>;
|
|
12290
12368
|
}, "strip", zod.ZodTypeAny, {
|
|
12291
12369
|
name: string;
|
|
12292
12370
|
frequency: number;
|
|
@@ -12357,6 +12435,7 @@ declare class Crystal extends NormalComponent<typeof crystalProps, PolarizedPass
|
|
|
12357
12435
|
children?: any;
|
|
12358
12436
|
symbolName?: string | undefined;
|
|
12359
12437
|
doNotPlace?: boolean | undefined;
|
|
12438
|
+
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
12360
12439
|
pinVariant?: "two_pin" | "four_pin" | undefined;
|
|
12361
12440
|
}, {
|
|
12362
12441
|
name: string;
|
|
@@ -12430,6 +12509,7 @@ declare class Crystal extends NormalComponent<typeof crystalProps, PolarizedPass
|
|
|
12430
12509
|
children?: any;
|
|
12431
12510
|
symbolName?: string | undefined;
|
|
12432
12511
|
doNotPlace?: boolean | undefined;
|
|
12512
|
+
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
12433
12513
|
pinVariant?: "two_pin" | "four_pin" | undefined;
|
|
12434
12514
|
}>;
|
|
12435
12515
|
sourceFtype: Ftype;
|
|
@@ -14597,6 +14677,7 @@ declare const useLed: <PropsFromHook extends Omit<{
|
|
|
14597
14677
|
children?: any;
|
|
14598
14678
|
symbolName?: string | undefined;
|
|
14599
14679
|
doNotPlace?: boolean | undefined;
|
|
14680
|
+
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
14600
14681
|
color?: string | undefined;
|
|
14601
14682
|
wavelength?: string | undefined;
|
|
14602
14683
|
schDisplayValue?: string | undefined;
|
|
@@ -14670,6 +14751,7 @@ declare const useLed: <PropsFromHook extends Omit<{
|
|
|
14670
14751
|
children?: any;
|
|
14671
14752
|
symbolName?: string | undefined;
|
|
14672
14753
|
doNotPlace?: boolean | undefined;
|
|
14754
|
+
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
14673
14755
|
color?: string | undefined;
|
|
14674
14756
|
wavelength?: string | undefined;
|
|
14675
14757
|
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.517",
|
|
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.243",
|
|
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",
|
|
@@ -10488,7 +10498,7 @@ var package_default = {
|
|
|
10488
10498
|
"circuit-json": "^0.0.212",
|
|
10489
10499
|
"circuit-json-to-connectivity-map": "^0.0.22",
|
|
10490
10500
|
"circuit-json-to-simple-3d": "^0.0.2",
|
|
10491
|
-
"circuit-to-svg": "^0.0.
|
|
10501
|
+
"circuit-to-svg": "^0.0.160",
|
|
10492
10502
|
concurrently: "^9.1.2",
|
|
10493
10503
|
debug: "^4.3.6",
|
|
10494
10504
|
"graphics-debug": "^0.0.4",
|
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.518",
|
|
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.243",
|
|
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",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"circuit-json": "^0.0.212",
|
|
48
48
|
"circuit-json-to-connectivity-map": "^0.0.22",
|
|
49
49
|
"circuit-json-to-simple-3d": "^0.0.2",
|
|
50
|
-
"circuit-to-svg": "^0.0.
|
|
50
|
+
"circuit-to-svg": "^0.0.160",
|
|
51
51
|
"concurrently": "^9.1.2",
|
|
52
52
|
"debug": "^4.3.6",
|
|
53
53
|
"graphics-debug": "^0.0.4",
|