@@ -86,7 +86,6 @@ mod utils;
8686
8787pub mod worker;
8888
89-
9089use math:: projection:: * ;
9190
9291//use votable::votable::VOTableWrapper;
@@ -207,17 +206,20 @@ impl WebClient {
207206 }
208207
209208 #[ wasm_bindgen( js_name = poll) ]
210- pub fn poll ( & mut self , dt : f64 , pan : Option < Box < [ f64 ] > > , zoom : Option < f64 > ) -> Result < PollInfo , JsValue > {
209+ pub fn poll (
210+ & mut self ,
211+ dt : f64 ,
212+ pan : Option < Box < [ f64 ] > > ,
213+ zoom : Option < f64 > ,
214+ ) -> Result < PollInfo , JsValue > {
211215 // dt refers to the time taking (in ms) rendering the previous frame
212216 //self.dt = DeltaTime::from_millis(dt as f32);
213217
214218 // Update the application and get back the
215219 // world coordinates of the center of projection in (ra, dec)
216220 self . app . poll (
217221 // Time of the previous frame rendering
218- dt,
219- pan,
220- zoom
222+ dt, pan, zoom,
221223 )
222224 }
223225
@@ -371,11 +373,7 @@ impl WebClient {
371373 }
372374
373375 #[ wasm_bindgen( js_name = isHDUVisible) ]
374- pub fn is_hdu_visible (
375- & self ,
376- layer : String ,
377- hdu_id : usize ,
378- ) -> Result < bool , JsValue > {
376+ pub fn is_hdu_visible ( & self , layer : String , hdu_id : usize ) -> Result < bool , JsValue > {
379377 self . app . is_hdu_visible ( layer. as_str ( ) , hdu_id)
380378 }
381379
@@ -386,7 +384,7 @@ impl WebClient {
386384 hdu_id : usize ,
387385 visible : bool ,
388386 ) -> Result < ( ) , JsValue > {
389- self . app . make_hdu_visible ( layer. as_str ( ) , hdu_id, visible)
387+ self . app . make_hdu_visible ( layer. as_str ( ) , hdu_id, visible)
390388 }
391389
392390 #[ wasm_bindgen( js_name = addRGBAImage) ]
0 commit comments