scale previpitation layer circles

This commit is contained in:
Azgaar 2021-12-30 19:24:48 +03:00 committed by Peter
parent 2b481caa84
commit 25a43996fd

View file

@ -545,6 +545,7 @@ function togglePrec(event) {
function drawPrec() {
prec.selectAll("circle").remove();
const {cells, points} = grid;
prec.style("display", "block");
const show = d3.transition().duration(800).ease(d3.easeSinIn);
prec.selectAll('text').attr('opacity', 0).transition(show).attr('opacity', 1);