circuit-json 0.0.393 → 0.0.394

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 CHANGED
@@ -31740,6 +31740,22 @@ declare const cad_component: z.ZodObject<{
31740
31740
  mimetype: string;
31741
31741
  }>>;
31742
31742
  model_unit_to_mm_scale_factor: z.ZodOptional<z.ZodNumber>;
31743
+ model_board_normal_direction: z.ZodOptional<z.ZodEnum<["y+", "z+"]>>;
31744
+ model_origin_position: z.ZodOptional<z.ZodObject<{
31745
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
31746
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
31747
+ z: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
31748
+ }, "strip", z.ZodTypeAny, {
31749
+ x: number;
31750
+ y: number;
31751
+ z: number;
31752
+ }, {
31753
+ x: string | number;
31754
+ y: string | number;
31755
+ z: string | number;
31756
+ }>>;
31757
+ model_origin_alignment: z.ZodOptional<z.ZodEnum<["unknown", "center", "center_of_component_on_board_surface"]>>;
31758
+ model_object_fit: z.ZodDefault<z.ZodOptional<z.ZodEnum<["contain_within_bounds", "fill_bounds"]>>>;
31743
31759
  model_jscad: z.ZodOptional<z.ZodAny>;
31744
31760
  show_as_translucent_model: z.ZodOptional<z.ZodBoolean>;
31745
31761
  anchor_alignment: z.ZodDefault<z.ZodOptional<z.ZodEnum<["center", "xy_center_z_board"]>>>;
@@ -31754,6 +31770,7 @@ declare const cad_component: z.ZodObject<{
31754
31770
  z: number;
31755
31771
  };
31756
31772
  cad_component_id: string;
31773
+ model_object_fit: "contain_within_bounds" | "fill_bounds";
31757
31774
  rotation?: {
31758
31775
  x: number;
31759
31776
  y: number;
@@ -31780,6 +31797,13 @@ declare const cad_component: z.ZodObject<{
31780
31797
  mimetype: string;
31781
31798
  } | undefined;
31782
31799
  model_unit_to_mm_scale_factor?: number | undefined;
31800
+ model_board_normal_direction?: "y+" | "z+" | undefined;
31801
+ model_origin_position?: {
31802
+ x: number;
31803
+ y: number;
31804
+ z: number;
31805
+ } | undefined;
31806
+ model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | undefined;
31783
31807
  model_jscad?: any;
31784
31808
  show_as_translucent_model?: boolean | undefined;
31785
31809
  }, {
@@ -31821,6 +31845,14 @@ declare const cad_component: z.ZodObject<{
31821
31845
  mimetype: string;
31822
31846
  } | undefined;
31823
31847
  model_unit_to_mm_scale_factor?: number | undefined;
31848
+ model_board_normal_direction?: "y+" | "z+" | undefined;
31849
+ model_origin_position?: {
31850
+ x: string | number;
31851
+ y: string | number;
31852
+ z: string | number;
31853
+ } | undefined;
31854
+ model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | undefined;
31855
+ model_object_fit?: "contain_within_bounds" | "fill_bounds" | undefined;
31824
31856
  model_jscad?: any;
31825
31857
  show_as_translucent_model?: boolean | undefined;
31826
31858
  }>;
@@ -31847,6 +31879,10 @@ interface CadComponent {
31847
31879
  model_wrl_url?: string;
31848
31880
  model_asset?: Asset;
31849
31881
  model_unit_to_mm_scale_factor?: number;
31882
+ model_board_normal_direction?: "y+" | "z+";
31883
+ model_origin_position?: Point3;
31884
+ model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface";
31885
+ model_object_fit: "contain_within_bounds" | "fill_bounds";
31850
31886
  model_jscad?: any;
31851
31887
  show_as_translucent_model?: boolean;
31852
31888
  anchor_alignment: CadComponentAnchorAlignment;
@@ -48969,6 +49005,22 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
48969
49005
  mimetype: string;
48970
49006
  }>>;
48971
49007
  model_unit_to_mm_scale_factor: z.ZodOptional<z.ZodNumber>;
49008
+ model_board_normal_direction: z.ZodOptional<z.ZodEnum<["y+", "z+"]>>;
49009
+ model_origin_position: z.ZodOptional<z.ZodObject<{
49010
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
49011
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
49012
+ z: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
49013
+ }, "strip", z.ZodTypeAny, {
49014
+ x: number;
49015
+ y: number;
49016
+ z: number;
49017
+ }, {
49018
+ x: string | number;
49019
+ y: string | number;
49020
+ z: string | number;
49021
+ }>>;
49022
+ model_origin_alignment: z.ZodOptional<z.ZodEnum<["unknown", "center", "center_of_component_on_board_surface"]>>;
49023
+ model_object_fit: z.ZodDefault<z.ZodOptional<z.ZodEnum<["contain_within_bounds", "fill_bounds"]>>>;
48972
49024
  model_jscad: z.ZodOptional<z.ZodAny>;
48973
49025
  show_as_translucent_model: z.ZodOptional<z.ZodBoolean>;
48974
49026
  anchor_alignment: z.ZodDefault<z.ZodOptional<z.ZodEnum<["center", "xy_center_z_board"]>>>;
@@ -48983,6 +49035,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
48983
49035
  z: number;
48984
49036
  };
48985
49037
  cad_component_id: string;
49038
+ model_object_fit: "contain_within_bounds" | "fill_bounds";
48986
49039
  rotation?: {
48987
49040
  x: number;
48988
49041
  y: number;
@@ -49009,6 +49062,13 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
49009
49062
  mimetype: string;
49010
49063
  } | undefined;
