• David Schnur's avatar
    Pre-compute coordinates for each line of text. · 825cd36e
    David Schnur authored
    The values don't change, so there's no reason to repeat those
    calculations on every redraw.  The resulting code is not just faster,
    but also smaller and simpler, and we no longer need to store halign in
    the text info object.
    825cd36e
jquery.flot.canvas.js 9.21 KB