circuit-json 0.0.284 → 0.0.286
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 +3 -2
- package/dist/index.d.mts +75 -20
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1210,9 +1210,10 @@ interface PcbGroup {
|
|
|
1210
1210
|
source_group_id: string
|
|
1211
1211
|
is_subcircuit?: boolean
|
|
1212
1212
|
subcircuit_id?: string
|
|
1213
|
-
width
|
|
1214
|
-
height
|
|
1213
|
+
width?: Length
|
|
1214
|
+
height?: Length
|
|
1215
1215
|
center: Point
|
|
1216
|
+
outline?: Point[]
|
|
1216
1217
|
anchor_position?: Point
|
|
1217
1218
|
anchor_alignment?:
|
|
1218
1219
|
| "center"
|
package/dist/index.d.mts
CHANGED
|
@@ -5032,8 +5032,8 @@ declare const pcb_group: z.ZodObject<{
|
|
|
5032
5032
|
source_group_id: z.ZodString;
|
|
5033
5033
|
is_subcircuit: z.ZodOptional<z.ZodBoolean>;
|
|
5034
5034
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
5035
|
-
width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number
|
|
5036
|
-
height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number
|
|
5035
|
+
width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
5036
|
+
height: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
5037
5037
|
center: z.ZodObject<{
|
|
5038
5038
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
5039
5039
|
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
@@ -5044,6 +5044,16 @@ declare const pcb_group: z.ZodObject<{
|
|
|
5044
5044
|
x: string | number;
|
|
5045
5045
|
y: string | number;
|
|
5046
5046
|
}>;
|
|
5047
|
+
outline: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5048
|
+
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
5049
|
+
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
5050
|
+
}, "strip", z.ZodTypeAny, {
|
|
5051
|
+
x: number;
|
|
5052
|
+
y: number;
|
|
5053
|
+
}, {
|
|
5054
|
+
x: string | number;
|
|
5055
|
+
y: string | number;
|
|
5056
|
+
}>, "many">>;
|
|
5047
5057
|
anchor_position: z.ZodOptional<z.ZodObject<{
|
|
5048
5058
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
5049
5059
|
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
@@ -5069,8 +5079,6 @@ declare const pcb_group: z.ZodObject<{
|
|
|
5069
5079
|
autorouter_used_string: z.ZodOptional<z.ZodString>;
|
|
5070
5080
|
}, "strip", z.ZodTypeAny, {
|
|
5071
5081
|
type: "pcb_group";
|
|
5072
|
-
width: number;
|
|
5073
|
-
height: number;
|
|
5074
5082
|
center: {
|
|
5075
5083
|
x: number;
|
|
5076
5084
|
y: number;
|
|
@@ -5079,9 +5087,15 @@ declare const pcb_group: z.ZodObject<{
|
|
|
5079
5087
|
pcb_component_ids: string[];
|
|
5080
5088
|
source_group_id: string;
|
|
5081
5089
|
description?: string | undefined;
|
|
5090
|
+
width?: number | undefined;
|
|
5091
|
+
height?: number | undefined;
|
|
5082
5092
|
name?: string | undefined;
|
|
5083
5093
|
subcircuit_id?: string | undefined;
|
|
5084
5094
|
is_subcircuit?: boolean | undefined;
|
|
5095
|
+
outline?: {
|
|
5096
|
+
x: number;
|
|
5097
|
+
y: number;
|
|
5098
|
+
}[] | undefined;
|
|
5085
5099
|
anchor_position?: {
|
|
5086
5100
|
x: number;
|
|
5087
5101
|
y: number;
|
|
@@ -5094,8 +5108,6 @@ declare const pcb_group: z.ZodObject<{
|
|
|
5094
5108
|
autorouter_used_string?: string | undefined;
|
|
5095
5109
|
}, {
|
|
5096
5110
|
type: "pcb_group";
|
|
5097
|
-
width: string | number;
|
|
5098
|
-
height: string | number;
|
|
5099
5111
|
center: {
|
|
5100
5112
|
x: string | number;
|
|
5101
5113
|
y: string | number;
|
|
@@ -5103,10 +5115,16 @@ declare const pcb_group: z.ZodObject<{
|
|
|
5103
5115
|
pcb_component_ids: string[];
|
|
5104
5116
|
source_group_id: string;
|
|
5105
5117
|
description?: string | undefined;
|
|
5118
|
+
width?: string | number | undefined;
|
|
5119
|
+
height?: string | number | undefined;
|
|
5106
5120
|
name?: string | undefined;
|
|
5107
5121
|
subcircuit_id?: string | undefined;
|
|
5108
5122
|
pcb_group_id?: string | undefined;
|
|
5109
5123
|
is_subcircuit?: boolean | undefined;
|
|
5124
|
+
outline?: {
|
|
5125
|
+
x: string | number;
|
|
5126
|
+
y: string | number;
|
|
5127
|
+
}[] | undefined;
|
|
5110
5128
|
anchor_position?: {
|
|
5111
5129
|
x: string | number;
|
|
5112
5130
|
y: string | number;
|
|
@@ -5128,9 +5146,10 @@ interface PcbGroup {
|
|
|
5128
5146
|
source_group_id: string;
|
|
5129
5147
|
is_subcircuit?: boolean;
|
|
5130
5148
|
subcircuit_id?: string;
|
|
5131
|
-
width
|
|
5132
|
-
height
|
|
5149
|
+
width?: Length;
|
|
5150
|
+
height?: Length;
|
|
5133
5151
|
center: Point;
|
|
5152
|
+
outline?: Point[];
|
|
5134
5153
|
anchor_position?: Point;
|
|
5135
5154
|
anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
|
|
5136
5155
|
pcb_component_ids: string[];
|
|
@@ -15149,8 +15168,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15149
15168
|
source_group_id: z.ZodString;
|
|
15150
15169
|
is_subcircuit: z.ZodOptional<z.ZodBoolean>;
|
|
15151
15170
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
15152
|
-
width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number
|
|
15153
|
-
height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number
|
|
15171
|
+
width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
15172
|
+
height: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
15154
15173
|
center: z.ZodObject<{
|
|
15155
15174
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
15156
15175
|
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
@@ -15161,6 +15180,16 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15161
15180
|
x: string | number;
|
|
15162
15181
|
y: string | number;
|
|
15163
15182
|
}>;
|
|
15183
|
+
outline: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
15184
|
+
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
15185
|
+
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
15186
|
+
}, "strip", z.ZodTypeAny, {
|
|
15187
|
+
x: number;
|
|
15188
|
+
y: number;
|
|
15189
|
+
}, {
|
|
15190
|
+
x: string | number;
|
|
15191
|
+
y: string | number;
|
|
15192
|
+
}>, "many">>;
|
|
15164
15193
|
anchor_position: z.ZodOptional<z.ZodObject<{
|
|
15165
15194
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
15166
15195
|
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
@@ -15186,8 +15215,6 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15186
15215
|
autorouter_used_string: z.ZodOptional<z.ZodString>;
|
|
15187
15216
|
}, "strip", z.ZodTypeAny, {
|
|
15188
15217
|
type: "pcb_group";
|
|
15189
|
-
width: number;
|
|
15190
|
-
height: number;
|
|
15191
15218
|
center: {
|
|
15192
15219
|
x: number;
|
|
15193
15220
|
y: number;
|
|
@@ -15196,9 +15223,15 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15196
15223
|
pcb_component_ids: string[];
|
|
15197
15224
|
source_group_id: string;
|
|
15198
15225
|
description?: string | undefined;
|
|
15226
|
+
width?: number | undefined;
|
|
15227
|
+
height?: number | undefined;
|
|
15199
15228
|
name?: string | undefined;
|
|
15200
15229
|
subcircuit_id?: string | undefined;
|
|
15201
15230
|
is_subcircuit?: boolean | undefined;
|
|
15231
|
+
outline?: {
|
|
15232
|
+
x: number;
|
|
15233
|
+
y: number;
|
|
15234
|
+
}[] | undefined;
|
|
15202
15235
|
anchor_position?: {
|
|
15203
15236
|
x: number;
|
|
15204
15237
|
y: number;
|
|
@@ -15211,8 +15244,6 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15211
15244
|
autorouter_used_string?: string | undefined;
|
|
15212
15245
|
}, {
|
|
15213
15246
|
type: "pcb_group";
|
|
15214
|
-
width: string | number;
|
|
15215
|
-
height: string | number;
|
|
15216
15247
|
center: {
|
|
15217
15248
|
x: string | number;
|
|
15218
15249
|
y: string | number;
|
|
@@ -15220,10 +15251,16 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15220
15251
|
pcb_component_ids: string[];
|
|
15221
15252
|
source_group_id: string;
|
|
15222
15253
|
description?: string | undefined;
|
|
15254
|
+
width?: string | number | undefined;
|
|
15255
|
+
height?: string | number | undefined;
|
|
15223
15256
|
name?: string | undefined;
|
|
15224
15257
|
subcircuit_id?: string | undefined;
|
|
15225
15258
|
pcb_group_id?: string | undefined;
|
|
15226
15259
|
is_subcircuit?: boolean | undefined;
|
|
15260
|
+
outline?: {
|
|
15261
|
+
x: string | number;
|
|
15262
|
+
y: string | number;
|
|
15263
|
+
}[] | undefined;
|
|
15227
15264
|
anchor_position?: {
|
|
15228
15265
|
x: string | number;
|
|
15229
15266
|
y: string | number;
|
|
@@ -22360,8 +22397,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
22360
22397
|
source_group_id: z.ZodString;
|
|
22361
22398
|
is_subcircuit: z.ZodOptional<z.ZodBoolean>;
|
|
22362
22399
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
22363
|
-
width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number
|
|
22364
|
-
height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number
|
|
22400
|
+
width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
22401
|
+
height: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
22365
22402
|
center: z.ZodObject<{
|
|
22366
22403
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
22367
22404
|
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
@@ -22372,6 +22409,16 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
22372
22409
|
x: string | number;
|
|
22373
22410
|
y: string | number;
|
|
22374
22411
|
}>;
|
|
22412
|
+
outline: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
22413
|
+
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
22414
|
+
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
22415
|
+
}, "strip", z.ZodTypeAny, {
|
|
22416
|
+
x: number;
|
|
22417
|
+
y: number;
|
|
22418
|
+
}, {
|
|
22419
|
+
x: string | number;
|
|
22420
|
+
y: string | number;
|
|
22421
|
+
}>, "many">>;
|
|
22375
22422
|
anchor_position: z.ZodOptional<z.ZodObject<{
|
|
22376
22423
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
22377
22424
|
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
@@ -22397,8 +22444,6 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
22397
22444
|
autorouter_used_string: z.ZodOptional<z.ZodString>;
|
|
22398
22445
|
}, "strip", z.ZodTypeAny, {
|
|
22399
22446
|
type: "pcb_group";
|
|
22400
|
-
width: number;
|
|
22401
|
-
height: number;
|
|
22402
22447
|
center: {
|
|
22403
22448
|
x: number;
|
|
22404
22449
|
y: number;
|
|
@@ -22407,9 +22452,15 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
22407
22452
|
pcb_component_ids: string[];
|
|
22408
22453
|
source_group_id: string;
|
|
22409
22454
|
description?: string | undefined;
|
|
22455
|
+
width?: number | undefined;
|
|
22456
|
+
height?: number | undefined;
|
|
22410
22457
|
name?: string | undefined;
|
|
22411
22458
|
subcircuit_id?: string | undefined;
|
|
22412
22459
|
is_subcircuit?: boolean | undefined;
|
|
22460
|
+
outline?: {
|
|
22461
|
+
x: number;
|
|
22462
|
+
y: number;
|
|
22463
|
+
}[] | undefined;
|
|
22413
22464
|
anchor_position?: {
|
|
22414
22465
|
x: number;
|
|
22415
22466
|
y: number;
|
|
@@ -22422,8 +22473,6 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
22422
22473
|
autorouter_used_string?: string | undefined;
|
|
22423
22474
|
}, {
|
|
22424
22475
|
type: "pcb_group";
|
|
22425
|
-
width: string | number;
|
|
22426
|
-
height: string | number;
|
|
22427
22476
|
center: {
|
|
22428
22477
|
x: string | number;
|
|
22429
22478
|
y: string | number;
|
|
@@ -22431,10 +22480,16 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
22431
22480
|
pcb_component_ids: string[];
|
|
22432
22481
|
source_group_id: string;
|
|
22433
22482
|
description?: string | undefined;
|
|
22483
|
+
width?: string | number | undefined;
|
|
22484
|
+
height?: string | number | undefined;
|
|
22434
22485
|
name?: string | undefined;
|
|
22435
22486
|
subcircuit_id?: string | undefined;
|
|
22436
22487
|
pcb_group_id?: string | undefined;
|
|
22437
22488
|
is_subcircuit?: boolean | undefined;
|
|
22489
|
+
outline?: {
|
|
22490
|
+
x: string | number;
|
|
22491
|
+
y: string | number;
|
|
22492
|
+
}[] | undefined;
|
|
22438
22493
|
anchor_position?: {
|
|
22439
22494
|
x: string | number;
|
|
22440
22495
|
y: string | number;
|
package/dist/index.mjs
CHANGED
|
@@ -2279,9 +2279,10 @@ var pcb_group = z106.object({
|
|
|
2279
2279
|
source_group_id: z106.string(),
|
|
2280
2280
|
is_subcircuit: z106.boolean().optional(),
|
|
2281
2281
|
subcircuit_id: z106.string().optional(),
|
|
2282
|
-
width: length,
|
|
2283
|
-
height: length,
|
|
2282
|
+
width: length.optional(),
|
|
2283
|
+
height: length.optional(),
|
|
2284
2284
|
center: point,
|
|
2285
|
+
outline: z106.array(point).optional(),
|
|
2285
2286
|
anchor_position: point.optional(),
|
|
2286
2287
|
anchor_alignment: z106.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).optional(),
|
|
2287
2288
|
pcb_component_ids: z106.array(z106.string()),
|