One problem I've run into while doing this is that sometimes the coordinates in the inkscape path data appear way out of bounds. For example, here is the data for an arbitrary path created by Inkscape:
Code: Select all
M 0,1052.3622 C 0,10a52.3622 4,935.93315 0,914.02898 C 5.1923882,903.62475 4.9497475,893.00614 4.9497475,893.00614 C 1.4142136,874.99436 29.73612,849.52167 52.638369,844.9978 C 63.32886,842.88611 71.976802,851.2375 82.75455,857.06158 C 93.018977,862.60826 88.673241,871.05049 99.511565,872.73271 C 109.89625,870.62995 115.56239,852.55331 135.26613,834.19653 C 154.72335,816.06943 164.34289,790.46238 188.58683,783.12331 C 197.45039,780.44014 205.50763,785.55833 216.13859,787.55404 C 227.19435,789.62949 237.77153,799.38303 237.77153,799.38303 C 237.77153,799.38303 262.46639,783.14045 276.67876,783.12331 C 292.60892,783.10407 306.82683,795.70184 320.33898,801.24298 C 335.78255,807.57617 347.03008,821.48526 362,827.78617 L 362,1052.3622 L 0,1052.3622 z
The path dimensions are 362 x 270 pixels, and the path coordinates are 0,0. This makes me ask why does the initial M command start at 0,1052.3622? That point is not inside the path's coordinate space. This doesn't map well to a Flex path, as the point usually falls outside my application dimensions.
The only fix I've found is to move the path to 0,1052.3622 in Inkscape before moving the data to Flex, in which case the M command reads M 0,-2e-5, which is close enough to change it to 0,0.
Anyone know why these command coordinates are so far out of bounds, and have a suggestion to fix them? If I start a path at 0,0 then I'd like the M command to be 0,0.