Skip to content

Commit 1309bfd

Browse files
committed
improve treemap jasmine tests
- add restyle tests for treemap opacities - fix style.js - add texttemplate jasmine test for treemap - add treemap tween interaction tests
1 parent e339bf5 commit 1309bfd

File tree

2 files changed

+369
-1
lines changed

2 files changed

+369
-1
lines changed

src/traces/treemap/style.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function styleOne(s, pt, trace, opts) {
4242
var step = trace.marker.opacitystep;
4343

4444
return n === 0 ? base :
45-
Math.min(1, n * step);
45+
Math.max(0, Math.min(1, n * step));
4646
};
4747

4848
if(hovered) {

0 commit comments

Comments
 (0)