UNPKG

clustergrammer

Version:

This is a clustergram implemented in D3.js. I started from the example http://bost.ocks.org/mike/miserables/ and added the following features

18 lines (12 loc) 455 B
module.exports = function run_segment(segment_data, inst_time, inst_segment){ /* eslint-disable */ var timer = setTimeout( inst_segment().run, inst_time, segment_data); // set up kill demo that will stop setTimeouts ////////////////////////////////////////////////// // if (clear_timer){ // clearTimeout(timer); // } var inst_duration = inst_segment().get_duration(); inst_time = inst_time + inst_duration; return inst_time; };