DOMPointReadOnly
js.html.DOMPointReadOnly (extern class) → DOMPoint
The DOMPointReadOnly
interface specifies the coordinate and perspective fields used by DOMPoint
to define a 2D or 3D point in a coordinate system.
Documentation DOMPointReadOnly by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
Static Members
fromPoint(?other: Null<DOMPointInit>): DOMPointReadOnly
Name | Type | Default |
---|---|---|
other |
Null<DOMPointInit> | (optional) |
Returns |
---|
DOMPointReadOnly |
Instance Members
x: Float
The point's horizontal coordinate, x
.
y: Float
The point's vertical coordinate, y
.
z: Float
The point's depth coordinate, z
.
w: Float
The point's perspective value, w
.
toJSON(): Dynamic
Returns a JSON representation of the DOMPointReadOnly
object.
Returns |
---|
Dynamic |
Name | Type | Default |
---|---|---|
x |
Float | 0.0 |
y |
Float | 0.0 |
z |
Float | 0.0 |
w |
Float | 1.0 |