In most cases, I think rectangle tool works better than the polygon tool if we were allowed to tilt the rectangles. Most images I have to use in IO have slightly tilted text which means I need a rectangle but slightly rotated. Can this be done?
5 Likes
Thanks!
Linking for everyone else:
main
← iamllama:io-rotate-mask
opened 05:01PM - 07 May 25 UTC
Relevant: https://forums.ankiweb.net/t/allow-rotating-io-masks/60336
![image]… (https://github.com/user-attachments/assets/f0fa3d90-9285-475b-8ffe-9e3e4f2ea79b)
NB1: editing on older clients can be destructive (rotation-wise only), as the `angle` IO cloze property would be stripped out
NB2: 6d767c4fffeedd9efead08029465138ac880eba7's message is mistakenly misleading, it's not meant to be a full revert of that commit
EDIT: the bounds checking leaves one case unresolved: a thin diagonal rect can have a bounding box large enough that it still remains in the canvas, but the actual rect itself is far enough away as to be hidden. we could check for non-intersection with the canvas, but im not sure where the mask should be moved to. thoughts?
By the way, how does the rotation work? I mean from the user’s POV.
2 Likes