circuit-json 0.0.265 → 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 +1 -0
- package/dist/index.d.mts +10 -0
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -403,6 +403,7 @@ declare const pcb_component: z.ZodObject<{
|
|
|
403
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,6 +416,7 @@ declare const pcb_component: z.ZodObject<{
|
|
|
415
416
|
};
|
|
416
417
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
417
418
|
rotation: number;
|
|
419
|
+
obstructs_within_bounds: boolean;
|
|
418
420
|
do_not_place?: boolean | undefined;
|
|
419
421
|
subcircuit_id?: string | undefined;
|
|
420
422
|
pcb_group_id?: string | undefined;
|
|
@@ -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
|
/**
|
|
@@ -452,6 +455,7 @@ interface PcbComponent {
|
|
|
452
455
|
height: Length;
|
|
453
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
|
|
@@ -12098,6 +12102,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
12098
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,6 +12115,7 @@ 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;
|
|
12118
|
+
obstructs_within_bounds: boolean;
|
|
12113
12119
|
do_not_place?: boolean | undefined;
|
|
12114
12120
|
subcircuit_id?: string | undefined;
|
|
12115
12121
|
pcb_group_id?: string | undefined;
|
|
@@ -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>>;
|
|
@@ -18472,6 +18479,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
18472
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,6 +18492,7 @@ 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;
|
|
18495
|
+
obstructs_within_bounds: boolean;
|
|
18487
18496
|
do_not_place?: boolean | undefined;
|
|
18488
18497
|
subcircuit_id?: string | undefined;
|
|
18489
18498
|
pcb_group_id?: string | undefined;
|
|
@@ -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
|
@@ -1216,7 +1216,10 @@ var pcb_component = z66.object({
|
|
|
1216
1216
|
height: length,
|
|
1217
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
|
|