Re: [Inkscape-devel] rect improvements
I got some ideas of further rect improvements, but I want to discuss them here first.
Now the rect tool stores the relative radii of corners, so if you set one rect with a 0.3 ratio of radius to the half-side, the same ratio will be applied to the next one. So the subsequent rects you create will be "scaled versions" of the first one, and their absolute corner radii will be different if their height/widths are different.
What I think will be more useful is to store the absolute radii instead, so that new rects you create have the same radii even if different height/width. In fact, I propose to do away with the ratios altogether, so that the absolute values of radii are preserved even when you scale a rect with selector. So you'll be able to scale or transform a rect arbitrarily and it will keep the same rounded corners throughout (the only exception is when you scale it down so that its side is less than twice the radius, in which case the raidus will be trimmed); if you want to change the corner radii, the rect tool will let you do that in absolute units (mm, pt, etc.).
I will at least implement this as an option, but my question is, does anyone else think that this should be the default or even the only behavior?
I also like the idea of being able to copy/paste corner radii along with the rest of the params with Paste Style. This will require some additional coding because the rx and ry attrs are not part of the style, but for the user it will be transparent.
_________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN Premium http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI...
On Thu, 27 May 2004, bulia byak wrote:
What I think will be more useful is to store the absolute radii instead, so that new rects you create have the same radii even if different height/width. In fact, I propose to do away with the ratios altogether, so that the absolute values of radii are preserved even when you scale a rect with selector.
I will at least implement this as an option, but my question is, does anyone else think that this should be the default or even the only behavior?
Speaking for myself, I mostly would use this for diagramming, and so definitely would prefer that to be the only behavior that makes sense.
The only cases I can imagine where scaling the rect should also scale the radii would be ones in which I'd probably want to convert the rect to node paths anyway. Here I'm thinking about icons, logos or web graphics, where you're going to want to even convert all the text to curves.
Anyway, I do think it should be the default behavior, and if it was the only behavior, for my own purposes (diagramming) that'd be okay. If others like that behavior, maybe it'd be worth having as an option.
Bryce
participants (2)
-
Bryce Harrington
-
bulia byak