blob: 51791cfcdf0cb0f62166d167ff2656f2f8d22053 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// 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
[
Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
optional unrestricted double z = 0, optional unrestricted double w = 1),
Exposed=(Window,Worker),
Serializable
] interface DOMPointReadOnly {
[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] DOMPoint matrixTransform(optional DOMMatrixInit matrix);
[CallWith=ScriptState, ImplementedAs=toJSONForBinding] object toJSON();
};