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

The point's horizontal coordinate, x.


The point's vertical coordinate, y.


The point's depth coordinate, z.


The point's perspective value, w.


toJSON(): Dynamic

Returns a JSON representation of the DOMPointReadOnly object.

Returns
Dynamic

new(?x: Float = 0.0, ?y: Float = 0.0, ?z: Float = 0.0, ?w: Float = 1.0): Void
Name Type Default
x Float 0.0
y Float 0.0
z Float 0.0
w Float 1.0