mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
fade calendar in
This commit is contained in:
parent
101deb002b
commit
5aad1d0d81
1 changed files with 3 additions and 0 deletions
|
@ -128,6 +128,7 @@ export function renderCalendar(
|
|||
.selectAll("rect")
|
||||
.data(data)
|
||||
.join("rect")
|
||||
.attr("fill", emptyColour)
|
||||
.attr("width", (d) => {
|
||||
return x(d.weekNumber + 1) - x(d.weekNumber) - 2;
|
||||
})
|
||||
|
@ -139,6 +140,8 @@ export function renderCalendar(
|
|||
showTooltip(tooltipText(d), x, y);
|
||||
})
|
||||
.on("mouseout", hideTooltip)
|
||||
.transition()
|
||||
.duration(800)
|
||||
.attr("fill", (d) => {
|
||||
if (d.count === 0) {
|
||||
return emptyColour;
|
||||
|
|
Loading…
Reference in a new issue