2
Is it possible using RaphaelJS ? 我的意思是只是2D部分。用RaphaelJS调整形状尺寸
我认为唯一的方法是按比例重写所有路径,然后调整它们的大小以适合我的画布容器。
Is it possible using RaphaelJS ? 我的意思是只是2D部分。用RaphaelJS调整形状尺寸
我认为唯一的方法是按比例重写所有路径,然后调整它们的大小以适合我的画布容器。
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);
对不起,如果我不清楚。但我想与路径一起工作 – coffee 2011-06-16 20:59:44
圆形是一条为您创建的路径。检查Raphael的来源。 – 2011-06-17 15:02:53