Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text angle support #156

Open
5 tasks
claviska opened this issue Jan 10, 2017 · 0 comments
Open
5 tasks

Text angle support #156

claviska opened this issue Jan 10, 2017 · 0 comments

Comments

@claviska
Copy link
Owner

Currently, the text method has $angle hardcoded at 0, but angles are supported by the appropriate PHP functions.

The biggest challenge here is calculating the post-angle position of the text box and ensuring it gets positioned correctly based on anchor.

  • Add angle to $options
  • Keep between -360 and 360 degrees
  • Make sure positioning works as expected (e.g. top left should still be in the top left corner at any angle)
  • Document in the source comments
  • Document in README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant