circuit-json 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/README.md +6 -0
- package/dist/index.d.mts +36 -0
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -779,6 +779,8 @@ interface SourcePinAttributes {
|
|
|
779
779
|
requires_ground?: boolean
|
|
780
780
|
provides_voltage?: number
|
|
781
781
|
requires_voltage?: number
|
|
782
|
+
/** Allowed relative deviation from requires_voltage, e.g. 0.05 for ±5%. */
|
|
783
|
+
required_voltage_tolerance?: number
|
|
782
784
|
do_not_connect?: boolean
|
|
783
785
|
include_in_board_pinout?: boolean
|
|
784
786
|
can_use_internal_pullup?: boolean
|
|
@@ -2066,6 +2068,10 @@ interface PcbFabricationNotePath {
|
|
|
2066
2068
|
route: Point[]
|
|
2067
2069
|
stroke_width: Length
|
|
2068
2070
|
color?: string
|
|
2071
|
+
/** Fill the route as a closed polygon using color. Defaults to false. */
|
|
2072
|
+
is_filled?: boolean
|
|
2073
|
+
/** Draw the outline using stroke_width and color. Defaults to true. */
|
|
2074
|
+
has_stroke?: boolean
|
|
2069
2075
|
}
|
|
2070
2076
|
```
|
|
2071
2077
|
|
package/dist/index.d.mts
CHANGED
|
@@ -12260,6 +12260,8 @@ declare const pcb_fabrication_note_path: z.ZodObject<{
|
|
|
12260
12260
|
}>, "many">;
|
|
12261
12261
|
stroke_width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
12262
12262
|
color: z.ZodOptional<z.ZodString>;
|
|
12263
|
+
is_filled: z.ZodOptional<z.ZodBoolean>;
|
|
12264
|
+
has_stroke: z.ZodOptional<z.ZodBoolean>;
|
|
12263
12265
|
}, "strip", z.ZodTypeAny, {
|
|
12264
12266
|
type: "pcb_fabrication_note_path";
|
|
12265
12267
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8";
|
|
@@ -12271,6 +12273,8 @@ declare const pcb_fabrication_note_path: z.ZodObject<{
|
|
|
12271
12273
|
stroke_width: number;
|
|
12272
12274
|
pcb_fabrication_note_path_id: string;
|
|
12273
12275
|
subcircuit_id?: string | undefined;
|
|
12276
|
+
is_filled?: boolean | undefined;
|
|
12277
|
+
has_stroke?: boolean | undefined;
|
|
12274
12278
|
color?: string | undefined;
|
|
12275
12279
|
}, {
|
|
12276
12280
|
type: "pcb_fabrication_note_path";
|
|
@@ -12284,6 +12288,8 @@ declare const pcb_fabrication_note_path: z.ZodObject<{
|
|
|
12284
12288
|
}[];
|
|
12285
12289
|
stroke_width: string | number;
|
|
12286
12290
|
subcircuit_id?: string | undefined;
|
|
12291
|
+
is_filled?: boolean | undefined;
|
|
12292
|
+
has_stroke?: boolean | undefined;
|
|
12287
12293
|
color?: string | undefined;
|
|
12288
12294
|
pcb_fabrication_note_path_id?: string | undefined;
|
|
12289
12295
|
}>;
|
|
@@ -12300,6 +12306,10 @@ interface PcbFabricationNotePath {
|
|
|
12300
12306
|
route: Point[];
|
|
12301
12307
|
stroke_width: Length;
|
|
12302
12308
|
color?: string;
|
|
12309
|
+
/** Fill the route as a closed polygon using color. Defaults to false. */
|
|
12310
|
+
is_filled?: boolean;
|
|
12311
|
+
/** Draw the outline using stroke_width and color. Defaults to true. */
|
|
12312
|
+
has_stroke?: boolean;
|
|
12303
12313
|
}
|
|
12304
12314
|
/**
|
|
12305
12315
|
* @deprecated use PcbFabricationNotePath
|
|
@@ -32372,6 +32382,7 @@ declare const source_pin_attributes: z.ZodObject<{
|
|
|
32372
32382
|
requires_ground: z.ZodOptional<z.ZodBoolean>;
|
|
32373
32383
|
provides_voltage: z.ZodOptional<z.ZodType<number, z.ZodTypeDef, string | number>>;
|
|
32374
32384
|
requires_voltage: z.ZodOptional<z.ZodType<number, z.ZodTypeDef, string | number>>;
|
|
32385
|
+
required_voltage_tolerance: z.ZodOptional<z.ZodNumber>;
|
|
32375
32386
|
do_not_connect: z.ZodOptional<z.ZodBoolean>;
|
|
32376
32387
|
include_in_board_pinout: z.ZodOptional<z.ZodBoolean>;
|
|
32377
32388
|
can_use_internal_pullup: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -32422,6 +32433,7 @@ declare const source_pin_attributes: z.ZodObject<{
|
|
|
32422
32433
|
requires_ground?: boolean | undefined;
|
|
32423
32434
|
provides_voltage?: number | undefined;
|
|
32424
32435
|
requires_voltage?: number | undefined;
|
|
32436
|
+
required_voltage_tolerance?: number | undefined;
|
|
32425
32437
|
do_not_connect?: boolean | undefined;
|
|
32426
32438
|
include_in_board_pinout?: boolean | undefined;
|
|
32427
32439
|
can_use_internal_pullup?: boolean | undefined;
|
|
@@ -32472,6 +32484,7 @@ declare const source_pin_attributes: z.ZodObject<{
|
|
|
32472
32484
|
requires_ground?: boolean | undefined;
|
|
32473
32485
|
provides_voltage?: string | number | undefined;
|
|
32474
32486
|
requires_voltage?: string | number | undefined;
|
|
32487
|
+
required_voltage_tolerance?: number | undefined;
|
|
32475
32488
|
do_not_connect?: boolean | undefined;
|
|
32476
32489
|
include_in_board_pinout?: boolean | undefined;
|
|
32477
32490
|
can_use_internal_pullup?: boolean | undefined;
|
|
@@ -32524,6 +32537,8 @@ interface SourcePinAttributes {
|
|
|
32524
32537
|
requires_ground?: boolean;
|
|
32525
32538
|
provides_voltage?: number;
|
|
32526
32539
|
requires_voltage?: number;
|
|
32540
|
+
/** Allowed relative deviation from requires_voltage, e.g. 0.05 for ±5%. */
|
|
32541
|
+
required_voltage_tolerance?: number;
|
|
32527
32542
|
do_not_connect?: boolean;
|
|
32528
32543
|
include_in_board_pinout?: boolean;
|
|
32529
32544
|
can_use_internal_pullup?: boolean;
|
|
@@ -35808,6 +35823,7 @@ declare const source_port: z.ZodObject<{
|
|
|
35808
35823
|
requires_ground: z.ZodOptional<z.ZodBoolean>;
|
|
35809
35824
|
provides_voltage: z.ZodOptional<z.ZodType<number, z.ZodTypeDef, string | number>>;
|
|
35810
35825
|
requires_voltage: z.ZodOptional<z.ZodType<number, z.ZodTypeDef, string | number>>;
|
|
35826
|
+
required_voltage_tolerance: z.ZodOptional<z.ZodNumber>;
|
|
35811
35827
|
do_not_connect: z.ZodOptional<z.ZodBoolean>;
|
|
35812
35828
|
include_in_board_pinout: z.ZodOptional<z.ZodBoolean>;
|
|
35813
35829
|
can_use_internal_pullup: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -35867,6 +35883,7 @@ declare const source_port: z.ZodObject<{
|
|
|
35867
35883
|
requires_ground?: boolean | undefined;
|
|
35868
35884
|
provides_voltage?: number | undefined;
|
|
35869
35885
|
requires_voltage?: number | undefined;
|
|
35886
|
+
required_voltage_tolerance?: number | undefined;
|
|
35870
35887
|
do_not_connect?: boolean | undefined;
|
|
35871
35888
|
include_in_board_pinout?: boolean | undefined;
|
|
35872
35889
|
can_use_internal_pullup?: boolean | undefined;
|
|
@@ -35927,6 +35944,7 @@ declare const source_port: z.ZodObject<{
|
|
|
35927
35944
|
requires_ground?: boolean | undefined;
|
|
35928
35945
|
provides_voltage?: string | number | undefined;
|
|
35929
35946
|
requires_voltage?: string | number | undefined;
|
|
35947
|
+
required_voltage_tolerance?: number | undefined;
|
|
35930
35948
|
do_not_connect?: boolean | undefined;
|
|
35931
35949
|
include_in_board_pinout?: boolean | undefined;
|
|
35932
35950
|
can_use_internal_pullup?: boolean | undefined;
|
|
@@ -40088,6 +40106,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
40088
40106
|
requires_ground: z.ZodOptional<z.ZodBoolean>;
|
|
40089
40107
|
provides_voltage: z.ZodOptional<z.ZodType<number, z.ZodTypeDef, string | number>>;
|
|
40090
40108
|
requires_voltage: z.ZodOptional<z.ZodType<number, z.ZodTypeDef, string | number>>;
|
|
40109
|
+
required_voltage_tolerance: z.ZodOptional<z.ZodNumber>;
|
|
40091
40110
|
do_not_connect: z.ZodOptional<z.ZodBoolean>;
|
|
40092
40111
|
include_in_board_pinout: z.ZodOptional<z.ZodBoolean>;
|
|
40093
40112
|
can_use_internal_pullup: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -40147,6 +40166,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
40147
40166
|
requires_ground?: boolean | undefined;
|
|
40148
40167
|
provides_voltage?: number | undefined;
|
|
40149
40168
|
requires_voltage?: number | undefined;
|
|
40169
|
+
required_voltage_tolerance?: number | undefined;
|
|
40150
40170
|
do_not_connect?: boolean | undefined;
|
|
40151
40171
|
include_in_board_pinout?: boolean | undefined;
|
|
40152
40172
|
can_use_internal_pullup?: boolean | undefined;
|
|
@@ -40207,6 +40227,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
40207
40227
|
requires_ground?: boolean | undefined;
|
|
40208
40228
|
provides_voltage?: string | number | undefined;
|
|
40209
40229
|
requires_voltage?: string | number | undefined;
|
|
40230
|
+
required_voltage_tolerance?: number | undefined;
|
|
40210
40231
|
do_not_connect?: boolean | undefined;
|
|
40211
40232
|
include_in_board_pinout?: boolean | undefined;
|
|
40212
40233
|
can_use_internal_pullup?: boolean | undefined;
|
|
@@ -50678,6 +50699,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
50678
50699
|
}>, "many">;
|
|
50679
50700
|
stroke_width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
50680
50701
|
color: z.ZodOptional<z.ZodString>;
|
|
50702
|
+
is_filled: z.ZodOptional<z.ZodBoolean>;
|
|
50703
|
+
has_stroke: z.ZodOptional<z.ZodBoolean>;
|
|
50681
50704
|
}, "strip", z.ZodTypeAny, {
|
|
50682
50705
|
type: "pcb_fabrication_note_path";
|
|
50683
50706
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8";
|
|
@@ -50689,6 +50712,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
50689
50712
|
stroke_width: number;
|
|
50690
50713
|
pcb_fabrication_note_path_id: string;
|
|
50691
50714
|
subcircuit_id?: string | undefined;
|
|
50715
|
+
is_filled?: boolean | undefined;
|
|
50716
|
+
has_stroke?: boolean | undefined;
|
|
50692
50717
|
color?: string | undefined;
|
|
50693
50718
|
}, {
|
|
50694
50719
|
type: "pcb_fabrication_note_path";
|
|
@@ -50702,6 +50727,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
50702
50727
|
}[];
|
|
50703
50728
|
stroke_width: string | number;
|
|
50704
50729
|
subcircuit_id?: string | undefined;
|
|
50730
|
+
is_filled?: boolean | undefined;
|
|
50731
|
+
has_stroke?: boolean | undefined;
|
|
50705
50732
|
color?: string | undefined;
|
|
50706
50733
|
pcb_fabrication_note_path_id?: string | undefined;
|
|
50707
50734
|
}>, z.ZodObject<{
|
|
@@ -62665,6 +62692,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
62665
62692
|
requires_ground: z.ZodOptional<z.ZodBoolean>;
|
|
62666
62693
|
provides_voltage: z.ZodOptional<z.ZodType<number, z.ZodTypeDef, string | number>>;
|
|
62667
62694
|
requires_voltage: z.ZodOptional<z.ZodType<number, z.ZodTypeDef, string | number>>;
|
|
62695
|
+
required_voltage_tolerance: z.ZodOptional<z.ZodNumber>;
|
|
62668
62696
|
do_not_connect: z.ZodOptional<z.ZodBoolean>;
|
|
62669
62697
|
include_in_board_pinout: z.ZodOptional<z.ZodBoolean>;
|
|
62670
62698
|
can_use_internal_pullup: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -62724,6 +62752,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
62724
62752
|
requires_ground?: boolean | undefined;
|
|
62725
62753
|
provides_voltage?: number | undefined;
|
|
62726
62754
|
requires_voltage?: number | undefined;
|
|
62755
|
+
required_voltage_tolerance?: number | undefined;
|
|
62727
62756
|
do_not_connect?: boolean | undefined;
|
|
62728
62757
|
include_in_board_pinout?: boolean | undefined;
|
|
62729
62758
|
can_use_internal_pullup?: boolean | undefined;
|
|
@@ -62784,6 +62813,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
62784
62813
|
requires_ground?: boolean | undefined;
|
|
62785
62814
|
provides_voltage?: string | number | undefined;
|
|
62786
62815
|
requires_voltage?: string | number | undefined;
|
|
62816
|
+
required_voltage_tolerance?: number | undefined;
|
|
62787
62817
|
do_not_connect?: boolean | undefined;
|
|
62788
62818
|
include_in_board_pinout?: boolean | undefined;
|
|
62789
62819
|
can_use_internal_pullup?: boolean | undefined;
|
|
@@ -73255,6 +73285,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
73255
73285
|
}>, "many">;
|
|
73256
73286
|
stroke_width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
73257
73287
|
color: z.ZodOptional<z.ZodString>;
|
|
73288
|
+
is_filled: z.ZodOptional<z.ZodBoolean>;
|
|
73289
|
+
has_stroke: z.ZodOptional<z.ZodBoolean>;
|
|
73258
73290
|
}, "strip", z.ZodTypeAny, {
|
|
73259
73291
|
type: "pcb_fabrication_note_path";
|
|
73260
73292
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8";
|
|
@@ -73266,6 +73298,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
73266
73298
|
stroke_width: number;
|
|
73267
73299
|
pcb_fabrication_note_path_id: string;
|
|
73268
73300
|
subcircuit_id?: string | undefined;
|
|
73301
|
+
is_filled?: boolean | undefined;
|
|
73302
|
+
has_stroke?: boolean | undefined;
|
|
73269
73303
|
color?: string | undefined;
|
|
73270
73304
|
}, {
|
|
73271
73305
|
type: "pcb_fabrication_note_path";
|
|
@@ -73279,6 +73313,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
73279
73313
|
}[];
|
|
73280
73314
|
stroke_width: string | number;
|
|
73281
73315
|
subcircuit_id?: string | undefined;
|
|
73316
|
+
is_filled?: boolean | undefined;
|
|
73317
|
+
has_stroke?: boolean | undefined;
|
|
73282
73318
|
color?: string | undefined;
|
|
73283
73319
|
pcb_fabrication_note_path_id?: string | undefined;
|
|
73284
73320
|
}>, z.ZodObject<{
|
package/dist/index.mjs
CHANGED
|
@@ -507,6 +507,7 @@ var source_pin_attributes = z29.object({
|
|
|
507
507
|
requires_ground: z29.boolean().optional(),
|
|
508
508
|
provides_voltage: pin_voltage.optional(),
|
|
509
509
|
requires_voltage: pin_voltage.optional(),
|
|
510
|
+
required_voltage_tolerance: z29.number().finite().min(0).max(1).optional(),
|
|
510
511
|
do_not_connect: z29.boolean().optional(),
|
|
511
512
|
include_in_board_pinout: z29.boolean().optional(),
|
|
512
513
|
can_use_internal_pullup: z29.boolean().optional(),
|
|
@@ -3488,7 +3489,9 @@ var pcb_fabrication_note_path = z154.object({
|
|
|
3488
3489
|
layer: layer_ref,
|
|
3489
3490
|
route: z154.array(point),
|
|
3490
3491
|
stroke_width: length,
|
|
3491
|
-
color: z154.string().optional()
|
|
3492
|
+
color: z154.string().optional(),
|
|
3493
|
+
is_filled: z154.boolean().optional(),
|
|
3494
|
+
has_stroke: z154.boolean().optional()
|
|
3492
3495
|
}).describe(
|
|
3493
3496
|
"Defines a fabrication path on the PCB for fabricators or assemblers"
|
|
3494
3497
|
);
|