gmmoraesbr / flot

Automatically exported from code.google.com/p/flot
0 stars 0 forks source link

add getOverlay function #349

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Consider adding an accessor for the overlay so that we too can add our own 
interactive hacks without triggering a redraw of all the graph data.

<code>
plot.getOverlay = function() { return overlay; };
</code>

Original issue reported on code.google.com by modali...@gmail.com on 13 May 2010 at 7:14

GoogleCodeExporter commented 8 years ago
This should be an enhancement. :(

Original comment by modali...@gmail.com on 13 May 2010 at 7:17

GoogleCodeExporter commented 8 years ago
Sorry for the sluggish reply. Can you explain what you need it for?

The current model is that you listen on the redraw overlay hook which gets 
called whenever something changes, it'll then pass you the overlay drawing 
context. If you don't listen on that, you're going to clash with the built in 
stuff. Is the hook not sufficient?

Original comment by olau%iol...@gtempaccount.com on 13 Dec 2010 at 4:32

GoogleCodeExporter commented 8 years ago
No worries. You're right, I added it myself, but then I figured out that I 
didn't need it after all. Thanks for taking a look anyway. Cheers.

Original comment by modali...@gmail.com on 13 Dec 2010 at 4:57

GoogleCodeExporter commented 8 years ago
I've added a little note about it near triggerRedrawOverlay(). I may need to 
explain the drawing model a bit better somewhere.

Original comment by olau%iol...@gtempaccount.com on 10 Mar 2011 at 8:12

GoogleCodeExporter commented 8 years ago

Original comment by dnsch...@gmail.com on 4 Jun 2012 at 2:52