mirror of
https://github.com/cds-astro/aladin-lite.git
synced 2025-12-24 20:10:30 -08:00
first commit
This commit is contained in:
@@ -3,7 +3,7 @@ name = "aladin-lite"
|
||||
description = "Aladin Lite v3 introduces a new graphical engine written in Rust with the use of WebGL"
|
||||
license = "BSD-3-Clause"
|
||||
repository = "https://github.com/cds-astro/aladin-lite"
|
||||
version = "3.0.0"
|
||||
version = "3.1.1"
|
||||
authors = ["baumannmatthieu0@gmail.com", "matthieu.baumann@astro.unistra.fr"]
|
||||
edition = "2018"
|
||||
|
||||
@@ -42,6 +42,7 @@ mapproj = "0.3.0"
|
||||
wcs = "0.2.4"
|
||||
colorgrad = "0.6.2"
|
||||
image-decoder = { package = "image", version = "0.24.2", default-features = false, features = ["jpeg", "png"] }
|
||||
votable = "0.1.1-alpha"
|
||||
|
||||
[features]
|
||||
webgl1 = [
|
||||
|
||||
@@ -186,7 +186,7 @@ impl Image {
|
||||
.filter_map(|v| if v == (blank as i32) {
|
||||
None
|
||||
} else {
|
||||
Some(v as f32)
|
||||
Some(v)
|
||||
})
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
@@ -208,7 +208,7 @@ impl Image {
|
||||
.filter_map(|v| if v == (blank as i32) {
|
||||
None
|
||||
} else {
|
||||
Some(v as f32)
|
||||
Some(v as i32)
|
||||
})
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
@@ -248,7 +248,7 @@ impl Image {
|
||||
|
||||
let mut samples = samples
|
||||
.into_iter()
|
||||
.filter_map(|v| if v == blank || v.is_nan() {
|
||||
.filter_map(|v| if v == blank || v.is_nan() || v.is_zero() {
|
||||
None
|
||||
} else {
|
||||
Some(v)
|
||||
|
||||
@@ -53,6 +53,7 @@ where
|
||||
} else {
|
||||
max_tex_size
|
||||
};
|
||||
|
||||
let num_bytes_to_read = (num_pixels_to_read as usize) * std::mem::size_of::<<F::P as Pixel>::Item>();
|
||||
reader.read_exact(&mut buf[..num_bytes_to_read])
|
||||
.await
|
||||
|
||||
Reference in New Issue
Block a user