1. 26 Feb, 2013 2 commits
    • rlinehan's avatar
      Add option to always show selection rectangle · 51485c03
      rlinehan authored
      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.
      51485c03
    • rlinehan's avatar
      Add option for lineJoin shape · 0a3db845
      rlinehan authored
      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".
      0a3db845
  2. 22 Feb, 2013 2 commits
  3. 20 Feb, 2013 2 commits
  4. 16 Feb, 2013 1 commit
  5. 15 Feb, 2013 5 commits
  6. 14 Feb, 2013 1 commit
  7. 13 Feb, 2013 1 commit
  8. 12 Feb, 2013 3 commits
  9. 10 Feb, 2013 1 commit
  10. 09 Feb, 2013 8 commits
  11. 08 Feb, 2013 2 commits
  12. 07 Feb, 2013 2 commits
  13. 05 Feb, 2013 2 commits
  14. 03 Feb, 2013 8 commits
    • David Schnur's avatar
      Set processed back to false after processing. · ef73cf7e
      David Schnur authored
      This temporary fix addresses the problem described in #810, and possibly
      #945, where calls to setData for a pie chart do nothing.
      ef73cf7e
    • David Schnur's avatar
      7317b9c6
    • David Schnur's avatar
      9ede692e
    • David Schnur's avatar
      Removed unnecessary plugin-global variables. · 55864254
      David Schnur authored
      The canvasWidth, canvasHeight, legendWidth and legendHeight variables
      existed only to share data between the setupPie and draw functions.  Now
      that setupPie has been folded into draw, they're no longer necessary.
      55864254
    • David Schnur's avatar
      Moved setupPie into the draw function. · 6d70144d
      David Schnur authored
      This code is only used to prepare the plot for drawing; inlining it is
      cleaner and will allow us to get rid of some plugin-global variables
      that existed only to give setupPie a way to share data with the draw
      function.
      6d70144d
    • David Schnur's avatar
      Eliminate the plugin-global redraw flag. · cfc07ff2
      David Schnur authored
      The redraw flag starts out as true, then is immediately set to false on
      draw.  If labels are enabled, drawPie calls drawLabels, which calls
      drawLabel for each label.  Any label that can't fit sets redraw back to
      true, so the whole process can repeat.
      
      This isn't the most obvious mechanism, and forces one to remember to do
      things like setting redraw back to true after drawing, so the plot can
      redraw itself on resize or when setting new data.
      
      Instead we now have drawPie return true when it drew successfully, and
      false otherwise, which the same happening in drawLabels and drawLabel.
      Instead of checking the flag, we now just check the return value.
      
      This has the added benefit of slightly improving performance in the case
      where several redraws are necessary, since it now short-circuits out of
      the draw loop as soon as one label fails to fit.
      cfc07ff2
    • David Schnur's avatar
      fa463311
    • David Schnur's avatar
      Make the slice total a local variable. · 77889432
      David Schnur authored
      The total is only used within the combine function; it doesn't need to
      exist at the top level of the plugin.
      77889432