chromium/third_party/blink/renderer/core/geometry/dom_point_read_only.idl

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://drafts.fxtf.org/geometry/#dompointreadonly

[
    Exposed=(Window,Worker),
    Serializable
] interface DOMPointReadOnly {
    constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
                optional unrestricted double z = 0, optional unrestricted double w = 1);
    [NewObject] static DOMPointReadOnly fromPoint(optional DOMPointInit other = {});

    readonly attribute unrestricted double x;
    readonly attribute unrestricted double y;
    readonly attribute unrestricted double z;
    readonly attribute unrestricted double w;

    [RaisesException, NewObject] DOMPoint matrixTransform(optional DOMMatrixInit matrix = {});

    [CallWith=ScriptState, ImplementedAs=toJSONForBinding] object toJSON();
};