# Class: RenderEvent

This documentation is for OpenLayers v10.9.0. The latest is v.

## ol/render/Event~RenderEvent

### Extends

- BaseEvent

### Members

#### context{CanvasRenderingContext2D} {OffscreenCanvasRenderingContext2D} {WebGLRenderingContext} {undefined}

  Canvas context. Not available when the event is dispatched by the map. For Canvas 2D layers, the context will be the 2D rendering context. For WebGL layers, the context will be the WebGL context.

#### frameState{FrameState} {undefined}

  An object representing the current render frame state.

#### inversePixelTransform{Transform} {undefined}

  Transform from CSS pixels (relative to the top-left corner of the map viewport) to rendered pixels on this event's `context`. Only available when a Canvas renderer is used, null otherwise.

#### target{Object}

  The event target.

#### type{string}

  The event type.

### Methods

#### preventDefault() inherited

events/Event.js, line 50

  Prevent default. This means that no emulated `click`, `singleclick` or `doubleclick` events will be fired.

#### stopPropagation() inherited

events/Event.js, line 58

  Stop event propagation.

### Events

#### change inherited

events/EventType.js, line 10

  Generic change event. Triggered when the revision counter is increased.

#### error inherited

events/EventType.js, line 17

  Generic error event. Triggered when an error occurs.

#### postcompose

render/EventType.js, line 32

  Triggered after layers are composed. When dispatched by the map, the event object will not have a `context` set. When dispatched by a layer, the event object will have a `context` set. Only WebGL layers currently dispatch this event.

#### postrender

render/EventType.js, line 16

  Triggered after a layer is rendered.

#### precompose

render/EventType.js, line 23

  Triggered before layers are composed. When dispatched by the map, the event object will not have a `context` set. When dispatched by a layer, the event object will have a `context` set. Only WebGL layers currently dispatch this event.

#### prerender

render/EventType.js, line 9

  Triggered before a layer is rendered.

#### rendercomplete

render/EventType.js, line 41

  Triggered when rendering is complete, i.e. all sources and tiles have finished loading for the current viewport, and all tiles are faded in. The event object will not have a `context` set.