DOMPointReadOnly: y プロパティ

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.

DOMPointReadOnly インターフェイスの y プロパティは、空間の読み取り専用の点における垂直座標 y を保持します。

もし、スクリプトでこのプロパティの値を変更する必要がある場合は、代わりに DOMPoint オブジェクトを使用 してください。

一般的に、変換によって反転していないとみなすならば、正の値の y は下方向を意味し、負の値の y は上方向を意味します。

この点の y 座標の値を示す倍精度浮動小数点値。この値は無制限であり、無限大または無効であることが許されます(つまり、その値は NaN または ±Infinity である可能性があります)。

仕様書

Specification
Geometry Interfaces Module Level 1
# dom-dompointreadonly-y

ブラウザーの互換性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
y

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

関連情報

  • その他の座標プロパティ: x, z, および視点位置である w