From 27beb2c4d0805c5e22a2e643db6d40a5a91e0f6f Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Sun, 18 Apr 2021 00:12:25 +0900 Subject: Web/SVG/Element/polygon を更新 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2021/03/25 時点の英語版に同期 --- files/ja/web/svg/element/polygon/index.html | 115 ++++++++++++++++------------ 1 file changed, 68 insertions(+), 47 deletions(-) (limited to 'files') diff --git a/files/ja/web/svg/element/polygon/index.html b/files/ja/web/svg/element/polygon/index.html index 524d9c87fb..5613f69882 100644 --- a/files/ja/web/svg/element/polygon/index.html +++ b/files/ja/web/svg/element/polygon/index.html @@ -1,64 +1,76 @@ --- -title: polygon +title: slug: Web/SVG/Element/polygon +tags: + - Element + - Reference + - SVG + - SVG Graphics translation_of: Web/SVG/Element/polygon ---
{{SVGRef}}
-

<polygon>要素は、直線のセグメントのつながりで構成された閉じた図形を定義します。最後の点は最初の点と結ばれます。開いた図形については{{SVGElement("polyline")}}要素をご覧ください。

+

<polygon> 要素は、接続された一連の直線の区間で構成される閉じた図形を定義します。最後の点は最初の点と結ばれます。

-

使える場所

+

開いた図形については {{SVGElement("polyline")}} 要素をご覧ください。

-

{{svginfo}}

- -

属性

- -

グローバル属性

- - +
+ -

専用属性

+
<svg viewBox="0 0 200 100" xmlns="http://www.w3.org/2000/svg">
+  <!-- 既定で塗りつぶす多角形の例 -->
+  <polygon points="0,100 50,25 50,75 100,0" />
 
-
    -
  • {{SVGAttr("points")}}
  • -
- -

DOMインターフェイス

- -

この要素は{{domxref("SVGPolygonElement")}}インタフェースを実装します。

- -

- -

SVG

- -
<svg width="120" height="120" viewBox="0 0 120 120"
-    xmlns="http://www.w3.org/2000/svg">
-
-  <polygon points="60,20 100,40 100,80 60,100 20,80 20,40"/>
+  <!-- 同じ多角形で線を持ち塗りつぶされない例 -->
+  <polygon points="100,100 150,25 150,75 200,0"
+            fill="none" stroke="black" />
 </svg>
-

結果

+

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

+
+ +

属性

+ +
+
{{SVGAttr('points')}}
+
この属性は多角形を描くのに必要な点 (絶対座標の x,y の組) のリストを定義します。
+ 値の型: <number>+ ; 既定値: ""; アニメーション:
+
{{SVGAttr("pathLength")}}
+
This attribute lets specify the total length for the path, in user units.
+ 値の型: <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
+
+ +

使い方メモ

-

{{EmbedLiveSample("Example", 120, 120)}}
polygon.svg

+

{{svginfo}}

-

仕様

+

仕様書

- - - + + + @@ -70,19 +82,28 @@ translation_of: Web/SVG/Element/polygon - +
仕様策定状況コメント仕様書状態備考
{{SpecName('SVG1.1', 'shapes.html#PolygonElement', '<polygon>')}} {{Spec2('SVG1.1')}}初期定義初回定義
-

ブラウザ実装状況

+

ブラウザーの互換性

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

-

関連情報

+

関連情報

-- cgit v1.2.3-54-g00ecf