--- title: ellipse slug: Web/SVG/Element/ellipse tags: - Element - Reference - SVG - SVG Graphics translation_of: Web/SVG/Element/ellipse ---
ellipse 要素は SVG の基本的な図形であり、中心となる座標と x 方向と y 方向の半径両方を指定し、楕円を生成します。
注記: 楕円要素は楕円の傾きを指定することはできません (例えば、45 度の角度で傾斜した楕円を描画したい場合)、しかし {{SVGAttr("transform")}} 属性を使用することで回転させることは可能です。
html,body,svg { height:100% }
<svg viewBox="0 0 200 100" xmlns="http://www.w3.org/2000/svg"> <ellipse cx="100" cy="50" rx="100" ry="50" /> </svg>
{{EmbedLiveSample('LiveSample', 100, '100%')}}
0; アニメーション: yes0; アニメーション: yesauto|<length>|<percentage> ; デフォルト値: auto; アニメーション: yesauto|<length>|<percentage> ; デフォルト値: auto; アニメーション: yes注記: SVG2 以降、cx、cy、rx、ry は、Geometry Properties であり、これらの属性は要素の CSS プロパティとして使用することもできます。
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#EllipseElement', '<ellipse>')}} | {{Spec2('SVG2')}} | rx と ry に auto を追加 |
| {{SpecName('SVG1.1', 'shapes.html#EllipseElement', '<ellipse>')}} | {{Spec2('SVG1.1')}} | 最初の定義 |
{{Compat("svg.elements.ellipse")}}