height property

num height

The height of this display object with the applied transformation.

Setting the height may change the scaleX, scaleY, skewX and skewY properties, depending on the previously applied transformation.

Implementation

num get height => this.boundsTransformed.height;
void height= (num value)

Implementation

set height(num value) {
  var bounds = this.bounds;
  var matrix = this.transformationMatrix;
  var boundsTransformed = matrix.transformRectangle(bounds, bounds);
  var scale = value / boundsTransformed.height;
  var mb = scale.isFinite ? matrix.b * scale : 0.0;
  var md = scale.isFinite ? matrix.d * scale : 1.0;
  _reverseMatrix(matrix.a, mb, matrix.c, md);
}