Commit Graph

14 Commits (d94c1b75bc330c1566bc82e9f463c230381e27b6)

Author SHA1 Message Date
Marcelo Jorge Vieira b224b1ca7e Removed executable permissions from jquery.flot.selection.js 13 years ago
martinqt 1e6c45bd95 Update js files 13 years ago
rlinehan 458656f3b9 Make minSize customizable
Previously, the minimum size a selection could be was set at five
pixels. This commit adds the ability to customize this value.
13 years ago
rlinehan 51485c0381 Add option to always show selection rectangle
Previously, if the selected area was very small, the selection
rectangle would not be displayed. This commit adds an "alwaysShow"
option so that, when true, the selection rectangle will always be
displayed. When the selected area is very small, the selection
rectangle will become a line.
13 years ago
rlinehan 0a3db84559 Add option for lineJoin shape
This commit adds an option for the shape of the corners of the
selection rectangle. By default the shape is set to "round" (the
previous setting for lineJoin). The other options are "bevel" and
"miter".
13 years ago
David Schnur be6fc4e41d Draw selection on half-pixels to avoid aliasing.
Adapted from pull request #17.
13 years ago
David Schnur 9e21074d82 Updated license headers for #805.
Added licensing information to each file's headers, along with some
minor cleanup.
14 years ago
Nick Campbell 54ce0b2e75 !selection.show => return null from getSelection
If we've called `clearSelection`, then calling `getSelection` shouldn't
return the old selection values. When calling `getSelection` before a
selection is made, `null` is returned. It seemed appropriate to do the
same if `selection.show` was falsy.

Signed-off-by: Nick Campbell <nicholas.j.campbell@gmail.com>
14 years ago
olau@iola.dk 4e02781692 Refactor replot behaviour so Flot tries to reuse the existing canvas,
adding shutdown() methods to the plot (based on patch by Ryley
Breiddal, issue 269). This prevents a memory leak in Chrome and
hopefully makes replotting faster for those who are using $.plot
instead of .setData()/.draw(). Also update jQuery to 1.5.1 to prevent
IE leaks fixed some time ago in jQuery.


git-svn-id: https://flot.googlecode.com/svn/trunk@317 1e0a6537-2640-0410-bfb7-f154510ff394
15 years ago
olau@iola.dk 2ab5ce87f5 Remove usage of getUsedAxes(), after the refactor of setupGrid, it's
no longer needed, and possibly misleading - hopefully, nobody else has
used it yet; also refactor getAxes() and remove annoying
backwards-compatibility stuff in it, it probably didn't help anything
and prevents one from using getAxes() in the obvious way


git-svn-id: https://flot.googlecode.com/svn/trunk@310 1e0a6537-2640-0410-bfb7-f154510ff394
15 years ago
olau@iola.dk f20ab62742 Add a note about getOptions() being useful for changing the selection color on-the-fly (from issue 370 reported by Mitja Koren)
git-svn-id: https://flot.googlecode.com/svn/trunk@277 1e0a6537-2640-0410-bfb7-f154510ff394
16 years ago
olau@iola.dk bad53abc5a Revamped internals to add support for extra axes, not just dual (sponsored by Flight Data Services)
git-svn-id: https://flot.googlecode.com/svn/trunk@251 1e0a6537-2640-0410-bfb7-f154510ff394
16 years ago
olau@iola.dk e131b77618 Check the selection passed into setSelection in the selection plugin, to guard against errors when synchronizing plots (fix by Lau Bech Lauritzen).
git-svn-id: https://flot.googlecode.com/svn/trunk@246 1e0a6537-2640-0410-bfb7-f154510ff394
16 years ago
olau@iola.dk d54a40c2df Move selection support to a plugin (based on patch from andershol),
move color code to separate jQuery plugin inlined in the Flot code
(and hosted here for the time being), fixup some various other little
things in preparation for the 0.6 release


git-svn-id: https://flot.googlecode.com/svn/trunk@220 1e0a6537-2640-0410-bfb7-f154510ff394
17 years ago