From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../ja/web/svg/attribute/stroke-linecap/index.html | 73 ++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 files/ja/web/svg/attribute/stroke-linecap/index.html (limited to 'files/ja/web/svg/attribute/stroke-linecap/index.html') diff --git a/files/ja/web/svg/attribute/stroke-linecap/index.html b/files/ja/web/svg/attribute/stroke-linecap/index.html new file mode 100644 index 0000000000..9942081df2 --- /dev/null +++ b/files/ja/web/svg/attribute/stroke-linecap/index.html @@ -0,0 +1,73 @@ +--- +title: stroke-linecap +slug: Web/SVG/Attribute/stroke-linecap +tags: + - NeedsCompatTable + - SVG + - SVG Attribute +translation_of: Web/SVG/Attribute/stroke-linecap +--- +

« SVG 属性リファレンスホーム

+ +

stroke-linecap 要素は線を引いた時の開いている部分パスの終端の形状を指定します。

+ +

プレゼンテーション属性であるため、直接 CSS スタイルシートの中で定義したプロパティとして使うこともできます。

+ +

使用可能な場所

+ + + + + + + + + + + + + + + + + + + + +
カテゴリプレゼンテーション属性
butt | round | square | inherit
アニメーションYes
標準文書SVG 1.1 (2nd Edition)
+ +

+ +
<?xml version="1.0"?>
+<svg width="120" height="120"
+     viewBox="0 0 120 120" version="1.1"
+     xmlns="http://www.w3.org/2000/svg">
+
+    <line stroke-linecap="butt"
+          x1="30" y1="30" x2="30" y2="90"
+          stroke="black" stroke-width="20"/>
+
+    <line stroke-linecap="round"
+          x1="60" y1="30" x2="60" y2="90"
+          stroke="black" stroke-width="20"/>
+
+    <line stroke-linecap="square"
+          x1="90" y1="30" x2="90" y2="90"
+          stroke="black" stroke-width="20"/>
+
+    <path d="M30,30 L30,90 M60,30 L60,90 M90,30 L90,90"
+          stroke="white" />
+</svg>
+ +

Live sample

+ +

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

+ +

要素

+ +

以下の要素で stroke-linecap を使うことができます

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