| // 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), |
| RuntimeEnabled=GeometryInterfaces, |
| ] 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); |
| |
| serializer = { attribute }; |
| }; |