height property

num get height

These attributes return the dimensions of the OffscreenCanvas object's bitmap.

They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).

MDN Reference

Implementation

_i2.num get height => _i4.getProperty(
      this,
      'height',
    );
set height (num value)

Implementation

set height(_i2.num value) {
  _i4.setProperty(
    this,
    'height',
    value,
  );
}