mirror of
				https://github.com/beestat/app.git
				synced 2025-10-30 17:52:25 -04:00 
			
		
		
		
	Debugging tooltip performance
This commit is contained in:
		
							parent
							
								
									5807f062cd
								
							
						
					
					
						commit
						e38c4583f9
					
				| @ -503,6 +503,8 @@ beestat.component.chart.prototype.get_options_series_ = function() { | |||||||
|  * @return {object} The tooltip options. |  * @return {object} The tooltip options. | ||||||
|  */ |  */ | ||||||
| beestat.component.chart.prototype.get_options_tooltip_ = function() { | beestat.component.chart.prototype.get_options_tooltip_ = function() { | ||||||
|  |   // if(beestat.user.get().user_id === 1) return null;
 | ||||||
|  | 
 | ||||||
|   return { |   return { | ||||||
|     'shared': true, |     'shared': true, | ||||||
|     'useHTML': true, |     'useHTML': true, | ||||||
| @ -531,6 +533,7 @@ beestat.component.chart.prototype.get_options_tooltip_formatter_ = function() { | |||||||
|  * @return {Function} The tooltip positioner. |  * @return {Function} The tooltip positioner. | ||||||
|  */ |  */ | ||||||
| beestat.component.chart.prototype.get_options_tooltip_positioner_ = function() { | beestat.component.chart.prototype.get_options_tooltip_positioner_ = function() { | ||||||
|  |   if(beestat.user.get().user_id === 1) return null; | ||||||
|   var self = this; |   var self = this; | ||||||
|   return function(tooltip_width, tooltip_height, point) { |   return function(tooltip_width, tooltip_height, point) { | ||||||
|     return { |     return { | ||||||
| @ -753,6 +756,8 @@ beestat.component.chart.prototype.sync_extremes = function(source_chart) { | |||||||
|  * @param {beestat.component.chart} source_chart The source chart. |  * @param {beestat.component.chart} source_chart The source chart. | ||||||
|  */ |  */ | ||||||
| beestat.component.chart.prototype.sync_crosshair = function(source_chart) { | beestat.component.chart.prototype.sync_crosshair = function(source_chart) { | ||||||
|  |   if(beestat.user.get().user_id === 1) return null; | ||||||
|  | 
 | ||||||
|   var self = this; |   var self = this; | ||||||
| 
 | 
 | ||||||
|   [ |   [ | ||||||
|  | |||||||
| @ -134,6 +134,8 @@ beestat.component.chart.runtime_sensor_detail_temperature.prototype.get_options_ | |||||||
|  * @return {Function} The tooltip formatter. |  * @return {Function} The tooltip formatter. | ||||||
|  */ |  */ | ||||||
| beestat.component.chart.runtime_sensor_detail_temperature.prototype.get_options_tooltip_formatter_ = function() { | beestat.component.chart.runtime_sensor_detail_temperature.prototype.get_options_tooltip_formatter_ = function() { | ||||||
|  |   if(beestat.user.get().user_id === 1) return null; | ||||||
|  | 
 | ||||||
|   var self = this; |   var self = this; | ||||||
| 
 | 
 | ||||||
|   return function() { |   return function() { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user