circuit-json 0.0.264 → 0.0.266

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
@@ -824,8 +824,9 @@ interface PcbComponent {
824
824
  rotation: Rotation
825
825
  width: Length
826
826
  height: Length
827
- do_not_place: boolean
827
+ do_not_place?: boolean
828
828
  pcb_group_id?: string
829
+ obstructs_within_bounds: boolean
829
830
  }
830
831
  ```
831
832
 
package/dist/index.d.mts CHANGED
@@ -400,9 +400,10 @@ declare const pcb_component: z.ZodObject<{
400
400
  rotation: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
401
401
  width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
402
402
  height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
403
- do_not_place: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
403
+ do_not_place: z.ZodOptional<z.ZodBoolean>;
404
404
  subcircuit_id: z.ZodOptional<z.ZodString>;
405
405
  pcb_group_id: z.ZodOptional<z.ZodString>;
406
+ obstructs_within_bounds: z.ZodDefault<z.ZodBoolean>;
406
407
  }, "strip", z.ZodTypeAny, {
407
408
  type: "pcb_component";
408
409
  width: number;
@@ -415,7 +416,8 @@ declare const pcb_component: z.ZodObject<{
415
416
  };
416
417
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
417
418
  rotation: number;
418
- do_not_place: boolean;
419
+ obstructs_within_bounds: boolean;
420
+ do_not_place?: boolean | undefined;
419
421
  subcircuit_id?: string | undefined;
420
422
  pcb_group_id?: string | undefined;
421
423
  }, {
@@ -435,6 +437,7 @@ declare const pcb_component: z.ZodObject<{
435
437
  do_not_place?: boolean | undefined;
436
438
  subcircuit_id?: string | undefined;
437
439
  pcb_group_id?: string | undefined;
440
+ obstructs_within_bounds?: boolean | undefined;
438
441
  }>;
439
442
  type PcbComponentInput = z.input<typeof pcb_component>;
440
443
  /**
@@ -450,8 +453,9 @@ interface PcbComponent {
450
453
  rotation: Rotation;
451
454
  width: Length;
452
455
  height: Length;
453
- do_not_place: boolean;
456
+ do_not_place?: boolean;
454
457
  pcb_group_id?: string;
458
+ obstructs_within_bounds: boolean;
455
459
  }
456
460
  /**
457
461
  * @deprecated use PcbComponent
@@ -12095,9 +12099,10 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
12095
12099
  rotation: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
12096
12100
  width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
12097
12101
  height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
12098
- do_not_place: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
12102
+ do_not_place: z.ZodOptional<z.ZodBoolean>;
12099
12103
  subcircuit_id: z.ZodOptional<z.ZodString>;
12100
12104
  pcb_group_id: z.ZodOptional<z.ZodString>;
12105
+ obstructs_within_bounds: z.ZodDefault<z.ZodBoolean>;
12101
12106
  }, "strip", z.ZodTypeAny, {
12102
12107
  type: "pcb_component";
12103
12108
  width: number;
@@ -12110,7 +12115,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
12110
12115
  };
12111
12116
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
12112
12117
  rotation: number;
12113
- do_not_place: boolean;
12118
+ obstructs_within_bounds: boolean;
12119
+ do_not_place?: boolean | undefined;
12114
12120
  subcircuit_id?: string | undefined;
12115
12121
  pcb_group_id?: string | undefined;
12116
12122
  }, {
@@ -12130,6 +12136,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
12130
12136
  do_not_place?: boolean | undefined;
12131
12137
  subcircuit_id?: string | undefined;
12132
12138
  pcb_group_id?: string | undefined;
12139
+ obstructs_within_bounds?: boolean | undefined;
12133
12140
  }>, z.ZodUnion<[z.ZodObject<{
12134
12141
  type: z.ZodLiteral<"pcb_hole">;
12135
12142
  pcb_hole_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -18469,9 +18476,10 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
18469
18476
  rotation: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
18470
18477
  width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
18471
18478
  height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
18472
- do_not_place: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
18479
+ do_not_place: z.ZodOptional<z.ZodBoolean>;
18473
18480
  subcircuit_id: z.ZodOptional<z.ZodString>;
18474
18481
  pcb_group_id: z.ZodOptional<z.ZodString>;
18482
+ obstructs_within_bounds: z.ZodDefault<z.ZodBoolean>;
18475
18483
  }, "strip", z.ZodTypeAny, {
18476
18484
  type: "pcb_component";
18477
18485
  width: number;
@@ -18484,7 +18492,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
18484
18492
  };
18485
18493
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
18486
18494
  rotation: number;
18487
- do_not_place: boolean;
18495
+ obstructs_within_bounds: boolean;
18496
+ do_not_place?: boolean | undefined;
18488
18497
  subcircuit_id?: string | undefined;
18489
18498
  pcb_group_id?: string | undefined;
18490
18499
  }, {
@@ -18504,6 +18513,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
18504
18513
  do_not_place?: boolean | undefined;
18505
18514
  subcircuit_id?: string | undefined;
18506
18515
  pcb_group_id?: string | undefined;
18516
+ obstructs_within_bounds?: boolean | undefined;
18507
18517
  }>, z.ZodUnion<[z.ZodObject<{
18508
18518
  type: z.ZodLiteral<"pcb_hole">;
18509
18519
  pcb_hole_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
package/dist/index.mjs CHANGED
@@ -1214,9 +1214,12 @@ var pcb_component = z66.object({
1214
1214
  rotation,
1215
1215
  width: length,
1216
1216
  height: length,
1217
- do_not_place: z66.boolean().optional().default(false),
1217
+ do_not_place: z66.boolean().optional(),
1218
1218
  subcircuit_id: z66.string().optional(),
1219
- pcb_group_id: z66.string().optional()
1219
+ pcb_group_id: z66.string().optional(),
1220
+ obstructs_within_bounds: z66.boolean().default(true).describe(
1221
+ "Does this component take up all the space within its bounds on a layer. This is generally true except for when separated pin headers are being represented by a single component (in which case, chips can be placed between the pin headers) or for tall modules where chips fit underneath"
1222
+ )
1220
1223
  }).describe("Defines a component on the PCB");
1221
1224
  expectTypesMatch(true);
1222
1225