Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Raphael 中有这段代码:
var myrect = paper.rect(10,10, 25,25);
出现矩形。
当我添加此代码时:
myrect.transform(T200,0);
...什么都没发生。
请问有人知道我做错了什么吗?这些拉斐尔变换似乎对我不起作用。
谢谢!
可能是 Element.transform 将字符串作为参数。
尝试:
myrect.transform("t200,0");
看看这是否有什么不同。
来源: http ://raphaeljs.com/reference.html#Element.transform