mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
round river length on UI
This commit is contained in:
parent
b098865bdf
commit
9604d4ae41
2 changed files with 3 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue