Re: Let's rotate an SVG widget

2018-01-07 Thread Richmond Mathewson via use-livecode
"But you can compute the needed rectangle and resize the widget accordingly by LC Script." Indeed: but that presupposes I'm NOT a lazy slob8-) http://forums.livecode.com/viewtopic.php?f=8&t=30405 Richmond. On 7/1/2018 11:58 am, hh via use-livecode wrote: Maintain aspect ratio is for resizin

Re: Let's rotate an SVG widget

2018-01-07 Thread hh via use-livecode
Maintain aspect ratio is for resizing the svg object when resizing the widget. What you want is probably that the widget resizes its rectangle *minimally* so that the size of the svg remains unchanged when rotating. That's not (yet) available in LCB. But you can compute the needed rectangle and

Re: Let's rotate an SVG widget

2018-01-07 Thread Richmond Mathewson via use-livecode
I went here: https://livecode.com/livecode-widgets-svg-path/ and came across maintainAspectRatio which sounds dead groovy: setthemaintainAspectRatio ofwidget "hour" totrue settheangleofwidget "hour" toINC but it didn't maintain its aspect ratio . . . Richmond. On 7/1/2018 10:43 am, Richmond

Let's rotate an SVG widget

2018-01-07 Thread Richmond Mathewson via use-livecode
So, I imported an SVG from Inkscape into an SVG widget . . . Then I tried to rotate the thing; it rotated, it kept "swelling and shrinking" because its bounding box was square. This is not cutting the mustard. Richmond. ___ use-livecode mailing list