Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PostDrawEvent<U>

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

Type parameters

  • U

Hierarchy

Index

Constructors

constructor

Properties

Protected _name

_name: string = ""

Protected _path

_path: Actor[] = []

Holds the whole path from the Root to the event target

bubbles

bubbles: boolean = true

determines, if event bubbles to the target's ancestors

ctx

ctx: CanvasRenderingContext2D

delta

delta: number

other

other: U | null

Other target object for this event

target

target: Actor | Scene | Engine | TileMap

Accessors

eventPath

  • get eventPath(): Actor[]

name

  • get name(): string

Methods

Protected _onActionEnd

  • _onActionEnd(_actor?: Actor): void

Protected _onActionStart

  • _onActionStart(_actor?: Actor): void

action

  • action(): void

layPath

  • layPath(actor: Actor): void

propagate

  • propagate(): void

stopPropagation

  • stopPropagation(): void