mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 03:51:23 +01:00
Refactor getMiddlePoint function to getCloseToEdgePoint
This commit is contained in:
parent
ff27937cc4
commit
e6741b3a3b
4 changed files with 40 additions and 21 deletions
|
|
@ -264,8 +264,8 @@ function editRoute(id) {
|
|||
if (candidateRoutes.length) {
|
||||
const options = candidateRoutes.map(r => {
|
||||
r.name = r.name || Routes.generateName(r);
|
||||
r.length = r.length || getRouteLength(r.i);
|
||||
const length = rn(r.length * distanceScale) + " " + unit;
|
||||
r.length = r.length || Routes.getLength(r.i);
|
||||
const length = rn(r.length * distanceScale) + " " + distanceUnitInput.value;
|
||||
return `<option value="${r.i}">${r.name} (${length})</option>`;
|
||||
});
|
||||
alertMessage.innerHTML = /* html */ `<div>Route to join with:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue