SVGLineElement
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.
SVGLineElement インターフェイスは <line> 要素のプロパティへのアクセス手段や、操作を行うメソッドを提供します。
インスタンスプロパティ
このインターフェイスには、親である SVGGeometryElement から継承したプロパティもあります。
SVGLineElement.x1読取専用-
SVGAnimatedLengthで、この<line>要素のx1属性に対応します。 SVGLineElement.y1読取専用-
SVGAnimatedLengthで、この<line>要素のy1属性に対応します。 SVGLineElement.x2読取専用-
SVGAnimatedLengthで、この<line>要素のx2属性に対応します。 SVGLineElement.y2読取専用-
SVGAnimatedLengthで、この<line>要素のy2属性に対応します。
インスタンスメソッド
親である SVGGeometryElement から継承したメソッドがあります。
仕様書
| Specification |
|---|
| Scalable Vector Graphics (SVG) 2> # InterfaceSVGLineElement> |
ブラウザーの互換性
関連情報
- SVG の
<line>要素