Skip to content

Commit

Permalink
add settings::From for isometric and zoomfit
Browse files Browse the repository at this point in the history
  • Loading branch information
gserena committed May 22, 2024
1 parent 91d02ce commit 7232ffc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions modeling-cmds/src/shared.rs
Original file line number Diff line number Diff line change
Expand Up @@ -880,6 +880,16 @@ impl From<CameraSettings> for crate::output::DefaultCameraGetSettings {
Self { settings }
}
}
impl From<CameraSettings> for crate::output::ZoomToFit {
fn from(settings: CameraSettings) -> Self {
Self { settings }
}

Check warning on line 886 in modeling-cmds/src/shared.rs

View check run for this annotation

Codecov / codecov/patch

modeling-cmds/src/shared.rs#L884-L886

Added lines #L884 - L886 were not covered by tests
}
impl From<CameraSettings> for crate::output::ViewIsometric {
fn from(settings: CameraSettings) -> Self {
Self { settings }
}

Check warning on line 891 in modeling-cmds/src/shared.rs

View check run for this annotation

Codecov / codecov/patch

modeling-cmds/src/shared.rs#L889-L891

Added lines #L889 - L891 were not covered by tests
}

/// Defines a perspective view.
#[derive(Copy, PartialEq, Debug, JsonSchema, Deserialize, Serialize, Clone, PartialOrd, ExecutionPlanValue)]
Expand Down

0 comments on commit 7232ffc

Please sign in to comment.