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: FloatThe point's horizontal coordinate, x.
y: FloatThe point's vertical coordinate, y.
z: FloatThe point's depth coordinate, z.
w: FloatThe point's perspective value, w.
toJSON(): DynamicReturns 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 |