49011
49064
  model_unit_to_mm_scale_factor?: number | undefined;
49065
+ model_board_normal_direction?: "y+" | "z+" | undefined;
49066
+ model_origin_position?: {
49067
+ x: number;
49068
+ y: number;
49069
+ z: number;
49070
+ } | undefined;
49071
+ model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | undefined;
49012
49072
  model_jscad?: any;
49013
49073
  show_as_translucent_model?: boolean | undefined;
49014
49074
  }, {
@@ -49050,6 +49110,14 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
49050
49110
  mimetype: string;
49051
49111
  } | undefined;
49052
49112
  model_unit_to_mm_scale_factor?: number | undefined;
49113
+ model_board_normal_direction?: "y+" | "z+" | undefined;
49114
+ model_origin_position?: {
49115
+ x: string | number;
49116
+ y: string | number;
49117
+ z: string | number;
49118
+ } | undefined;
49119
+ model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | undefined;
49120
+ model_object_fit?: "contain_within_bounds" | "fill_bounds" | undefined;
49053
49121
  model_jscad?: any;
49054
49122
  show_as_translucent_model?: boolean | undefined;
49055
49123
  }>, z.ZodUnion<[z.ZodObject<{
@@ -66505,6 +66573,22 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
66505
66573
  mimetype: string;
66506
66574
  }>>;
66507
66575
  model_unit_to_mm_scale_factor: z.ZodOptional<z.ZodNumber>;
66576
+ model_board_normal_direction: z.ZodOptional<z.ZodEnum<["y+", "z+"]>>;
66577
+ model_origin_position: z.ZodOptional<z.ZodObject<{
66578
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
66579
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
66580
+ z: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
66581
+ }, "strip", z.ZodTypeAny, {
66582
+ x: number;
66583
+ y: number;
66584
+ z: number;
66585
+ }, {
66586
+ x: string | number;
66587
+ y: string | number;
66588
+ z: string | number;
66589
+ }>>;
66590
+ model_origin_alignment: z.ZodOptional<z.ZodEnum<["unknown", "center", "center_of_component_on_board_surface"]>>;
66591
+ model_object_fit: z.ZodDefault<z.ZodOptional<z.ZodEnum<["contain_within_bounds", "fill_bounds"]>>>;
66508
66592
  model_jscad: z.ZodOptional<z.ZodAny>;
66509
66593
  show_as_translucent_model: z.ZodOptional<z.ZodBoolean>;
66510
66594
  anchor_alignment: z.ZodDefault<z.ZodOptional<z.ZodEnum<["center", "xy_center_z_board"]>>>;
@@ -66519,6 +66603,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
66519
66603
  z: number;
66520
66604
  };
66521
66605
  cad_component_id: string;
66606
+ model_object_fit: "contain_within_bounds" | "fill_bounds";
66522
66607
  rotation?: {
66523
66608
  x: number;
66524
66609
  y: number;
@@ -66545,6 +66630,13 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
66545
66630
  mimetype: string;
66546
66631
  } | undefined;
66547
66632
  model_unit_to_mm_scale_factor?: number | undefined;
66633
+ model_board_normal_direction?: "y+" | "z+" | undefined;
66634
+ model_origin_position?: {
66635
+ x: number;
66636
+ y: number;
66637
+ z: number;
66638
+ } | undefined;
66639
+ model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | undefined;
66548
66640
  model_jscad?: any;
66549
66641
  show_as_translucent_model?: boolean | undefined;
66550
66642
  }, {
@@ -66586,6 +66678,14 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
66586
66678
  mimetype: string;
66587
66679
  } | undefined;
66588
66680
  model_unit_to_mm_scale_factor?: number | undefined;
66681
+ model_board_normal_direction?: "y+" | "z+" | undefined;
66682
+ model_origin_position?: {
66683
+ x: string | number;
66684
+ y: string | number;
66685
+ z: string | number;
66686
+ } | undefined;
66687
+ model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | undefined;
66688
+ model_object_fit?: "contain_within_bounds" | "fill_bounds" | undefined;
66589
66689
  model_jscad?: any;
66590
66690
  show_as_translucent_model?: boolean | undefined;
66591
66691
  }>, z.ZodUnion<[z.ZodObject<{
package/dist/index.mjs CHANGED
@@ -3244,6 +3244,16 @@ var cad_component = z146.object({
3244
3244
  model_wrl_url: z146.string().optional(),
3245
3245
  model_asset: asset.optional(),
3246
3246
  model_unit_to_mm_scale_factor: z146.number().optional(),
3247
+ model_board_normal_direction: z146.enum(["y+", "z+"]).optional().describe(
3248
+ `The direction in the model's coordinate space that is considered "up" or "coming out of the board surface"`
3249
+ ),
3250
+ model_origin_position: point3.optional(),
3251
+ model_origin_alignment: z146.enum([
3252
+ "unknown",
3253
+ "center",
3254
+ "center_of_component_on_board_surface"
3255
+ ]).optional(),
3256
+ model_object_fit: z146.enum(["contain_within_bounds", "fill_bounds"]).optional().default("contain_within_bounds"),
3247
3257
  model_jscad: z146.any().optional(),
3248
3258
  show_as_translucent_model: z146.boolean().optional(),
3249
3259
  anchor_alignment: z146.enum(["center", "xy_center_z_board"]).optional().default("center")