aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/svg/attribute/stroke-linecap/index.html
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/svg/attribute/stroke-linecap/index.html
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/ja/web/svg/attribute/stroke-linecap/index.html')
-rw-r--r--files/ja/web/svg/attribute/stroke-linecap/index.html73
1 files changed, 73 insertions, 0 deletions
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
+---
+<p>« <a href="/ja/docs/Web/SVG/Attribute" title="ja/docs/Web/SVG/Attribute">SVG 属性リファレンスホーム</a></p>
+
+<p><code>stroke-linecap</code> 要素は線を引いた時の開いている部分パスの終端の形状を指定します。</p>
+
+<p>プレゼンテーション属性であるため、直接 CSS スタイルシートの中で定義したプロパティとして使うこともできます。</p>
+
+<h2 id="使用可能な場所">使用可能な場所</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th scope="row">カテゴリ</th>
+ <td>プレゼンテーション属性</td>
+ </tr>
+ <tr>
+ <th scope="row">値</th>
+ <td>butt | round | square | inherit</td>
+ </tr>
+ <tr>
+ <th scope="row">アニメーション</th>
+ <td>Yes</td>
+ </tr>
+ <tr>
+ <th scope="row">標準文書</th>
+ <td><a class="external" href="http://www.w3.org/TR/SVG/painting.html#StrokeLinecapProperty" title="http://www.w3.org/TR/SVG/painting.html#StrokeLinecapProperty">SVG 1.1 (2nd Edition)</a></td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Example" name="Example">例</h2>
+
+<pre class="brush: html">&lt;?xml version="1.0"?&gt;
+&lt;svg width="120" height="120"
+ viewBox="0 0 120 120" version="1.1"
+ xmlns="http://www.w3.org/2000/svg"&gt;
+
+ &lt;line stroke-linecap="butt"
+ x1="30" y1="30" x2="30" y2="90"
+ stroke="black" stroke-width="20"/&gt;
+
+ &lt;line stroke-linecap="round"
+ x1="60" y1="30" x2="60" y2="90"
+ stroke="black" stroke-width="20"/&gt;
+
+ &lt;line stroke-linecap="square"
+ x1="90" y1="30" x2="90" y2="90"
+ stroke="black" stroke-width="20"/&gt;
+
+ &lt;path d="M30,30 L30,90 M60,30 L60,90 M90,30 L90,90"
+ stroke="white" /&gt;
+&lt;/svg&gt;</pre>
+
+<p><strong>Live sample</strong></p>
+
+<p>{{ EmbedLiveSample('Example','120','120') }}</p>
+
+<h2 id="要素">要素</h2>
+
+<p>以下の要素で <code>stroke-linecap</code> を使うことができます</p>
+
+<ul>
+ <li><a href="/ja/docs/Web/SVG/Element#Shape" title="ja/docs/Web/SVG/Element#Shape">Shape 要素</a> »</li>
+ <li><a href="/ja/docs/Web/SVG/Element#TextContent" title="ja/docs/Web/SVG/Element#TextContent">Text content 要素</a> »</li>
+</ul>