Commit d60f0d47 authored by Ole Laursen's avatar Ole Laursen

Previous commit missed some changes, oops

parent f6cebd3f
...@@ -17,6 +17,9 @@ Changes: ...@@ -17,6 +17,9 @@ Changes:
- Canvas text support for labels (sponsored by YCharts.com). - Canvas text support for labels (sponsored by YCharts.com).
- Support for setting the interval between redraws of the overlay
canvas with redrawOverlayInterval (suggested in issue 185).
Bug fixes Bug fixes
- Fix problem with null values and pie plugin (patch by gcruxifix, - Fix problem with null values and pie plugin (patch by gcruxifix,
...@@ -25,7 +28,10 @@ Bug fixes ...@@ -25,7 +28,10 @@ Bug fixes
kaarlenkaski, issue 348). kaarlenkaski, issue 348).
- Fix axis box calculations so the boxes include the outermost part of - Fix axis box calculations so the boxes include the outermost part of
the labels too. the labels too.
- Fix problem with event clicking and hovering in IE 8 by updating
Excanvas and removing previous work-around (test case by Ara
Anjargolian).
Flot 0.7 Flot 0.7
-------- --------
......
...@@ -135,6 +135,9 @@ ...@@ -135,6 +135,9 @@
autoHighlight: true, // highlight in case mouse is near autoHighlight: true, // highlight in case mouse is near
mouseActiveRadius: 10 // how far the mouse can be away to activate an item mouseActiveRadius: 10 // how far the mouse can be away to activate an item
}, },
interaction: {
redrawOverlayInterval: 1000/60 // time between updates, -1 means in same flow
},
hooks: {} hooks: {}
}, },
canvas = null, // the canvas for the plot itself canvas = null, // the canvas for the plot itself
...@@ -2432,8 +2435,14 @@ ...@@ -2432,8 +2435,14 @@
} }
function triggerRedrawOverlay() { function triggerRedrawOverlay() {
var t = options.interaction.redrawOverlayInterval;
if (t == -1) { // skip event queue
drawOverlay();
return;
}
if (!redrawTimeout) if (!redrawTimeout)
redrawTimeout = setTimeout(drawOverlay, 1000/60); redrawTimeout = setTimeout(drawOverlay, t);
} }
function drawOverlay() { function drawOverlay() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment