circuit-json 0.0.400 → 0.0.402
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/dist/index.d.mts +19 -19
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -32049,16 +32049,16 @@ declare const cad_component: z.ZodObject<{
|
|
|
32049
32049
|
y: string | number;
|
|
32050
32050
|
z: string | number;
|
|
32051
32051
|
}>>;
|
|
32052
|
-
model_origin_alignment: z.ZodOptional<z.ZodEnum<["unknown", "center", "center_of_component_on_board_surface"]>>;
|
|
32052
|
+
model_origin_alignment: z.ZodOptional<z.ZodEnum<["unknown", "center", "center_of_component_on_board_surface", "bottom_center_of_component"]>>;
|
|
32053
32053
|
model_object_fit: z.ZodDefault<z.ZodOptional<z.ZodEnum<["contain_within_bounds", "fill_bounds"]>>>;
|
|
32054
32054
|
model_jscad: z.ZodOptional<z.ZodAny>;
|
|
32055
32055
|
show_as_translucent_model: z.ZodOptional<z.ZodBoolean>;
|
|
32056
|
-
anchor_alignment: z.ZodDefault<z.ZodOptional<z.ZodEnum<["center", "
|
|
32056
|
+
anchor_alignment: z.ZodDefault<z.ZodOptional<z.ZodEnum<["center", "center_of_component_on_board_surface"]>>>;
|
|
32057
32057
|
}, "strip", z.ZodTypeAny, {
|
|
32058
32058
|
type: "cad_component";
|
|
32059
32059
|
pcb_component_id: string;
|
|
32060
32060
|
source_component_id: string;
|
|
32061
|
-
anchor_alignment: "center" | "
|
|
32061
|
+
anchor_alignment: "center" | "center_of_component_on_board_surface";
|
|
32062
32062
|
position: {
|
|
32063
32063
|
x: number;
|
|
32064
32064
|
y: number;
|
|
@@ -32098,7 +32098,7 @@ declare const cad_component: z.ZodObject<{
|
|
|
32098
32098
|
y: number;
|
|
32099
32099
|
z: number;
|
|
32100
32100
|
} | undefined;
|
|
32101
|
-
model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | undefined;
|
|
32101
|
+
model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | "bottom_center_of_component" | undefined;
|
|
32102
32102
|
model_jscad?: any;
|
|
32103
32103
|
show_as_translucent_model?: boolean | undefined;
|
|
32104
32104
|
}, {
|
|
@@ -32125,7 +32125,7 @@ declare const cad_component: z.ZodObject<{
|
|
|
32125
32125
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
32126
32126
|
} | undefined;
|
|
32127
32127
|
subcircuit_id?: string | undefined;
|
|
32128
|
-
anchor_alignment?: "center" | "
|
|
32128
|
+
anchor_alignment?: "center" | "center_of_component_on_board_surface" | undefined;
|
|
32129
32129
|
footprinter_string?: string | undefined;
|
|
32130
32130
|
model_obj_url?: string | undefined;
|
|
32131
32131
|
model_stl_url?: string | undefined;
|
|
@@ -32146,7 +32146,7 @@ declare const cad_component: z.ZodObject<{
|
|
|
32146
32146
|
y: string | number;
|
|
32147
32147
|
z: string | number;
|
|
32148
32148
|
} | undefined;
|
|
32149
|
-
model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | undefined;
|
|
32149
|
+
model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | "bottom_center_of_component" | undefined;
|
|
32150
32150
|
model_object_fit?: "contain_within_bounds" | "fill_bounds" | undefined;
|
|
32151
32151
|
model_jscad?: any;
|
|
32152
32152
|
show_as_translucent_model?: boolean | undefined;
|
|
@@ -32176,7 +32176,7 @@ interface CadComponent {
|
|
|
32176
32176
|
model_unit_to_mm_scale_factor?: number;
|
|
32177
32177
|
model_board_normal_direction?: CadModelAxisDirection;
|
|
32178
32178
|
model_origin_position?: Point3;
|
|
32179
|
-
model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface";
|
|
32179
|
+
model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | "bottom_center_of_component";
|
|
32180
32180
|
model_object_fit: "contain_within_bounds" | "fill_bounds";
|
|
32181
32181
|
model_jscad?: any;
|
|
32182
32182
|
show_as_translucent_model?: boolean;
|
|
@@ -49496,16 +49496,16 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
49496
49496
|
y: string | number;
|
|
49497
49497
|
z: string | number;
|
|
49498
49498
|
}>>;
|
|
49499
|
-
model_origin_alignment: z.ZodOptional<z.ZodEnum<["unknown", "center", "center_of_component_on_board_surface"]>>;
|
|
49499
|
+
model_origin_alignment: z.ZodOptional<z.ZodEnum<["unknown", "center", "center_of_component_on_board_surface", "bottom_center_of_component"]>>;
|
|
49500
49500
|
model_object_fit: z.ZodDefault<z.ZodOptional<z.ZodEnum<["contain_within_bounds", "fill_bounds"]>>>;
|
|
49501
49501
|
model_jscad: z.ZodOptional<z.ZodAny>;
|
|
49502
49502
|
show_as_translucent_model: z.ZodOptional<z.ZodBoolean>;
|
|
49503
|
-
anchor_alignment: z.ZodDefault<z.ZodOptional<z.ZodEnum<["center", "
|
|
49503
|
+
anchor_alignment: z.ZodDefault<z.ZodOptional<z.ZodEnum<["center", "center_of_component_on_board_surface"]>>>;
|
|
49504
49504
|
}, "strip", z.ZodTypeAny, {
|
|
49505
49505
|
type: "cad_component";
|
|
49506
49506
|
pcb_component_id: string;
|
|
49507
49507
|
source_component_id: string;
|
|
49508
|
-
anchor_alignment: "center" | "
|
|
49508
|
+
anchor_alignment: "center" | "center_of_component_on_board_surface";
|
|
49509
49509
|
position: {
|
|
49510
49510
|
x: number;
|
|
49511
49511
|
y: number;
|
|
@@ -49545,7 +49545,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
49545
49545
|
y: number;
|
|
49546
49546
|
z: number;
|
|
49547
49547
|
} | undefined;
|
|
49548
|
-
model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | undefined;
|
|
49548
|
+
model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | "bottom_center_of_component" | undefined;
|
|
49549
49549
|
model_jscad?: any;
|
|
49550
49550
|
show_as_translucent_model?: boolean | undefined;
|
|
49551
49551
|
}, {
|
|
@@ -49572,7 +49572,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
49572
49572
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
49573
49573
|
} | undefined;
|
|
49574
49574
|
subcircuit_id?: string | undefined;
|
|
49575
|
-
anchor_alignment?: "center" | "
|
|
49575
|
+
anchor_alignment?: "center" | "center_of_component_on_board_surface" | undefined;
|
|
49576
49576
|
footprinter_string?: string | undefined;
|
|
49577
49577
|
model_obj_url?: string | undefined;
|
|
49578
49578
|
model_stl_url?: string | undefined;
|
|
@@ -49593,7 +49593,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
49593
49593
|
y: string | number;
|
|
49594
49594
|
z: string | number;
|
|
49595
49595
|
} | undefined;
|
|
49596
|
-
model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | undefined;
|
|
49596
|
+
model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | "bottom_center_of_component" | undefined;
|
|
49597
49597
|
model_object_fit?: "contain_within_bounds" | "fill_bounds" | undefined;
|
|
49598
49598
|
model_jscad?: any;
|
|
49599
49599
|
show_as_translucent_model?: boolean | undefined;
|
|
@@ -67246,16 +67246,16 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
67246
67246
|
y: string | number;
|
|
67247
67247
|
z: string | number;
|
|
67248
67248
|
}>>;
|
|
67249
|
-
model_origin_alignment: z.ZodOptional<z.ZodEnum<["unknown", "center", "center_of_component_on_board_surface"]>>;
|
|
67249
|
+
model_origin_alignment: z.ZodOptional<z.ZodEnum<["unknown", "center", "center_of_component_on_board_surface", "bottom_center_of_component"]>>;
|
|
67250
67250
|
model_object_fit: z.ZodDefault<z.ZodOptional<z.ZodEnum<["contain_within_bounds", "fill_bounds"]>>>;
|
|
67251
67251
|
model_jscad: z.ZodOptional<z.ZodAny>;
|
|
67252
67252
|
show_as_translucent_model: z.ZodOptional<z.ZodBoolean>;
|
|
67253
|
-
anchor_alignment: z.ZodDefault<z.ZodOptional<z.ZodEnum<["center", "
|
|
67253
|
+
anchor_alignment: z.ZodDefault<z.ZodOptional<z.ZodEnum<["center", "center_of_component_on_board_surface"]>>>;
|
|
67254
67254
|
}, "strip", z.ZodTypeAny, {
|
|
67255
67255
|
type: "cad_component";
|
|
67256
67256
|
pcb_component_id: string;
|
|
67257
67257
|
source_component_id: string;
|
|
67258
|
-
anchor_alignment: "center" | "
|
|
67258
|
+
anchor_alignment: "center" | "center_of_component_on_board_surface";
|
|
67259
67259
|
position: {
|
|
67260
67260
|
x: number;
|
|
67261
67261
|
y: number;
|
|
@@ -67295,7 +67295,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
67295
67295
|
y: number;
|
|
67296
67296
|
z: number;
|
|
67297
67297
|
} | undefined;
|
|
67298
|
-
model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | undefined;
|
|
67298
|
+
model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | "bottom_center_of_component" | undefined;
|
|
67299
67299
|
model_jscad?: any;
|
|
67300
67300
|
show_as_translucent_model?: boolean | undefined;
|
|
67301
67301
|
}, {
|
|
@@ -67322,7 +67322,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
67322
67322
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
67323
67323
|
} | undefined;
|
|
67324
67324
|
subcircuit_id?: string | undefined;
|
|
67325
|
-
anchor_alignment?: "center" | "
|
|
67325
|
+
anchor_alignment?: "center" | "center_of_component_on_board_surface" | undefined;
|
|
67326
67326
|
footprinter_string?: string | undefined;
|
|
67327
67327
|
model_obj_url?: string | undefined;
|
|
67328
67328
|
model_stl_url?: string | undefined;
|
|
@@ -67343,7 +67343,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
67343
67343
|
y: string | number;
|
|
67344
67344
|
z: string | number;
|
|
67345
67345
|
} | undefined;
|
|
67346
|
-
model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | undefined;
|
|
67346
|
+
model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | "bottom_center_of_component" | undefined;
|
|
67347
67347
|
model_object_fit?: "contain_within_bounds" | "fill_bounds" | undefined;
|
|
67348
67348
|
model_jscad?: any;
|
|
67349
67349
|
show_as_translucent_model?: boolean | undefined;
|
package/dist/index.mjs
CHANGED
|
@@ -3367,12 +3367,13 @@ var cad_component = z151.object({
|
|
|
3367
3367
|
model_origin_alignment: z151.enum([
|
|
3368
3368
|
"unknown",
|
|
3369
3369
|
"center",
|
|
3370
|
-
"center_of_component_on_board_surface"
|
|
3370
|
+
"center_of_component_on_board_surface",
|
|
3371
|
+
"bottom_center_of_component"
|
|
3371
3372
|
]).optional(),
|
|
3372
3373
|
model_object_fit: z151.enum(["contain_within_bounds", "fill_bounds"]).optional().default("contain_within_bounds"),
|
|
3373
3374
|
model_jscad: z151.any().optional(),
|
|
3374
3375
|
show_as_translucent_model: z151.boolean().optional(),
|
|
3375
|
-
anchor_alignment: z151.enum(["center", "
|
|
3376
|
+
anchor_alignment: z151.enum(["center", "center_of_component_on_board_surface"]).optional().default("center")
|
|
3376
3377
|
}).describe("Defines a component on the PCB");
|
|
3377
3378
|
expectTypesMatch(true);
|
|
3378
3379
|
|