File tree Expand file tree Collapse file tree 4 files changed +13
-1
lines changed Expand file tree Collapse file tree 4 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -539,6 +539,15 @@ <h2 id="Configuration_Options">Configuration Options</h2>
539
539
</ td >
540
540
</ tr >
541
541
542
+ < tr >
543
+ < td > tooltipDelay</ td >
544
+ < td > number</ td >
545
+ < td > 300</ td >
546
+ < td > The delay time (in ms) for the tooltip to appear when the mouse cursor
547
+ hovers over an x-y grid tile.
548
+ </ td >
549
+ </ tr >
550
+
542
551
< tr class ='toggle collapsible ' onclick ="toggleTable('optionTable','tooltipStyle', this); ">
543
552
< td > < span parent ="tooltipStyle " class ="right-caret "> </ span > tooltipStyle</ td >
544
553
< td > Object</ td >
Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ Graph3d.DEFAULTS = {
69
69
70
70
style : Graph3d . STYLE . DOT ,
71
71
tooltip : false ,
72
+ tooltipDelay : 300 , // milliseconds
72
73
73
74
tooltipStyle : {
74
75
content : {
@@ -2005,7 +2006,7 @@ Graph3d.prototype._onClick = function (event) {
2005
2006
* @param {Event } event A mouse move event
2006
2007
*/
2007
2008
Graph3d . prototype . _onTooltip = function ( event ) {
2008
- var delay = 300 ; // ms
2009
+ var delay = this . tooltipDelay ; // ms
2009
2010
var boundingRect = this . frame . getBoundingClientRect ( ) ;
2010
2011
var mouseX = getMouseX ( event ) - boundingRect . left ;
2011
2012
var mouseY = getMouseY ( event ) - boundingRect . top ;
Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ var OPTIONKEYS = [
74
74
'xCenter' ,
75
75
'yCenter' ,
76
76
'zoomable' ,
77
+ 'tooltipDelay' ,
77
78
'ctrlToZoom'
78
79
] ;
79
80
Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ let allOptions = {
92
92
]
93
93
} ,
94
94
tooltip : { boolean : bool , 'function' : 'function' } ,
95
+ tooltipDelay : { number : number } ,
95
96
tooltipStyle : {
96
97
content : {
97
98
color : { string } ,
You can’t perform that action at this time.
0 commit comments