circuit-json 0.0.401 → 0.0.403
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 -9
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -11380,6 +11380,7 @@ declare const pcb_courtyard_rect: z.ZodObject<{
|
|
|
11380
11380
|
width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
11381
11381
|
height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
11382
11382
|
layer: z.ZodEnum<["top", "bottom"]>;
|
|
11383
|
+
ccw_rotation: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
11383
11384
|
color: z.ZodOptional<z.ZodString>;
|
|
11384
11385
|
}, "strip", z.ZodTypeAny, {
|
|
11385
11386
|
type: "pcb_courtyard_rect";
|
|
@@ -11394,6 +11395,7 @@ declare const pcb_courtyard_rect: z.ZodObject<{
|
|
|
11394
11395
|
pcb_courtyard_rect_id: string;
|
|
11395
11396
|
subcircuit_id?: string | undefined;
|
|
11396
11397
|
pcb_group_id?: string | undefined;
|
|
11398
|
+
ccw_rotation?: number | undefined;
|
|
11397
11399
|
color?: string | undefined;
|
|
11398
11400
|
}, {
|
|
11399
11401
|
type: "pcb_courtyard_rect";
|
|
@@ -11407,6 +11409,7 @@ declare const pcb_courtyard_rect: z.ZodObject<{
|
|
|
11407
11409
|
pcb_component_id: string;
|
|
11408
11410
|
subcircuit_id?: string | undefined;
|
|
11409
11411
|
pcb_group_id?: string | undefined;
|
|
11412
|
+
ccw_rotation?: string | number | undefined;
|
|
11410
11413
|
color?: string | undefined;
|
|
11411
11414
|
pcb_courtyard_rect_id?: string | undefined;
|
|
11412
11415
|
}>;
|
|
@@ -11424,6 +11427,7 @@ interface PcbCourtyardRect {
|
|
|
11424
11427
|
width: Length;
|
|
11425
11428
|
height: Length;
|
|
11426
11429
|
layer: VisibleLayer;
|
|
11430
|
+
ccw_rotation?: Rotation;
|
|
11427
11431
|
color?: string;
|
|
11428
11432
|
}
|
|
11429
11433
|
/**
|
|
@@ -32053,12 +32057,12 @@ declare const cad_component: z.ZodObject<{
|
|
|
32053
32057
|
model_object_fit: z.ZodDefault<z.ZodOptional<z.ZodEnum<["contain_within_bounds", "fill_bounds"]>>>;
|
|
32054
32058
|
model_jscad: z.ZodOptional<z.ZodAny>;
|
|
32055
32059
|
show_as_translucent_model: z.ZodOptional<z.ZodBoolean>;
|
|
32056
|
-
anchor_alignment: z.ZodDefault<z.ZodOptional<z.ZodEnum<["center", "
|
|
32060
|
+
anchor_alignment: z.ZodDefault<z.ZodOptional<z.ZodEnum<["center", "center_of_component_on_board_surface"]>>>;
|
|
32057
32061
|
}, "strip", z.ZodTypeAny, {
|
|
32058
32062
|
type: "cad_component";
|
|
32059
32063
|
pcb_component_id: string;
|
|
32060
32064
|
source_component_id: string;
|
|
32061
|
-
anchor_alignment: "center" | "
|
|
32065
|
+
anchor_alignment: "center" | "center_of_component_on_board_surface";
|
|
32062
32066
|
position: {
|
|
32063
32067
|
x: number;
|
|
32064
32068
|
y: number;
|
|
@@ -32125,7 +32129,7 @@ declare const cad_component: z.ZodObject<{
|
|
|
32125
32129
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
32126
32130
|
} | undefined;
|
|
32127
32131
|
subcircuit_id?: string | undefined;
|
|
32128
|
-
anchor_alignment?: "center" | "
|
|
32132
|
+
anchor_alignment?: "center" | "center_of_component_on_board_surface" | undefined;
|
|
32129
32133
|
footprinter_string?: string | undefined;
|
|
32130
32134
|
model_obj_url?: string | undefined;
|
|
32131
32135
|
model_stl_url?: string | undefined;
|
|
@@ -41177,6 +41181,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
41177
41181
|
width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
41178
41182
|
height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
41179
41183
|
layer: z.ZodEnum<["top", "bottom"]>;
|
|
41184
|
+
ccw_rotation: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
41180
41185
|
color: z.ZodOptional<z.ZodString>;
|
|
41181
41186
|
}, "strip", z.ZodTypeAny, {
|
|
41182
41187
|
type: "pcb_courtyard_rect";
|
|
@@ -41191,6 +41196,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
41191
41196
|
pcb_courtyard_rect_id: string;
|
|
41192
41197
|
subcircuit_id?: string | undefined;
|
|
41193
41198
|
pcb_group_id?: string | undefined;
|
|
41199
|
+
ccw_rotation?: number | undefined;
|
|
41194
41200
|
color?: string | undefined;
|
|
41195
41201
|
}, {
|
|
41196
41202
|
type: "pcb_courtyard_rect";
|
|
@@ -41204,6 +41210,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
41204
41210
|
pcb_component_id: string;
|
|
41205
41211
|
subcircuit_id?: string | undefined;
|
|
41206
41212
|
pcb_group_id?: string | undefined;
|
|
41213
|
+
ccw_rotation?: string | number | undefined;
|
|
41207
41214
|
color?: string | undefined;
|
|
41208
41215
|
pcb_courtyard_rect_id?: string | undefined;
|
|
41209
41216
|
}>, z.ZodObject<{
|
|
@@ -49500,12 +49507,12 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
49500
49507
|
model_object_fit: z.ZodDefault<z.ZodOptional<z.ZodEnum<["contain_within_bounds", "fill_bounds"]>>>;
|
|
49501
49508
|
model_jscad: z.ZodOptional<z.ZodAny>;
|
|
49502
49509
|
show_as_translucent_model: z.ZodOptional<z.ZodBoolean>;
|
|
49503
|
-
anchor_alignment: z.ZodDefault<z.ZodOptional<z.ZodEnum<["center", "
|
|
49510
|
+
anchor_alignment: z.ZodDefault<z.ZodOptional<z.ZodEnum<["center", "center_of_component_on_board_surface"]>>>;
|
|
49504
49511
|
}, "strip", z.ZodTypeAny, {
|
|
49505
49512
|
type: "cad_component";
|
|
49506
49513
|
pcb_component_id: string;
|
|
49507
49514
|
source_component_id: string;
|
|
49508
|
-
anchor_alignment: "center" | "
|
|
49515
|
+
anchor_alignment: "center" | "center_of_component_on_board_surface";
|
|
49509
49516
|
position: {
|
|
49510
49517
|
x: number;
|
|
49511
49518
|
y: number;
|
|
@@ -49572,7 +49579,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
49572
49579
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
49573
49580
|
} | undefined;
|
|
49574
49581
|
subcircuit_id?: string | undefined;
|
|
49575
|
-
anchor_alignment?: "center" | "
|
|
49582
|
+
anchor_alignment?: "center" | "center_of_component_on_board_surface" | undefined;
|
|
49576
49583
|
footprinter_string?: string | undefined;
|
|
49577
49584
|
model_obj_url?: string | undefined;
|
|
49578
49585
|
model_stl_url?: string | undefined;
|
|
@@ -58927,6 +58934,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
58927
58934
|
width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
58928
58935
|
height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
58929
58936
|
layer: z.ZodEnum<["top", "bottom"]>;
|
|
58937
|
+
ccw_rotation: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
58930
58938
|
color: z.ZodOptional<z.ZodString>;
|
|
58931
58939
|
}, "strip", z.ZodTypeAny, {
|
|
58932
58940
|
type: "pcb_courtyard_rect";
|
|
@@ -58941,6 +58949,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
58941
58949
|
pcb_courtyard_rect_id: string;
|
|
58942
58950
|
subcircuit_id?: string | undefined;
|
|
58943
58951
|
pcb_group_id?: string | undefined;
|
|
58952
|
+
ccw_rotation?: number | undefined;
|
|
58944
58953
|
color?: string | undefined;
|
|
58945
58954
|
}, {
|
|
58946
58955
|
type: "pcb_courtyard_rect";
|
|
@@ -58954,6 +58963,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
58954
58963
|
pcb_component_id: string;
|
|
58955
58964
|
subcircuit_id?: string | undefined;
|
|
58956
58965
|
pcb_group_id?: string | undefined;
|
|
58966
|
+
ccw_rotation?: string | number | undefined;
|
|
58957
58967
|
color?: string | undefined;
|
|
58958
58968
|
pcb_courtyard_rect_id?: string | undefined;
|
|
58959
58969
|
}>, z.ZodObject<{
|
|
@@ -67250,12 +67260,12 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
67250
67260
|
model_object_fit: z.ZodDefault<z.ZodOptional<z.ZodEnum<["contain_within_bounds", "fill_bounds"]>>>;
|
|
67251
67261
|
model_jscad: z.ZodOptional<z.ZodAny>;
|
|
67252
67262
|
show_as_translucent_model: z.ZodOptional<z.ZodBoolean>;
|
|
67253
|
-
anchor_alignment: z.ZodDefault<z.ZodOptional<z.ZodEnum<["center", "
|
|
67263
|
+
anchor_alignment: z.ZodDefault<z.ZodOptional<z.ZodEnum<["center", "center_of_component_on_board_surface"]>>>;
|
|
67254
67264
|
}, "strip", z.ZodTypeAny, {
|
|
67255
67265
|
type: "cad_component";
|
|
67256
67266
|
pcb_component_id: string;
|
|
67257
67267
|
source_component_id: string;
|
|
67258
|
-
anchor_alignment: "center" | "
|
|
67268
|
+
anchor_alignment: "center" | "center_of_component_on_board_surface";
|
|
67259
67269
|
position: {
|
|
67260
67270
|
x: number;
|
|
67261
67271
|
y: number;
|
|
@@ -67322,7 +67332,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
67322
67332
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
67323
67333
|
} | undefined;
|
|
67324
67334
|
subcircuit_id?: string | undefined;
|
|
67325
|
-
anchor_alignment?: "center" | "
|
|
67335
|
+
anchor_alignment?: "center" | "center_of_component_on_board_surface" | undefined;
|
|
67326
67336
|
footprinter_string?: string | undefined;
|
|
67327
67337
|
model_obj_url?: string | undefined;
|
|
67328
67338
|
model_stl_url?: string | undefined;
|
package/dist/index.mjs
CHANGED
|
@@ -3255,6 +3255,7 @@ var pcb_courtyard_rect = z147.object({
|
|
|
3255
3255
|
width: length,
|
|
3256
3256
|
height: length,
|
|
3257
3257
|
layer: visible_layer,
|
|
3258
|
+
ccw_rotation: rotation.optional(),
|
|
3258
3259
|
color: z147.string().optional()
|
|
3259
3260
|
}).describe("Defines a courtyard rectangle on the PCB");
|
|
3260
3261
|
expectTypesMatch(true);
|
|
@@ -3373,7 +3374,7 @@ var cad_component = z151.object({
|
|
|
3373
3374
|
model_object_fit: z151.enum(["contain_within_bounds", "fill_bounds"]).optional().default("contain_within_bounds"),
|
|
3374
3375
|
model_jscad: z151.any().optional(),
|
|
3375
3376
|
show_as_translucent_model: z151.boolean().optional(),
|
|
3376
|
-
anchor_alignment: z151.enum(["center", "
|
|
3377
|
+
anchor_alignment: z151.enum(["center", "center_of_component_on_board_surface"]).optional().default("center")
|
|
3377
3378
|
}).describe("Defines a component on the PCB");
|
|
3378
3379
|
expectTypesMatch(true);
|
|
3379
3380
|
|