Raphael がクリック可能な SVG マップを生成するために使用する JS オブジェクトがあります。いくつかのパスを変更する必要があります。ユーザーフレンドリーな方法でそれを行うために使用できるツールはありますか? 試行錯誤のテクニックを使用して数字をいじりたくありません。パス/アンカーポイントをドラッグアンドドロップしたいのです。どうにかして座標を Illustrator/Dreamweaver/その他のツールにインポートできますか?
ありがとうございました。
JS オブジェクトは次のようになります。
map.coords = [
{ type:"path" ,id:"K15" ,d:"/*edited out*/"},
{ type:"rect" ,id:"K14" ,x:"496" ,y:"386" ,width:"9" ,height:"5"}
];
マークアップは次のようになります (Raphael が生成したマークアップがsvg
要素内にある場合):
<div style="position: relative;">
<div id="mapOverlay" style="position: absolute; top: 0; left: 0; z-index: 2">
<svg height="777" width="777" version="1.1" xmlns="http://www.w3.org/2000/svg">
<desc>Created with Raphaël</desc>
<defs></defs>
<path fill-opacity="0" stroke-width="0.25" style="stroke-width: 0.25; fill-opacity: 0;" d="[/*edited out*/]" stroke="#000000" fill="#000000"></path>
</svg>
</div>
<img src="map.jpg" alt="Interactive Map">
</div>