Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FrameSprite

Hierarchy

Implements

Index

Constructors

constructor

Properties

Private _beforeSurface

_beforeSurface: Surface

Private _hasTouchableChildren

_hasTouchableChildren: boolean

Private _lastUsedIndex

_lastUsedIndex: number

Private _matrix

_matrix: Matrix

Private _stretchMatrix

_stretchMatrix: Matrix

Private _targetCameras

_targetCameras: Camera[]

Private _timer

_timer: Timer

angle

angle: number

children

children: E[]

compositeOperation

compositeOperation: CompositeOperation

frameNumber

frameNumber: number

frames

frames: number[]

height

height: number

id

id: number

interval

interval: 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 _changeFrame

  • _changeFrame(): void
  • Returns void

Private _disableTouchPropagation

  • _disableTouchPropagation(): void

Private _enableTouchPropagation

  • _enableTouchPropagation(): void

Private _free

  • _free(): void
  • Returns void

Private _isTargetOperation

Private _onAnimatingStarted

  • _onAnimatingStarted(): void

Private _onAnimatingStopped

  • _onAnimatingStopped(): void

Private _onElapsed

  • _onElapsed(): 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

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

start

  • start(): void
  • Returns void

stop

  • stop(): void
  • Returns void

visible

  • visible(): boolean
  • Returns boolean

Static createBySprite

  • Parameters

    • sprite: Sprite
    • Optional width: number
    • Optional height: number

    Returns FrameSprite

Generated using TypeDoc