change codemeta version

This commit is contained in:
Matthieu Baumann
2024-03-27 15:13:51 +01:00
parent 28c4a6144a
commit 02d97d7eba
3 changed files with 6 additions and 12 deletions

View File

@@ -8,8 +8,8 @@
"dateModified": "2023-01-31",
"issueTracker": "https://github.com/cds-astro/aladin-lite/issues",
"name": "Aladin Lite",
"version": "3.0.0",
"softwareVersion": "3.0.0",
"version": "3.3.0",
"softwareVersion": "3.3.0",
"description": "An astronomical HiPS visualizer in the browser.",
"identifier": "10.5281/zenodo.7638833",
"applicationCategory": "Astronomy, Visualization",

View File

@@ -1,8 +1,5 @@
/*body { overscroll-behavior: contain; }*/
.aladin-container {
position: relative;
/*height: 100%;*/
border: 0px solid #ddd;
/* SVG inside divs add a 4px height: https://stackoverflow.com/questions/75751593/why-there-is-additional-4px-height-for-div-when-there-is-svg-inside-it */
@@ -15,7 +12,7 @@
}
.aladin-imageCanvas {
position: relative;
position: absolute;
left: 0;
top: 0;
}

View File

@@ -351,9 +351,9 @@ export let View = (function () {
this.aladinDiv.style.setProperty('line-height', 0);
Utils.cssScale = undefined;
var computedWidth = parseFloat(this.aladinDiv.getBoundingClientRect().width) || 1.0;
var computedHeight = parseFloat(this.aladinDiv.getBoundingClientRect().height) || 1.0;
var computedWidth = Math.floor(parseFloat(this.aladinDiv.getBoundingClientRect().width)) || 1.0;
var computedHeight = Math.floor(parseFloat(this.aladinDiv.getBoundingClientRect().height)) || 1.0;
this.width = Math.max(computedWidth, 1);
this.height = Math.max(computedHeight, 1); // this prevents many problems when div size is equal to 0
@@ -376,14 +376,11 @@ export let View = (function () {
this.gridCtx.canvas.width = this.width;
this.gridCtx.canvas.height = this.height;
this.imageCtx = this.imageCanvas.getContext("webgl2");
this.imageCtx.canvas.style.width = this.width + "px";
this.imageCtx.canvas.style.height = this.height + "px";
this.wasm.resize(this.width, this.height);
pixelateCanvasContext(this.imageCtx, this.aladin.options.pixelateCanvas);
// change logo