@tscircuit/props 0.0.222 → 0.0.224
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/README.md +2 -1
- package/dist/index.d.ts +220 -34
- package/dist/index.js +7 -13
- package/dist/index.js.map +1 -1
- package/lib/components/group.ts +6 -4
- package/lib/components/platedhole.ts +12 -24
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -2799,12 +2799,12 @@ interface LayoutConfig {
|
|
|
2799
2799
|
matchAdapt?: boolean;
|
|
2800
2800
|
matchAdaptTemplate?: any;
|
|
2801
2801
|
}
|
|
2802
|
-
interface
|
|
2802
|
+
interface Border {
|
|
2803
2803
|
strokeWidth?: Distance;
|
|
2804
2804
|
dashed?: boolean;
|
|
2805
2805
|
solid?: boolean;
|
|
2806
2806
|
}
|
|
2807
|
-
declare const
|
|
2807
|
+
declare const border: z.ZodObject<{
|
|
2808
2808
|
strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
2809
2809
|
dashed: z.ZodOptional<z.ZodBoolean>;
|
|
2810
2810
|
solid: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2827,7 +2827,8 @@ interface BaseGroupProps extends CommonLayoutProps, LayoutConfig {
|
|
|
2827
2827
|
schHeight?: Distance;
|
|
2828
2828
|
pcbLayout?: LayoutConfig;
|
|
2829
2829
|
schLayout?: LayoutConfig;
|
|
2830
|
-
cellBorder?:
|
|
2830
|
+
cellBorder?: Border;
|
|
2831
|
+
border?: Border;
|
|
2831
2832
|
}
|
|
2832
2833
|
type PartsEngine = {
|
|
2833
2834
|
findPart: (params: {
|
|
@@ -3096,6 +3097,19 @@ declare const baseGroupProps: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3096
3097
|
dashed?: boolean | undefined;
|
|
3097
3098
|
solid?: boolean | undefined;
|
|
3098
3099
|
}>>;
|
|
3100
|
+
border: z.ZodOptional<z.ZodObject<{
|
|
3101
|
+
strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
3102
|
+
dashed: z.ZodOptional<z.ZodBoolean>;
|
|
3103
|
+
solid: z.ZodOptional<z.ZodBoolean>;
|
|
3104
|
+
}, "strip", z.ZodTypeAny, {
|
|
3105
|
+
strokeWidth?: number | undefined;
|
|
3106
|
+
dashed?: boolean | undefined;
|
|
3107
|
+
solid?: boolean | undefined;
|
|
3108
|
+
}, {
|
|
3109
|
+
strokeWidth?: string | number | undefined;
|
|
3110
|
+
dashed?: boolean | undefined;
|
|
3111
|
+
solid?: boolean | undefined;
|
|
3112
|
+
}>>;
|
|
3099
3113
|
layoutMode: z.ZodOptional<z.ZodEnum<["grid", "flex", "match-adapt", "none"]>>;
|
|
3100
3114
|
position: z.ZodOptional<z.ZodEnum<["absolute", "relative"]>>;
|
|
3101
3115
|
grid: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3204,6 +3218,11 @@ declare const baseGroupProps: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3204
3218
|
dashed?: boolean | undefined;
|
|
3205
3219
|
solid?: boolean | undefined;
|
|
3206
3220
|
} | undefined;
|
|
3221
|
+
border?: {
|
|
3222
|
+
strokeWidth?: number | undefined;
|
|
3223
|
+
dashed?: boolean | undefined;
|
|
3224
|
+
solid?: boolean | undefined;
|
|
3225
|
+
} | undefined;
|
|
3207
3226
|
}, {
|
|
3208
3227
|
pcbX?: string | number | undefined;
|
|
3209
3228
|
pcbY?: string | number | undefined;
|
|
@@ -3291,6 +3310,11 @@ declare const baseGroupProps: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3291
3310
|
dashed?: boolean | undefined;
|
|
3292
3311
|
solid?: boolean | undefined;
|
|
3293
3312
|
} | undefined;
|
|
3313
|
+
border?: {
|
|
3314
|
+
strokeWidth?: string | number | undefined;
|
|
3315
|
+
dashed?: boolean | undefined;
|
|
3316
|
+
solid?: boolean | undefined;
|
|
3317
|
+
} | undefined;
|
|
3294
3318
|
}>;
|
|
3295
3319
|
declare const partsEngine: z.ZodType<PartsEngine, z.ZodTypeDef, PartsEngine>;
|
|
3296
3320
|
declare const subcircuitGroupProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
@@ -3456,6 +3480,19 @@ declare const subcircuitGroupProps: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
3456
3480
|
dashed?: boolean | undefined;
|
|
3457
3481
|
solid?: boolean | undefined;
|
|
3458
3482
|
}>>;
|
|
3483
|
+
border: z.ZodOptional<z.ZodObject<{
|
|
3484
|
+
strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
3485
|
+
dashed: z.ZodOptional<z.ZodBoolean>;
|
|
3486
|
+
solid: z.ZodOptional<z.ZodBoolean>;
|
|
3487
|
+
}, "strip", z.ZodTypeAny, {
|
|
3488
|
+
strokeWidth?: number | undefined;
|
|
3489
|
+
dashed?: boolean | undefined;
|
|
3490
|
+
solid?: boolean | undefined;
|
|
3491
|
+
}, {
|
|
3492
|
+
strokeWidth?: string | number | undefined;
|
|
3493
|
+
dashed?: boolean | undefined;
|
|
3494
|
+
solid?: boolean | undefined;
|
|
3495
|
+
}>>;
|
|
3459
3496
|
layoutMode: z.ZodOptional<z.ZodEnum<["grid", "flex", "match-adapt", "none"]>>;
|
|
3460
3497
|
position: z.ZodOptional<z.ZodEnum<["absolute", "relative"]>>;
|
|
3461
3498
|
grid: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3767,6 +3804,11 @@ declare const subcircuitGroupProps: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
3767
3804
|
dashed?: boolean | undefined;
|
|
3768
3805
|
solid?: boolean | undefined;
|
|
3769
3806
|
} | undefined;
|
|
3807
|
+
border?: {
|
|
3808
|
+
strokeWidth?: number | undefined;
|
|
3809
|
+
dashed?: boolean | undefined;
|
|
3810
|
+
solid?: boolean | undefined;
|
|
3811
|
+
} | undefined;
|
|
3770
3812
|
layout?: LayoutBuilder | undefined;
|
|
3771
3813
|
manualEdits?: {
|
|
3772
3814
|
pcb_placements?: {
|
|
@@ -3900,6 +3942,11 @@ declare const subcircuitGroupProps: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
3900
3942
|
dashed?: boolean | undefined;
|
|
3901
3943
|
solid?: boolean | undefined;
|
|
3902
3944
|
} | undefined;
|
|
3945
|
+
border?: {
|
|
3946
|
+
strokeWidth?: string | number | undefined;
|
|
3947
|
+
dashed?: boolean | undefined;
|
|
3948
|
+
solid?: boolean | undefined;
|
|
3949
|
+
} | undefined;
|
|
3903
3950
|
layout?: LayoutBuilder | undefined;
|
|
3904
3951
|
manualEdits?: {
|
|
3905
3952
|
pcb_placements?: {
|
|
@@ -4112,6 +4159,19 @@ declare const subcircuitGroupPropsWithBool: z.ZodObject<z.objectUtil.extendShape
|
|
|
4112
4159
|
dashed?: boolean | undefined;
|
|
4113
4160
|
solid?: boolean | undefined;
|
|
4114
4161
|
}>>;
|
|
4162
|
+
border: z.ZodOptional<z.ZodObject<{
|
|
4163
|
+
strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
4164
|
+
dashed: z.ZodOptional<z.ZodBoolean>;
|
|
4165
|
+
solid: z.ZodOptional<z.ZodBoolean>;
|
|
4166
|
+
}, "strip", z.ZodTypeAny, {
|
|
4167
|
+
strokeWidth?: number | undefined;
|
|
4168
|
+
dashed?: boolean | undefined;
|
|
4169
|
+
solid?: boolean | undefined;
|
|
4170
|
+
}, {
|
|
4171
|
+
strokeWidth?: string | number | undefined;
|
|
4172
|
+
dashed?: boolean | undefined;
|
|
4173
|
+
solid?: boolean | undefined;
|
|
4174
|
+
}>>;
|
|
4115
4175
|
layoutMode: z.ZodOptional<z.ZodEnum<["grid", "flex", "match-adapt", "none"]>>;
|
|
4116
4176
|
position: z.ZodOptional<z.ZodEnum<["absolute", "relative"]>>;
|
|
4117
4177
|
grid: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4426,6 +4486,11 @@ declare const subcircuitGroupPropsWithBool: z.ZodObject<z.objectUtil.extendShape
|
|
|
4426
4486
|
dashed?: boolean | undefined;
|
|
4427
4487
|
solid?: boolean | undefined;
|
|
4428
4488
|
} | undefined;
|
|
4489
|
+
border?: {
|
|
4490
|
+
strokeWidth?: number | undefined;
|
|
4491
|
+
dashed?: boolean | undefined;
|
|
4492
|
+
solid?: boolean | undefined;
|
|
4493
|
+
} | undefined;
|
|
4429
4494
|
layout?: LayoutBuilder | undefined;
|
|
4430
4495
|
manualEdits?: {
|
|
4431
4496
|
pcb_placements?: {
|
|
@@ -4560,6 +4625,11 @@ declare const subcircuitGroupPropsWithBool: z.ZodObject<z.objectUtil.extendShape
|
|
|
4560
4625
|
dashed?: boolean | undefined;
|
|
4561
4626
|
solid?: boolean | undefined;
|
|
4562
4627
|
} | undefined;
|
|
4628
|
+
border?: {
|
|
4629
|
+
strokeWidth?: string | number | undefined;
|
|
4630
|
+
dashed?: boolean | undefined;
|
|
4631
|
+
solid?: boolean | undefined;
|
|
4632
|
+
} | undefined;
|
|
4563
4633
|
layout?: LayoutBuilder | undefined;
|
|
4564
4634
|
manualEdits?: {
|
|
4565
4635
|
pcb_placements?: {
|
|
@@ -4772,6 +4842,19 @@ declare const groupProps: z.ZodDiscriminatedUnion<"subcircuit", [z.ZodObject<z.o
|
|
|
4772
4842
|
dashed?: boolean | undefined;
|
|
4773
4843
|
solid?: boolean | undefined;
|
|
4774
4844
|
}>>;
|
|
4845
|
+
border: z.ZodOptional<z.ZodObject<{
|
|
4846
|
+
strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
4847
|
+
dashed: z.ZodOptional<z.ZodBoolean>;
|
|
4848
|
+
solid: z.ZodOptional<z.ZodBoolean>;
|
|
4849
|
+
}, "strip", z.ZodTypeAny, {
|
|
4850
|
+
strokeWidth?: number | undefined;
|
|
4851
|
+
dashed?: boolean | undefined;
|
|
4852
|
+
solid?: boolean | undefined;
|
|
4853
|
+
}, {
|
|
4854
|
+
strokeWidth?: string | number | undefined;
|
|
4855
|
+
dashed?: boolean | undefined;
|
|
4856
|
+
solid?: boolean | undefined;
|
|
4857
|
+
}>>;
|
|
4775
4858
|
layoutMode: z.ZodOptional<z.ZodEnum<["grid", "flex", "match-adapt", "none"]>>;
|
|
4776
4859
|
position: z.ZodOptional<z.ZodEnum<["absolute", "relative"]>>;
|
|
4777
4860
|
grid: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4882,6 +4965,11 @@ declare const groupProps: z.ZodDiscriminatedUnion<"subcircuit", [z.ZodObject<z.o
|
|
|
4882
4965
|
dashed?: boolean | undefined;
|
|
4883
4966
|
solid?: boolean | undefined;
|
|
4884
4967
|
} | undefined;
|
|
4968
|
+
border?: {
|
|
4969
|
+
strokeWidth?: number | undefined;
|
|
4970
|
+
dashed?: boolean | undefined;
|
|
4971
|
+
solid?: boolean | undefined;
|
|
4972
|
+
} | undefined;
|
|
4885
4973
|
subcircuit?: false | undefined;
|
|
4886
4974
|
}, {
|
|
4887
4975
|
pcbX?: string | number | undefined;
|
|
@@ -4970,6 +5058,11 @@ declare const groupProps: z.ZodDiscriminatedUnion<"subcircuit", [z.ZodObject<z.o
|
|
|
4970
5058
|
dashed?: boolean | undefined;
|
|
4971
5059
|
solid?: boolean | undefined;
|
|
4972
5060
|
} | undefined;
|
|
5061
|
+
border?: {
|
|
5062
|
+
strokeWidth?: string | number | undefined;
|
|
5063
|
+
dashed?: boolean | undefined;
|
|
5064
|
+
solid?: boolean | undefined;
|
|
5065
|
+
} | undefined;
|
|
4973
5066
|
subcircuit?: false | undefined;
|
|
4974
5067
|
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
4975
5068
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -5134,6 +5227,19 @@ declare const groupProps: z.ZodDiscriminatedUnion<"subcircuit", [z.ZodObject<z.o
|
|
|
5134
5227
|
dashed?: boolean | undefined;
|
|
5135
5228
|
solid?: boolean | undefined;
|
|
5136
5229
|
}>>;
|
|
5230
|
+
border: z.ZodOptional<z.ZodObject<{
|
|
5231
|
+
strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
5232
|
+
dashed: z.ZodOptional<z.ZodBoolean>;
|
|
5233
|
+
solid: z.ZodOptional<z.ZodBoolean>;
|
|
5234
|
+
}, "strip", z.ZodTypeAny, {
|
|
5235
|
+
strokeWidth?: number | undefined;
|
|
5236
|
+
dashed?: boolean | undefined;
|
|
5237
|
+
solid?: boolean | undefined;
|
|
5238
|
+
}, {
|
|
5239
|
+
strokeWidth?: string | number | undefined;
|
|
5240
|
+
dashed?: boolean | undefined;
|
|
5241
|
+
solid?: boolean | undefined;
|
|
5242
|
+
}>>;
|
|
5137
5243
|
layoutMode: z.ZodOptional<z.ZodEnum<["grid", "flex", "match-adapt", "none"]>>;
|
|
5138
5244
|
position: z.ZodOptional<z.ZodEnum<["absolute", "relative"]>>;
|
|
5139
5245
|
grid: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -5448,6 +5554,11 @@ declare const groupProps: z.ZodDiscriminatedUnion<"subcircuit", [z.ZodObject<z.o
|
|
|
5448
5554
|
dashed?: boolean | undefined;
|
|
5449
5555
|
solid?: boolean | undefined;
|
|
5450
5556
|
} | undefined;
|
|
5557
|
+
border?: {
|
|
5558
|
+
strokeWidth?: number | undefined;
|
|
5559
|
+
dashed?: boolean | undefined;
|
|
5560
|
+
solid?: boolean | undefined;
|
|
5561
|
+
} | undefined;
|
|
5451
5562
|
layout?: LayoutBuilder | undefined;
|
|
5452
5563
|
manualEdits?: {
|
|
5453
5564
|
pcb_placements?: {
|
|
@@ -5582,6 +5693,11 @@ declare const groupProps: z.ZodDiscriminatedUnion<"subcircuit", [z.ZodObject<z.o
|
|
|
5582
5693
|
dashed?: boolean | undefined;
|
|
5583
5694
|
solid?: boolean | undefined;
|
|
5584
5695
|
} | undefined;
|
|
5696
|
+
border?: {
|
|
5697
|
+
strokeWidth?: string | number | undefined;
|
|
5698
|
+
dashed?: boolean | undefined;
|
|
5699
|
+
solid?: boolean | undefined;
|
|
5700
|
+
} | undefined;
|
|
5585
5701
|
layout?: LayoutBuilder | undefined;
|
|
5586
5702
|
manualEdits?: {
|
|
5587
5703
|
pcb_placements?: {
|
|
@@ -5808,6 +5924,19 @@ declare const boardProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.exte
|
|
|
5808
5924
|
dashed?: boolean | undefined;
|
|
5809
5925
|
solid?: boolean | undefined;
|
|
5810
5926
|
}>>;
|
|
5927
|
+
border: z.ZodOptional<z.ZodObject<{
|
|
5928
|
+
strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
5929
|
+
dashed: z.ZodOptional<z.ZodBoolean>;
|
|
5930
|
+
solid: z.ZodOptional<z.ZodBoolean>;
|
|
5931
|
+
}, "strip", z.ZodTypeAny, {
|
|
5932
|
+
strokeWidth?: number | undefined;
|
|
5933
|
+
dashed?: boolean | undefined;
|
|
5934
|
+
solid?: boolean | undefined;
|
|
5935
|
+
}, {
|
|
5936
|
+
strokeWidth?: string | number | undefined;
|
|
5937
|
+
dashed?: boolean | undefined;
|
|
5938
|
+
solid?: boolean | undefined;
|
|
5939
|
+
}>>;
|
|
5811
5940
|
layoutMode: z.ZodOptional<z.ZodEnum<["grid", "flex", "match-adapt", "none"]>>;
|
|
5812
5941
|
position: z.ZodOptional<z.ZodEnum<["absolute", "relative"]>>;
|
|
5813
5942
|
grid: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -6136,6 +6265,11 @@ declare const boardProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.exte
|
|
|
6136
6265
|
dashed?: boolean | undefined;
|
|
6137
6266
|
solid?: boolean | undefined;
|
|
6138
6267
|
} | undefined;
|
|
6268
|
+
border?: {
|
|
6269
|
+
strokeWidth?: number | undefined;
|
|
6270
|
+
dashed?: boolean | undefined;
|
|
6271
|
+
solid?: boolean | undefined;
|
|
6272
|
+
} | undefined;
|
|
6139
6273
|
layout?: LayoutBuilder | undefined;
|
|
6140
6274
|
manualEdits?: {
|
|
6141
6275
|
pcb_placements?: {
|
|
@@ -6275,6 +6409,11 @@ declare const boardProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.exte
|
|
|
6275
6409
|
dashed?: boolean | undefined;
|
|
6276
6410
|
solid?: boolean | undefined;
|
|
6277
6411
|
} | undefined;
|
|
6412
|
+
border?: {
|
|
6413
|
+
strokeWidth?: string | number | undefined;
|
|
6414
|
+
dashed?: boolean | undefined;
|
|
6415
|
+
solid?: boolean | undefined;
|
|
6416
|
+
} | undefined;
|
|
6278
6417
|
layout?: LayoutBuilder | undefined;
|
|
6279
6418
|
manualEdits?: {
|
|
6280
6419
|
pcb_placements?: {
|
|
@@ -6502,6 +6641,19 @@ declare const breakoutProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.e
|
|
|
6502
6641
|
dashed?: boolean | undefined;
|
|
6503
6642
|
solid?: boolean | undefined;
|
|
6504
6643
|
}>>;
|
|
6644
|
+
border: z.ZodOptional<z.ZodObject<{
|
|
6645
|
+
strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
6646
|
+
dashed: z.ZodOptional<z.ZodBoolean>;
|
|
6647
|
+
solid: z.ZodOptional<z.ZodBoolean>;
|
|
6648
|
+
}, "strip", z.ZodTypeAny, {
|
|
6649
|
+
strokeWidth?: number | undefined;
|
|
6650
|
+
dashed?: boolean | undefined;
|
|
6651
|
+
solid?: boolean | undefined;
|
|
6652
|
+
}, {
|
|
6653
|
+
strokeWidth?: string | number | undefined;
|
|
6654
|
+
dashed?: boolean | undefined;
|
|
6655
|
+
solid?: boolean | undefined;
|
|
6656
|
+
}>>;
|
|
6505
6657
|
layoutMode: z.ZodOptional<z.ZodEnum<["grid", "flex", "match-adapt", "none"]>>;
|
|
6506
6658
|
position: z.ZodOptional<z.ZodEnum<["absolute", "relative"]>>;
|
|
6507
6659
|
grid: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -6819,6 +6971,11 @@ declare const breakoutProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.e
|
|
|
6819
6971
|
dashed?: boolean | undefined;
|
|
6820
6972
|
solid?: boolean | undefined;
|
|
6821
6973
|
} | undefined;
|
|
6974
|
+
border?: {
|
|
6975
|
+
strokeWidth?: number | undefined;
|
|
6976
|
+
dashed?: boolean | undefined;
|
|
6977
|
+
solid?: boolean | undefined;
|
|
6978
|
+
} | undefined;
|
|
6822
6979
|
layout?: _tscircuit_layout.LayoutBuilder | undefined;
|
|
6823
6980
|
manualEdits?: {
|
|
6824
6981
|
pcb_placements?: {
|
|
@@ -6957,6 +7114,11 @@ declare const breakoutProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.e
|
|
|
6957
7114
|
dashed?: boolean | undefined;
|
|
6958
7115
|
solid?: boolean | undefined;
|
|
6959
7116
|
} | undefined;
|
|
7117
|
+
border?: {
|
|
7118
|
+
strokeWidth?: string | number | undefined;
|
|
7119
|
+
dashed?: boolean | undefined;
|
|
7120
|
+
solid?: boolean | undefined;
|
|
7121
|
+
} | undefined;
|
|
6960
7122
|
layout?: _tscircuit_layout.LayoutBuilder | undefined;
|
|
6961
7123
|
manualEdits?: {
|
|
6962
7124
|
pcb_placements?: {
|
|
@@ -11136,12 +11298,12 @@ interface PillPlatedHoleProps extends Omit<PcbLayoutProps, "pcbRotation" | "laye
|
|
|
11136
11298
|
}
|
|
11137
11299
|
interface CircularHoleWithRectPlatedProps extends Omit<PcbLayoutProps, "pcbRotation" | "layer"> {
|
|
11138
11300
|
name?: string;
|
|
11301
|
+
shape: "circular_hole_with_rect_pad";
|
|
11139
11302
|
holeDiameter: number | string;
|
|
11140
11303
|
rectPadWidth: number | string;
|
|
11141
11304
|
rectPadHeight: number | string;
|
|
11142
11305
|
holeShape?: "circle";
|
|
11143
11306
|
padShape?: "rect";
|
|
11144
|
-
shape?: "circular_hole_with_rect_pad";
|
|
11145
11307
|
portHints?: PortHints;
|
|
11146
11308
|
}
|
|
11147
11309
|
interface PillWithRectPadPlatedHoleProps extends Omit<PcbLayoutProps, "pcbRotation" | "layer"> {
|
|
@@ -11156,7 +11318,7 @@ interface PillWithRectPadPlatedHoleProps extends Omit<PcbLayoutProps, "pcbRotati
|
|
|
11156
11318
|
portHints?: PortHints;
|
|
11157
11319
|
}
|
|
11158
11320
|
type PlatedHoleProps = CirclePlatedHoleProps | OvalPlatedHoleProps | PillPlatedHoleProps | CircularHoleWithRectPlatedProps | PillWithRectPadPlatedHoleProps;
|
|
11159
|
-
declare const platedHoleProps: z.ZodEffects<z.
|
|
11321
|
+
declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
11160
11322
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
11161
11323
|
pcbY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
11162
11324
|
pcbRotation: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -11285,7 +11447,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodUnion<[z.ZodObject<z.objectUtil
|
|
|
11285
11447
|
portHints?: (string | number)[] | undefined;
|
|
11286
11448
|
innerWidth?: string | number | undefined;
|
|
11287
11449
|
innerHeight?: string | number | undefined;
|
|
11288
|
-
}>, z.
|
|
11450
|
+
}>, z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
11289
11451
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
11290
11452
|
pcbY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
11291
11453
|
pcbRotation: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -11300,54 +11462,32 @@ declare const platedHoleProps: z.ZodEffects<z.ZodUnion<[z.ZodObject<z.objectUtil
|
|
|
11300
11462
|
}>>;
|
|
11301
11463
|
}, "pcbRotation" | "layer">, {
|
|
11302
11464
|
name: z.ZodOptional<z.ZodString>;
|
|
11465
|
+
shape: z.ZodLiteral<"circular_hole_with_rect_pad">;
|
|
11303
11466
|
holeDiameter: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
11304
11467
|
rectPadWidth: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
11305
11468
|
rectPadHeight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
11306
11469
|
holeShape: z.ZodOptional<z.ZodLiteral<"circle">>;
|
|
11307
11470
|
padShape: z.ZodOptional<z.ZodLiteral<"rect">>;
|
|
11308
|
-
shape: z.ZodOptional<z.ZodLiteral<"circular_hole_with_rect_pad">>;
|
|
11309
11471
|
portHints: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
|
|
11310
11472
|
}>, "strip", z.ZodTypeAny, {
|
|
11473
|
+
shape: "circular_hole_with_rect_pad";
|
|
11311
11474
|
holeDiameter: number;
|
|
11312
11475
|
rectPadWidth: number;
|
|
11313
11476
|
rectPadHeight: number;
|
|
11314
11477
|
pcbX?: number | undefined;
|
|
11315
11478
|
pcbY?: number | undefined;
|
|
11316
11479
|
name?: string | undefined;
|
|
11317
|
-
shape?: "circular_hole_with_rect_pad" | undefined;
|
|
11318
|
-
portHints?: (string | number)[] | undefined;
|
|
11319
|
-
holeShape?: "circle" | undefined;
|
|
11320
|
-
padShape?: "rect" | undefined;
|
|
11321
|
-
}, {
|
|
11322
|
-
holeDiameter: string | number;
|
|
11323
|
-
rectPadWidth: string | number;
|
|
11324
|
-
rectPadHeight: string | number;
|
|
11325
|
-
pcbX?: string | number | undefined;
|
|
11326
|
-
pcbY?: string | number | undefined;
|
|
11327
|
-
name?: string | undefined;
|
|
11328
|
-
shape?: "circular_hole_with_rect_pad" | undefined;
|
|
11329
|
-
portHints?: (string | number)[] | undefined;
|
|
11330
|
-
holeShape?: "circle" | undefined;
|
|
11331
|
-
padShape?: "rect" | undefined;
|
|
11332
|
-
}>, {
|
|
11333
|
-
holeDiameter: number;
|
|
11334
|
-
rectPadWidth: number;
|
|
11335
|
-
rectPadHeight: number;
|
|
11336
|
-
pcbX?: number | undefined;
|
|
11337
|
-
pcbY?: number | undefined;
|
|
11338
|
-
name?: string | undefined;
|
|
11339
|
-
shape?: "circular_hole_with_rect_pad" | undefined;
|
|
11340
11480
|
portHints?: (string | number)[] | undefined;
|
|
11341
11481
|
holeShape?: "circle" | undefined;
|
|
11342
11482
|
padShape?: "rect" | undefined;
|
|
11343
11483
|
}, {
|
|
11484
|
+
shape: "circular_hole_with_rect_pad";
|
|
11344
11485
|
holeDiameter: string | number;
|
|
11345
11486
|
rectPadWidth: string | number;
|
|
11346
11487
|
rectPadHeight: string | number;
|
|
11347
11488
|
pcbX?: string | number | undefined;
|
|
11348
11489
|
pcbY?: string | number | undefined;
|
|
11349
11490
|
name?: string | undefined;
|
|
11350
|
-
shape?: "circular_hole_with_rect_pad" | undefined;
|
|
11351
11491
|
portHints?: (string | number)[] | undefined;
|
|
11352
11492
|
holeShape?: "circle" | undefined;
|
|
11353
11493
|
padShape?: "rect" | undefined;
|
|
@@ -11431,13 +11571,13 @@ declare const platedHoleProps: z.ZodEffects<z.ZodUnion<[z.ZodObject<z.objectUtil
|
|
|
11431
11571
|
innerWidth?: number | undefined;
|
|
11432
11572
|
innerHeight?: number | undefined;
|
|
11433
11573
|
} | {
|
|
11574
|
+
shape: "circular_hole_with_rect_pad";
|
|
11434
11575
|
holeDiameter: number;
|
|
11435
11576
|
rectPadWidth: number;
|
|
11436
11577
|
rectPadHeight: number;
|
|
11437
11578
|
pcbX?: number | undefined;
|
|
11438
11579
|
pcbY?: number | undefined;
|
|
11439
11580
|
name?: string | undefined;
|
|
11440
|
-
shape?: "circular_hole_with_rect_pad" | undefined;
|
|
11441
11581
|
portHints?: (string | number)[] | undefined;
|
|
11442
11582
|
holeShape?: "circle" | undefined;
|
|
11443
11583
|
padShape?: "rect" | undefined;
|
|
@@ -11486,13 +11626,13 @@ declare const platedHoleProps: z.ZodEffects<z.ZodUnion<[z.ZodObject<z.objectUtil
|
|
|
11486
11626
|
innerWidth?: string | number | undefined;
|
|
11487
11627
|
innerHeight?: string | number | undefined;
|
|
11488
11628
|
} | {
|
|
11629
|
+
shape: "circular_hole_with_rect_pad";
|
|
11489
11630
|
holeDiameter: string | number;
|
|
11490
11631
|
rectPadWidth: string | number;
|
|
11491
11632
|
rectPadHeight: string | number;
|
|
11492
11633
|
pcbX?: string | number | undefined;
|
|
11493
11634
|
pcbY?: string | number | undefined;
|
|
11494
11635
|
name?: string | undefined;
|
|
11495
|
-
shape?: "circular_hole_with_rect_pad" | undefined;
|
|
11496
11636
|
portHints?: (string | number)[] | undefined;
|
|
11497
11637
|
holeShape?: "circle" | undefined;
|
|
11498
11638
|
padShape?: "rect" | undefined;
|
|
@@ -13348,6 +13488,19 @@ declare const stampboardProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
|
|
|
13348
13488
|
dashed?: boolean | undefined;
|
|
13349
13489
|
solid?: boolean | undefined;
|
|
13350
13490
|
}>>;
|
|
13491
|
+
border: z.ZodOptional<z.ZodObject<{
|
|
13492
|
+
strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
13493
|
+
dashed: z.ZodOptional<z.ZodBoolean>;
|
|
13494
|
+
solid: z.ZodOptional<z.ZodBoolean>;
|
|
13495
|
+
}, "strip", z.ZodTypeAny, {
|
|
13496
|
+
strokeWidth?: number | undefined;
|
|
13497
|
+
dashed?: boolean | undefined;
|
|
13498
|
+
solid?: boolean | undefined;
|
|
13499
|
+
}, {
|
|
13500
|
+
strokeWidth?: string | number | undefined;
|
|
13501
|
+
dashed?: boolean | undefined;
|
|
13502
|
+
solid?: boolean | undefined;
|
|
13503
|
+
}>>;
|
|
13351
13504
|
layoutMode: z.ZodOptional<z.ZodEnum<["grid", "flex", "match-adapt", "none"]>>;
|
|
13352
13505
|
position: z.ZodOptional<z.ZodEnum<["absolute", "relative"]>>;
|
|
13353
13506
|
grid: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -13691,6 +13844,11 @@ declare const stampboardProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
|
|
|
13691
13844
|
dashed?: boolean | undefined;
|
|
13692
13845
|
solid?: boolean | undefined;
|
|
13693
13846
|
} | undefined;
|
|
13847
|
+
border?: {
|
|
13848
|
+
strokeWidth?: number | undefined;
|
|
13849
|
+
dashed?: boolean | undefined;
|
|
13850
|
+
solid?: boolean | undefined;
|
|
13851
|
+
} | undefined;
|
|
13694
13852
|
layout?: _tscircuit_layout.LayoutBuilder | undefined;
|
|
13695
13853
|
manualEdits?: {
|
|
13696
13854
|
pcb_placements?: {
|
|
@@ -13840,6 +13998,11 @@ declare const stampboardProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
|
|
|
13840
13998
|
dashed?: boolean | undefined;
|
|
13841
13999
|
solid?: boolean | undefined;
|
|
13842
14000
|
} | undefined;
|
|
14001
|
+
border?: {
|
|
14002
|
+
strokeWidth?: string | number | undefined;
|
|
14003
|
+
dashed?: boolean | undefined;
|
|
14004
|
+
solid?: boolean | undefined;
|
|
14005
|
+
} | undefined;
|
|
13843
14006
|
layout?: _tscircuit_layout.LayoutBuilder | undefined;
|
|
13844
14007
|
manualEdits?: {
|
|
13845
14008
|
pcb_placements?: {
|
|
@@ -17732,6 +17895,19 @@ declare const subcircuitProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
|
|
|
17732
17895
|
dashed?: boolean | undefined;
|
|
17733
17896
|
solid?: boolean | undefined;
|
|
17734
17897
|
}>>;
|
|
17898
|
+
border: z.ZodOptional<z.ZodObject<{
|
|
17899
|
+
strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
17900
|
+
dashed: z.ZodOptional<z.ZodBoolean>;
|
|
17901
|
+
solid: z.ZodOptional<z.ZodBoolean>;
|
|
17902
|
+
}, "strip", z.ZodTypeAny, {
|
|
17903
|
+
strokeWidth?: number | undefined;
|
|
17904
|
+
dashed?: boolean | undefined;
|
|
17905
|
+
solid?: boolean | undefined;
|
|
17906
|
+
}, {
|
|
17907
|
+
strokeWidth?: string | number | undefined;
|
|
17908
|
+
dashed?: boolean | undefined;
|
|
17909
|
+
solid?: boolean | undefined;
|
|
17910
|
+
}>>;
|
|
17735
17911
|
layoutMode: z.ZodOptional<z.ZodEnum<["grid", "flex", "match-adapt", "none"]>>;
|
|
17736
17912
|
position: z.ZodOptional<z.ZodEnum<["absolute", "relative"]>>;
|
|
17737
17913
|
grid: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -18043,6 +18219,11 @@ declare const subcircuitProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
|
|
|
18043
18219
|
dashed?: boolean | undefined;
|
|
18044
18220
|
solid?: boolean | undefined;
|
|
18045
18221
|
} | undefined;
|
|
18222
|
+
border?: {
|
|
18223
|
+
strokeWidth?: number | undefined;
|
|
18224
|
+
dashed?: boolean | undefined;
|
|
18225
|
+
solid?: boolean | undefined;
|
|
18226
|
+
} | undefined;
|
|
18046
18227
|
layout?: _tscircuit_layout.LayoutBuilder | undefined;
|
|
18047
18228
|
manualEdits?: {
|
|
18048
18229
|
pcb_placements?: {
|
|
@@ -18176,6 +18357,11 @@ declare const subcircuitProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
|
|
|
18176
18357
|
dashed?: boolean | undefined;
|
|
18177
18358
|
solid?: boolean | undefined;
|
|
18178
18359
|
} | undefined;
|
|
18360
|
+
border?: {
|
|
18361
|
+
strokeWidth?: string | number | undefined;
|
|
18362
|
+
dashed?: boolean | undefined;
|
|
18363
|
+
solid?: boolean | undefined;
|
|
18364
|
+
} | undefined;
|
|
18179
18365
|
layout?: _tscircuit_layout.LayoutBuilder | undefined;
|
|
18180
18366
|
manualEdits?: {
|
|
18181
18367
|
pcb_placements?: {
|
|
@@ -23136,4 +23322,4 @@ declare const platformConfig: z.ZodType<PlatformConfig>;
|
|
|
23136
23322
|
|
|
23137
23323
|
declare const ninePointAnchor: z.ZodEnum<["top_left", "top_center", "top_right", "center_left", "center", "center_right", "bottom_left", "bottom_center", "bottom_right"]>;
|
|
23138
23324
|
|
|
23139
|
-
export { type AutorouterConfig, type AutorouterProp, type BaseGroupProps, type BaseManualEditEvent, type BaseManualEditEventInput, type BatteryProps, type BoardProps, type BreakoutPointProps, type BreakoutProps, type CadModelBase, type CadModelJscad, type CadModelObj, type CadModelProp, type CadModelStl, type CapacitorPinLabels, type CapacitorProps, type
|
|
23325
|
+
export { type AutorouterConfig, type AutorouterProp, type BaseGroupProps, type BaseManualEditEvent, type BaseManualEditEventInput, type BatteryProps, type BoardProps, type Border, type BreakoutPointProps, type BreakoutProps, type CadModelBase, type CadModelJscad, type CadModelObj, type CadModelProp, type CadModelStl, type CapacitorPinLabels, type CapacitorProps, type ChipConnections, type ChipPinLabels, type ChipProps, type ChipPropsSU, type CircleCutoutProps, type CirclePlatedHoleProps, type CircleSmtPadProps, type CircleSolderPasteProps, type CircularHoleWithRectPlatedProps, type CommonComponentProps, type CommonLayoutProps, type ComponentProps, type ConnectionTarget, type Connections, type ConnectorProps, type ConstrainedLayoutProps, type ConstraintProps, type CrystalProps, type CutoutProps, type CutoutPropsInput, type DiodeProps, type Direction, type DirectionAlongEdge, type EditPcbComponentLocationEvent, type EditPcbComponentLocationEventInput, type EditPcbGroupLocationEvent, type EditPcbGroupLocationEventInput, type EditSchematicComponentLocationEvent, type EditSchematicComponentLocationEventInput, type EditSchematicGroupLocationEvent, type EditSchematicGroupLocationEventInput, type EditTraceHintEvent, type EditTraceHintEventInput, type FabricationNotePathProps, type FabricationNoteTextProps, type Footprint, type FootprintProps, type FootprintPropsInput, type FootprintSoupElements, type FusePinLabels, type FuseProps, type GroupProps, type HoleProps, type InductorProps, type InferredChipProps, type InferredConstrainedLayoutProps, type InferredDiodeProps, type InferredFuseProps, type InferredHoleProps, type InferredSmtPadProps, type InferredSolderPasteProps, type InferredSwitchProps, type InferredTestpointProps, type JumperProps, type LayoutConfig, type LedProps, type ManualEditEvent, type ManualEditEventInput, type ManualEditsFile, type ManualEditsFileInput, type ManualPcbPlacement, type ManualPcbPlacementInput, type ManualSchematicPlacement, type ManualSchematicPlacementInput, type ManualTraceHint, type ManualTraceHintInput, type MosfetProps, type NetAliasProps, type NetLabelProps, type NetProps, type NonSubcircuitGroupProps, type OvalPlatedHoleProps, type PartsEngine, type PcbKeepoutProps, type PcbLayoutProps, type PcbRouteCache, type PcbSameXConstraint, type PcbSameYConstraint, type PcbTraceProps, type PcbXDistConstraint, type PcbYDistConstraint, type PillPlatedHoleProps, type PillSmtPadProps, type PillWithRectPadPlatedHoleProps, type PinCompatibleVariant, type PinHeaderProps, type PinLabelFromPinLabelMap, type PinLabelsProp, type PinSideDefinition, type PinVariant, type PlatedHoleProps, type PlatformConfig, type PolygonCutoutProps, type PolygonSmtPadProps, type PortHints, type PortProps, type PotentiometerPinVariant, type PotentiometerProps, type PowerSourceProps, type PushButtonProps, type RectCutoutProps, type RectSmtPadProps, type RectSolderPasteProps, type ResistorPinLabels, type ResistorProps, type ResonatorPinVariant, type ResonatorProps, type RotatedRectSmtPadProps, type SchematicBoxProps, type SchematicLineProps, type SchematicPathProps, type SchematicPinArrangement, type SchematicPinArrangementWithPinCounts, type SchematicPinArrangementWithSides, type SchematicPinArrangementWithSizes, type SchematicPinStyle, type SchematicPortArrangement, type SchematicPortArrangementWithPinCounts, type SchematicPortArrangementWithSides, type SchematicPortArrangementWithSizes, type SchematicTextProps, type Selectors, type SilkscreenCircleProps, type SilkscreenLineProps, type SilkscreenPathProps, type SilkscreenRectProps, type SilkscreenTextProps, type SmtPadProps, type SolderJumperProps, type SolderPasteProps, type StampboardProps, type SubcircuitGroupProps, type SubcircuitGroupPropsWithBool, type SubcircuitProps, type SupplierName, type SupplierPartNumbers, type SupplierProps, type SwitchProps, type TestpointProps, type TraceHintProps, type TraceProps, type TransistorProps, type ViaProps, autorouterConfig, autorouterProp, baseGroupProps, base_manual_edit_event, batteryPins, batteryProps, boardProps, border, breakoutPointProps, breakoutProps, bugProps, cadModelBase, cadModelJscad, cadModelObj, cadModelProp, cadModelStl, capacitorPinLabels, capacitorPins, capacitorProps, chipProps, circleCutoutProps, circleSmtPadProps, circleSolderPasteProps, commonComponentProps, commonLayoutProps, componentProps, connectorProps, constrainedLayoutProps, constraintProps, crystalPins, crystalProps, cutoutProps, diodePins, diodeProps, direction, directionAlongEdge, distanceOrMultiplier, edit_component_location_event, edit_pcb_component_location_event, edit_pcb_group_location_event, edit_schematic_component_location_event, edit_schematic_group_location_event, edit_trace_hint_event, explicitPinSideDefinition, fabricationNotePathProps, fabricationNoteTextProps, footprintProp, footprintProps, fusePinLabels, fuseProps, groupProps, holeProps, inductorPins, inductorProps, jumperProps, layoutConfig, ledPins, ledProps, lrPins, lrPolarPins, manual_edit_event, manual_edits_file, manual_pcb_placement, manual_schematic_placement, manual_trace_hint, mosfetPins, mosfetProps, netAliasProps, netLabelProps, netProps, ninePointAnchor, partsEngine, pcbKeepoutProps, pcbLayoutProps, pcbSameXConstraintProps, pcbSameYConstraintProps, pcbTraceProps, pcbXDistConstraintProps, pcbYDistConstraintProps, pillSmtPadProps, pinCompatibleVariant, pinHeaderProps, pinLabelsProp, platedHoleProps, platformConfig, point3, polygonCutoutProps, polygonSmtPadProps, portHints, portProps, portRef, potentiometerProps, powerSourceProps, pushButtonProps, rectCutoutProps, rectSmtPadProps, rectSolderPasteProps, resistorPinLabels, resistorPins, resistorProps, resonatorProps, rotatedRectSmtPadProps, rotationPoint3, routeHintPointProps, schematicBoxProps, schematicLineProps, schematicPathProps, schematicPinArrangement, schematicPinStyle, schematicPortArrangement, schematicTextProps, silkscreenCircleProps, silkscreenLineProps, silkscreenPathProps, silkscreenRectProps, silkscreenTextProps, smtPadProps, solderPasteProps, solderjumperProps, stampboardProps, subcircuitGroupProps, subcircuitGroupPropsWithBool, subcircuitProps, supplierProps, switchProps, testpointProps, traceHintProps, traceProps, transistorPins, transistorProps, viaProps };
|
package/dist/index.js
CHANGED
|
@@ -331,7 +331,7 @@ var layoutConfig = z21.object({
|
|
|
331
331
|
matchAdaptTemplate: z21.any().optional()
|
|
332
332
|
});
|
|
333
333
|
expectTypesMatch(true);
|
|
334
|
-
var
|
|
334
|
+
var border = z21.object({
|
|
335
335
|
strokeWidth: length.optional(),
|
|
336
336
|
dashed: z21.boolean().optional(),
|
|
337
337
|
solid: z21.boolean().optional()
|
|
@@ -367,7 +367,8 @@ var baseGroupProps = commonLayoutProps.extend({
|
|
|
367
367
|
schHeight: length.optional(),
|
|
368
368
|
pcbLayout: layoutConfig.optional(),
|
|
369
369
|
schLayout: layoutConfig.optional(),
|
|
370
|
-
cellBorder:
|
|
370
|
+
cellBorder: border.optional(),
|
|
371
|
+
border: border.optional()
|
|
371
372
|
});
|
|
372
373
|
var partsEngine = z21.custom((v) => "findPart" in v);
|
|
373
374
|
var subcircuitGroupProps = baseGroupProps.extend({
|
|
@@ -515,7 +516,7 @@ var distanceHiddenUndefined = z29.custom().transform((a) => {
|
|
|
515
516
|
return void 0;
|
|
516
517
|
return distance10.parse(a);
|
|
517
518
|
});
|
|
518
|
-
var platedHoleProps = z29.
|
|
519
|
+
var platedHoleProps = z29.discriminatedUnion("shape", [
|
|
519
520
|
pcbLayoutProps.omit({ pcbRotation: true, layer: true }).extend({
|
|
520
521
|
name: z29.string().optional(),
|
|
521
522
|
shape: z29.literal("circle"),
|
|
@@ -547,21 +548,14 @@ var platedHoleProps = z29.union([
|
|
|
547
548
|
}),
|
|
548
549
|
pcbLayoutProps.omit({ pcbRotation: true, layer: true }).extend({
|
|
549
550
|
name: z29.string().optional(),
|
|
551
|
+
shape: z29.literal("circular_hole_with_rect_pad"),
|
|
550
552
|
holeDiameter: distance10,
|
|
551
553
|
rectPadWidth: distance10,
|
|
552
554
|
rectPadHeight: distance10,
|
|
553
555
|
holeShape: z29.literal("circle").optional(),
|
|
554
556
|
padShape: z29.literal("rect").optional(),
|
|
555
|
-
shape: z29.literal("circular_hole_with_rect_pad").optional(),
|
|
556
557
|
portHints: portHints.optional()
|
|
557
|
-
})
|
|
558
|
-
(prop) => {
|
|
559
|
-
return prop.shape === "circular_hole_with_rect_pad" ? prop.holeDiameter && prop.rectPadWidth && prop.rectPadHeight : true;
|
|
560
|
-
},
|
|
561
|
-
{
|
|
562
|
-
message: "Missing required fields for circular_hole_with_rect_pad"
|
|
563
|
-
}
|
|
564
|
-
),
|
|
558
|
+
}),
|
|
565
559
|
pcbLayoutProps.omit({ pcbRotation: true, layer: true }).extend({
|
|
566
560
|
name: z29.string().optional(),
|
|
567
561
|
shape: z29.literal("pill_hole_with_rect_pad"),
|
|
@@ -1419,6 +1413,7 @@ export {
|
|
|
1419
1413
|
batteryPins,
|
|
1420
1414
|
batteryProps,
|
|
1421
1415
|
boardProps,
|
|
1416
|
+
border,
|
|
1422
1417
|
breakoutPointProps,
|
|
1423
1418
|
breakoutProps,
|
|
1424
1419
|
bugProps,
|
|
@@ -1430,7 +1425,6 @@ export {
|
|
|
1430
1425
|
capacitorPinLabels,
|
|
1431
1426
|
capacitorPins,
|
|
1432
1427
|
capacitorProps,
|
|
1433
|
-
cellBorder,
|
|
1434
1428
|
chipProps,
|
|
1435
1429
|
circleCutoutProps,
|
|
1436
1430
|
circleSmtPadProps,
|