MDN self-hosted library · e01.org

DOMPoint: fromPoint() static method

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

js
const mutablePoint = DOMPoint.fromPoint(readOnlyPoint);
js
const center = DOMPoint.fromPoint({ x: 75, y: -50 });