round river length on UI

This commit is contained in:
Azgaar 2021-07-28 23:34:12 +03:00
parent b098865bdf
commit 9604d4ae41
2 changed files with 3 additions and 3 deletions

View file

@ -78,8 +78,8 @@ function editRiver(id) {
function updateRiverLength(river) {
river.length = rn(elSelected.node().getTotalLength() / 2, 2);
const length = `${river.length * distanceScaleInput.value} ${distanceUnitInput.value}`;
document.getElementById("riverLength").value = length;
const lengthUI = `${rn(river.length * distanceScaleInput.value)} ${distanceUnitInput.value}`;
document.getElementById("riverLength").value = lengthUI;
}
function updateRiverWidth(river) {