質問

can someone tell me how can I change the coords from this script ( I use it in dreamweaver ): http://jsfiddle.net/EVFEC/ . I made a SVG map with Adobe illustrator, I tried to copy the now coords in this script but it doesn't work... Why?

役に立ちましたか?

解決

Standalone vector graphics editors such as InkScape will flip the Y axis, as their coordinate system differs.

A bug has been filed to the InkScape issue tracking forum on launchpad (though it is debatable whether it should be considered a bug), and the issue is well known.

Several approaches may be used to solve this (all addressing the use of InkScape):

  • Specify the width and height of and SVG document explicitly prior to importing into InkScape, as suggested here
  • Rewrite all absolute coordinate values as relative, as offered here
  • Wait for the feature request to be fulfilled. Someone suggested at AskUbuntu that it's targeted for version 0.49, but the roadmap currently shows no real evidence to support that claim.
  • Compensate for the irregularity by subtracting the InkScape document height from the Y axis values on the transformation matrix.
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top