{:uriI"file:///home/eagletmt/.clg/github.com/cookpad/kuroko2/app/assets/javascripts/kuroko2/job_definition_stats.js?type=application/javascript&pipeline=self&id=0aabebbd1a4fd89806b2efd1d123d002752817db6ed518f853b9a68cbd0ec6f5: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.self.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"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"xfile-digest:///home/eagletmt/.clg/github.com/cookpad/kuroko2/app/assets/javascripts/kuroko2/job_definition_stats.js;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: charsetI" utf-8;F: digest"%-,’x5nl O>UˣXC1r: lengthi}:dependencies_digest"%ʿ5g˞ЉI| z\+C0 :idI"E0aabebbd1a4fd89806b2efd1d123d002752817db6ed518f853b9a68cbd0ec6f5;F: mtimel+X