DOMMatrix class

The interface represents 4×4 matrices, suitable for 2D and 3D operations including rotation and translation. It is a mutable version of the DOMMatrixReadOnly interface. WebKitCSSMatrix is an alias to . This interface should be available inside web workers, though some implementations don't allow it yet.

DOMMatrixReadOnly

DOMMatrix

Implemented types
Available extensions
Annotations
  • @experimental
  • @JS()
  • @staticInterop

Constructors

DOMMatrix([dynamic init])
factory

Properties

a ↔ dynamic

Available on DOMMatrix, provided by the PropsDOMMatrix extension

getter/setter pair
a → dynamic

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

no setter
b ↔ dynamic

Available on DOMMatrix, provided by the PropsDOMMatrix extension

getter/setter pair
b → dynamic

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

no setter
c ↔ dynamic

Available on DOMMatrix, provided by the PropsDOMMatrix extension

getter/setter pair
c → dynamic

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

no setter
d ↔ dynamic

Available on DOMMatrix, provided by the PropsDOMMatrix extension

getter/setter pair
d → dynamic

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

no setter
e ↔ dynamic

Available on DOMMatrix, provided by the PropsDOMMatrix extension

getter/setter pair
e → dynamic

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

no setter
f ↔ dynamic

Available on DOMMatrix, provided by the PropsDOMMatrix extension

getter/setter pair
f → dynamic

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

no setter
hashCode int
The hash code for this object.
no setterinherited
is2D bool

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

no setter
isIdentity bool

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

no setter
m11 ↔ dynamic

Available on DOMMatrix, provided by the PropsDOMMatrix extension

getter/setter pair
m11 → dynamic

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

no setter
m12 → dynamic

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

no setter
m12 ↔ dynamic

Available on DOMMatrix, provided by the PropsDOMMatrix extension

getter/setter pair
m13 ↔ dynamic

Available on DOMMatrix, provided by the PropsDOMMatrix extension

getter/setter pair
m13 → dynamic

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

no setter
m14 ↔ dynamic

Available on DOMMatrix, provided by the PropsDOMMatrix extension

getter/setter pair
m14 → dynamic

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

no setter
m21 → dynamic

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

no setter
m21 ↔ dynamic

Available on DOMMatrix, provided by the PropsDOMMatrix extension

getter/setter pair
m22 → dynamic

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

no setter
m22 ↔ dynamic

Available on DOMMatrix, provided by the PropsDOMMatrix extension

getter/setter pair
m23 → dynamic

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

no setter
m23 ↔ dynamic

Available on DOMMatrix, provided by the PropsDOMMatrix extension

getter/setter pair
m24 → dynamic

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

no setter
m24 ↔ dynamic

Available on DOMMatrix, provided by the PropsDOMMatrix extension

getter/setter pair
m31 → dynamic

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

no setter
m31 ↔ dynamic

Available on DOMMatrix, provided by the PropsDOMMatrix extension

getter/setter pair
m32 ↔ dynamic

Available on DOMMatrix, provided by the PropsDOMMatrix extension

getter/setter pair
m32 → dynamic

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

no setter
m33 ↔ dynamic

Available on DOMMatrix, provided by the PropsDOMMatrix extension

getter/setter pair
m33 → dynamic

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

no setter
m34 ↔ dynamic

Available on DOMMatrix, provided by the PropsDOMMatrix extension

getter/setter pair
m34 → dynamic

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

no setter
m41 ↔ dynamic

Available on DOMMatrix, provided by the PropsDOMMatrix extension

getter/setter pair
m41 → dynamic

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

no setter
m42 ↔ dynamic

Available on DOMMatrix, provided by the PropsDOMMatrix extension

getter/setter pair
m42 → dynamic

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

no setter
m43 → dynamic

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

no setter
m43 ↔ dynamic

Available on DOMMatrix, provided by the PropsDOMMatrix extension

getter/setter pair
m44 ↔ dynamic

Available on DOMMatrix, provided by the PropsDOMMatrix extension

getter/setter pair
m44 → dynamic

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

flipX() DOMMatrix

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

flipY() DOMMatrix

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

inverse() DOMMatrix

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

invertSelf() DOMMatrix

Available on DOMMatrix, provided by the PropsDOMMatrix extension

mToString() String

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

multiply([DOMMatrixInit? other]) DOMMatrix

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

multiplySelf([DOMMatrixInit? other]) DOMMatrix

Available on DOMMatrix, provided by the PropsDOMMatrix extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
preMultiplySelf([DOMMatrixInit? other]) DOMMatrix

Available on DOMMatrix, provided by the PropsDOMMatrix extension

rotate([dynamic rotX = 0, dynamic rotY, dynamic rotZ]) DOMMatrix

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

rotateAxisAngle([dynamic x = 0, dynamic y = 0, dynamic z = 0, dynamic angle = 0]) DOMMatrix

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

rotateAxisAngleSelf([dynamic x = 0, dynamic y = 0, dynamic z = 0, dynamic angle = 0]) DOMMatrix

Available on DOMMatrix, provided by the PropsDOMMatrix extension

rotateFromVector([dynamic x = 0, dynamic y = 0]) DOMMatrix

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

rotateFromVectorSelf([dynamic x = 0, dynamic y = 0]) DOMMatrix

Available on DOMMatrix, provided by the PropsDOMMatrix extension

rotateSelf([dynamic rotX = 0, dynamic rotY, dynamic rotZ]) DOMMatrix

Available on DOMMatrix, provided by the PropsDOMMatrix extension

scale([dynamic scaleX = 1, dynamic scaleY, dynamic scaleZ = 1, dynamic originX = 0, dynamic originY = 0, dynamic originZ = 0]) DOMMatrix

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

scale3d([dynamic scale = 1, dynamic originX = 0, dynamic originY = 0, dynamic originZ = 0]) DOMMatrix

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

scale3dSelf([dynamic scale = 1, dynamic originX = 0, dynamic originY = 0, dynamic originZ = 0]) DOMMatrix

Available on DOMMatrix, provided by the PropsDOMMatrix extension

scaleNonUniform([dynamic scaleX = 1, dynamic scaleY = 1]) DOMMatrix

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

scaleSelf([dynamic scaleX = 1, dynamic scaleY, dynamic scaleZ = 1, dynamic originX = 0, dynamic originY = 0, dynamic originZ = 0]) DOMMatrix

Available on DOMMatrix, provided by the PropsDOMMatrix extension

setMatrixValue(String transformList) DOMMatrix

Available on DOMMatrix, provided by the PropsDOMMatrix extension

skewX([dynamic sx = 0]) DOMMatrix

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

skewXSelf([dynamic sx = 0]) DOMMatrix

Available on DOMMatrix, provided by the PropsDOMMatrix extension

skewY([dynamic sy = 0]) DOMMatrix

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

skewYSelf([dynamic sy = 0]) DOMMatrix

Available on DOMMatrix, provided by the PropsDOMMatrix extension

toFloat32Array() Float32List

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

toFloat64Array() Float64List

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

toJSON() → dynamic

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

toString() String
A string representation of this object.
inherited
transformPoint([DOMPointInit? point]) DOMPoint

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

translate([dynamic tx = 0, dynamic ty = 0, dynamic tz = 0]) DOMMatrix

Available on DOMMatrixReadOnly, provided by the PropsDOMMatrixReadOnly extension

translateSelf([dynamic tx = 0, dynamic ty = 0, dynamic tz = 0]) DOMMatrix

Available on DOMMatrix, provided by the PropsDOMMatrix extension

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromFloat32Array(Float32List array32) DOMMatrix
override
fromFloat64Array(Float64List array64) DOMMatrix
override
fromMatrix([DOMMatrixInit? other]) DOMMatrix
override