mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 02:01:22 +01:00
refactor(es modules): remove gloval var lineGen
This commit is contained in:
parent
32d7db765d
commit
aa214a7826
17 changed files with 27 additions and 22 deletions
|
|
@ -12,7 +12,7 @@ window.OceanLayers = (function () {
|
|||
if (outline === "none") return;
|
||||
TIME && console.time("drawOceanLayers");
|
||||
|
||||
lineGen.curve(d3.curveBasisClosed);
|
||||
const lineGen = d3.line().curve(d3.curveBasisClosed);
|
||||
(cells = grid.cells), (pointsN = grid.cells.i.length), (vertices = grid.vertices);
|
||||
const limits = outline === "random" ? randomizeOutline() : outline.split(",").map(s => +s);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue