Skip to content

DomMatrix ​

class DomMatrix extends DomMatrixReadOnly

Annotations: @Native.new("DOMMatrix")

Inheritance

Object → DomMatrixReadOnly → DomMatrix

Constructors ​

DomMatrix() factory ​

factory DomMatrix([Object? init])
Implementation
dart
factory DomMatrix([Object? init]) {
  if (init != null) {
    return DomMatrix._create_1(init);
  }
  return DomMatrix._create_2();
}

Properties ​

a read / write override-getter ​

num? get a
Implementation
dart
num? get a native;

set a(num? value) native;

b read / write override-getter ​

num? get b
Implementation
dart
num? get b native;

set b(num? value) native;

c read / write override-getter ​

num? get c
Implementation
dart
num? get c native;

set c(num? value) native;

d read / write override-getter ​

num? get d
Implementation
dart
num? get d native;

set d(num? value) native;

e read / write override-getter ​

num? get e
Implementation
dart
num? get e native;

set e(num? value) native;

f read / write override-getter ​

num? get f
Implementation
dart
num? get f native;

set f(num? value) native;

hashCode no setter inherited ​

int get hashCode

Inherited from Interceptor.

Implementation
dart
int get hashCode => Primitives.objectHashCode(this);

is2D no setter inherited ​

bool? get is2D

Inherited from DomMatrixReadOnly.

Implementation
dart
bool? get is2D native;

isIdentity no setter inherited ​

bool? get isIdentity

Inherited from DomMatrixReadOnly.

Implementation
dart
bool? get isIdentity native;

m11 read / write override-getter ​

num? get m11
Implementation
dart
num? get m11 native;

set m11(num? value) native;

m12 read / write override-getter ​

num? get m12
Implementation
dart
num? get m12 native;

set m12(num? value) native;

m13 read / write override-getter ​

num? get m13
Implementation
dart
num? get m13 native;

set m13(num? value) native;

m14 read / write override-getter ​

num? get m14
Implementation
dart
num? get m14 native;

set m14(num? value) native;

m21 read / write override-getter ​

num? get m21
Implementation
dart
num? get m21 native;

set m21(num? value) native;

m22 read / write override-getter ​

num? get m22
Implementation
dart
num? get m22 native;

set m22(num? value) native;

m23 read / write override-getter ​

num? get m23
Implementation
dart
num? get m23 native;

set m23(num? value) native;

m24 read / write override-getter ​

num? get m24
Implementation
dart
num? get m24 native;

set m24(num? value) native;

m31 read / write override-getter ​

num? get m31
Implementation
dart
num? get m31 native;

set m31(num? value) native;

m32 read / write override-getter ​

num? get m32
Implementation
dart
num? get m32 native;

set m32(num? value) native;

m33 read / write override-getter ​

num? get m33
Implementation
dart
num? get m33 native;

set m33(num? value) native;

m34 read / write override-getter ​

num? get m34
Implementation
dart
num? get m34 native;

set m34(num? value) native;

m41 read / write override-getter ​

num? get m41
Implementation
dart
num? get m41 native;

set m41(num? value) native;

m42 read / write override-getter ​

num? get m42
Implementation
dart
num? get m42 native;

set m42(num? value) native;

m43 read / write override-getter ​

num? get m43
Implementation
dart
num? get m43 native;

set m43(num? value) native;

m44 read / write override-getter ​

num? get m44
Implementation
dart
num? get m44 native;

set m44(num? value) native;

runtimeType no setter inherited ​

Type get runtimeType

Inherited from Interceptor.

Implementation
dart
Type get runtimeType =>
    getRuntimeTypeOfInterceptorNotArray(getInterceptor(this), this);

Methods ​

flipX() inherited ​

DomMatrix flipX()

Inherited from DomMatrixReadOnly.

Implementation
dart
DomMatrix flipX() native;

flipY() inherited ​

DomMatrix flipY()

Inherited from DomMatrixReadOnly.

Implementation
dart
DomMatrix flipY() native;

inverse() inherited ​

DomMatrix inverse()

Inherited from DomMatrixReadOnly.

Implementation
dart
DomMatrix inverse() native;

invertSelf() ​

DomMatrix invertSelf()
Implementation
dart
DomMatrix invertSelf() native;

multiply() inherited ​

DomMatrix multiply([Map<dynamic, dynamic>? other])

Inherited from DomMatrixReadOnly.

Implementation
dart
DomMatrix multiply([Map? other]) {
  if (other != null) {
    var other_1 = convertDartToNative_Dictionary(other);
    return _multiply_1(other_1);
  }
  return _multiply_2();
}

multiplySelf() ​

DomMatrix multiplySelf([Map<dynamic, dynamic>? other])
Implementation
dart
DomMatrix multiplySelf([Map? other]) {
  if (other != null) {
    var other_1 = convertDartToNative_Dictionary(other);
    return _multiplySelf_1(other_1);
  }
  return _multiplySelf_2();
}

noSuchMethod() inherited ​

dynamic noSuchMethod(Invocation invocation)

Invoked when a nonexistent method or property is accessed.

A dynamic member invocation can attempt to call a member which doesn't exist on the receiving object. Example:

dart
dynamic object = 1;
object.add(42); // Statically allowed, run-time error

This invalid code will invoke the noSuchMethod method of the integer 1 with an Invocation representing the .add(42) call and arguments (which then throws).

Classes can override noSuchMethod to provide custom behavior for such invalid dynamic invocations.

A class with a non-default noSuchMethod invocation can also omit implementations for members of its interface. Example:

dart
class MockList<T> implements List<T> {
  noSuchMethod(Invocation invocation) {
    log(invocation);
    super.noSuchMethod(invocation); // Will throw.
  }
}
void main() {
  MockList().add(42);
}

