heatmap: add initial rendering tests

This commit is contained in:
Alexander Zobnin
2017-03-28 17:46:10 +03:00
parent c9801595e5
commit ece6fd73a1
2 changed files with 169 additions and 2 deletions

View File

@@ -334,8 +334,10 @@ export default function link(scope, elem, attrs, ctrl) {
function addHeatmapCanvas() {
let heatmap_elem = $heatmap[0];
width = heatmap_elem.clientWidth - padding.right;
height = heatmap_elem.clientHeight - padding.bottom;
width = Math.floor($heatmap.width()) - padding.right;
height = Math.floor($heatmap.height()) - padding.bottom;
cardPadding = panel.cards.cardPadding !== null ? panel.cards.cardPadding : CARD_PADDING;
cardRound = panel.cards.cardRound !== null ? panel.cards.cardRound : CARD_ROUND;