Skip to content

Commit 47c9f1b

Browse files
committed
get_alpha_off same as alpha when aes is set
1 parent 42b0271 commit 47c9f1b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

inst/htmljs/animint.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,16 +1085,17 @@ var animint = function (to_select, json_file) {
10851085

10861086
var alpha = 1, alpha_off = 0.5;
10871087
var get_alpha;
1088+
var get_alpha_off = function (d) {
1089+
return alpha_off;
1090+
};
10881091
if(aes.hasOwnProperty("alpha")){
10891092
get_alpha = get_attr("alpha");
1093+
get_alpha_off = get_attr("alpha");
10901094
} else {
10911095
get_alpha = function(d){
10921096
return alpha;
10931097
};
10941098
}
1095-
var get_alpha_off = function (d) {
1096-
return alpha_off;
1097-
};
10981099

10991100
var colour = "black", colour_off;
11001101
var get_colour;

0 commit comments

Comments
 (0)