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/api/svgelement/index.html | 99 ++++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 files/ja/web/api/svgelement/index.html (limited to 'files/ja/web/api/svgelement') diff --git a/files/ja/web/api/svgelement/index.html b/files/ja/web/api/svgelement/index.html new file mode 100644 index 0000000000..9d54cf9def --- /dev/null +++ b/files/ja/web/api/svgelement/index.html @@ -0,0 +1,99 @@ +--- +title: SVGElement +slug: Web/API/SVGElement +tags: + - API + - Interface + - Reference + - SVG + - SVG DOM + - SVGElement +translation_of: Web/API/SVGElement +--- +
{{APIRef("SVG")}}
+ +

SVG 言語における要素に直接対応する SVG DOM インタフェースのすべては、SVGElement インタフェースから派生しています。

+ +

{{InheritanceDiagram}}

+ +

属性

+ +

Also inherits properties from: {{DOMxRef("Element")}}, {{DOMxRef("HTMLOrForeignElement")}}

+ +
+
{{domxref("SVGElement.dataset")}}{{ ReadOnlyInline }}
+
要素に付与されたカスタム・データ属性に対応する名前つきデータ属性の、キーと値の対のリストを与える、{{domxref("DOMStringMap")}} オブジェクトです。{{SVGAttr("data-*")}} の形の属性を使って、これらの対を SVG で定義することもでき、ここで * は、その対のキーの名前です。これは、HTML の  {{domxref("HTMLElement.dataset")}} 属性および HTML の {{htmlattrxref("data-*")}} グローバル属性とちょうど同様に、うまく機能します。
+
{{DOMxRef("SVGElement.className")}} {{Deprecated_Inline}}{{ReadOnlyInline}}
+
An {{DOMxRef("SVGAnimatedString")}} that reflects the value of the {{SVGAttr("class")}} attribute on the given element, or the empty string if class is not present. This attribute is deprecated and may be removed in a future version of this specification. Authors are advised to use {{DOMxRef("Element.classList")}} instead.
+
{{domxref("SVGElement.ownerSVGElement")}}{{ ReadOnlyInline }}
+
直近の先祖の  {{SVGElement("svg")}} 要素を参照する {{domxref("SVGSVGElement")}} です。もし、与えられた要素が最も外側の <svg> 要素であれば、null  です。
+
{{domxref("SVGElement.viewportElement")}}{{ ReadOnlyInline }}
+
現在のビューポートを確立した  {{domxref("SVGElement")}} です。多くの場合は、直近の先祖の  {{SVGElement("svg")}} 要素です。もし、与えられた要素が最も外側の <svg> 要素であれば、null  です。
+
+ +

メソッド

+ +

SVGElement インタフェースは、追加のメソッドを何も提供しませんが、親から、すなわち  {{domxref("Element")}}, {{DOMxRef("HTMLOrForeignElement")}} から、メソッドを継承しています。

+ +

イベント

+ +

Events

+ +

Listen to these events using addEventListener() or by assigning an event listener to the equivalent on... handler property defined on {{DOMxRef("GlobalEventHandlers")}} or {{DOMxRef("WindowEventHandlers")}}.

+ +
+
abort
+
Fired when page loading is stopped before an SVG element has been allowed to load completely.
+ Also available via the onabort property.
+
error
+
Fired when an SVG element does not load properly or when an error occurs during script execution.
+ Also available via the onerror property.
+
load
+
Fires on an SVGElement when it is loaded in the browser.
+ Also available via the onload property.
+
resize
+
Fired when an SVG document is being resized.
+ Also available via the onresize property.
+
scroll
+
Fired when an SVG document view is being shifted along the X and/or Y axes.
+ Also available via the onscroll property.
+
unload
+
Fired when the DOM implementation removes an SVG document from a window or frame.
+ Also available via the onunload property.
+
+ +

仕様

+ + + + + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName("SVG2", "types.html#InterfaceSVGElement", "SVGElement")}}{{Spec2("SVG2")}}Adds the {{domxref("SVGElement.dataset", "dataset")}} property.
{{SpecName("SVG1.1", "types.html#InterfaceSVGElement", "SVGElement")}}{{Spec2("SVG1.1")}}Initial definition
+ +

ブラウザ互換性

+ + + +

{{Compat("api.SVGElement")}}

+ +

参照

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