Skip to main content

CanvasResizeEvent

Event emitted when a Canvas reports a new rendered size.

This event is delivered through on_resize and carries the latest measured dimensions in logical pixels.

Inherits: Event

Properties

  • height - New height of the canvas.
  • width - New width of the canvas.

Properties

heightclass-attributeinstance-attribute

height: float = field(metadata={'data_field': 'h'})

New height of the canvas.

widthclass-attributeinstance-attribute

width: float = field(metadata={'data_field': 'w'})

New width of the canvas.