Skip to content

Commit

Permalink
Tweak grid colour, axis widths
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorp committed May 28, 2024
1 parent 5be5291 commit dd1c903
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/fencer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1015,8 +1015,8 @@ function mappingsChanged(mode) {
const svgOriginCoords = svgCoordsFromAxisCoords(getDefaultAxisCoords());

const rect = Q(".svg-container").getBoundingClientRect();
const xAxisEl = SVG("line", {x1:0, y1:svgOriginCoords[1], x2:rect.width, y2:svgOriginCoords[1], stroke: "grey"});
const yAxisEl = SVG("line", {x1:svgOriginCoords[0], y1:0, x2:svgOriginCoords[0], y2:rect.height, stroke: "grey"});
const xAxisEl = SVG("line", {x1:0, y1:svgOriginCoords[1], x2:rect.width, y2:svgOriginCoords[1], stroke: "black", strokeWidth: 2});
const yAxisEl = SVG("line", {x1:svgOriginCoords[0], y1:0, x2:svgOriginCoords[0], y2:rect.height, stroke: "black", strokeWidth: 2});
GLOBAL.svgEl.appendChild(xAxisEl);
GLOBAL.svgEl.appendChild(yAxisEl);

Expand All @@ -1037,7 +1037,7 @@ function mappingsChanged(mode) {
pathStr += (xn === 0 ? "M" : "L") + svgCoordsFromAxisCoords(gridLocations[xn * yGraticules.length + yn][1]).join();

// add the path to the SVG
const path = SVG("path", {d: pathStr, stroke: "grey", fill: "none"});
const path = SVG("path", {d: pathStr, stroke: "#bbb", fill: "none"});
GLOBAL.svgEl.append(path);
}

Expand Down

0 comments on commit dd1c903

Please sign in to comment.