Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

add setup/finishDrawContext and setup/finishDrawFillContext callback options to "lines" series options #67

Open
wants to merge 3 commits into
from

Conversation

Projects
None yet
1 participant

risicle commented Jul 24, 2012

Ok, esoteric option time, but I needed it, so shrug.

This allows an advanced user to mess around with the canvas context used to draw the line or line area fill just before the drawing is done. More complex effects can be achieved this way.

Also add corresponding "finish" callbacks to allow user to perhaps piggy-back on any state set up by plotLine() etc.

You may be wondering why I didn't implement these as hooks. Hooks seem to really be intended for things that are "stackable", whereas callbacks messing around with the context are almost necessarily going to trample each other if you try and use more than one at once.

risicle added some commits Jun 23, 2012

@risicle risicle add setupDrawContext and setupDrawFillContext options to "lines" seri…
…es options

This allows an advanced user to mess around with the canvas context
used to draw the line or line area fill just before the drawing is
done. More complex effects can be achieved this way.
25ddf45
@risicle risicle pass plot as first argument to setupDrawContext & setupDrawFillContext 118967b
@risicle risicle add finishDrawContext & finishDrawFillContext callback options 6f752cc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment