circuit-json 0.0.260 → 0.0.262
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.mts +30 -20
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1077,7 +1077,7 @@ interface PcbNet {
|
|
|
1077
1077
|
type: "pcb_net"
|
|
1078
1078
|
pcb_net_id: string
|
|
1079
1079
|
source_net_id?: string
|
|
1080
|
-
|
|
1080
|
+
highlight_color?: string
|
|
1081
1081
|
}
|
|
1082
1082
|
```
|
|
1083
1083
|
|
|
@@ -1698,6 +1698,7 @@ interface SchematicComponent {
|
|
|
1698
1698
|
schematic_group_id?: string
|
|
1699
1699
|
is_schematic_group?: boolean
|
|
1700
1700
|
source_group_id?: string
|
|
1701
|
+
is_box_with_pins: boolean
|
|
1701
1702
|
}
|
|
1702
1703
|
|
|
1703
1704
|
interface SchematicPortArrangementBySize {
|
package/dist/index.d.mts
CHANGED
|
@@ -2277,7 +2277,7 @@ declare const pcb_trace: z.ZodObject<{
|
|
|
2277
2277
|
route_order_index: z.ZodOptional<z.ZodNumber>;
|
|
2278
2278
|
should_round_corners: z.ZodOptional<z.ZodBoolean>;
|
|
2279
2279
|
trace_length: z.ZodOptional<z.ZodNumber>;
|
|
2280
|
-
|
|
2280
|
+
highlight_color: z.ZodOptional<z.ZodString>;
|
|
2281
2281
|
route: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
2282
2282
|
route_type: z.ZodLiteral<"wire">;
|
|
2283
2283
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
@@ -2365,7 +2365,7 @@ declare const pcb_trace: z.ZodObject<{
|
|
|
2365
2365
|
route_order_index?: number | undefined;
|
|
2366
2366
|
should_round_corners?: boolean | undefined;
|
|
2367
2367
|
trace_length?: number | undefined;
|
|
2368
|
-
|
|
2368
|
+
highlight_color?: string | undefined;
|
|
2369
2369
|
}, {
|
|
2370
2370
|
type: "pcb_trace";
|
|
2371
2371
|
route: ({
|
|
@@ -2396,7 +2396,7 @@ declare const pcb_trace: z.ZodObject<{
|
|
|
2396
2396
|
route_order_index?: number | undefined;
|
|
2397
2397
|
should_round_corners?: boolean | undefined;
|
|
2398
2398
|
trace_length?: number | undefined;
|
|
2399
|
-
|
|
2399
|
+
highlight_color?: string | undefined;
|
|
2400
2400
|
}>;
|
|
2401
2401
|
type PcbTraceInput = z.input<typeof pcb_trace>;
|
|
2402
2402
|
interface PcbTraceRoutePointWire {
|
|
@@ -2438,7 +2438,7 @@ interface PcbTrace {
|
|
|
2438
2438
|
route_thickness_mode?: "constant" | "interpolated";
|
|
2439
2439
|
should_round_corners?: boolean;
|
|
2440
2440
|
trace_length?: number;
|
|
2441
|
-
|
|
2441
|
+
highlight_color?: string;
|
|
2442
2442
|
route: Array<PcbTraceRoutePoint>;
|
|
2443
2443
|
}
|
|
2444
2444
|
/**
|
|
@@ -2668,15 +2668,15 @@ declare const pcb_net: z.ZodObject<{
|
|
|
2668
2668
|
type: z.ZodLiteral<"pcb_net">;
|
|
2669
2669
|
pcb_net_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
2670
2670
|
source_net_id: z.ZodOptional<z.ZodString>;
|
|
2671
|
-
|
|
2671
|
+
highlight_color: z.ZodOptional<z.ZodString>;
|
|
2672
2672
|
}, "strip", z.ZodTypeAny, {
|
|
2673
2673
|
type: "pcb_net";
|
|
2674
2674
|
pcb_net_id: string;
|
|
2675
|
-
|
|
2675
|
+
highlight_color?: string | undefined;
|
|
2676
2676
|
source_net_id?: string | undefined;
|
|
2677
2677
|
}, {
|
|
2678
2678
|
type: "pcb_net";
|
|
2679
|
-
|
|
2679
|
+
highlight_color?: string | undefined;
|
|
2680
2680
|
pcb_net_id?: string | undefined;
|
|
2681
2681
|
source_net_id?: string | undefined;
|
|
2682
2682
|
}>;
|
|
@@ -2688,7 +2688,7 @@ interface PcbNet {
|
|
|
2688
2688
|
type: "pcb_net";
|
|
2689
2689
|
pcb_net_id: string;
|
|
2690
2690
|
source_net_id?: string;
|
|
2691
|
-
|
|
2691
|
+
highlight_color?: string;
|
|
2692
2692
|
}
|
|
2693
2693
|
|
|
2694
2694
|
declare const pcb_via: z.ZodObject<{
|
|
@@ -5401,6 +5401,7 @@ interface SchematicComponent {
|
|
|
5401
5401
|
schematic_group_id?: string;
|
|
5402
5402
|
is_schematic_group?: boolean;
|
|
5403
5403
|
source_group_id?: string;
|
|
5404
|
+
is_box_with_pins: boolean;
|
|
5404
5405
|
}
|
|
5405
5406
|
declare const schematic_component_port_arrangement_by_size: z.ZodObject<{
|
|
5406
5407
|
left_size: z.ZodNumber;
|
|
@@ -5725,6 +5726,7 @@ declare const schematic_component: z.ZodObject<{
|
|
|
5725
5726
|
schematic_group_id: z.ZodOptional<z.ZodString>;
|
|
5726
5727
|
is_schematic_group: z.ZodOptional<z.ZodBoolean>;
|
|
5727
5728
|
source_group_id: z.ZodOptional<z.ZodString>;
|
|
5729
|
+
is_box_with_pins: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
5728
5730
|
}, "strip", z.ZodTypeAny, {
|
|
5729
5731
|
type: "schematic_component";
|
|
5730
5732
|
center: {
|
|
@@ -5736,6 +5738,7 @@ declare const schematic_component: z.ZodObject<{
|
|
|
5736
5738
|
width: number;
|
|
5737
5739
|
height: number;
|
|
5738
5740
|
};
|
|
5741
|
+
is_box_with_pins: boolean;
|
|
5739
5742
|
source_component_id?: string | undefined;
|
|
5740
5743
|
subcircuit_id?: string | undefined;
|
|
5741
5744
|
source_group_id?: string | undefined;
|
|
@@ -5825,6 +5828,7 @@ declare const schematic_component: z.ZodObject<{
|
|
|
5825
5828
|
symbol_display_value?: string | undefined;
|
|
5826
5829
|
schematic_group_id?: string | undefined;
|
|
5827
5830
|
is_schematic_group?: boolean | undefined;
|
|
5831
|
+
is_box_with_pins?: boolean | undefined;
|
|
5828
5832
|
}>;
|
|
5829
5833
|
type SchematicComponentInput = z.input<typeof schematic_component>;
|
|
5830
5834
|
|
|
@@ -12762,15 +12766,15 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
12762
12766
|
type: z.ZodLiteral<"pcb_net">;
|
|
12763
12767
|
pcb_net_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
12764
12768
|
source_net_id: z.ZodOptional<z.ZodString>;
|
|
12765
|
-
|
|
12769
|
+
highlight_color: z.ZodOptional<z.ZodString>;
|
|
12766
12770
|
}, "strip", z.ZodTypeAny, {
|
|
12767
12771
|
type: "pcb_net";
|
|
12768
12772
|
pcb_net_id: string;
|
|
12769
|
-
|
|
12773
|
+
highlight_color?: string | undefined;
|
|
12770
12774
|
source_net_id?: string | undefined;
|
|
12771
12775
|
}, {
|
|
12772
12776
|
type: "pcb_net";
|
|
12773
|
-
|
|
12777
|
+
highlight_color?: string | undefined;
|
|
12774
12778
|
pcb_net_id?: string | undefined;
|
|
12775
12779
|
source_net_id?: string | undefined;
|
|
12776
12780
|
}>, z.ZodObject<{
|
|
@@ -12845,7 +12849,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
12845
12849
|
route_order_index: z.ZodOptional<z.ZodNumber>;
|
|
12846
12850
|
should_round_corners: z.ZodOptional<z.ZodBoolean>;
|
|
12847
12851
|
trace_length: z.ZodOptional<z.ZodNumber>;
|
|
12848
|
-
|
|
12852
|
+
highlight_color: z.ZodOptional<z.ZodString>;
|
|
12849
12853
|
route: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
12850
12854
|
route_type: z.ZodLiteral<"wire">;
|
|
12851
12855
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
@@ -12933,7 +12937,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
12933
12937
|
route_order_index?: number | undefined;
|
|
12934
12938
|
should_round_corners?: boolean | undefined;
|
|
12935
12939
|
trace_length?: number | undefined;
|
|
12936
|
-
|
|
12940
|
+
highlight_color?: string | undefined;
|
|
12937
12941
|
}, {
|
|
12938
12942
|
type: "pcb_trace";
|
|
12939
12943
|
route: ({
|
|
@@ -12964,7 +12968,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
12964
12968
|
route_order_index?: number | undefined;
|
|
12965
12969
|
should_round_corners?: boolean | undefined;
|
|
12966
12970
|
trace_length?: number | undefined;
|
|
12967
|
-
|
|
12971
|
+
highlight_color?: string | undefined;
|
|
12968
12972
|
}>, z.ZodObject<{
|
|
12969
12973
|
type: z.ZodLiteral<"pcb_via">;
|
|
12970
12974
|
pcb_via_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -15482,6 +15486,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15482
15486
|
schematic_group_id: z.ZodOptional<z.ZodString>;
|
|
15483
15487
|
is_schematic_group: z.ZodOptional<z.ZodBoolean>;
|
|
15484
15488
|
source_group_id: z.ZodOptional<z.ZodString>;
|
|
15489
|
+
is_box_with_pins: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
15485
15490
|
}, "strip", z.ZodTypeAny, {
|
|
15486
15491
|
type: "schematic_component";
|
|
15487
15492
|
center: {
|
|
@@ -15493,6 +15498,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15493
15498
|
width: number;
|
|
15494
15499
|
height: number;
|
|
15495
15500
|
};
|
|
15501
|
+
is_box_with_pins: boolean;
|
|
15496
15502
|
source_component_id?: string | undefined;
|
|
15497
15503
|
subcircuit_id?: string | undefined;
|
|
15498
15504
|
source_group_id?: string | undefined;
|
|
@@ -15582,6 +15588,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15582
15588
|
symbol_display_value?: string | undefined;
|
|
15583
15589
|
schematic_group_id?: string | undefined;
|
|
15584
15590
|
is_schematic_group?: boolean | undefined;
|
|
15591
|
+
is_box_with_pins?: boolean | undefined;
|
|
15585
15592
|
}>, z.ZodObject<{
|
|
15586
15593
|
type: z.ZodLiteral<"schematic_port">;
|
|
15587
15594
|
schematic_port_id: z.ZodString;
|
|
@@ -19130,15 +19137,15 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
19130
19137
|
type: z.ZodLiteral<"pcb_net">;
|
|
19131
19138
|
pcb_net_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
19132
19139
|
source_net_id: z.ZodOptional<z.ZodString>;
|
|
19133
|
-
|
|
19140
|
+
highlight_color: z.ZodOptional<z.ZodString>;
|
|
19134
19141
|
}, "strip", z.ZodTypeAny, {
|
|
19135
19142
|
type: "pcb_net";
|
|
19136
19143
|
pcb_net_id: string;
|
|
19137
|
-
|
|
19144
|
+
highlight_color?: string | undefined;
|
|
19138
19145
|
source_net_id?: string | undefined;
|
|
19139
19146
|
}, {
|
|
19140
19147
|
type: "pcb_net";
|
|
19141
|
-
|
|
19148
|
+
highlight_color?: string | undefined;
|
|
19142
19149
|
pcb_net_id?: string | undefined;
|
|
19143
19150
|
source_net_id?: string | undefined;
|
|
19144
19151
|
}>, z.ZodObject<{
|
|
@@ -19213,7 +19220,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
19213
19220
|
route_order_index: z.ZodOptional<z.ZodNumber>;
|
|
19214
19221
|
should_round_corners: z.ZodOptional<z.ZodBoolean>;
|
|
19215
19222
|
trace_length: z.ZodOptional<z.ZodNumber>;
|
|
19216
|
-
|
|
19223
|
+
highlight_color: z.ZodOptional<z.ZodString>;
|
|
19217
19224
|
route: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
19218
19225
|
route_type: z.ZodLiteral<"wire">;
|
|
19219
19226
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
@@ -19301,7 +19308,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
19301
19308
|
route_order_index?: number | undefined;
|
|
19302
19309
|
should_round_corners?: boolean | undefined;
|
|
19303
19310
|
trace_length?: number | undefined;
|
|
19304
|
-
|
|
19311
|
+
highlight_color?: string | undefined;
|
|
19305
19312
|
}, {
|
|
19306
19313
|
type: "pcb_trace";
|
|
19307
19314
|
route: ({
|
|
@@ -19332,7 +19339,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
19332
19339
|
route_order_index?: number | undefined;
|
|
19333
19340
|
should_round_corners?: boolean | undefined;
|
|
19334
19341
|
trace_length?: number | undefined;
|
|
19335
|
-
|
|
19342
|
+
highlight_color?: string | undefined;
|
|
19336
19343
|
}>, z.ZodObject<{
|
|
19337
19344
|
type: z.ZodLiteral<"pcb_via">;
|
|
19338
19345
|
pcb_via_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -21850,6 +21857,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
21850
21857
|
schematic_group_id: z.ZodOptional<z.ZodString>;
|
|
21851
21858
|
is_schematic_group: z.ZodOptional<z.ZodBoolean>;
|
|
21852
21859
|
source_group_id: z.ZodOptional<z.ZodString>;
|
|
21860
|
+
is_box_with_pins: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
21853
21861
|
}, "strip", z.ZodTypeAny, {
|
|
21854
21862
|
type: "schematic_component";
|
|
21855
21863
|
center: {
|
|
@@ -21861,6 +21869,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
21861
21869
|
width: number;
|
|
21862
21870
|
height: number;
|
|
21863
21871
|
};
|
|
21872
|
+
is_box_with_pins: boolean;
|
|
21864
21873
|
source_component_id?: string | undefined;
|
|
21865
21874
|
subcircuit_id?: string | undefined;
|
|
21866
21875
|
source_group_id?: string | undefined;
|
|
@@ -21950,6 +21959,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
21950
21959
|
symbol_display_value?: string | undefined;
|
|
21951
21960
|
schematic_group_id?: string | undefined;
|
|
21952
21961
|
is_schematic_group?: boolean | undefined;
|
|
21962
|
+
is_box_with_pins?: boolean | undefined;
|
|
21953
21963
|
}>, z.ZodObject<{
|
|
21954
21964
|
type: z.ZodLiteral<"schematic_port">;
|
|
21955
21965
|
schematic_port_id: z.ZodString;
|
package/dist/index.mjs
CHANGED
|
@@ -840,7 +840,8 @@ var schematic_component = z45.object({
|
|
|
840
840
|
subcircuit_id: z45.string().optional(),
|
|
841
841
|
schematic_group_id: z45.string().optional(),
|
|
842
842
|
is_schematic_group: z45.boolean().optional(),
|
|
843
|
-
source_group_id: z45.string().optional()
|
|
843
|
+
source_group_id: z45.string().optional(),
|
|
844
|
+
is_box_with_pins: z45.boolean().optional().default(true)
|
|
844
845
|
});
|
|
845
846
|
expectTypesMatch(true);
|
|
846
847
|
|
|
@@ -1640,7 +1641,7 @@ var pcb_trace = z73.object({
|
|
|
1640
1641
|
route_order_index: z73.number().optional(),
|
|
1641
1642
|
should_round_corners: z73.boolean().optional(),
|
|
1642
1643
|
trace_length: z73.number().optional(),
|
|
1643
|
-
|
|
1644
|
+
highlight_color: z73.string().optional(),
|
|
1644
1645
|
route: z73.array(pcb_trace_route_point)
|
|
1645
1646
|
}).describe("Defines a trace on the PCB");
|
|
1646
1647
|
expectTypesMatch(true);
|
|
@@ -1716,7 +1717,7 @@ var pcb_net = z78.object({
|
|
|
1716
1717
|
type: z78.literal("pcb_net"),
|
|
1717
1718
|
pcb_net_id: getZodPrefixedIdWithDefault("pcb_net"),
|
|
1718
1719
|
source_net_id: z78.string().optional(),
|
|
1719
|
-
|
|
1720
|
+
highlight_color: z78.string().optional()
|
|
1720
1721
|
}).describe("Defines a net on the PCB");
|
|
1721
1722
|
expectTypesMatch(true);
|
|
1722
1723
|
|