KlausSchaefers / quant-ux

Quant-UX - Prototype, Test and Learn
GNU General Public License v3.0
1.87k stars 196 forks source link

A feature to rotate objects/components. #261

Open abhilashnavgurukul opened 9 months ago

abhilashnavgurukul commented 9 months ago

I wanted to rotate text object. However, I could not find an option or variable to enable rotation. Icons have rotate option. It would be great if we can have rotate option for all objects/components.

KlausSchaefers commented 9 months ago

Rotation is a tricky topic. On images and icons it works more or less, but overflows are cut off. Vector elements support real rotation, where the outer shape is also adapted. However this is not possible with the normal widgets (unless I rewrite half of the rendering logic). Also for some elements that require DND (e.g. sliders) the complete interaction would be undefined.

Nonetheless, I will have a look, I can do the same tricks I applied for images of labels. However, when using auto-size (font-size == element size)

On Wed, Nov 8, 2023 at 5:25 AM Abhilash @.***> wrote:

I wanted to rotate text object. However, I could not find an option or variable to enable rotation. Icons have rotate option. It would be great if we can have rotate option for all objects/components.

— Reply to this email directly, view it on GitHub https://github.com/KlausSchaefers/quant-ux/issues/261, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABWHOQBW567FDKEYSKW5SWDYDMCVFAVCNFSM6AAAAAA7CHSY5WVHI2DSMVQWIX3LMV43ASLTON2WKOZRHE4DENZRGUYTQNI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- “Overfitting” is not about an excessive amount of physical exercise...