{:uriI"file:///home/eagletmt/.clg/github.com/cookpad/kuroko2/app/assets/javascripts/kuroko2/job_definition_stats.js?type=application/javascript&id=32c58c323d15ba20268255f294c68081daa873205c24bb978bfc698f92b85952:ET:load_pathI"J/home/eagletmt/.clg/github.com/cookpad/kuroko2/app/assets/javascripts;T: filenameI"j/home/eagletmt/.clg/github.com/cookpad/kuroko2/app/assets/javascripts/kuroko2/job_definition_stats.js;T: nameI"!kuroko2/job_definition_stats;T:logical_pathI"$kuroko2/job_definition_stats.js;T:content_typeI"application/javascript;T: sourceI"}// Place all the behaviors and hooks related to the matching controller here. // All this logic will automatically be available in application.js. jQuery(function ($) { var groups = new vis.DataSet(); groups.add({ id: 'execution-time', content: 'ExecutionTime', }); groups.add({ id: 'memory', content: 'Memory', }); var basicOptions = { zoomable: false, drawPoints: { enabled: true } }; var pointerApproaching = function( $element, distance, event ) { var left = $element.offset().left - distance, top = $element.offset().top - distance, right = left + $element.width() + ( 2 * distance ), bottom = top + $element.height() + ( 2 * distance ), x = event.pageX, y = event.pageY; return ( x > left && x < right && y > top && y < bottom ); }; var bindTooltipAction = function($target){ $target.mousemove( function( event ) { $('.vis-line-graph svg rect').each(function(){ if( pointerApproaching($(this), 15, event) ) { $(this).next().show(); } else { $(this).next().hide(); } }); }); }; var executionTimePath = $('#execution-time').data('execution-time-path') if( executionTimePath ) { $.get(executionTimePath, function (response) { new vis.Graph2d( $('#execution-time').get(0), response.data, groups, $.extend(basicOptions, { dataAxis: { left: { title: { text: 'Minutes' } } }, interpolation: false, start: response.start_at, end: response.end_at }) ); bindTooltipAction($('#execution-time')); }); } var memoryPath = $('#memory').data('memory-path') if( memoryPath ) { $.get(memoryPath, function (response) { new vis.Graph2d( $('#memory').get(0), response.data, groups, $.extend(basicOptions, { dataAxis: { left: { title: { text: 'Kbytes' } } } }) ); }); } }); ;T: metadata{:dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"xfile-digest:///home/eagletmt/.clg/github.com/cookpad/kuroko2/app/assets/javascripts/kuroko2/job_definition_stats.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTF: sources[:map{I" version;TiI" file;TI"$kuroko2/job_definition_stats.js;TI" sections;T[{I" offset;T{I" line;TiI" column;TiI"map;T{ @i@I"$kuroko2/job_definition_stats.js;TI" mappings;TI"NAAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;TI" sources;T[I"#job_definition_stats.source.js;TI" names;T[I"x_sprockets_linecount;TiH: linkso;;}F: included[I"file:///home/eagletmt/.clg/github.com/cookpad/kuroko2/app/assets/javascripts/kuroko2/job_definition_stats.js?type=application/javascript&pipeline=self&id=ab438b17f57042f969808e3c833635dfcbf049a30820319b3fdf74c5823882b8;T: charsetI" utf-8;F: digest"%-,’x5nl O>UˣXC1r: lengthi}:environment_versionI"1.0;T:dependencies_digest"%nw~ Z0˧0`9dc:EkJ)g:idI"E32c58c323d15ba20268255f294c68081daa873205c24bb978bfc698f92b85952;F