mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 12:01:23 +01:00
Fixed Spacing
This commit is contained in:
parent
34ed9af342
commit
d44cca032e
17 changed files with 18 additions and 29 deletions
|
|
@ -51,7 +51,7 @@ function editRoute(onClick) {
|
|||
for (let i=0; i <= l; i += increment) {addControlPoint(node.getPointAtLength(i));}
|
||||
routeLength.innerHTML = rn(l * distanceScaleInput.value) + " " + distanceUnitInput.value;
|
||||
}
|
||||
|
||||
|
||||
function addControlPoint(point) {
|
||||
debug.select("#controlPoints").append("circle")
|
||||
.attr("cx", point.x).attr("cy", point.y).attr("r", .8)
|
||||
|
|
@ -219,7 +219,7 @@ function editRoute(onClick) {
|
|||
if (routeSplit.classList.contains("pressed")) splitRoute(this);
|
||||
else {this.remove(); redrawRoute();}
|
||||
}
|
||||
|
||||
|
||||
function splitRoute(clicked) {
|
||||
lineGen.curve(d3.curveCatmullRom.alpha(.1));
|
||||
const group = d3.select(elSelected.node().parentNode);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue