Closed stockiNail closed 1 year ago
I still don't like the counters How about making it simpler, just draw before/after the main element is drawn? We could add
afterDrawChildren
later, if it's really needed.
I think its reasonable But Let me take time to review the PR My memory is not so persistent and I dont remember so well what I wrote
How about making it simpler, just draw before/after the main element is drawn?
done! review applied!
No counters anymore!
This PR is adding before/after draw hooks in order to allow the user to apply whatever needed customization on out-of the-box annotations. Fix #146.
The hooks will be invoked once for every annotation for each drawing cycle.
annotation.beforeDraw
annotation.afterDraw
Common hooks for all annotations can be set in the annotation plugin options:
TODO