Akira: Bug when resizing rotated items in Artboards

Created on 13 Aug 2020  路  6Comments  路  Source: akiraux/Akira

Expected Behavior

Resizing rotated items inside artbaords should behave exactly as it does for free items.

Current Behavior

When resizing rotated items inside artboards the X and Y coordinates change unexpectedly.

Possible Solution

This might be an issue due to our compute_transform method and how we handle painting of items inside artboards.

Screenshots of the Problem

artboard-item-resize

Your Environment (for bugs)

  • Akira Version: build from master
  • OS Info: elementary OS 5.1.7
High bug

Most helpful comment

I tried to work on this but didn't have much time, unfortunately.
Hopefully next week I'll be able to fix it.

All 6 comments

Has anyone found out anything about this bug? I mean even removing the move method call from the scale method in AffineTransformations doesnt do anything. it still will move.

I tried to work on this but didn't have much time, unfortunately.
Hopefully next week I'll be able to fix it.

A similar issue happens as well on the corner nobs, when the item is rotated, the corner nobs are crazy to use.
The one you are demostrating also does not work correctly when rotated, basically it moves just when the mouse goes left or right, if you move the mouse top/bottom nothing happens, but in reality it is going towards that direction. it seems like it does not take into account that the item is rotated.

I know what's the problem with rotated objects in artboards.
Basically our artboard implementation resets the matrix transform of every child element and redraws it whenever something changes.
And we implemented a relative X and Y attribute to keep track of the coordinates since our approach clears the item's bounds.
When we resize, we interact with those relative coordinates instead of the correct matrix coordinates.
My objective is to rewrite the artboard to follow strictly the GooCanvas approach of parent > child relationship.

@albfan Really great improvements on #483, good job.
Just a little thing, when resizing from the bottom right corner after rotating the item by 90deg, the item collapses on the first click on the nob.

resize-glitch

I check and is something related with all those fix_width, fix_height, etc.... Have to check with old implementation how we solve that.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Alecaddd picture Alecaddd  路  3Comments

e200 picture e200  路  4Comments

Alecaddd picture Alecaddd  路  4Comments

piiskop picture piiskop  路  6Comments

AUNaseef picture AUNaseef  路  4Comments