circuit-json 0.0.279 → 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 +7 -0
- package/dist/index.d.mts +65 -0
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -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
|
@@ -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;
|
|
@@ -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;
|
package/dist/index.mjs
CHANGED
|
@@ -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(),
|