Allow user to locate wrapped text lines #61

Closed
wants to merge 2 commits into
from

Conversation

Projects
None yet
2 participants
@ef4
Contributor

ef4 commented Feb 21, 2012

This little changes adds an 'eachLine' option to 'text'. You can set
it to a callback that will be called with the arguments (text, x, y)
for each line of text that gets generated.

This makes it possible to figure out eactly where the text has been
placed in order to add annotations to it, or add other graphics that
need to be placed relative to the text.

ef4 added some commits Feb 21, 2012

Allow user to locate wrapped text lines
This little changes adds an 'eachLine' option to 'text'. You can set
it to a callback that will be called with the arguments (text, x, y)
for each line of text that gets generated.

This makes it possible to figure out eactly where the text has been
placed in order to add annotations to it, or add other graphics that
need to be placed relative to the text.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment