mirror of
https://github.com/cds-astro/aladin-lite.git
synced 2026-06-12 11:01:37 -07:00
cargo clippy + fmt
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
use wasm_bindgen::JsValue;
|
||||
|
||||
use super::blend::BlendCfg;
|
||||
use serde::Deserialize;
|
||||
|
||||
@@ -282,7 +280,6 @@ pub struct ImageMetadata {
|
||||
fn default_opacity() -> f32 {
|
||||
1.0
|
||||
}
|
||||
use crate::Abort;
|
||||
|
||||
impl ImageMetadata {
|
||||
pub fn visible(&self) -> bool {
|
||||
|
||||
+4
-1
@@ -1854,7 +1854,10 @@ impl App {
|
||||
}
|
||||
|
||||
pub(crate) fn get_fov(&self) -> [f64; 2] {
|
||||
[self.camera.get_aperture().to_degrees(), self.camera.get_aperture_y().to_degrees()]
|
||||
[
|
||||
self.camera.get_aperture().to_degrees(),
|
||||
self.camera.get_aperture_y().to_degrees(),
|
||||
]
|
||||
}
|
||||
|
||||
pub(crate) fn get_colormaps(&self) -> &Colormaps {
|
||||
|
||||
@@ -199,7 +199,7 @@ impl CameraViewPort {
|
||||
max_fov: None,
|
||||
|
||||
scissor_w,
|
||||
scissor_h
|
||||
scissor_h,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -301,7 +301,6 @@ impl CameraViewPort {
|
||||
|
||||
pub fn set_screen_size(&mut self, width: f32, height: f32, projection: &ProjectionType) {
|
||||
let old_w = self.width;
|
||||
let old_h = self.height;
|
||||
self.width = width * self.dpi;
|
||||
self.height = height * self.dpi;
|
||||
|
||||
|
||||
@@ -722,9 +722,7 @@ impl Image {
|
||||
//self.gl.enable(WebGl2RenderingContext::BLEND);
|
||||
|
||||
let ImageMetadata {
|
||||
opacity,
|
||||
blending,
|
||||
..
|
||||
opacity, blending, ..
|
||||
} = cfg;
|
||||
|
||||
let shader = match self.pixel_type {
|
||||
|
||||
+5551
-5551
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user