javascript - Raphael JS, Path animation problem -


i have path:

var original_param = 'm '+p1.x+' '+p1.y+'l '+p2.x+' '+p2.y; var path = paper.path(original_param); 

i have defined path attribute animation:

var animation_param={m: p11.x+' '+p11.y, l: p22.x+' '+p22.y} 

where p1 , p2 points, not put definitions here, since return proper values correctly here.

then animate path parameters by:

path.animate(animation_param, 1000); 

but got error message

enter image description here

what reason of error?

did try use animation_param string except object? think should work.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -