我有path
和rectangle
:
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,但这只适用于矩形矩形的情况。
有没有办法只在路径内移动一个矩形?有可能吗?