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/attribute/marker-mid/index.html | 103 +++++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 files/ja/web/svg/attribute/marker-mid/index.html (limited to 'files/ja/web/svg/attribute/marker-mid') diff --git a/files/ja/web/svg/attribute/marker-mid/index.html b/files/ja/web/svg/attribute/marker-mid/index.html new file mode 100644 index 0000000000..c1fb340feb --- /dev/null +++ b/files/ja/web/svg/attribute/marker-mid/index.html @@ -0,0 +1,103 @@ +--- +title: marker-mid +slug: Web/SVG/Attribute/marker-mid +tags: + - SVG + - SVG Attribute + - SVG 属性 +translation_of: Web/SVG/Attribute/marker-mid +--- +
{{SVGRef}}
+ +

marker-mid 属性は、指定されたシェイプの中間の頂点すべてに描かれる矢印やマーカーを定義します。

+ +

マーカーは、パスデータの最初と最後以外のすべての頂点に描画されます。

+ +

メモ: プレゼンテーション属性なので、 marker-mid は CSS プロパティとして使用することができます。

+ +

プレゼンテーション属性として任意の要素に適用できますが、 {{SVGElement("circle")}}, {{SVGElement("ellipse")}}, {{SVGElement("line")}}, {{SVGElement("path")}}, {{SVGElement("polygon")}}, {{SVGElement("polyline")}}, {{SVGElement("rect")}} の7つの要素でのみ効果があります。

+ +
+ + +
<svg viewBox="0 0 120 120" xmlns="http://www.w3.org/2000/svg">
+  <defs>
+    <marker id="circle" markerWidth="8" markerHeight="8" refX="4" refY="4">
+        <circle cx="4" cy="4" r="4" stroke="none" fill="#f00"/>
+    </marker>
+  </defs>
+  <polyline fill="none" stroke="black"
+      points="20,100 40,60 70,80 100,20" marker-mid="url(#circle)"/>
+</svg>
+
+ +

{{EmbedLiveSample("topExample", "200", "200")}}

+
+ +

使用上のメモ

+ + + + + + + + + + + + + + + + +
既定値none | <marker-ref>
none
アニメーション
+ +
+
none
+
指定された頂点にマーカー記号を描画してはならないことを示します。
+
<marker-ref>
+
この値は {{SVGElement("marker")}} 要素への参照で、指定された頂点に描画されるものです。参照が有効でない場合は、マーカーは描画されません。
+
+ +

仕様書

+ + + + + + + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName("SVG2", "painting.html#MarkerEndProperty", "marker-mid")}}{{Spec2("SVG2")}}重要な変更なし
{{SpecName("SVG1.1", "painting.html#MarkerEndProperty", "marker-mid")}}{{Spec2("SVG1.1")}}初回定義
+ +

ブラウザーの互換性

+ + + +

{{Compat("svg.attributes.presentation.marker-mid")}}

+ +

関連情報

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