unipept-heatmap
Advanced tools
Comparing version 1.0.12 to 1.0.13
{ | ||
"name": "unipept-heatmap", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"description": "HeatMap built for the Unipept project. See http://unipept.ugent.be for more information. This HeatMap supports UPGMA-clustering and MOLO-reordering.", | ||
@@ -5,0 +5,0 @@ "main": "dist/bundle.js", |
@@ -291,8 +291,12 @@ import * as d3 from "d3"; | ||
let squareWidth = this.determineSquareWidth(); | ||
let height = this.rows.length * (squareWidth + this.settings.squarePadding) + this.settings.textHeight; | ||
let width = this.columns.length * (squareWidth + this.settings.squarePadding) + this.settings.textWidth; | ||
let vis = d3.select("#" + this.element.id) | ||
.append("svg") | ||
.attr("xmlns", "http://www.w3.org/2000/svg") | ||
.attr("viewBox", `0 0 ${this.settings.width + this.MARGIN.right + this.MARGIN.left} ${this.settings.height + this.MARGIN.top + this.MARGIN.bottom}`) | ||
.attr("width", this.settings.width + this.MARGIN.right + this.MARGIN.left) | ||
.attr("height", this.settings.height + this.MARGIN.top + this.MARGIN.bottom) | ||
.attr("viewBox", `0 0 ${width + this.MARGIN.right + this.MARGIN.left} ${height + this.MARGIN.top + this.MARGIN.bottom}`) | ||
.attr("width", width + this.MARGIN.right + this.MARGIN.left) | ||
.attr("height", height + this.MARGIN.top + this.MARGIN.bottom) | ||
.style("font-family", "'Helvetica Neue', Helvetica, Arial, sans-serif") | ||
@@ -299,0 +303,0 @@ .style("font-size", this.settings.fontSize); |
Sorry, the diff of this file is too big to display
2444892
24111