--- title: polyline slug: Web/SVG/Element/polyline tags: - Element - Reference - SVG - SVG Graphics translation_of: Web/SVG/Element/polyline --- <div>{{SVGRef}}</div> <h2 id="概要">概要</h2> <p><code>polyline</code>要素はSVGの基本図形であり、いくつかの座標で繋がった一連の直線を生成します。一般的に<code>polyline要素は開いた図形を生成する際に使用します。</code></p> <h2 id="使用可能な場所">使用可能な場所</h2> <p>{{svginfo}}</p> <h2 id="例">例</h2> <p>» <a href="/files/3260/polyline.svg" title="https://developer.mozilla.org/files/3260/polyline.svg">polyline.svg</a></p> <h2 id="属性">属性</h2> <h3 id="グローバル属性">グローバル属性</h3> <ul> <li><a href="/ja/SVG/Attribute#ConditionalProccessing" title="en/SVG/Attribute#ConditionalProccessing">条件処理属性</a> »</li> <li><a href="/ja/SVG/Attribute#Core" title="en/SVG/Attribute#Core">コア属性</a> »</li> <li><a href="/ja/SVG/Attribute#GraphicalEvent" title="en/SVG/Attribute#GraphicalEvent">グラフィカルイベント属性</a> »</li> <li><a href="/ja/SVG/Attribute#Presentation" title="en/SVG/Attribute#Presentation">プレゼンテーション属性</a> »</li> <li>{{ SVGAttr("class") }}</li> <li>{{ SVGAttr("style") }}</li> <li>{{ SVGAttr("externalResourcesRequired") }}</li> <li>{{ SVGAttr("transform") }}</li> </ul> <h3 id="専用属性">専用属性</h3> <ul> <li>{{ SVGAttr("points") }}</li> </ul> <h2 id="DOM_インターフェイス">DOM インターフェイス</h2> <p>この要素は <code><a href="/ja/DOM/SVGPolylineElement" title="en/DOM/SVGPolylineElement">SVGPolylineElement</a></code> インターフェイスを提供します。</p> <h2 id="仕様">仕様</h2> <table class="standard-table"> <thead> <tr> <th scope="col">仕様</th> <th scope="col">状態</th> <th scope="col">コメント</th> </tr> </thead> <tbody> <tr> <td>{{SpecName('SVG2', 'shapes.html#PolylineElement', '<polyline>')}}</td> <td>{{Spec2('SVG2')}}</td> <td> </td> </tr> <tr> <td>{{SpecName('SVG1.1', 'shapes.html#PolylineElement', '<polyline>')}}</td> <td>{{Spec2('SVG1.1')}}</td> <td>最初の定義</td> </tr> </tbody> </table> <h2 id="ブラウザ実装状況">ブラウザ実装状況</h2> <p>{{Compat("svg.elements.polyline")}}</p> <h2 id="関連情報">関連情報</h2> <ul> <li>{{ SVGElement("line") }}</li> <li>{{ SVGElement("polygon") }}</li> </ul>