Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ResolutionPolicy

method

constructor

param

The content strategy

param

The content strategy

Hierarchy

  • ResolutionPolicy

Index

Constructors

constructor

Properties

Private _containerStrategy

_containerStrategy: null | ContainerStrategy

Private _contentStrategy

_contentStrategy: null | ContentStrategy

name

name: string = "ResolutionPolicy"

Static ContainerStrategy

ContainerStrategy: ContainerStrategy

Static ContentStrategy

ContentStrategy: ContentStrategy

Static EXACT_FIT

EXACT_FIT: number

Static FIXED_HEIGHT

FIXED_HEIGHT: number

Static FIXED_WIDTH

FIXED_WIDTH: number

Static NO_BORDER

NO_BORDER: number

Static SHOW_ALL

SHOW_ALL: number

Static UNKNOWN

UNKNOWN: number

Accessors

canvasSize

  • get canvasSize(): any

Methods

apply

  • apply(_view: any, designedResolution: any): object
  • 调用策略方法

    method

    apply

    Parameters

    • _view: any

      The target view

    • designedResolution: any

      The user defined design resolution

    Returns object

    An object contains the scale X/Y values and the viewport rect

    • scale: number[]

postApply

  • postApply(_view: any): void

preApply

  • preApply(_view: any): void

setContainerStrategy

  • setContainerStrategy(containerStg: any): void

setContentStrategy

  • setContentStrategy(contentStg: any): void

Generated using TypeDoc