circuit-json 0.0.401 → 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 +9 -9
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -32053,12 +32053,12 @@ declare const cad_component: z.ZodObject<{
|
|
|
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;
|
|
@@ -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;
|
|
@@ -49500,12 +49500,12 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
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;
|
|
@@ -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;
|
|
@@ -67250,12 +67250,12 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
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;
|
|
@@ -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;
|
package/dist/index.mjs
CHANGED
|
@@ -3373,7 +3373,7 @@ var cad_component = z151.object({
|
|
|
3373
3373
|
model_object_fit: z151.enum(["contain_within_bounds", "fill_bounds"]).optional().default("contain_within_bounds"),
|
|
3374
3374
|
model_jscad: z151.any().optional(),
|
|
3375
3375
|
show_as_translucent_model: z151.boolean().optional(),
|
|
3376
|
-
anchor_alignment: z151.enum(["center", "
|
|
3376
|
+
anchor_alignment: z151.enum(["center", "center_of_component_on_board_surface"]).optional().default("center")
|
|
3377
3377
|
}).describe("Defines a component on the PCB");
|
|
3378
3378
|
expectTypesMatch(true);
|
|
3379
3379
|
|