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

Transformations on ART.Group #1

Open
oskarkrawczyk opened this issue Jun 16, 2010 · 1 comment
Open

Transformations on ART.Group #1

oskarkrawczyk opened this issue Jun 16, 2010 · 1 comment

Comments

@oskarkrawczyk
Copy link

So far, what's possible is scaling a group of objects, rotating and translating doesn't seem to be working.

Tested the following on 0.8 which throws JS errors.

var group = new ART.Group; group.rotate(90);

Generally, I would think a "group" has the same set of methods that a Path/Shape would have, well, at least the transformations (rotate, translate, scale);

@sebmarkbage
Copy link
Contributor

Actually you can rotate if you explicitly say which point to rotate around.

group.rotate(90, 0, 0);

The problem is that group.measure(); doesn't work yet. So it can't calculate the center position. But it will.

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