get new points of scaled path

113 views
Skip to first unread message

hovav

unread,
Jul 20, 2014, 8:04:43 AM7/20/14
to raph...@googlegroups.com
hi all,
i want to set scale for path object then i need the new points of the path 
how do i get it?

dusadrian

unread,
Oct 20, 2015, 3:41:55 AM10/20/15
to Raphaël
I would use:
Raphael.parsePathString(inital_path_string)

which returns an array of segments (each containing the coordinates of the points on each segment), then iterate over its segments to multiply each coordinate with your scale, and finally use the property .toString() and get your new string back.

Does this helps?
Adrian
Reply all
Reply to author
Forward
0 new messages