Compare commits

..

31 Commits
SODA ... list

Author SHA1 Message Date
Matthieu Baumann
9d5c782529 simbad cone search requesting https://simbad.cds.unistra.fr/cone 2024-02-28 16:05:31 +01:00
Matthieu Baumann
d1213f95cc long touch + UI refinements 2024-02-28 13:54:57 +01:00
Matthieu Baumann
9f127a5f71 add mode on the grid and simbad pointer button 2024-02-15 16:39:51 +01:00
Matthieu Baumann
ac49543a10 fix UI from recommendation 2024-02-14 20:22:03 +01:00
Matthieu Baumann
164c8943f6 fix ui 2024-02-09 10:04:02 +01:00
Matthieu Baumann
2f9923b3ee fix samp send sources 2024-02-02 14:49:37 +01:00
Matthieu Baumann
b4c1473c7f ui fixes, testing 2024-02-02 14:29:44 +01:00
Matthieu Baumann
2330ae8ede UI: adapt for mobile device 2024-01-12 17:52:53 +01:00
Matthieu Baumann
b97da4c415 fix what is this by sending to action the mouse event of the right click 2024-01-08 10:10:42 +01:00
Matthieu Baumann
8b9cff947f add status box ui element 2023-12-21 18:07:38 +01:00
Matthieu Baumann
5f7e621313 add example 2023-12-20 18:55:25 +01:00
Matthieu Baumann
58e0ac162c limit number of projections, add basic healpix methods and wip of the api doc 2023-12-20 18:54:58 +01:00
Matthieu Baumann
85fba46140 working on a jsdoc formatted api documentation 2023-12-20 11:33:31 +01:00
Matthieu Baumann
a7a8e58835 fix from the tests 2023-12-18 15:35:20 +01:00
Matthieu Baumann
123b7e22fb add jsdoc routine 2023-12-17 00:50:46 +01:00
Matthieu Baumann
f87abe8b29 fix import Toolbar 2023-12-17 00:46:26 +01:00
Matthieu Baumann
b355c1e849 remove jQuery, ui refac, A.toolbar and A.button new classes 2023-12-17 00:42:20 +01:00
Matthieu Baumann
3889542073 major UI commit 2023-12-17 00:42:18 +01:00
Matthieu Baumann
7b50dfbb6c refactorize UI code 2023-12-17 00:41:52 +01:00
Matthieu Baumann
9696b36618 enhance samp connexion 2023-12-17 00:41:16 +01:00
Matthieu Baumann
cb23dead2b UI: stack layer WIP 2023-12-17 00:36:42 +01:00
Matthieu Baumann
736f67c1ba fix: set cuts before FITS HiPS has not been loaded 2023-12-17 00:36:04 +01:00
Matthieu Baumann
8a1c8c2f0b add Horizontal layout 2023-12-17 00:36:04 +01:00
Matthieu Baumann
19392717da UI: fix delete overlay 2023-12-17 00:36:04 +01:00
Matthieu Baumann
f4c32d9f0c swap 2 dom elements code 2023-12-17 00:36:04 +01:00
Matthieu Baumann
6c077f1472 allow to overwrite the display of specific fields in MeasurementTable.js 2023-12-17 00:36:00 +01:00
Matthieu Baumann
753bad36f6 modify the datalink & measurement table show to display better links towards the SODA form 2023-12-17 00:34:53 +01:00
Matthieu Baumann
c05c80542d add some ui widgets 2023-12-17 00:34:53 +01:00
Matthieu Baumann
e9903f772d fix hover line thickness 2023-12-17 00:34:53 +01:00
Matthieu Baumann
b6e2a3c166 add circular selection 2023-12-17 00:34:53 +01:00
Matthieu Baumann
c1d114da6a simple SODA resource parsing and window form 2023-12-17 00:34:53 +01:00
8 changed files with 107 additions and 54 deletions

19
.gitignore vendored Normal file
View File

@@ -0,0 +1,19 @@
node_modules
dist
examples/.DS_Store
examples/fits
.DS_Store
package-lock.json
src/core/target/
src/core/Cargo.lock
aladin-lite*.tgz
.vscode
deploy.sh
deploy-beta.sh
# JsDoc generated files
out/

View File

@@ -14,11 +14,6 @@ More details on [Aladin Lite documentation page](http://aladin.u-strasbg.fr/Alad
Aladin Lite v3 is out! Please play with [Aladin Lite v3 at this link](https://aladin.u-strasbg.fr/AladinLite).
## Releases
For integrating Aladin Lite into your personal website, please refer to this [release page](https://aladin.cds.unistra.fr/AladinLite/doc/release/#download).
Always prefer using the latest version. If you want the new features without minding about the bugs coming with it, then the beta is the good way to go.
## Embed it into your projects
You can embed Aladin Lite it into your webpages in two ways
@@ -165,4 +160,4 @@ To generate the Rust backend API documentation
```bash
cd src/core
cargo doc --no-deps --open
```
```

View File

@@ -10,7 +10,7 @@
<script type="text/javascript">
var aladin;
A.init.then(() => {
aladin = A.aladin('#aladin-lite-div', {fullScreen: true, cooFrame: "ICRSd", showSimbadPointerControl: true, showShareControl: true, showShareControl: true, survey: 'https://alasky.cds.unistra.fr/DSS/DSSColor/', fov: 180, showContextMenu: true});
aladin = A.aladin('#aladin-lite-div', {fullScreen: true, cooFrame: "ICRSd", survey: 'https://alasky.cds.unistra.fr/DSS/DSSColor/', fov: 180, showContextMenu: true});
// manage URL parameters
const searchParams = new URL(document.location).searchParams;
if (searchParams.has('baseImageLayer')) {

View File

@@ -2,7 +2,7 @@
"homepage": "https://aladin.u-strasbg.fr/",
"name": "aladin-lite",
"type": "module",
"version": "3.3.0",
"version": "3.2.1",
"description": "An astronomical HiPS visualizer in the browser",
"author": "Thomas Boch and Matthieu Baumann",
"license": "GPL-3",
@@ -34,7 +34,8 @@
"scripts": {
"wasm": "wasm-pack build ./src/core --target web --release --out-name core -- --features webgl2 -Z build-std=panic_abort,std -Z build-std-features=panic_immediate_abort ",
"predeploy": "npm run build && rm -rf aladin-lite.tgz && npm pack",
"deploy": "python3 version.py",
"deploy": "./deploy.sh",
"deploy:beta": "npm run predeploy && ./deploy-beta.sh",
"build": "npm run wasm && vite build && cp examples/index.html dist/index.html",
"dev": "npm run build && vite",
"serve": "npm run dev",

View File

@@ -3,89 +3,129 @@ 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.3.0"
authors = [ "baumannmatthieu0@gmail.com", "matthieu.baumann@astro.unistra.fr",]
version = "3.2.0"
authors = ["baumannmatthieu0@gmail.com", "matthieu.baumann@astro.unistra.fr"]
edition = "2018"
[workspace]
members = [ "al-core", "al-api",]
members = [
"al-core",
"al-api",
#"al-task-exec",
]
[lib]
crate-type = [ "cdylib",]
crate-type = ["cdylib"]
[dependencies]
futures = "0.3.12"
js-sys = "0.3.47"
wasm-bindgen-futures = "0.4.20"
cgmath = "*"
healpix = { package = "cdshealpix", git = "https://github.com/bmatthieu3/cds-healpix-rust", branch = "polygonIntersectVertices" }
#moclib = { package = "moc", git = "https://github.com/cds-astro/cds-moc-rust", branch = "main" }
moclib = { package = "moc", git = "https://github.com/bmatthieu3/cds-moc-rust", branch = "cellsWithUnidirectionalNeigs" }
serde = { version = "^1.0.183", features = ["derive"] }
url-lite = "0.1.0"
serde_json = "1.0.104"
serde-wasm-bindgen = "0.5"
#console_error_panic_hook = "0.1.7"
enum_dispatch = "0.3.8"
wasm-bindgen = "0.2.79"
wasm-streams = "0.3.0"
async-channel = "1.8.0"
al-core = { path = "./al-core" }
#al-task-exec = { path = "./al-task-exec" }
al-api = { path = "./al-api" }
mapproj = "0.3.0"
fitsrs = "0.2.9"
wcs = "0.2.8"
colorgrad = "0.6.2"
#image-decoder = { package = "image", version = "0.24.2", default-features = false, features = ["jpeg", "png"] }
#votable = { package = "votable", git = "https://github.com/cds-astro/cds-votable-rust", branch = "main"}
lyon = "1.0.1"
[features]
webgl1 = [ "al-core/webgl1", "al-api/webgl1", "web-sys/WebGlRenderingContext", "web-sys/AngleInstancedArrays", "web-sys/ExtSRgb", "web-sys/OesTextureFloat",]
webgl2 = [ "al-core/webgl2", "al-api/webgl2", "web-sys/WebGl2RenderingContext", "web-sys/WebGlVertexArrayObject", "web-sys/ExtColorBufferFloat",]
[dev-dependencies]
rand = "0.8"
[dependencies.healpix]
package = "cdshealpix"
git = "https://github.com/bmatthieu3/cds-healpix-rust"
branch = "polygonIntersectVertices"
[dependencies.moclib]
package = "moc"
git = "https://github.com/bmatthieu3/cds-moc-rust"
branch = "cellsWithUnidirectionalNeigs"
[dependencies.serde]
version = "^1.0.183"
features = [ "derive",]
[dependencies.al-core]
path = "./al-core"
[dependencies.al-api]
path = "./al-api"
webgl1 = [
"al-core/webgl1",
#"al-ui/webgl1",
"al-api/webgl1",
"web-sys/WebGlRenderingContext",
"web-sys/AngleInstancedArrays", # Enabling instancing features
"web-sys/ExtSRgb", # Enabling SRGB8_ALPHA8 internal format
"web-sys/OesTextureFloat"
]
webgl2 = [
"al-core/webgl2",
#"al-ui/webgl2",
"al-api/webgl2",
"web-sys/WebGl2RenderingContext",
"web-sys/WebGlVertexArrayObject",
"web-sys/ExtColorBufferFloat",
]
[dependencies.web-sys]
version = "*"
features = [ "console", "CssStyleDeclaration", "Document", "Element", "HtmlCollection", "HtmlElement", "HtmlImageElement", "HtmlCanvasElement", "Blob", "ImageBitmap", "ImageData", "CanvasRenderingContext2d", "WebGlBuffer", "WebGlContextAttributes", "WebGlFramebuffer", "WebGlProgram", "WebGlShader", "WebGlUniformLocation", "WebGlTexture", "WebGlActiveInfo", "Headers", "Window", "Request", "RequestInit", "RequestMode", "Response", "XmlHttpRequest", "XmlHttpRequestResponseType", "PerformanceTiming", "Performance", "Url", "ReadableStream",]
features = [
'console',
'CssStyleDeclaration',
'Document',
'Element',
'HtmlCollection',
'HtmlElement',
'HtmlImageElement',
'HtmlCanvasElement',
'Blob',
'ImageBitmap',
'ImageData',
[dev-dependencies.image-decoder]
package = "image"
version = "0.24.2"
default-features = false
features = [ "jpeg", "png",]
'CanvasRenderingContext2d',
'WebGlBuffer',
'WebGlContextAttributes',
'WebGlFramebuffer',
'WebGlProgram',
'WebGlShader',
'WebGlUniformLocation',
'WebGlTexture',
'WebGlActiveInfo',
'Headers',
'Window',
'Request',
'RequestInit',
'RequestMode',
'Response',
'XmlHttpRequest',
'XmlHttpRequestResponseType',
'PerformanceTiming',
'Performance',
'Url',
'ReadableStream',
]
[dev-dependencies]
image-decoder = { package = "image", version = "0.24.2", default-features = false, features = ["jpeg", "png"] }
rand = "0.8"
[profile.dev]
opt-level = "z"
opt-level = 'z'
debug = true
debug-assertions = true
overflow-checks = true
lto = true
panic = "unwind"
panic = 'unwind'
incremental = true
codegen-units = 256
rpath = false
[profile.release]
opt-level = "z"
opt-level = 'z'
debug = false
debug-assertions = false
overflow-checks = false
lto = true
panic = "abort"
panic = 'abort'
incremental = false
codegen-units = 16
rpath = false

View File

@@ -27,7 +27,7 @@
* Author: Thomas Boch[CDS], Matthieu Baumann[CDS]
*
*****************************************************************************/
import { version } from './../../package.json';
import { View } from "./View.js";
import { Utils } from "./Utils";
import { Overlay } from "./Overlay.js";
@@ -87,8 +87,6 @@ import { ProjectionActionButton } from "./gui/Button/Projection.js";
* @property {boolean} [showSettingsControl=true] - Whether to show the settings control toolbar.
*
* @property {boolean} [showShareControl=false] - Whether to show the share control toolbar.
* @property {boolean} [showStatusBar=true] - Whether to show the status bar. Enabled by default.
*
* @property {boolean} [showFrame=true] - Whether to show the viewport frame.
* @property {boolean} [showFov=true] - Whether to show the field of view indicator.
@@ -535,7 +533,7 @@ export let Aladin = (function () {
}
/**** CONSTANTS ****/
Aladin.VERSION = version;
Aladin.VERSION = "3.0-beta0";
Aladin.JSONP_PROXY = "https://alaskybis.cds.unistra.fr/cgi/JSONProxy";
//Aladin.JSONP_PROXY = "https://alaskybis.unistra.fr/cgi/JSONProxy";

View File

@@ -127,7 +127,7 @@ export let PlanetaryFeaturesPointer = (function() {
try {
const diameter = parseFloat(values[fields.indexOf('diameter')]);
if (body in PlanetaryFeaturesPointer.PLANETS_RADIUS) {
const parallelLength = 2 * Math.PI * PlanetaryFeaturesPointer.PLANETS_RADIUS[body] * Math.cos(lat * Math.PI / 180.0);
const parallelLength = 2 * Math.PI * PlanetaryFeaturesPointer.PLANETS_RADIUS[body] * Math.cos(lat * Math.PI / 8180.0);
const radiusRadians = 2 * Math.PI * (1000 * diameter / 2) / parallelLength;
radiusDeg = 180 * radiusRadians / Math.PI;
}
@@ -144,7 +144,6 @@ export let PlanetaryFeaturesPointer = (function() {
}
})
.catch((e) => {
//aladinInstance.view.setCursor('pointer');
aladinInstance.hidePopup();
})
};

View File

@@ -29,6 +29,7 @@
*****************************************************************************/
import { Coo } from './libs/astro/coo.js';
import { Utils } from './Utils';
import { Sesame } from './Sesame.js';
export let URLBuilder = (function() {