David Fortin
David Fortin

Reputation: 120

Raphael js improve scale and translate performance

Do you know any ways to improve raphael js scale and translate methods. It takes about 3 secs to scale 1000 objects (400 circles, 400 paths, 50 texts, 150 rectangles) and about 1.5 secs to translate those objects?

Thx a lot :)

Upvotes: 3

Views: 2053

Answers (1)

Leonid Vakulenko
Leonid Vakulenko

Reputation: 41

Try this library: http://shapevent.com/scaleraphael/

Instead of scaling objects one by one it scales the whole canvas and preserves the original coordinate system. Works both with svg and vml.

Upvotes: 4

Related Questions