Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ContentStrategy

ContentStrategy class is the root strategy class of content's scale strategy, it controls the behavior of how to scale the scene and setup the viewport for the game

class

ContentStrategy

Hierarchy

  • ContentStrategy

Index

Constructors

constructor

Properties

Private _result

_result: AdaptResult

name

name: string = "ContentStrategy"

Static EXACT_FIT

EXACT_FIT: any

Static FIXED_HEIGHT

FIXED_HEIGHT: any

Static FIXED_WIDTH

FIXED_WIDTH: any

Static NO_BORDER

NO_BORDER: any

Static SHOW_ALL

SHOW_ALL: any

Methods

buildResult

  • buildResult(containerW: any, containerH: any, contentW: any, contentH: any, scaleX: any, scaleY: any): AdaptResult

apply

postApply

  • postApply(_view: View): void

preApply

  • preApply(_view: View): void

Generated using TypeDoc