1

全て、

ドレスの輪郭が描かれた SVG ファイルがあります。次に、このドレスのノードを特定して、SVG-editと同様に、ファイルのパスを特定して操作できるようにします (SVG-edit では、不規則な形状を描画した後、矢印ボタンをクリックします (最初に左)ボタン) をクリックし、描画された形状をダブルクリックして、ノードの円を表示します)。

SVG 編集で考えると、出力は各ノードに独自の ID が割り当てられた多数の数値になります。各ノードを (JS で) 識別し、動的 ​​ID を設定するにはどうすればよいですか?

乾杯

4

1 に答える 1

1

Is your outline a polyline? A path? Both have interfaces for querying the individual points along the path/line. Paths consist of SVGPathSegs which have x and y properties, while polylines consist of SVGPoints, which also provide x and y.

I'm not sure if this is what you're asking. I don't think that attaching IDs to individual points is possible, at least I don't know of a way for doing that.

于 2010-10-21T08:53:43.250 に答える