rfw2d
    Preparing search index...

    Class CanvasResizer

    Applies a HTMLCanvasElement | canvas element's actual size to its width and height properties to ensure correct render dimensions.

    Index

    Constructors

    Accessors

    Methods

    Constructors

    Accessors

    Methods

    • Observe the resizer's canvas for size changes. Default state of the resizer after initialization.

      Returns void

    • Update canvas' width and height properties if its size changed.

      Returns boolean

      true if resized