nhn / tui.image-editor

🍞🎨 Full-featured photo image editor using canvas. It is really easy, and it comes with great filters.
http://ui.toast.com/tui-image-editor
MIT License
6.84k stars 1.26k forks source link

How to rotate single object #863

Open AaravShah042 opened 1 year ago

AaravShah042 commented 1 year ago

Describe the bug I am trying to rotate the single object

To Reproduce As per the docs, we have a rotate method to rotate the editor https://nhn.github.io/tui.image-editor/latest/ImageEditor#rotate But I want to customize my editor in order to change the rotation of icons/object

So I added an icon imageEditor.addIcon('arrow');

And I have the below design and want to manage the rotation of the arrow icon based on the HTML element click image

Expected behavior Using some method we can rotate the single object