unipept-heatmap
Advanced tools
Comparing version 1.0.8 to 1.0.9
{ | ||
"name": "unipept-heatmap", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "HeatMap built for the Unipept project. See http://unipept.ugent.be for more information. This HeatMap supports UPGMA-clustering and MOLO-reordering.", | ||
@@ -11,6 +11,8 @@ "main": "dist/bundle.js", | ||
"devDependencies": { | ||
"@babel/core": "^7.4.0", | ||
"@babel/preset-env": "^7.4.2", | ||
"@types/d3": "^5.7.1", | ||
"@types/jest": "^24.0.9", | ||
"@types/node": "^10.12.17", | ||
"babel-register": "^6.26.0", | ||
"babel-loader": "^8.0.5", | ||
"d3": "^5.7.0", | ||
@@ -22,3 +24,3 @@ "jest": "^24.3.0", | ||
"typescript": "^3.2.2", | ||
"webpack": "^4.28.0", | ||
"webpack": "^4.29.6", | ||
"webpack-cli": "^3.1.2" | ||
@@ -25,0 +27,0 @@ }, |
@@ -25,2 +25,6 @@ import Clusterer from "./clusterer"; | ||
cluster(data: ClusterElement[]): TreeNode { | ||
if (data.length < 1) { | ||
return new TreeNode(null, null, [], 0); | ||
} | ||
// All clusters that exist in a current step. | ||
@@ -27,0 +31,0 @@ let clusters: Map<number, Cluster> = new Map(); |
@@ -36,3 +36,3 @@ import * as d3 from "d3"; | ||
this.element = elementIdentifier; | ||
this.element.id = "U_HEATMAP_" + Math.random() * 2**16; | ||
this.element.id = "U_HEATMAP_" + Math.floor(Math.random() * 2**16); | ||
@@ -257,3 +257,3 @@ this.rowMap = this.preprocessFeatures(data.rows); | ||
let head: HTMLHeadElement = document.head; | ||
let style: HTMLStyleElement = new HTMLStyleElement(); | ||
let style: HTMLStyleElement = document.createElement("style"); | ||
style.type = "text/css"; | ||
@@ -294,3 +294,3 @@ | ||
let vis = d3.select(this.element.id) | ||
let vis = d3.select("#" + this.element.id) | ||
.append("svg") | ||
@@ -297,0 +297,0 @@ .attr("xmlns", "http://www.w3.org/2000/svg") |
@@ -11,2 +11,3 @@ const path = require('path'); | ||
use: [ | ||
'babel-loader', | ||
'ts-loader' | ||
@@ -13,0 +14,0 @@ ], |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2439227
24031
14