This code has no compile-time warnings or errors even though the MockList class has no concrete implementation of any of the List interface methods. Calls to List methods are forwarded to noSuchMethod, so this code will log an invocation similar to Invocation.method(#add, [42]) and then throw.

If a value is returned from noSuchMethod, it becomes the result of the original invocation. If the value is not of a type that can be returned by the original invocation, a type error occurs at the invocation.

The default behavior is to throw a NoSuchMethodError.

Inherited from Interceptor.

Implementation
dart
dynamic noSuchMethod(Invocation invocation) {
  throw NoSuchMethodError.withInvocation(this, invocation);
}

preMultiplySelf() ​

DomMatrix preMultiplySelf([Map<dynamic, dynamic>? other])
Implementation
dart
DomMatrix preMultiplySelf([Map? other]) {
  if (other != null) {
    var other_1 = convertDartToNative_Dictionary(other);
    return _preMultiplySelf_1(other_1);
  }
  return _preMultiplySelf_2();
}

rotate() inherited ​

DomMatrix rotate([num? rotX, num? rotY, num? rotZ])

Inherited from DomMatrixReadOnly.

Implementation
dart
DomMatrix rotate([num? rotX, num? rotY, num? rotZ]) native;

rotateAxisAngle() inherited ​

DomMatrix rotateAxisAngle([num? x, num? y, num? z, num? angle])

Inherited from DomMatrixReadOnly.

Implementation
dart
DomMatrix rotateAxisAngle([num? x, num? y, num? z, num? angle]) native;

rotateAxisAngleSelf() ​

DomMatrix rotateAxisAngleSelf([num? x, num? y, num? z, num? angle])
Implementation
dart
DomMatrix rotateAxisAngleSelf([num? x, num? y, num? z, num? angle]) native;

rotateFromVector() inherited ​

DomMatrix rotateFromVector([num? x, num? y])

Inherited from DomMatrixReadOnly.

Implementation
dart
DomMatrix rotateFromVector([num? x, num? y]) native;

rotateFromVectorSelf() ​

DomMatrix rotateFromVectorSelf([num? x, num? y])
Implementation
dart
DomMatrix rotateFromVectorSelf([num? x, num? y]) native;

rotateSelf() ​

DomMatrix rotateSelf([num? rotX, num? rotY, num? rotZ])
Implementation
dart
DomMatrix rotateSelf([num? rotX, num? rotY, num? rotZ]) native;

scale() inherited ​

DomMatrix scale([
  num? scaleX,
  num? scaleY,
  num? scaleZ,
  num? originX,
  num? originY,
  num? originZ,
])

Inherited from DomMatrixReadOnly.

Implementation
dart
DomMatrix scale([
  num? scaleX,
  num? scaleY,
  num? scaleZ,
  num? originX,
  num? originY,
  num? originZ,
]) native;

scale3d() inherited ​

DomMatrix scale3d([num? scale, num? originX, num? originY, num? originZ])

Inherited from DomMatrixReadOnly.

Implementation
dart
DomMatrix scale3d([
  num? scale,
  num? originX,
  num? originY,
  num? originZ,
]) native;

scale3dSelf() ​

DomMatrix scale3dSelf([num? scale, num? originX, num? originY, num? originZ])
Implementation
dart
DomMatrix scale3dSelf([
  num? scale,
  num? originX,
  num? originY,
  num? originZ,
]) native;

scaleSelf() ​

DomMatrix scaleSelf([
  num? scaleX,
  num? scaleY,
  num? scaleZ,
  num? originX,
  num? originY,
  num? originZ,
])
Implementation
dart
DomMatrix scaleSelf([
  num? scaleX,
  num? scaleY,
  num? scaleZ,
  num? originX,
  num? originY,
  num? originZ,
]) native;

setMatrixValue() ​

DomMatrix setMatrixValue(String transformList)
Implementation
dart
DomMatrix setMatrixValue(String transformList) native;

skewX() inherited ​

DomMatrix skewX([num? sx])

Inherited from DomMatrixReadOnly.

Implementation
dart
DomMatrix skewX([num? sx]) native;

skewXSelf() ​

DomMatrix skewXSelf([num? sx])
Implementation
dart
DomMatrix skewXSelf([num? sx]) native;

skewY() inherited ​

DomMatrix skewY([num? sy])

Inherited from DomMatrixReadOnly.

Implementation
dart
DomMatrix skewY([num? sy]) native;

skewYSelf() ​

DomMatrix skewYSelf([num? sy])
Implementation
dart
DomMatrix skewYSelf([num? sy]) native;

toFloat32Array() inherited ​

Float32List toFloat32Array()

Inherited from DomMatrixReadOnly.

Implementation
dart
Float32List toFloat32Array() native;

toFloat64Array() inherited ​

Float64List toFloat64Array()

Inherited from DomMatrixReadOnly.

Implementation
dart
Float64List toFloat64Array() native;

toString() inherited ​

String toString()

A string representation of this object.

Some classes have a default textual representation, often paired with a static parse function (like int.parse). These classes will provide the textual representation as their string representation.

Other classes have no meaningful textual representation that a program will care about. Such classes will typically override toString to provide useful information when inspecting the object, mainly for debugging or logging.

Inherited from Interceptor.

Implementation
dart
String toString() => Primitives.objectToHumanReadableString(this);

transformPoint() inherited ​

DomPoint transformPoint([Map<dynamic, dynamic>? point])

Inherited from DomMatrixReadOnly.

Implementation
dart
DomPoint transformPoint([Map? point]) {
  if (point != null) {
    var point_1 = convertDartToNative_Dictionary(point);
    return _transformPoint_1(point_1);
  }
  return _transformPoint_2();
}

translate() inherited ​

DomMatrix translate([num? tx, num? ty, num? tz])

Inherited from DomMatrixReadOnly.

Implementation
dart
DomMatrix translate([num? tx, num? ty, num? tz]) native;

translateSelf() ​

DomMatrix translateSelf([num? tx, num? ty, num? tz])
Implementation
dart
DomMatrix translateSelf([num? tx, num? ty, num? tz]) native;

Operators ​

operator ==() inherited ​

bool operator ==(Object other)

The equality operator.

The default behavior for all Objects is to return true if and only if this object and other are the same object.

Override this method to specify a different equality relation on a class. The overriding method must still be an equivalence relation. That is, it must be:

  • Total: It must return a boolean for all arguments. It should never throw.

  • Reflexive: For all objects o, o == o must be true.

  • Symmetric: For all objects o1 and o2, o1 == o2 and o2 == o1 must either both be true, or both be false.

  • Transitive: For all objects o1, o2, and o3, if o1 == o2 and o2 == o3 are true, then o1 == o3 must be true.

The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.

If a subclass overrides the equality operator, it should override the hashCode method as well to maintain consistency.

Inherited from Interceptor.

Implementation
dart
bool operator ==(Object other) => identical(this, other);

Static Methods ​

fromFloat32Array() override ​

DomMatrix fromFloat32Array(Float32List array32)
Implementation
dart
static DomMatrix fromFloat32Array(Float32List array32) native;

fromFloat64Array() override ​

DomMatrix fromFloat64Array(Float64List array64)
Implementation
dart
static DomMatrix fromFloat64Array(Float64List array64) native;

fromMatrix() override ​

DomMatrix fromMatrix([Map<dynamic, dynamic>? other])
Implementation
dart
static DomMatrix fromMatrix([Map? other]) {
  if (other != null) {
    var other_1 = convertDartToNative_Dictionary(other);
    return _fromMatrix_1(other_1);
  }
  return _fromMatrix_2();
}