Page 1 of 1
Rotating Widgets Resizing
Posted: Mon Apr 22, 2019 9:35 am
by richmond62
-
This is a right pox. The "beetle" (SVG widget) should NOT resize when rotated.
Oh, and before you ask; the widget is not locked.
Re: Rotating Widgets Resizing
Posted: Mon Apr 22, 2019 1:41 pm
by bogs
I'm curious why you think it would not resize as any graphic would? Being an svg graphic isn't going to change that behavior.
Re: Rotating Widgets Resizing
Posted: Mon Apr 22, 2019 2:20 pm
by richmond62
Because if one rotates a bitmap (apart from the fact that it goes "all hairy round the edges")
it does not resize.
Re: Rotating Widgets Resizing
Posted: Mon Apr 22, 2019 3:50 pm
by bogs
Maybe you should enable the border on the bmp image, and check again.

- Hmmm....?
Re: Rotating Widgets Resizing
Posted: Mon Apr 22, 2019 8:19 pm
by richmond62
-
Here's a sort of comparison stack.
The beetle on the left is an SVG Widget.
The beetle in the middle is a PNG image.
The beetle on the right is not a beetle at all, it is a rectangular graphic
and the 8 buttons change its backGroundPattern.
Note the hairy legs on the central beetle.
Re: Rotating Widgets Resizing
Posted: Mon Apr 22, 2019 9:07 pm
by bogs
Too new for me to run apparently (went as far up the chain as 8.x).
When I suggested turning on the borders before rotating a bmp, it was because I had done just that, the bmp resizes just the same as any other graphic I've seen, so I still don't know why you would not expect that from the svg.
Re: Rotating Widgets Resizing
Posted: Mon Apr 22, 2019 9:37 pm
by richmond62
Too new for me to run apparently
Just for you, darling . . .
-
Re: Rotating Widgets Resizing
Posted: Tue Apr 23, 2019 10:52 am
by bogs
Thanks, it did allow me to experiment some. I put a border around the image (middle one), and started turning it and, as expected, it resizes.

- Bigger...
- Selection_001.png (17.87 KiB) Viewed 4739 times

- Smaller...
- Selection_002.png (17.47 KiB) Viewed 4739 times
The only difference is on how they resize, the svg resizes towards the center, where as the image file resized the edges. I'm not positive how background images resize, but I am pretty sure they do, probably outward as the image does.
Re: Rotating Widgets Resizing
Posted: Tue Apr 23, 2019 11:34 am
by [-hh]
To summarize several threads about rotating the SVG widget.
The widget does NEVER resize if you change the angle of the widget. This is NOT implemented.
You can see this by looking at the LCB code or, simpler, by changing the angle from the property inspector in pointer mode.
But if you have the boundingBox of the SVG path you can compute the widget size needed for a certain rotation of the path.
Re: Rotating Widgets Resizing
Posted: Tue Apr 23, 2019 11:39 am
by richmond62
But if you have the boundingBox of the SVG path you can compute the widget size needed for a certain rotation of the path.
Indeed: some spotty little 9 year old suggested that yesterday
when he was meant to be concentrating on a grammar test!
I cancelled the test (to everyone's relief), handed out some sweeties, and set them working on
it.
