Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PreDrawEvent

The 'predraw' event is emitted on actors, scenes, and engine before drawing starts. Actors' predraw happens inside their graphics transform so that all drawing takes place with the actor as the origin.

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

ctx

ctx: CanvasRenderingContext2D

delta

delta: number

other

other: T | null

Other target object for this event

target

target: Actor | Scene | Engine | TileMap

Accessors

bubbles

  • get bubbles(): boolean
  • set bubbles(value: boolean): void
  • If set to false, prevents event from propagating to other actors. If true it will be propagated to all actors that apply.

    Returns boolean

  • If set to false, prevents event from propagating to other actors. If true it will be propagated to all actors that apply.

    Parameters

    • value: boolean

    Returns void

Methods

stopPropagation

  • stopPropagation(): void