[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/ja/docs/Web/API/DOMPointReadOnly [Back]  [Original]

DOMPointReadOnly - Web API | MDN

MDN Web Docs

View in English Always switch to English

DOMPointReadOnly

Baseline

20201

DOMPointReadOnly DOMPoint 2D 3D

:

DOMPointReadOnly 2

js
/* 2D */
const point2D = new DOMPointReadOnly(50, 50);

/* 3D */
const point3D = new DOMPointReadOnly(50, 50, 25);

/* 3D  */
const point3DPerspective = new DOMPointReadOnly(100, 100, 100, 1.0);

DOMPointReadOnly.fromPoint()

js
const point = DOMPointReadOnly.fromPoint({ x: 100, y: 100, z: 50, w: 1.0 });


Web Proxy Viewer  |  New URL  |  Original Page