Interface Display

Index

Methods

Methods

public absX(x: number): number

Parameters

  • x: number

Returns

number

public absY(y: number): number

Parameters

  • y: number

Returns

number

public blitImage(x: number, y: number, width: number, height: number, arr: Array<any>, offset: number)

Parameters

  • x: number
  • y: number
  • width: number
  • height: number
  • arr: Array<any>
  • offset: number

public blitRgbImage(x: number, y: number, width: number, height: number, arr: Array<any>, offset: number)

Parameters

  • x: number
  • y: number
  • width: number
  • height: number
  • arr: Array<any>
  • offset: number

public blitStringImage(str: string, x: number, y: number)

Parameters

  • str: string
  • x: number
  • y: number

public clear()

public copyImage(old_x: number, old_y: number, new_x: number, new_y: number, w: number, h: number): any

Parameters

  • old_x: number
  • old_y: number
  • new_x: number
  • new_y: number
  • w: number
  • h: number

Returns

any

public drawImage(img: HTMLImageElement, x: number, y: number)

Parameters

  • img: HTMLImageElement
  • x: number
  • y: number

public fillRect(x: number, y: number, width: number, height: number, color: Array<number>): any

Parameters

  • x: number
  • y: number
  • width: number
  • height: number
  • color: Array<number>

Returns

any

public finishTile()

public getCleanDirtyReset(): NvCleanDirtyBox

Returns

NvCleanDirtyBox

public get_context(): CanvasRenderingContext2D

Returns

CanvasRenderingContext2D

public get_height(): number

Returns

number

public get_width(): number

Returns

number

public renderQ_push(action: NvRenderAction)

Parameters

public resize(width: number, height: number)

Parameters

  • width: number
  • height: number

public set_height(val: number)

Parameters

  • val: number

public set_scale(scale: number)

Parameters

  • scale: number

public set_width(val: number)

Parameters

  • val: number

public startTile(x: number, y: number, width: number, height: number, color: Array<number>): any

Parameters

  • x: number
  • y: number
  • width: number
  • height: number
  • color: Array<number>

Returns

any

public subTile(x: number, y: number, w: number, h: number, color: Array<number>): any

Parameters

  • x: number
  • y: number
  • w: number
  • h: number
  • color: Array<number>

Returns

any

public viewportChange(deltaX: number, deltaY: number, width: number, height: number)

Parameters

  • deltaX: number
  • deltaY: number
  • width: number
  • height: number