Skip to content

MipmapElement

Overview

Class MipmapElement

Size and raster data for levels in a mipmap. See also type Mipmap in Imageable.ts. Defined in phet-core instead of scenery because it is loaded upstream and should not have any downstream dependencies such as scenery.

@author Sam Reid (PhET Interactive Simulations)

import { MipmapElement } from 'scenerystack/chipper';

Constructor

new MipmapElement( width : number, height : number, url : string, lock )

Instance Methods

Instance Properties

width : number

(readonly)

height : number

(readonly)

url : string

(readonly)

img : HTMLImageElement

(readonly)

canvas : HTMLCanvasElement

(readonly)

Source Code

See the source for MipmapElement.ts in the chipper repository.