mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-02-04 17:41:23 +01:00
refactor: remove redundant element selection in ice editing functions
This commit is contained in:
parent
dafed163ad
commit
23071611d6
1 changed files with 0 additions and 4 deletions
|
|
@ -38,8 +38,6 @@ function editIce() {
|
||||||
const idx = modules.editIce.currentIndex;
|
const idx = modules.editIce.currentIndex;
|
||||||
Ice.randomizeIcebergShape(idx);
|
Ice.randomizeIcebergShape(idx);
|
||||||
redrawIce();
|
redrawIce();
|
||||||
elSelected = ice.selectAll(`[data-index="${idx}"]`).node();
|
|
||||||
elSelected = d3.select(elSelected);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function changeSize() {
|
function changeSize() {
|
||||||
|
|
@ -47,8 +45,6 @@ function editIce() {
|
||||||
const idx = modules.editIce.currentIndex;
|
const idx = modules.editIce.currentIndex;
|
||||||
Ice.changeIcebergSize(idx, newSize);
|
Ice.changeIcebergSize(idx, newSize);
|
||||||
redrawIce();
|
redrawIce();
|
||||||
elSelected = ice.selectAll(`[data-index="${idx}"]`).node();
|
|
||||||
elSelected = d3.select(elSelected);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggleAdd() {
|
function toggleAdd() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue