mirror of
https://github.com/cds-astro/aladin-lite.git
synced 2025-12-12 07:40:26 -08:00
fmt
This commit is contained in:
@@ -82,7 +82,11 @@ use crate::renderable::CreatorDid;
|
||||
use crate::tile_fetcher::HiPSLocalFiles;
|
||||
use web_sys::{RequestCredentials, RequestMode};
|
||||
impl Tile {
|
||||
pub fn new(cell: &HEALPixCell, cfg: &HiPSConfig, browser_support: &BrowserFeaturesSupport) -> Self {
|
||||
pub fn new(
|
||||
cell: &HEALPixCell,
|
||||
cfg: &HiPSConfig,
|
||||
browser_support: &BrowserFeaturesSupport,
|
||||
) -> Self {
|
||||
let hips_cdid = cfg.get_creator_did();
|
||||
let hips_url = cfg.get_root_url();
|
||||
let format = cfg.get_format();
|
||||
@@ -115,7 +119,12 @@ impl Tile {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn new_with_channel(cell: &HEALPixCell, channel: u32, cfg: &HiPSConfig, browser_support: &BrowserFeaturesSupport) -> Self {
|
||||
pub fn new_with_channel(
|
||||
cell: &HEALPixCell,
|
||||
channel: u32,
|
||||
cfg: &HiPSConfig,
|
||||
browser_support: &BrowserFeaturesSupport,
|
||||
) -> Self {
|
||||
let hips_cdid = cfg.get_creator_did();
|
||||
let hips_url = cfg.get_root_url();
|
||||
let format = cfg.get_format();
|
||||
@@ -149,7 +158,11 @@ impl Tile {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn new_cubic(hpx_f_cell: &HEALPixFreqCell, cfg: &HiPSConfig, browser_support: &BrowserFeaturesSupport) -> Self {
|
||||
pub fn new_cubic(
|
||||
hpx_f_cell: &HEALPixFreqCell,
|
||||
cfg: &HiPSConfig,
|
||||
browser_support: &BrowserFeaturesSupport,
|
||||
) -> Self {
|
||||
let hips_cdid = cfg.get_creator_did();
|
||||
let hips_url = cfg.get_root_url();
|
||||
let format = cfg.get_format();
|
||||
|
||||
@@ -320,5 +320,4 @@ fn handle_allsky_fits<F: TextureFormat>(
|
||||
|
||||
use al_core::texture::format::RGBA8U;
|
||||
|
||||
|
||||
use crate::Abort;
|
||||
|
||||
@@ -80,4 +80,3 @@ impl From<query::Moc> for MOCRequest {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
use crate::math::lonlat::LonLat;
|
||||
use crate::math::lonlat::LonLatT;
|
||||
use crate::math::PI;
|
||||
use crate::math::{lonlat::LonLat};
|
||||
|
||||
use moclib::moc::RangeMOCIntoIterator;
|
||||
use moclib::{
|
||||
|
||||
@@ -332,7 +332,7 @@ impl HiPS2D {
|
||||
&mut self,
|
||||
tile_fetcher: &mut TileFetcherQueue,
|
||||
camera: &CameraViewPort,
|
||||
browser_features_support: &BrowserFeaturesSupport
|
||||
browser_features_support: &BrowserFeaturesSupport,
|
||||
) {
|
||||
// do not add tiles if the view is already at depth 0
|
||||
let cfg = self.get_config();
|
||||
@@ -355,7 +355,11 @@ impl HiPS2D {
|
||||
};
|
||||
|
||||
if make_query {
|
||||
Some(query::Tile::new(&tile_cell, self.get_config(), browser_features_support))
|
||||
Some(query::Tile::new(
|
||||
&tile_cell,
|
||||
self.get_config(),
|
||||
browser_features_support,
|
||||
))
|
||||
} else {
|
||||
None
|
||||
}
|
||||
@@ -385,7 +389,11 @@ impl HiPS2D {
|
||||
|
||||
for ancestor in ancestors {
|
||||
if !self.update_priority_tile(&ancestor) {
|
||||
tile_fetcher.append(query::Tile::new(&ancestor, self.get_config(), browser_features_support));
|
||||
tile_fetcher.append(query::Tile::new(
|
||||
&ancestor,
|
||||
self.get_config(),
|
||||
browser_features_support,
|
||||
));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ impl HiPS {
|
||||
&mut self,
|
||||
tile_fetcher: &mut TileFetcherQueue,
|
||||
camera: &CameraViewPort,
|
||||
browser_features_support: &BrowserFeaturesSupport
|
||||
browser_features_support: &BrowserFeaturesSupport,
|
||||
) {
|
||||
match self {
|
||||
D2(hips) => hips.look_for_new_tiles(tile_fetcher, camera, browser_features_support),
|
||||
|
||||
Reference in New Issue
Block a user