mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 20:11:24 +01:00
scale previpitation layer circles
This commit is contained in:
parent
2b481caa84
commit
25a43996fd
1 changed files with 1 additions and 0 deletions
|
|
@ -545,6 +545,7 @@ function togglePrec(event) {
|
||||||
function drawPrec() {
|
function drawPrec() {
|
||||||
prec.selectAll("circle").remove();
|
prec.selectAll("circle").remove();
|
||||||
const {cells, points} = grid;
|
const {cells, points} = grid;
|
||||||
|
|
||||||
prec.style("display", "block");
|
prec.style("display", "block");
|
||||||
const show = d3.transition().duration(800).ease(d3.easeSinIn);
|
const show = d3.transition().duration(800).ease(d3.easeSinIn);
|
||||||
prec.selectAll('text').attr('opacity', 0).transition(show).attr('opacity', 1);
|
prec.selectAll('text').attr('opacity', 0).transition(show).attr('opacity', 1);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue