开发者

Resize shapes with RaphaelJS

Is it possible using RaphaelJS ? I mean just 2D part.

The only way I thought is to rewrite all paths proportionally and then resize them to fi开发者_开发知识库t inside my canvas container.


Yes. From the raphael site

var c = paper.circle(10, 10, 10);
// makes the circle 1.5 times larger
c.scale(1.5, 1.5);
// makes the circle half as wide, and 75% as high
c.scale(.5, .75);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