circuit-json 0.0.424 → 0.0.426
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 +20 -0
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -8894,6 +8894,7 @@ declare const pcb_fabrication_note_text: z.ZodObject<{
|
|
|
8894
8894
|
font_size: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
8895
8895
|
pcb_component_id: z.ZodString;
|
|
8896
8896
|
text: z.ZodString;
|
|
8897
|
+
ccw_rotation: z.ZodOptional<z.ZodNumber>;
|
|
8897
8898
|
layer: z.ZodEnum<["top", "bottom"]>;
|
|
8898
8899
|
anchor_position: z.ZodDefault<z.ZodObject<{
|
|
8899
8900
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
@@ -8922,6 +8923,7 @@ declare const pcb_fabrication_note_text: z.ZodObject<{
|
|
|
8922
8923
|
pcb_fabrication_note_text_id: string;
|
|
8923
8924
|
subcircuit_id?: string | undefined;
|
|
8924
8925
|
pcb_group_id?: string | undefined;
|
|
8926
|
+
ccw_rotation?: number | undefined;
|
|
8925
8927
|
color?: string | undefined;
|
|
8926
8928
|
}, {
|
|
8927
8929
|
type: "pcb_fabrication_note_text";
|
|
@@ -8936,6 +8938,7 @@ declare const pcb_fabrication_note_text: z.ZodObject<{
|
|
|
8936
8938
|
y: string | number;
|
|
8937
8939
|
} | undefined;
|
|
8938
8940
|
anchor_alignment?: "top_left" | "top_right" | "center" | "bottom_left" | "bottom_right" | undefined;
|
|
8941
|
+
ccw_rotation?: number | undefined;
|
|
8939
8942
|
font_size?: string | number | undefined;
|
|
8940
8943
|
pcb_fabrication_note_text_id?: string | undefined;
|
|
8941
8944
|
color?: string | undefined;
|
|
@@ -8953,6 +8956,7 @@ interface PcbFabricationNoteText {
|
|
|
8953
8956
|
font_size: Length;
|
|
8954
8957
|
pcb_component_id: string;
|
|
8955
8958
|
text: string;
|
|
8959
|
+
ccw_rotation?: number;
|
|
8956
8960
|
layer: VisibleLayer;
|
|
8957
8961
|
anchor_position: Point;
|
|
8958
8962
|
anchor_alignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
|
|
@@ -32919,6 +32923,7 @@ declare const cad_component: z.ZodObject<{
|
|
|
32919
32923
|
model_object_fit: z.ZodDefault<z.ZodOptional<z.ZodEnum<["contain_within_bounds", "fill_bounds"]>>>;
|
|
32920
32924
|
model_jscad: z.ZodOptional<z.ZodAny>;
|
|
32921
32925
|
show_as_translucent_model: z.ZodOptional<z.ZodBoolean>;
|
|
32926
|
+
show_as_bounding_box: z.ZodOptional<z.ZodBoolean>;
|
|
32922
32927
|
anchor_alignment: z.ZodDefault<z.ZodOptional<z.ZodEnum<["center", "center_of_component_on_board_surface"]>>>;
|
|
32923
32928
|
}, "strip", z.ZodTypeAny, {
|
|
32924
32929
|
type: "cad_component";
|
|
@@ -32967,6 +32972,7 @@ declare const cad_component: z.ZodObject<{
|
|
|
32967
32972
|
model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | "bottom_center_of_component" | undefined;
|
|
32968
32973
|
model_jscad?: any;
|
|
32969
32974
|
show_as_translucent_model?: boolean | undefined;
|
|
32975
|
+
show_as_bounding_box?: boolean | undefined;
|
|
32970
32976
|
}, {
|
|
32971
32977
|
type: "cad_component";
|
|
32972
32978
|
pcb_component_id: string;
|
|
@@ -33016,6 +33022,7 @@ declare const cad_component: z.ZodObject<{
|
|
|
33016
33022
|
model_object_fit?: "contain_within_bounds" | "fill_bounds" | undefined;
|
|
33017
33023
|
model_jscad?: any;
|
|
33018
33024
|
show_as_translucent_model?: boolean | undefined;
|
|
33025
|
+
show_as_bounding_box?: boolean | undefined;
|
|
33019
33026
|
}>;
|
|
33020
33027
|
type CadComponentInput = z.input<typeof cad_component>;
|
|
33021
33028
|
type InferredCadComponent = z.infer<typeof cad_component>;
|
|
@@ -33046,6 +33053,7 @@ interface CadComponent {
|
|
|
33046
33053
|
model_object_fit: "contain_within_bounds" | "fill_bounds";
|
|
33047
33054
|
model_jscad?: any;
|
|
33048
33055
|
show_as_translucent_model?: boolean;
|
|
33056
|
+
show_as_bounding_box?: boolean;
|
|
33049
33057
|
anchor_alignment: CadComponentAnchorAlignment;
|
|
33050
33058
|
}
|
|
33051
33059
|
|
|
@@ -41126,6 +41134,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
41126
41134
|
font_size: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
41127
41135
|
pcb_component_id: z.ZodString;
|
|
41128
41136
|
text: z.ZodString;
|
|
41137
|
+
ccw_rotation: z.ZodOptional<z.ZodNumber>;
|
|
41129
41138
|
layer: z.ZodEnum<["top", "bottom"]>;
|
|
41130
41139
|
anchor_position: z.ZodDefault<z.ZodObject<{
|
|
41131
41140
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
@@ -41154,6 +41163,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
41154
41163
|
pcb_fabrication_note_text_id: string;
|
|
41155
41164
|
subcircuit_id?: string | undefined;
|
|
41156
41165
|
pcb_group_id?: string | undefined;
|
|
41166
|
+
ccw_rotation?: number | undefined;
|
|
41157
41167
|
color?: string | undefined;
|
|
41158
41168
|
}, {
|
|
41159
41169
|
type: "pcb_fabrication_note_text";
|
|
@@ -41168,6 +41178,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
41168
41178
|
y: string | number;
|
|
41169
41179
|
} | undefined;
|
|
41170
41180
|
anchor_alignment?: "top_left" | "top_right" | "center" | "bottom_left" | "bottom_right" | undefined;
|
|
41181
|
+
ccw_rotation?: number | undefined;
|
|
41171
41182
|
font_size?: string | number | undefined;
|
|
41172
41183
|
pcb_fabrication_note_text_id?: string | undefined;
|
|
41173
41184
|
color?: string | undefined;
|
|
@@ -50859,6 +50870,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
50859
50870
|
model_object_fit: z.ZodDefault<z.ZodOptional<z.ZodEnum<["contain_within_bounds", "fill_bounds"]>>>;
|
|
50860
50871
|
model_jscad: z.ZodOptional<z.ZodAny>;
|
|
50861
50872
|
show_as_translucent_model: z.ZodOptional<z.ZodBoolean>;
|
|
50873
|
+
show_as_bounding_box: z.ZodOptional<z.ZodBoolean>;
|
|
50862
50874
|
anchor_alignment: z.ZodDefault<z.ZodOptional<z.ZodEnum<["center", "center_of_component_on_board_surface"]>>>;
|
|
50863
50875
|
}, "strip", z.ZodTypeAny, {
|
|
50864
50876
|
type: "cad_component";
|
|
@@ -50907,6 +50919,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
50907
50919
|
model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | "bottom_center_of_component" | undefined;
|
|
50908
50920
|
model_jscad?: any;
|
|
50909
50921
|
show_as_translucent_model?: boolean | undefined;
|
|
50922
|
+
show_as_bounding_box?: boolean | undefined;
|
|
50910
50923
|
}, {
|
|
50911
50924
|
type: "cad_component";
|
|
50912
50925
|
pcb_component_id: string;
|
|
@@ -50956,6 +50969,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
50956
50969
|
model_object_fit?: "contain_within_bounds" | "fill_bounds" | undefined;
|
|
50957
50970
|
model_jscad?: any;
|
|
50958
50971
|
show_as_translucent_model?: boolean | undefined;
|
|
50972
|
+
show_as_bounding_box?: boolean | undefined;
|
|
50959
50973
|
}>, z.ZodUnion<[z.ZodObject<{
|
|
50960
50974
|
type: z.ZodLiteral<"simulation_voltage_source">;
|
|
50961
50975
|
simulation_voltage_source_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -59369,6 +59383,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
59369
59383
|
font_size: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
59370
59384
|
pcb_component_id: z.ZodString;
|
|
59371
59385
|
text: z.ZodString;
|
|
59386
|
+
ccw_rotation: z.ZodOptional<z.ZodNumber>;
|
|
59372
59387
|
layer: z.ZodEnum<["top", "bottom"]>;
|
|
59373
59388
|
anchor_position: z.ZodDefault<z.ZodObject<{
|
|
59374
59389
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
@@ -59397,6 +59412,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
59397
59412
|
pcb_fabrication_note_text_id: string;
|
|
59398
59413
|
subcircuit_id?: string | undefined;
|
|
59399
59414
|
pcb_group_id?: string | undefined;
|
|
59415
|
+
ccw_rotation?: number | undefined;
|
|
59400
59416
|
color?: string | undefined;
|
|
59401
59417
|
}, {
|
|
59402
59418
|
type: "pcb_fabrication_note_text";
|
|
@@ -59411,6 +59427,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
59411
59427
|
y: string | number;
|
|
59412
59428
|
} | undefined;
|
|
59413
59429
|
anchor_alignment?: "top_left" | "top_right" | "center" | "bottom_left" | "bottom_right" | undefined;
|
|
59430
|
+
ccw_rotation?: number | undefined;
|
|
59414
59431
|
font_size?: string | number | undefined;
|
|
59415
59432
|
pcb_fabrication_note_text_id?: string | undefined;
|
|
59416
59433
|
color?: string | undefined;
|
|
@@ -69102,6 +69119,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
69102
69119
|
model_object_fit: z.ZodDefault<z.ZodOptional<z.ZodEnum<["contain_within_bounds", "fill_bounds"]>>>;
|
|
69103
69120
|
model_jscad: z.ZodOptional<z.ZodAny>;
|
|
69104
69121
|
show_as_translucent_model: z.ZodOptional<z.ZodBoolean>;
|
|
69122
|
+
show_as_bounding_box: z.ZodOptional<z.ZodBoolean>;
|
|
69105
69123
|
anchor_alignment: z.ZodDefault<z.ZodOptional<z.ZodEnum<["center", "center_of_component_on_board_surface"]>>>;
|
|
69106
69124
|
}, "strip", z.ZodTypeAny, {
|
|
69107
69125
|
type: "cad_component";
|
|
@@ -69150,6 +69168,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
69150
69168
|
model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | "bottom_center_of_component" | undefined;
|
|
69151
69169
|
model_jscad?: any;
|
|
69152
69170
|
show_as_translucent_model?: boolean | undefined;
|
|
69171
|
+
show_as_bounding_box?: boolean | undefined;
|
|
69153
69172
|
}, {
|
|
69154
69173
|
type: "cad_component";
|
|
69155
69174
|
pcb_component_id: string;
|
|
@@ -69199,6 +69218,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
69199
69218
|
model_object_fit?: "contain_within_bounds" | "fill_bounds" | undefined;
|
|
69200
69219
|
model_jscad?: any;
|
|
69201
69220
|
show_as_translucent_model?: boolean | undefined;
|
|
69221
|
+
show_as_bounding_box?: boolean | undefined;
|
|
69202
69222
|
}>, z.ZodUnion<[z.ZodObject<{
|
|
69203
69223
|
type: z.ZodLiteral<"simulation_voltage_source">;
|
|
69204
69224
|
simulation_voltage_source_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
package/dist/index.mjs
CHANGED
|
@@ -2722,6 +2722,7 @@ var pcb_fabrication_note_text = z121.object({
|
|
|
2722
2722
|
font_size: distance.default("1mm"),
|
|
2723
2723
|
pcb_component_id: z121.string(),
|
|
2724
2724
|
text: z121.string(),
|
|
2725
|
+
ccw_rotation: z121.number().optional(),
|
|
2725
2726
|
layer: visible_layer,
|
|
2726
2727
|
anchor_position: point.default({ x: 0, y: 0 }),
|
|
2727
2728
|
anchor_alignment: z121.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center"),
|
|
@@ -3540,6 +3541,7 @@ var cad_component = z158.object({
|
|
|
3540
3541
|
model_object_fit: z158.enum(["contain_within_bounds", "fill_bounds"]).optional().default("contain_within_bounds"),
|
|
3541
3542
|
model_jscad: z158.any().optional(),
|
|
3542
3543
|
show_as_translucent_model: z158.boolean().optional(),
|
|
3544
|
+
show_as_bounding_box: z158.boolean().optional(),
|
|
3543
3545
|
anchor_alignment: z158.enum(["center", "center_of_component_on_board_surface"]).optional().default("center")
|
|
3544
3546
|
}).describe("Defines a component on the PCB");
|
|
3545
3547
|
expectTypesMatch(true);
|