From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/svg/element/line/index.html | 106 +++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 files/ja/web/svg/element/line/index.html (limited to 'files/ja/web/svg/element/line') diff --git a/files/ja/web/svg/element/line/index.html b/files/ja/web/svg/element/line/index.html new file mode 100644 index 0000000000..5446363585 --- /dev/null +++ b/files/ja/web/svg/element/line/index.html @@ -0,0 +1,106 @@ +--- +title: line +slug: Web/SVG/Element/line +tags: + - Element + - Reference + - SVG + - SVG Graphics + - 要素 +translation_of: Web/SVG/Element/line +--- +
{{SVGRef}}
+ +

<line> 要素は SVG の基本図形であり、2つの点をつなぐ直線を作成するために使用します。

+ +
+ + +
<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
+  <line x1="0" y1="80" x2="100" y2="20" stroke="black" />
+
+  <!-- If you do not specify the stroke
+       color the line will not be visible -->
+</svg>
+ +

{{EmbedLiveSample('Example', 100, 100)}}

+
+ +

属性

+ +
+
{{SVGAttr('x1')}}
+
線の始点の X 座標を定義します。
+ 値の型: <length>|<percentage>|<number> ; 既定値: 0; アニメーション:
+
{{SVGAttr('x2')}}
+
線の終点の X 座標を定義します。
+ 値の型: <length>|<percentage>|<number> ; 既定値: 0; アニメーション:
+
{{SVGAttr('y1')}}
+
線の始点の Y 座標を定義します。
+ Value type: <length>|<percentage>|<number> ; 既定値: 0; アニメーション:
+
{{SVGAttr('y2')}}
+
線の終点の Y 座標を定義します。
+ Value type: <length>|<percentage>|<number> ; 既定値: 0; アニメーション:
+
{{SVGAttr("pathLength")}}
+
パス全体の長さをユーザーの単位で定義します。
+ Value type: <number> ; 既定値: none; アニメーション:
+
+ +

グローバル属性

+ +
+
コア属性
+
主なもの: {{SVGAttr('id')}}, {{SVGAttr('tabindex')}}
+
スタイル属性
+
{{SVGAttr('class')}}, {{SVGAttr('style')}}
+
条件付き処理属性
+
主なもの: {{SVGAttr('requiredExtensions')}}, {{SVGAttr('systemLanguage')}}
+
イベント属性
+
グローバルイベント属性, グラフィックイベント属性
+
プレゼンテーション属性
+
主なもの: {{SVGAttr('clip-path')}}, {{SVGAttr('clip-rule')}}, {{SVGAttr('color')}}, {{SVGAttr('color-interpolation')}}, {{SVGAttr('color-rendering')}}, {{SVGAttr('cursor')}}, {{SVGAttr('display')}}, {{SVGAttr('fill')}}, {{SVGAttr('fill-opacity')}}, {{SVGAttr('fill-rule')}}, {{SVGAttr('filter')}}, {{SVGAttr('mask')}}, {{SVGAttr('opacity')}}, {{SVGAttr('pointer-events')}}, {{SVGAttr('shape-rendering')}}, {{SVGAttr('stroke')}}, {{SVGAttr('stroke-dasharray')}}, {{SVGAttr('stroke-dashoffset')}}, {{SVGAttr('stroke-linecap')}}, {{SVGAttr('stroke-linejoin')}}, {{SVGAttr('stroke-miterlimit')}}, {{SVGAttr('stroke-opacity')}}, {{SVGAttr('stroke-width')}}, {{SVGAttr("transform")}}, {{SVGAttr('vector-effect')}}, {{SVGAttr('visibility')}}
+
ARIA 属性
+
aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-valuetext, role
+
+ +

使用上のメモ

+ +

{{svginfo}}

+ +

仕様書

+ + + + + + + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName('SVG2', 'shapes.html#LineElement', '<line>')}}{{Spec2('SVG2')}}x1、y1、x2、y2 属性に{{cssxref("<length>")}}、{{cssxref("<percentage>")}}、{{cssxref("<number>")}}を指定できるように変更
{{SpecName('SVG1.1', 'shapes.html#LineElement', '<line>')}}{{Spec2('SVG1.1')}}初回定義
+ +

ブラウザーの互換性

+ + + +

{{Compat("svg.elements.line")}}

+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf