circuit-json 0.0.285 → 0.0.287

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 CHANGED
@@ -1009,10 +1009,6 @@ interface PcbCourtyardRect {
1009
1009
  width: Length
1010
1010
  height: Length
1011
1011
  layer: VisibleLayer
1012
- stroke_width: Length
1013
- is_filled?: boolean
1014
- has_stroke?: boolean
1015
- is_stroke_dashed?: boolean
1016
1012
  color?: string
1017
1013
  }
1018
1014
  ```
@@ -1210,8 +1206,8 @@ interface PcbGroup {
1210
1206
  source_group_id: string
1211
1207
  is_subcircuit?: boolean
1212
1208
  subcircuit_id?: string
1213
- width: Length
1214
- height: Length
1209
+ width?: Length
1210
+ height?: Length
1215
1211
  center: Point
1216
1212
  outline?: Point[]
1217
1213
  anchor_position?: Point
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>;
@@ -5079,8 +5079,6 @@ declare const pcb_group: z.ZodObject<{
5079
5079
  autorouter_used_string: z.ZodOptional<z.ZodString>;
5080
5080
  }, "strip", z.ZodTypeAny, {
5081
5081
  type: "pcb_group";
5082
- width: number;
5083
- height: number;
5084
5082
  center: {
5085
5083
  x: number;
5086
5084
  y: number;
@@ -5089,6 +5087,8 @@ declare const pcb_group: z.ZodObject<{
5089
5087
  pcb_component_ids: string[];
5090
5088
  source_group_id: string;
5091
5089
  description?: string | undefined;
5090
+ width?: number | undefined;
5091
+ height?: number | undefined;
5092
5092
  name?: string | undefined;
5093
5093
  subcircuit_id?: string | undefined;
5094
5094
  is_subcircuit?: boolean | undefined;
@@ -5108,8 +5108,6 @@ declare const pcb_group: z.ZodObject<{
5108
5108
  autorouter_used_string?: string | undefined;
5109
5109
  }, {
5110
5110
  type: "pcb_group";
5111
- width: string | number;
5112
- height: string | number;
5113
5111
  center: {
5114
5112
  x: string | number;
5115
5113
  y: string | number;
@@ -5117,6 +5115,8 @@ declare const pcb_group: z.ZodObject<{
5117
5115
  pcb_component_ids: string[];
5118
5116
  source_group_id: string;
5119
5117
  description?: string | undefined;
5118
+ width?: string | number | undefined;
5119
+ height?: string | number | undefined;
5120
5120
  name?: string | undefined;
5121
5121
  subcircuit_id?: string | undefined;
5122
5122
  pcb_group_id?: string | undefined;
@@ -5146,8 +5146,8 @@ interface PcbGroup {
5146
5146
  source_group_id: string;
5147
5147
  is_subcircuit?: boolean;
5148
5148
  subcircuit_id?: string;
5149
- width: Length;
5150
- height: Length;
5149
+ width?: Length;
5150
+ height?: Length;
5151
5151
  center: Point;
5152
5152
  outline?: Point[];
5153
5153
  anchor_position?: Point;
@@ -6247,10 +6247,6 @@ declare const pcb_courtyard_rect: z.ZodObject<{
6247
6247
  width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
6248
6248
  height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
6249
6249
  layer: z.ZodEnum<["top", "bottom"]>;
6250
- stroke_width: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
6251
- is_filled: z.ZodOptional<z.ZodBoolean>;
6252
- has_stroke: z.ZodOptional<z.ZodBoolean>;
6253
- is_stroke_dashed: z.ZodOptional<z.ZodBoolean>;
6254
6250
  color: z.ZodOptional<z.ZodString>;
6255
6251
  }, "strip", z.ZodTypeAny, {
6256
6252
  type: "pcb_courtyard_rect";
@@ -6262,13 +6258,9 @@ declare const pcb_courtyard_rect: z.ZodObject<{
6262
6258
  y: number;
6263
6259
  };
6264
6260
  layer: "top" | "bottom";
6265
- stroke_width: number;
6266
6261
  pcb_courtyard_rect_id: string;
6267
6262
  subcircuit_id?: string | undefined;
6268
6263
  pcb_group_id?: string | undefined;
6269
- is_filled?: boolean | undefined;
6270
- has_stroke?: boolean | undefined;
6271
- is_stroke_dashed?: boolean | undefined;
6272
6264
  color?: string | undefined;
6273
6265
  }, {
6274
6266
  type: "pcb_courtyard_rect";
@@ -6282,10 +6274,6 @@ declare const pcb_courtyard_rect: z.ZodObject<{
6282
6274
  layer: "top" | "bottom";
6283
6275
  subcircuit_id?: string | undefined;
6284
6276
  pcb_group_id?: string | undefined;
6285
- stroke_width?: string | number | undefined;
6286
- is_filled?: boolean | undefined;
6287
- has_stroke?: boolean | undefined;
6288
- is_stroke_dashed?: boolean | undefined;
6289
6277
  color?: string | undefined;
6290
6278
  pcb_courtyard_rect_id?: string | undefined;
6291
6279
  }>;
@@ -6303,10 +6291,6 @@ interface PcbCourtyardRect {
6303
6291
  width: Length;
6304
6292
  height: Length;
6305
6293
  layer: VisibleLayer;
6306
- stroke_width: Length;
6307
- is_filled?: boolean;
6308
- has_stroke?: boolean;
6309
- is_stroke_dashed?: boolean;
6310
6294
  color?: string;
6311
6295
  }
6312
6296
  /**
@@ -15168,8 +15152,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
15168
15152
  source_group_id: z.ZodString;
15169
15153
  is_subcircuit: z.ZodOptional<z.ZodBoolean>;
15170
15154
  subcircuit_id: z.ZodOptional<z.ZodString>;
15171
- width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
15172
- height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
15155
+ width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
15156
+ height: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
15173
15157
  center: z.ZodObject<{
15174
15158
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
15175
15159
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -15215,8 +15199,6 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
15215
15199
  autorouter_used_string: z.ZodOptional<z.ZodString>;
15216
15200
  }, "strip", z.ZodTypeAny, {
15217
15201
  type: "pcb_group";
15218
- width: number;
15219
- height: number;
15220
15202
  center: {
15221
15203
  x: number;
15222
15204
  y: number;
@@ -15225,6 +15207,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
15225
15207
  pcb_component_ids: string[];
15226
15208
  source_group_id: string;
15227
15209
  description?: string | undefined;
15210
+ width?: number | undefined;
15211
+ height?: number | undefined;
15228
15212
  name?: string | undefined;
15229
15213
  subcircuit_id?: string | undefined;
15230
15214
  is_subcircuit?: boolean | undefined;
@@ -15244,8 +15228,6 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
15244
15228
  autorouter_used_string?: string | undefined;
15245
15229
  }, {
15246
15230
  type: "pcb_group";
15247
- width: string | number;
15248
- height: string | number;
15249
15231
  center: {
15250
15232
  x: string | number;
15251
15233
  y: string | number;
@@ -15253,6 +15235,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
15253
15235
  pcb_component_ids: string[];
15254
15236
  source_group_id: string;
15255
15237
  description?: string | undefined;
15238
+ width?: string | number | undefined;
15239
+ height?: string | number | undefined;
15256
15240
  name?: string | undefined;
15257
15241
  subcircuit_id?: string | undefined;
15258
15242
  pcb_group_id?: string | undefined;
@@ -17065,10 +17049,6 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17065
17049
  width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
17066
17050
  height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
17067
17051
  layer: z.ZodEnum<["top", "bottom"]>;
17068
- stroke_width: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
17069
- is_filled: z.ZodOptional<z.ZodBoolean>;
17070
- has_stroke: z.ZodOptional<z.ZodBoolean>;
17071
- is_stroke_dashed: z.ZodOptional<z.ZodBoolean>;
17072
17052
  color: z.ZodOptional<z.ZodString>;
17073
17053
  }, "strip", z.ZodTypeAny, {
17074
17054
  type: "pcb_courtyard_rect";
@@ -17080,13 +17060,9 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17080
17060
  y: number;
17081
17061
  };
17082
17062
  layer: "top" | "bottom";
17083
- stroke_width: number;
17084
17063
  pcb_courtyard_rect_id: string;
17085
17064
  subcircuit_id?: string | undefined;
17086
17065
  pcb_group_id?: string | undefined;
17087
- is_filled?: boolean | undefined;
17088
- has_stroke?: boolean | undefined;
17089
- is_stroke_dashed?: boolean | undefined;
17090
17066
  color?: string | undefined;
17091
17067
  }, {
17092
17068
  type: "pcb_courtyard_rect";
@@ -17100,10 +17076,6 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
17100
17076
  layer: "top" | "bottom";
17101
17077
  subcircuit_id?: string | undefined;
17102
17078
  pcb_group_id?: string | undefined;
17103
- stroke_width?: string | number | undefined;
17104
- is_filled?: boolean | undefined;
17105
- has_stroke?: boolean | undefined;
17106
- is_stroke_dashed?: boolean | undefined;
17107
17079
  color?: string | undefined;
17108
17080
  pcb_courtyard_rect_id?: string | undefined;
17109
17081
  }>, z.ZodObject<{
@@ -22397,8 +22369,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
22397
22369
  source_group_id: z.ZodString;
22398
22370
  is_subcircuit: z.ZodOptional<z.ZodBoolean>;
22399
22371
  subcircuit_id: z.ZodOptional<z.ZodString>;
22400
- width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
22401
- height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
22372
+ width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
22373
+ height: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
22402
22374
  center: z.ZodObject<{
22403
22375
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
22404
22376
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -22444,8 +22416,6 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
22444
22416
  autorouter_used_string: z.ZodOptional<z.ZodString>;
22445
22417
  }, "strip", z.ZodTypeAny, {
22446
22418
  type: "pcb_group";
22447
- width: number;
22448
- height: number;
22449
22419
  center: {
22450
22420
  x: number;
22451
22421
  y: number;
@@ -22454,6 +22424,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
22454
22424
  pcb_component_ids: string[];
22455
22425
  source_group_id: string;
22456
22426
  description?: string | undefined;
22427
+ width?: number | undefined;
22428
+ height?: number | undefined;
22457
22429
  name?: string | undefined;
22458
22430
  subcircuit_id?: string | undefined;
22459
22431
  is_subcircuit?: boolean | undefined;
@@ -22473,8 +22445,6 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
22473
22445
  autorouter_used_string?: string | undefined;
22474
22446
  }, {
22475
22447
  type: "pcb_group";
22476
- width: string | number;
22477
- height: string | number;
22478
22448
  center: {
22479
22449
  x: string | number;
22480
22450
  y: string | number;
@@ -22482,6 +22452,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
22482
22452
  pcb_component_ids: string[];
22483
22453
  source_group_id: string;
22484
22454
  description?: string | undefined;
22455
+ width?: string | number | undefined;
22456
+ height?: string | number | undefined;
22485
22457
  name?: string | undefined;
22486
22458
  subcircuit_id?: string | undefined;
22487
22459
  pcb_group_id?: string | undefined;
@@ -24294,10 +24266,6 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
24294
24266
  width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
24295
24267
  height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
24296
24268
  layer: z.ZodEnum<["top", "bottom"]>;
24297
- stroke_width: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
24298
- is_filled: z.ZodOptional<z.ZodBoolean>;
24299
- has_stroke: z.ZodOptional<z.ZodBoolean>;
24300
- is_stroke_dashed: z.ZodOptional<z.ZodBoolean>;
24301
24269
  color: z.ZodOptional<z.ZodString>;
24302
24270
  }, "strip", z.ZodTypeAny, {
24303
24271
  type: "pcb_courtyard_rect";
@@ -24309,13 +24277,9 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
24309
24277
  y: number;
24310
24278
  };
24311
24279
  layer: "top" | "bottom";
24312
- stroke_width: number;
24313
24280
  pcb_courtyard_rect_id: string;
24314
24281
  subcircuit_id?: string | undefined;
24315
24282
  pcb_group_id?: string | undefined;
24316
- is_filled?: boolean | undefined;
24317
- has_stroke?: boolean | undefined;
24318
- is_stroke_dashed?: boolean | undefined;
24319
24283
  color?: string | undefined;
24320
24284
  }, {
24321
24285
  type: "pcb_courtyard_rect";
@@ -24329,10 +24293,6 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
24329
24293
  layer: "top" | "bottom";
24330
24294
  subcircuit_id?: string | undefined;
24331
24295
  pcb_group_id?: string | undefined;
24332
- stroke_width?: string | number | undefined;
24333
- is_filled?: boolean | undefined;
24334
- has_stroke?: boolean | undefined;
24335
- is_stroke_dashed?: boolean | undefined;
24336
24296
  color?: string | undefined;
24337
24297
  pcb_courtyard_rect_id?: string | undefined;
24338
24298
  }>, z.ZodObject<{
package/dist/index.mjs CHANGED
@@ -2279,8 +2279,8 @@ 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
2285
  outline: z106.array(point).optional(),
2286
2286
  anchor_position: point.optional(),
@@ -2493,10 +2493,6 @@ var pcb_courtyard_rect = z117.object({
2493
2493
  width: length,
2494
2494
  height: length,
2495
2495
  layer: visible_layer,
2496
- stroke_width: length.default("0.1mm"),
2497
- is_filled: z117.boolean().optional(),
2498
- has_stroke: z117.boolean().optional(),
2499
- is_stroke_dashed: z117.boolean().optional(),
2500
2496
  color: z117.string().optional()
2501
2497
  }).describe("Defines a courtyard rectangle on the PCB");
2502
2498
  expectTypesMatch(true);