art icon indicating copy to clipboard operation
art copied to clipboard

Transformations on ART.Group

Open oskarkrawczyk opened this issue 15 years ago • 1 comments

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);

oskarkrawczyk avatar Jun 16 '10 14:06 oskarkrawczyk

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.

sebmarkbage avatar Jun 16 '10 16:06 sebmarkbage