lib/asset/htracr-ui.js
function() {
			var self = this;
			var idx = self.capture_idx;
      self.w = (
        (idx.end - idx.start) / 1000 * self.pix_per_sec) + 
        margin[1] + margin[3];
      self.h = margin[0] + margin[2];
      for (var s in idx.servers) {
        self.h += (self.server_pad * 2);
        self.h += ((idx.servers[s][1].length) * self.conn_pad);
      }
			console.log("resizing to " + self.w + " x " + self.h);
			paper.setSize(self.w, self.h);
			labels.setSize(self.label_w, self.h);
		}
function() {
			var self = this;
			var idx = self.capture_idx;
      self.w = (
        (idx.end - idx.start) / 1000 * self.pix_per_sec) + 
        margin[1] + margin[3];
      self.h = margin[0] + margin[2];
      for (var s in idx.servers) {
        self.h += (self.server_pad * 2);
        self.h += ((idx.servers[s][1].length) * self.conn_pad);
      }
			console.log("resizing to " + self.w + " x " + self.h);
			paper.setSize(self.w, self.h);
			labels.setSize(self.label_w, self.h);
		}
function ( ) { var self = this ; var idx = self . capture_idx ; self . w = ( ( idx . end - idx . start ) / 1000 * self . pix_per_sec ) + margin [ 1 ] + margin [ 3 ] ; self . h = margin [ 0 ] + margin [ 2 ] ; for ( var s in idx . servers ) { self . h += ( self . server_pad * 2 ) ; self . h += ( ( idx . servers [ s ] [ 1 ] . length ) * self . conn_pad ) ; } console . log ( "resizing to " + self . w + " x " + self . h ) ; paper . setSize ( self . w , self . h ) ; labels . setSize ( self . label_w , self . h ) ; }
change the paper and label sizes to suit the capture
change the paper and label sizes to suit the capture