mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
remove selective fade in answer buttons graph
This commit is contained in:
parent
ddfd6511bf
commit
d8a75c2307
1 changed files with 1 additions and 10 deletions
|
@ -197,16 +197,7 @@ export function renderButtons(
|
||||||
const updateBar = (sel: any): any => {
|
const updateBar = (sel: any): any => {
|
||||||
return sel
|
return sel
|
||||||
.attr("width", xButton.bandwidth())
|
.attr("width", xButton.bandwidth())
|
||||||
.attr("opacity", (d: Datum) => {
|
.attr("opacity", 0.8)
|
||||||
switch (d.group) {
|
|
||||||
case "learning":
|
|
||||||
return 0.6;
|
|
||||||
case "young":
|
|
||||||
return 0.8;
|
|
||||||
case "mature":
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.transition(trans)
|
.transition(trans)
|
||||||
.attr(
|
.attr(
|
||||||
"x",
|
"x",
|
||||||
|
|
Loading…
Reference in a new issue