Skip to content
This repository has been archived by the owner on Dec 21, 2019. It is now read-only.

Scale transformation to act more like its CSS3 counterpart #2

Open
oskarkrawczyk opened this issue Jun 18, 2010 · 3 comments
Open

Scale transformation to act more like its CSS3 counterpart #2

oskarkrawczyk opened this issue Jun 18, 2010 · 3 comments

Comments

@oskarkrawczyk
Copy link

I had a quick chat with Kamicane about this, and he agreed the scale transformation should keep the 50/50 center origin while scaling, instead of scaling the object and keeping the top/left alignment.

@sebmarkbage
Copy link
Contributor

This should be configurable just like rotation axis.

I'm not sure about the default value being based on measurements though.

The expected effect is shape dependent so it should scale around the shape origin (0,0). Shapes like circle should place it's origin in it's center. In that case it's 50/50. But say, left aligned text might have it's origin at the left most X and baseline Y. Then scale and rotate accordingly.

@oskarkrawczyk
Copy link
Author

Fair enough, but in 99% of the cases people will need to scale from the middle of the element, whether it's a path, text, shape, whatever. It would be cool if ART was doing this by default, with the option of altering the origin.

@sebmarkbage
Copy link
Contributor

I disagree. When you do anything beyond trivial, you want to control the origin point.

You'll essentially always put shapes in groups since objects are composed of several different parts. Then you'll want to orient the shapes within that group according to a natural origin point. That origin point will sometimes be equivalent the center but not always.

When it's not, you'll be surprised if the group transforms are askew.

However, if the common simple shapes like text and ellipse have their origin in the middle by default. Then this is not a problem. After all, if the natural rotation point is the center. Then the natural placement point is probably the same.

I'll describe some options to offset Illustrator exported icons accordingly.

Although I agree, this is somewhat of a mental bend, since we're so used to have top-left oriented icons in pixel graphics.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants