Run rustfmt
This commit is contained in:
@ -462,7 +462,8 @@ async fn inner_ellipse(
|
|||||||
|
|
||||||
let id = exec_state.next_uuid();
|
let id = exec_state.next_uuid();
|
||||||
|
|
||||||
exec_state.batch_modeling_cmd(
|
exec_state
|
||||||
|
.batch_modeling_cmd(
|
||||||
ModelingCmdMeta::from_args_id(&args, id),
|
ModelingCmdMeta::from_args_id(&args, id),
|
||||||
ModelingCmd::from(mcmd::ExtendPath {
|
ModelingCmd::from(mcmd::ExtendPath {
|
||||||
path: sketch.id.into(),
|
path: sketch.id.into(),
|
||||||
@ -501,7 +502,11 @@ async fn inner_ellipse(
|
|||||||
|
|
||||||
new_sketch.paths.push(current_path);
|
new_sketch.paths.push(current_path);
|
||||||
|
|
||||||
exec_state.batch_modeling_cmd(ModelingCmdMeta::from_args_id(&args, id), ModelingCmd::from(mcmd::ClosePath { path_id: new_sketch.id }))
|
exec_state
|
||||||
|
.batch_modeling_cmd(
|
||||||
|
ModelingCmdMeta::from_args_id(&args, id),
|
||||||
|
ModelingCmd::from(mcmd::ClosePath { path_id: new_sketch.id }),
|
||||||
|
)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
Ok(new_sketch)
|
Ok(new_sketch)
|
||||||
|
|||||||
@ -11,7 +11,10 @@ use parse_display::{Display, FromStr};
|
|||||||
use schemars::JsonSchema;
|
use schemars::JsonSchema;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
use super::shapes::get_radius;
|
use super::{
|
||||||
|
shapes::get_radius,
|
||||||
|
utils::{untype_array, untype_point},
|
||||||
|
};
|
||||||
#[cfg(feature = "artifact-graph")]
|
#[cfg(feature = "artifact-graph")]
|
||||||
use crate::execution::{Artifact, ArtifactId, CodeRef, StartSketchOnFace, StartSketchOnPlane};
|
use crate::execution::{Artifact, ArtifactId, CodeRef, StartSketchOnFace, StartSketchOnPlane};
|
||||||
use crate::{
|
use crate::{
|
||||||
@ -32,9 +35,6 @@ use crate::{
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
use super::utils::untype_array;
|
|
||||||
use super::utils::untype_point;
|
|
||||||
|
|
||||||
/// A tag for a face.
|
/// A tag for a face.
|
||||||
#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, ts_rs::TS, JsonSchema)]
|
#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, ts_rs::TS, JsonSchema)]
|
||||||
#[ts(export)]
|
#[ts(export)]
|
||||||
@ -1882,7 +1882,8 @@ pub(crate) async fn inner_elliptic(
|
|||||||
center_u[1] + minor_radius.to_length_units(from.units) * end_angle.to_radians().sin(),
|
center_u[1] + minor_radius.to_length_units(from.units) * end_angle.to_radians().sin(),
|
||||||
];
|
];
|
||||||
|
|
||||||
exec_state.batch_modeling_cmd(
|
exec_state
|
||||||
|
.batch_modeling_cmd(
|
||||||
ModelingCmdMeta::from_args_id(&args, id),
|
ModelingCmdMeta::from_args_id(&args, id),
|
||||||
ModelingCmd::from(mcmd::ExtendPath {
|
ModelingCmd::from(mcmd::ExtendPath {
|
||||||
path: sketch.id.into(),
|
path: sketch.id.into(),
|
||||||
@ -2048,7 +2049,8 @@ pub(crate) async fn inner_hyperbolic(
|
|||||||
let start_tangent = hyperbolic_tangent(from, semi_major_u, semi_minor_u);
|
let start_tangent = hyperbolic_tangent(from, semi_major_u, semi_minor_u);
|
||||||
let end_tangent = hyperbolic_tangent(end_point, semi_major_u, semi_minor_u);
|
let end_tangent = hyperbolic_tangent(end_point, semi_major_u, semi_minor_u);
|
||||||
|
|
||||||
exec_state.batch_modeling_cmd(
|
exec_state
|
||||||
|
.batch_modeling_cmd(
|
||||||
ModelingCmdMeta::from_args_id(&args, id),
|
ModelingCmdMeta::from_args_id(&args, id),
|
||||||
ModelingCmd::from(mcmd::ExtendPath {
|
ModelingCmd::from(mcmd::ExtendPath {
|
||||||
path: sketch.id.into(),
|
path: sketch.id.into(),
|
||||||
@ -2251,7 +2253,8 @@ pub(crate) async fn inner_parabolic(
|
|||||||
let start_tangent = parabolic_tangent(from, a, b);
|
let start_tangent = parabolic_tangent(from, a, b);
|
||||||
let end_tangent = parabolic_tangent(end_point, a, b);
|
let end_tangent = parabolic_tangent(end_point, a, b);
|
||||||
|
|
||||||
exec_state.batch_modeling_cmd(
|
exec_state
|
||||||
|
.batch_modeling_cmd(
|
||||||
ModelingCmdMeta::from_args_id(&args, id),
|
ModelingCmdMeta::from_args_id(&args, id),
|
||||||
ModelingCmd::from(mcmd::ExtendPath {
|
ModelingCmd::from(mcmd::ExtendPath {
|
||||||
path: sketch.id.into(),
|
path: sketch.id.into(),
|
||||||
@ -2393,7 +2396,8 @@ pub(crate) async fn inner_conic(
|
|||||||
(start, end_tan)
|
(start, end_tan)
|
||||||
};
|
};
|
||||||
|
|
||||||
exec_state.batch_modeling_cmd(
|
exec_state
|
||||||
|
.batch_modeling_cmd(
|
||||||
ModelingCmdMeta::from_args_id(&args, id),
|
ModelingCmdMeta::from_args_id(&args, id),
|
||||||
ModelingCmd::from(mcmd::ExtendPath {
|
ModelingCmd::from(mcmd::ExtendPath {
|
||||||
path: sketch.id.into(),
|
path: sketch.id.into(),
|
||||||
|
|||||||
Reference in New Issue
Block a user