i’m testing a vector (of a hand) using raphael.js and i was under the impression that the “M” parameter indicates where to start drawing a path, but in my example: http://jsfiddle.net/7QA43/1/ when i changed the parameter’s of M (from 361,243 to 100,100) it seems part of the pinky is some how “anchored” to the original position.
I’ve scanned through the svg path data for something that may be causing this, but i can;t find it.
could part of the path be off?
In an SVG path there are two flavors of all path commands: absolute and relative.
All your path commands are relative except the last CurveTo command:
"...44-1.436,3.662-2.155C357.073,245.799,359.609,244.566,361.839,243.057z"From the specs:
The simplest fix is to just remove this command from your path with very little apparent difference:
Fixed via Deletion: http://jsfiddle.net/7QA43/2/
Alternatively, don’t use the first MoveTo command to adjust your path’s location. Keep your path as it was and
transform()it to a new location:Fixed via Transform: http://jsfiddle.net/7QA43/5/
Fixing the problem by finding the last coordinate of the command before the offending CurveTo and changing the parameters to use relative values is left as an exercise for the reader.