Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Sprite

Hierarchy

Implements

Index

Constructors

constructor

Properties

Private _beforeSurface

_beforeSurface: Surface

Private _hasTouchableChildren

_hasTouchableChildren: boolean

Private _matrix

_matrix: Matrix

Private _stretchMatrix

_stretchMatrix: Matrix

Private _targetCameras

_targetCameras: Camera[]

angle

angle: number

children

children: E[]

compositeOperation

compositeOperation: CompositeOperation

height

height: number

id

id: number

local

local: boolean

message

opacity

opacity: number

parent

parent: E | Scene

pointDown

pointMove

pointUp

scaleX

scaleX: number

scaleY

scaleY: number

scene

scene: Scene

srcHeight

srcHeight: number

srcWidth

srcWidth: number

srcX

srcX: number

srcY

srcY: number

state

surface

surface: Surface

tag

tag: any

targetCameras

targetCameras: Camera[]

touchable

touchable: boolean

update

update: Trigger<void>

width

width: number

x

x: number

y

y: number

Methods

Private _calculateBoundingRect

Private _disableTouchPropagation

  • _disableTouchPropagation(): void

Private _enableTouchPropagation

  • _enableTouchPropagation(): void

Private _isTargetOperation

Private _onAnimatingStarted

  • _onAnimatingStarted(): void
  • Returns void

Private _onAnimatingStopped

  • _onAnimatingStopped(): void
  • Returns void

Private _onUpdate

  • _onUpdate(): void
  • Returns void

Private _updateMatrix

  • _updateMatrix(): void

append

  • append(e: E): void
  • Parameters

    • e: E

    Returns void

calculateBoundingRect

destroy

  • destroy(destroySurface?: boolean): void
  • Parameters

    • Optional destroySurface: boolean

    Returns void

destroyed

  • destroyed(): boolean

findPointSourceByPoint

game

  • Returns Game

getMatrix

hide

  • hide(): void
  • Returns void

insertBefore

  • insertBefore(e: E, target: E): void
  • Parameters

    • e: E
    • target: E

    Returns void

invalidate

  • invalidate(): void
  • Returns void

modified

  • modified(isBubbling?: boolean): void
  • Parameters

    • Optional isBubbling: boolean

    Returns void

moveBy

  • moveBy(x: number, y: number): void
  • Parameters

    • x: number
    • y: number

    Returns void

moveTo

  • moveTo(x: number, y: number): void
  • moveTo(obj: CommonOffset): void
  • Parameters

    • x: number
    • y: number

    Returns void

  • Parameters

    Returns void

remove

  • remove(e?: E): void
  • Parameters

    • Optional e: E

    Returns void

render

  • Parameters

    Returns void

renderSelf

resizeBy

  • resizeBy(width: number, height: number): void
  • Parameters

    • width: number
    • height: number

    Returns void

resizeTo

  • resizeTo(width: number, height: number): void
  • resizeTo(size: CommonSize): void
  • Parameters

    • width: number
    • height: number

    Returns void

  • Parameters

    Returns void

scale

  • scale(scale: number): void
  • Parameters

    • scale: number

    Returns void

shouldFindChildrenByPoint

show

  • show(): void
  • Returns void

visible

  • visible(): boolean
  • Returns boolean

Generated using TypeDoc