33 <button class =" close-button" v-on:click =" $emit('close')" >
44 <font-awesome-icon style =" background-color :transparent ;" :icon =" closeIcon" ></font-awesome-icon >
55 </button >
6- <div id =" holder" ref =" holder" >
6+ <div id =" holder" ref =" holder" style = " overflow-y : scroll ; " >
77 <svg id =" depthSvg" style =" display : block ;" height =" 100px" width =" 100%" preserveAspectRatio =" none" >
88 <clipPath id =" data-area-clip" >
99 <rect id =" clip-rect" x =" 0%" y =" 0%" width =" 100%" height =" 100%" ></rect >
@@ -117,6 +117,7 @@ export default {
117117 scaleSvg : function () {
118118 // Use template ref, holder, to access the width of the holding div.
119119 const container_width = this .holder ? .offsetWidth || 1000
120+ console .log (` Depth holder offsetWidth: ${ this .holder .offsetWidth } scrollWidth: ${ this .holder .scrollWidth } ` )
120121
121122 const depth_upper_limit = this .roundUpToTens (this .max_mean_seq_depth )
122123
@@ -132,6 +133,7 @@ export default {
132133 .range ([x_range_begin, x_range_limit]);
133134 this .y_scale .domain ([0 , depth_upper_limit])
134135 .range ([100 , 0 ]);
136+ console .log (` Depth range: ${ x_range_begin} to ${ x_range_limit} delta: ${ x_range_limit - x_range_begin} ` )
135137
136138 // Match viewbox to containing element width setting the aspect ratio at draw time.
137139 this .svg = d3 .select (" #depthSvg" )
@@ -214,6 +216,7 @@ export default {
214216 .attr (" x1" , this .x_scale (newVal))
215217 .attr (" x2" , this .x_scale (newVal))
216218 .attr (" visibility" , " inherit" )
219+ console .log (` SeqDepth hi line val: ${ newVal} x: ${ this .x_scale (newVal)} ` )
217220 }
218221 },
219222 }
0 commit comments