blob: fc84bc4a90e737f777c4070f30170a5a9392448a [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
[
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();
};