DOMPoint class
A object represents a 2D or 3D point in a coordinate system; it includes values for the coordinates in up to three dimensions, as well as an optional perspective value. is based on DOMPointReadOnly but allows its properties' values to be changed. In general, a positive x component represents a position to the right of the origin, a positive y component is downward from the origin, and a positive z component extends outward from the screen (in other words, toward the user).
DOMPointReadOnly
DOMPoint
- Implemented types
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- DOMPoint([dynamic x = 0, dynamic y = 0, dynamic z = 0, dynamic w = 1])
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- w ↔ dynamic
-
Available on DOMPoint, provided by the PropsDOMPoint extension
getter/setter pair - w → dynamic
-
Available on DOMPointReadOnly, provided by the PropsDOMPointReadOnly extension
no setter - x ↔ dynamic
-
Available on DOMPoint, provided by the PropsDOMPoint extension
getter/setter pair - x → dynamic
-
Available on DOMPointReadOnly, provided by the PropsDOMPointReadOnly extension
no setter - y ↔ dynamic
-
Available on DOMPoint, provided by the PropsDOMPoint extension
getter/setter pair - y → dynamic
-
Available on DOMPointReadOnly, provided by the PropsDOMPointReadOnly extension
no setter - z ↔ dynamic
-
Available on DOMPoint, provided by the PropsDOMPoint extension
getter/setter pair - z → dynamic
-
Available on DOMPointReadOnly, provided by the PropsDOMPointReadOnly extension
no setter
Methods
-
matrixTransform(
[DOMMatrixInit? matrix]) → DOMPoint -
Available on DOMPointReadOnly, provided by the PropsDOMPointReadOnly extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJSON(
) → dynamic -
Available on DOMPointReadOnly, provided by the PropsDOMPointReadOnly extension
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromPoint(
[DOMPointInit? other]) → DOMPoint -
override