Skip to content

Commit

Permalink
improved display support for 4:3 screens
Browse files Browse the repository at this point in the history
  • Loading branch information
jvo203 committed Mar 4, 2019
1 parent f0f3dfe commit e674ff6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fits_web_ql"
version = "4.1.6"
version = "4.1.7"
authors = ["jvo203 <[email protected]>"]
edition = "2018"

Expand Down
16 changes: 8 additions & 8 deletions htdocs/fitswebql/fitswebql.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function get_js_version() {
return "JS2019-03-01.1";
return "JS2019-03-04.0";
}

const wasm_supported = (() => {
Expand Down Expand Up @@ -2767,7 +2767,7 @@ function display_gridlines() {
}

// Add the Y Axis
if (!composite_view) {
/*if (!composite_view) {
var yAxis = d3.axisRight(y)
.tickSize(width)
.tickFormat(function (d) {
Expand Down Expand Up @@ -2807,7 +2807,7 @@ function display_gridlines() {
//.attr("transform", "rotate(-45)")
.style("text-anchor", "end");//was end, dx -.35, dy 0
}
else {
else*/ {
var yAxis = d3.axisLeft(y)
.tickSize(width)
.tickFormat(function (d) {
Expand Down Expand Up @@ -3054,7 +3054,7 @@ function display_cd_gridlines() {
}

// Add the Y Axis
if (!composite_view) {
/*if (!composite_view) {
var yAxis = d3.axisRight(y)
.tickSize(width)
.tickFormat(function (d) {
Expand Down Expand Up @@ -3099,7 +3099,7 @@ function display_cd_gridlines() {
//.attr("dy", "-0.35em")
.style("text-anchor", "end");//was end, dx -.35, dy 0
}
else {
else*/ {
var yAxis = d3.axisLeft(y)
.tickSize(width)
.tickFormat(function (d) {
Expand Down Expand Up @@ -11445,7 +11445,7 @@ function display_legend() {
for (var i = 0; i < divisions; i++)
newData.push(min_pixel + (max_pixel - min_pixel) * i / (divisions - 1));

var x = Math.max(0.05 * width, (width + img_width) / 2 + 0.5 * rectWidth);
var x = Math.max(0.05 * width, (width - img_width) / 2 - 1.5 * rectWidth);

var group = svg.append("g")
.attr("id", "legend")
Expand Down Expand Up @@ -11502,7 +11502,7 @@ function display_legend() {
.attr("class", "colouraxis")
.attr("id", "legendaxis")
.style("stroke-width", emStrokeWidth)
.attr("transform", "translate(" + ((width + img_width) / 2 + 1.5 * rectWidth) + "," + 0.1 * height + ")")
.attr("transform", "translate(" + ((width - img_width) / 2 - 1.5 * rectWidth) + "," + 0.1 * height + ")")
.call(colourAxis);

let fitsData = fitsContainer[va_count - 1];
Expand All @@ -11519,7 +11519,7 @@ function display_legend() {

group.append("text")
.attr("id", "colourlabel")
.attr("x", ((width + img_width) / 2 + 1.0 * rectWidth))
.attr("x", ((width - img_width) / 2 - 1.0 * rectWidth))
.attr("y", 0.9 * height + 1.5 * emFontSize)
.attr("font-family", "Inconsolata")
.attr("font-size", 1.25 * emFontSize)
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2253,8 +2253,8 @@ lazy_static! {
#[cfg(feature = "jvo")]
static LOG_DIRECTORY: &'static str = "LOGS";

static SERVER_STRING: &'static str = "FITSWebQL v4.1.6";
static VERSION_STRING: &'static str = "SV2019-02-21.0";
static SERVER_STRING: &'static str = "FITSWebQL v4.1.7";
static VERSION_STRING: &'static str = "SV2019-03-04.0";
static WASM_STRING: &'static str = "WASM2019-02-08.1";

#[cfg(not(feature = "jvo"))]
Expand Down

0 comments on commit e674ff6

Please sign in to comment.