circuit-json 0.0.278 → 0.0.280
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 +9 -2
- package/dist/index.d.mts +91 -26
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1030,8 +1030,8 @@ interface PcbFabricationNoteDimension {
|
|
|
1030
1030
|
pcb_group_id?: string
|
|
1031
1031
|
subcircuit_id?: string
|
|
1032
1032
|
layer: VisibleLayer
|
|
1033
|
-
from: Point
|
|
1034
|
-
to: Point
|
|
1033
|
+
from: Point
|
|
1034
|
+
to: Point
|
|
1035
1035
|
text?: string
|
|
1036
1036
|
offset?: Length
|
|
1037
1037
|
font: "tscircuit2024"
|
|
@@ -1190,6 +1190,13 @@ interface PcbGroup {
|
|
|
1190
1190
|
width: Length
|
|
1191
1191
|
height: Length
|
|
1192
1192
|
center: Point
|
|
1193
|
+
anchor_position?: Point
|
|
1194
|
+
anchor_alignment?:
|
|
1195
|
+
| "center"
|
|
1196
|
+
| "top_left"
|
|
1197
|
+
| "top_right"
|
|
1198
|
+
| "bottom_left"
|
|
1199
|
+
| "bottom_right"
|
|
1193
1200
|
pcb_component_ids: string[]
|
|
1194
1201
|
name?: string
|
|
1195
1202
|
description?: string
|
package/dist/index.d.mts
CHANGED
|
@@ -3945,7 +3945,7 @@ declare const pcb_fabrication_note_dimension: z.ZodObject<{
|
|
|
3945
3945
|
pcb_group_id: z.ZodOptional<z.ZodString>;
|
|
3946
3946
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
3947
3947
|
layer: z.ZodEnum<["top", "bottom"]>;
|
|
3948
|
-
from: z.
|
|
3948
|
+
from: z.ZodObject<{
|
|
3949
3949
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
3950
3950
|
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
3951
3951
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3954,8 +3954,8 @@ declare const pcb_fabrication_note_dimension: z.ZodObject<{
|
|
|
3954
3954
|
}, {
|
|
3955
3955
|
x: string | number;
|
|
3956
3956
|
y: string | number;
|
|
3957
|
-
}
|
|
3958
|
-
to: z.
|
|
3957
|
+
}>;
|
|
3958
|
+
to: z.ZodObject<{
|
|
3959
3959
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
3960
3960
|
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
3961
3961
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3964,7 +3964,7 @@ declare const pcb_fabrication_note_dimension: z.ZodObject<{
|
|
|
3964
3964
|
}, {
|
|
3965
3965
|
x: string | number;
|
|
3966
3966
|
y: string | number;
|
|
3967
|
-
}
|
|
3967
|
+
}>;
|
|
3968
3968
|
text: z.ZodOptional<z.ZodString>;
|
|
3969
3969
|
offset: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
3970
3970
|
font: z.ZodDefault<z.ZodLiteral<"tscircuit2024">>;
|
|
@@ -3978,11 +3978,11 @@ declare const pcb_fabrication_note_dimension: z.ZodObject<{
|
|
|
3978
3978
|
font: "tscircuit2024";
|
|
3979
3979
|
font_size: number;
|
|
3980
3980
|
pcb_fabrication_note_dimension_id: string;
|
|
3981
|
-
from:
|
|
3981
|
+
from: {
|
|
3982
3982
|
x: number;
|
|
3983
3983
|
y: number;
|
|
3984
3984
|
};
|
|
3985
|
-
to:
|
|
3985
|
+
to: {
|
|
3986
3986
|
x: number;
|
|
3987
3987
|
y: number;
|
|
3988
3988
|
};
|
|
@@ -3996,11 +3996,11 @@ declare const pcb_fabrication_note_dimension: z.ZodObject<{
|
|
|
3996
3996
|
type: "pcb_fabrication_note_dimension";
|
|
3997
3997
|
pcb_component_id: string;
|
|
3998
3998
|
layer: "top" | "bottom";
|
|
3999
|
-
from:
|
|
3999
|
+
from: {
|
|
4000
4000
|
x: string | number;
|
|
4001
4001
|
y: string | number;
|
|
4002
4002
|
};
|
|
4003
|
-
to:
|
|
4003
|
+
to: {
|
|
4004
4004
|
x: string | number;
|
|
4005
4005
|
y: string | number;
|
|
4006
4006
|
};
|
|
@@ -4025,8 +4025,8 @@ interface PcbFabricationNoteDimension {
|
|
|
4025
4025
|
pcb_group_id?: string;
|
|
4026
4026
|
subcircuit_id?: string;
|
|
4027
4027
|
layer: VisibleLayer;
|
|
4028
|
-
from: Point
|
|
4029
|
-
to: Point
|
|
4028
|
+
from: Point;
|
|
4029
|
+
to: Point;
|
|
4030
4030
|
text?: string;
|
|
4031
4031
|
offset?: Length;
|
|
4032
4032
|
font: "tscircuit2024";
|
|
@@ -4997,6 +4997,17 @@ declare const pcb_group: z.ZodObject<{
|
|
|
4997
4997
|
x: string | number;
|
|
4998
4998
|
y: string | number;
|
|
4999
4999
|
}>;
|
|
5000
|
+
anchor_position: z.ZodOptional<z.ZodObject<{
|
|
5001
|
+
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
5002
|
+
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
5003
|
+
}, "strip", z.ZodTypeAny, {
|
|
5004
|
+
x: number;
|
|
5005
|
+
y: number;
|
|
5006
|
+
}, {
|
|
5007
|
+
x: string | number;
|
|
5008
|
+
y: string | number;
|
|
5009
|
+
}>>;
|
|
5010
|
+
anchor_alignment: z.ZodOptional<z.ZodEnum<["center", "top_left", "top_right", "bottom_left", "bottom_right"]>>;
|
|
5000
5011
|
pcb_component_ids: z.ZodArray<z.ZodString, "many">;
|
|
5001
5012
|
name: z.ZodOptional<z.ZodString>;
|
|
5002
5013
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -5024,6 +5035,11 @@ declare const pcb_group: z.ZodObject<{
|
|
|
5024
5035
|
name?: string | undefined;
|
|
5025
5036
|
subcircuit_id?: string | undefined;
|
|
5026
5037
|
is_subcircuit?: boolean | undefined;
|
|
5038
|
+
anchor_position?: {
|
|
5039
|
+
x: number;
|
|
5040
|
+
y: number;
|
|
5041
|
+
} | undefined;
|
|
5042
|
+
anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
|
|
5027
5043
|
layout_mode?: string | undefined;
|
|
5028
5044
|
autorouter_configuration?: {
|
|
5029
5045
|
trace_clearance: number;
|
|
@@ -5044,6 +5060,11 @@ declare const pcb_group: z.ZodObject<{
|
|
|
5044
5060
|
subcircuit_id?: string | undefined;
|
|
5045
5061
|
pcb_group_id?: string | undefined;
|
|
5046
5062
|
is_subcircuit?: boolean | undefined;
|
|
5063
|
+
anchor_position?: {
|
|
5064
|
+
x: string | number;
|
|
5065
|
+
y: string | number;
|
|
5066
|
+
} | undefined;
|
|
5067
|
+
anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
|
|
5047
5068
|
layout_mode?: string | undefined;
|
|
5048
5069
|
autorouter_configuration?: {
|
|
5049
5070
|
trace_clearance: string | number;
|
|
@@ -5063,6 +5084,8 @@ interface PcbGroup {
|
|
|
5063
5084
|
width: Length;
|
|
5064
5085
|
height: Length;
|
|
5065
5086
|
center: Point;
|
|
5087
|
+
anchor_position?: Point;
|
|
5088
|
+
anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
|
|
5066
5089
|
pcb_component_ids: string[];
|
|
5067
5090
|
name?: string;
|
|
5068
5091
|
description?: string;
|
|
@@ -15009,6 +15032,17 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15009
15032
|
x: string | number;
|
|
15010
15033
|
y: string | number;
|
|
15011
15034
|
}>;
|
|
15035
|
+
anchor_position: z.ZodOptional<z.ZodObject<{
|
|
15036
|
+
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
15037
|
+
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
15038
|
+
}, "strip", z.ZodTypeAny, {
|
|
15039
|
+
x: number;
|
|
15040
|
+
y: number;
|
|
15041
|
+
}, {
|
|
15042
|
+
x: string | number;
|
|
15043
|
+
y: string | number;
|
|
15044
|
+
}>>;
|
|
15045
|
+
anchor_alignment: z.ZodOptional<z.ZodEnum<["center", "top_left", "top_right", "bottom_left", "bottom_right"]>>;
|
|
15012
15046
|
pcb_component_ids: z.ZodArray<z.ZodString, "many">;
|
|
15013
15047
|
name: z.ZodOptional<z.ZodString>;
|
|
15014
15048
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -15036,6 +15070,11 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15036
15070
|
name?: string | undefined;
|
|
15037
15071
|
subcircuit_id?: string | undefined;
|
|
15038
15072
|
is_subcircuit?: boolean | undefined;
|
|
15073
|
+
anchor_position?: {
|
|
15074
|
+
x: number;
|
|
15075
|
+
y: number;
|
|
15076
|
+
} | undefined;
|
|
15077
|
+
anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
|
|
15039
15078
|
layout_mode?: string | undefined;
|
|
15040
15079
|
autorouter_configuration?: {
|
|
15041
15080
|
trace_clearance: number;
|
|
@@ -15056,6 +15095,11 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15056
15095
|
subcircuit_id?: string | undefined;
|
|
15057
15096
|
pcb_group_id?: string | undefined;
|
|
15058
15097
|
is_subcircuit?: boolean | undefined;
|
|
15098
|
+
anchor_position?: {
|
|
15099
|
+
x: string | number;
|
|
15100
|
+
y: string | number;
|
|
15101
|
+
} | undefined;
|
|
15102
|
+
anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
|
|
15059
15103
|
layout_mode?: string | undefined;
|
|
15060
15104
|
autorouter_configuration?: {
|
|
15061
15105
|
trace_clearance: string | number;
|
|
@@ -15831,7 +15875,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15831
15875
|
pcb_group_id: z.ZodOptional<z.ZodString>;
|
|
15832
15876
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
15833
15877
|
layer: z.ZodEnum<["top", "bottom"]>;
|
|
15834
|
-
from: z.
|
|
15878
|
+
from: z.ZodObject<{
|
|
15835
15879
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
15836
15880
|
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
15837
15881
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -15840,8 +15884,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15840
15884
|
}, {
|
|
15841
15885
|
x: string | number;
|
|
15842
15886
|
y: string | number;
|
|
15843
|
-
}
|
|
15844
|
-
to: z.
|
|
15887
|
+
}>;
|
|
15888
|
+
to: z.ZodObject<{
|
|
15845
15889
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
15846
15890
|
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
15847
15891
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -15850,7 +15894,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15850
15894
|
}, {
|
|
15851
15895
|
x: string | number;
|
|
15852
15896
|
y: string | number;
|
|
15853
|
-
}
|
|
15897
|
+
}>;
|
|
15854
15898
|
text: z.ZodOptional<z.ZodString>;
|
|
15855
15899
|
offset: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
15856
15900
|
font: z.ZodDefault<z.ZodLiteral<"tscircuit2024">>;
|
|
@@ -15864,11 +15908,11 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15864
15908
|
font: "tscircuit2024";
|
|
15865
15909
|
font_size: number;
|
|
15866
15910
|
pcb_fabrication_note_dimension_id: string;
|
|
15867
|
-
from:
|
|
15911
|
+
from: {
|
|
15868
15912
|
x: number;
|
|
15869
15913
|
y: number;
|
|
15870
15914
|
};
|
|
15871
|
-
to:
|
|
15915
|
+
to: {
|
|
15872
15916
|
x: number;
|
|
15873
15917
|
y: number;
|
|
15874
15918
|
};
|
|
@@ -15882,11 +15926,11 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15882
15926
|
type: "pcb_fabrication_note_dimension";
|
|
15883
15927
|
pcb_component_id: string;
|
|
15884
15928
|
layer: "top" | "bottom";
|
|
15885
|
-
from:
|
|
15929
|
+
from: {
|
|
15886
15930
|
x: string | number;
|
|
15887
15931
|
y: string | number;
|
|
15888
15932
|
};
|
|
15889
|
-
to:
|
|
15933
|
+
to: {
|
|
15890
15934
|
x: string | number;
|
|
15891
15935
|
y: string | number;
|
|
15892
15936
|
};
|
|
@@ -22132,6 +22176,17 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
22132
22176
|
x: string | number;
|
|
22133
22177
|
y: string | number;
|
|
22134
22178
|
}>;
|
|
22179
|
+
anchor_position: z.ZodOptional<z.ZodObject<{
|
|
22180
|
+
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
22181
|
+
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
22182
|
+
}, "strip", z.ZodTypeAny, {
|
|
22183
|
+
x: number;
|
|
22184
|
+
y: number;
|
|
22185
|
+
}, {
|
|
22186
|
+
x: string | number;
|
|
22187
|
+
y: string | number;
|
|
22188
|
+
}>>;
|
|
22189
|
+
anchor_alignment: z.ZodOptional<z.ZodEnum<["center", "top_left", "top_right", "bottom_left", "bottom_right"]>>;
|
|
22135
22190
|
pcb_component_ids: z.ZodArray<z.ZodString, "many">;
|
|
22136
22191
|
name: z.ZodOptional<z.ZodString>;
|
|
22137
22192
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -22159,6 +22214,11 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
22159
22214
|
name?: string | undefined;
|
|
22160
22215
|
subcircuit_id?: string | undefined;
|
|
22161
22216
|
is_subcircuit?: boolean | undefined;
|
|
22217
|
+
anchor_position?: {
|
|
22218
|
+
x: number;
|
|
22219
|
+
y: number;
|
|
22220
|
+
} | undefined;
|
|
22221
|
+
anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
|
|
22162
22222
|
layout_mode?: string | undefined;
|
|
22163
22223
|
autorouter_configuration?: {
|
|
22164
22224
|
trace_clearance: number;
|
|
@@ -22179,6 +22239,11 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
22179
22239
|
subcircuit_id?: string | undefined;
|
|
22180
22240
|
pcb_group_id?: string | undefined;
|
|
22181
22241
|
is_subcircuit?: boolean | undefined;
|
|
22242
|
+
anchor_position?: {
|
|
22243
|
+
x: string | number;
|
|
22244
|
+
y: string | number;
|
|
22245
|
+
} | undefined;
|
|
22246
|
+
anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
|
|
22182
22247
|
layout_mode?: string | undefined;
|
|
22183
22248
|
autorouter_configuration?: {
|
|
22184
22249
|
trace_clearance: string | number;
|
|
@@ -22954,7 +23019,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
22954
23019
|
pcb_group_id: z.ZodOptional<z.ZodString>;
|
|
22955
23020
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
22956
23021
|
layer: z.ZodEnum<["top", "bottom"]>;
|
|
22957
|
-
from: z.
|
|
23022
|
+
from: z.ZodObject<{
|
|
22958
23023
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
22959
23024
|
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
22960
23025
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -22963,8 +23028,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
22963
23028
|
}, {
|
|
22964
23029
|
x: string | number;
|
|
22965
23030
|
y: string | number;
|
|
22966
|
-
}
|
|
22967
|
-
to: z.
|
|
23031
|
+
}>;
|
|
23032
|
+
to: z.ZodObject<{
|
|
22968
23033
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
22969
23034
|
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
22970
23035
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -22973,7 +23038,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
22973
23038
|
}, {
|
|
22974
23039
|
x: string | number;
|
|
22975
23040
|
y: string | number;
|
|
22976
|
-
}
|
|
23041
|
+
}>;
|
|
22977
23042
|
text: z.ZodOptional<z.ZodString>;
|
|
22978
23043
|
offset: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
22979
23044
|
font: z.ZodDefault<z.ZodLiteral<"tscircuit2024">>;
|
|
@@ -22987,11 +23052,11 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
22987
23052
|
font: "tscircuit2024";
|
|
22988
23053
|
font_size: number;
|
|
22989
23054
|
pcb_fabrication_note_dimension_id: string;
|
|
22990
|
-
from:
|
|
23055
|
+
from: {
|
|
22991
23056
|
x: number;
|
|
22992
23057
|
y: number;
|
|
22993
23058
|
};
|
|
22994
|
-
to:
|
|
23059
|
+
to: {
|
|
22995
23060
|
x: number;
|
|
22996
23061
|
y: number;
|
|
22997
23062
|
};
|
|
@@ -23005,11 +23070,11 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
23005
23070
|
type: "pcb_fabrication_note_dimension";
|
|
23006
23071
|
pcb_component_id: string;
|
|
23007
23072
|
layer: "top" | "bottom";
|
|
23008
|
-
from:
|
|
23073
|
+
from: {
|
|
23009
23074
|
x: string | number;
|
|
23010
23075
|
y: string | number;
|
|
23011
23076
|
};
|
|
23012
|
-
to:
|
|
23077
|
+
to: {
|
|
23013
23078
|
x: string | number;
|
|
23014
23079
|
y: string | number;
|
|
23015
23080
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -2027,8 +2027,8 @@ var pcb_fabrication_note_dimension = z93.object({
|
|
|
2027
2027
|
pcb_group_id: z93.string().optional(),
|
|
2028
2028
|
subcircuit_id: z93.string().optional(),
|
|
2029
2029
|
layer: visible_layer,
|
|
2030
|
-
from: point
|
|
2031
|
-
to: point
|
|
2030
|
+
from: point,
|
|
2031
|
+
to: point,
|
|
2032
2032
|
text: z93.string().optional(),
|
|
2033
2033
|
offset: length.optional(),
|
|
2034
2034
|
font: z93.literal("tscircuit2024").default("tscircuit2024"),
|
|
@@ -2268,6 +2268,8 @@ var pcb_group = z105.object({
|
|
|
2268
2268
|
width: length,
|
|
2269
2269
|
height: length,
|
|
2270
2270
|
center: point,
|
|
2271
|
+
anchor_position: point.optional(),
|
|
2272
|
+
anchor_alignment: z105.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).optional(),
|
|
2271
2273
|
pcb_component_ids: z105.array(z105.string()),
|
|
2272
2274
|
name: z105.string().optional(),
|
|
2273
2275
|
description: z105.string().optional(),
|