Raphael.js:如何仅在路径中移动元素?

时间:2013-07-10 19:21:44

标签: javascript raphael

我有pathrectangle

poly = 'M118,129 L393,130 L311,263 L512,271 L438,122 L745,139 L650,293 L787,263 L765,511 L636,370 L641,529 L319,561 L545,353 L269,366 L355,452 L117,537 L20,332 L246,278 L293,171 L143,282Z';
p = paper.path(poly);
rect = paper.rect(135,135,20,20);

我查看了这个raphaeljs drag and drop question,但这只适用于矩形矩形的情况。

有没有办法只在路径内移动一个矩形?有可能吗?

0 个答案:

没有答案