617 fixed

This commit is contained in:
Azgaar 2021-04-10 13:28:17 +03:00
parent 2c8e1651d5
commit f8f2f52be9
4 changed files with 7 additions and 8 deletions

View file

@ -113,7 +113,7 @@ function selectStyleElement() {
if (sel === "compass") {
styleCompass.style.display = "block";
const tr = parseTransform(d3.select("#rose").attr("transform"));
const tr = parseTransform(compass.select("use").attr("transform"));
styleCompassShiftX.value = tr[0];
styleCompassShiftY.value = tr[1];
styleCompassSizeInput.value = styleCompassSizeOutput.value = tr[2];
@ -483,7 +483,7 @@ styleCompassShiftY.addEventListener("input", shiftCompass);
function shiftCompass() {
const tr = `translate(${styleCompassShiftX.value} ${styleCompassShiftY.value}) scale(${styleCompassSizeInput.value})`;
d3.select("#rose").attr("transform", tr);
compass.select("use").attr("transform", tr);
}
styleLegendColItems.addEventListener("input", function() {