Show:

annie.CanvasRender Class

Extends annie.AObject
Module: annie

Available since 1.0.0

Canvas 渲染器

Methods

begin

() public

Defined in libs/CanvasRender.js:41

Available since 1.0.0

开始渲染时执行

beginMask

(
  • target
)
public

Defined in libs/CanvasRender.js:59

Available since 1.0.0

开始有遮罩时调用

Parameters:

CanvasRender

(
  • stage
)
public

Defined in libs/CanvasRender.js:21

Available since 1.0.0

Parameters:

destroy

() Void public

Inherited from annie.AObject: libs/EventDispatcher.js:55

Available since 2.0.0

销毁一个对象 销毁之前一定要做完其他善后工作,否则有可能会出错

Returns:

Void:

draw

(
  • target
)
public

Defined in libs/CanvasRender.js:108

Available since 1.0.0

调用渲染

Parameters:

endMask

() public

Defined in libs/CanvasRender.js:99

Available since 1.0.0

结束遮罩时调用

init

() public

Defined in libs/CanvasRender.js:133

Available since 1.0.0

初始化渲染器

reSize

() public

Defined in libs/CanvasRender.js:150

Available since 1.0.0

当舞台尺寸改变时会调用

Properties

instanceId

Number public

Inherited from annie.AObject: libs/EventDispatcher.js:23

Available since 1.0.0

每一个annie引擎对象都会有一个唯一的id码。

Example:

 //获取 annie引擎类对象唯一码
 console.log(this.instanceId);

instanceType

String public

Inherited from annie.AObject: libs/EventDispatcher.js:41

Available since 1.0.3

每一个annie类都有一个实例类型字符串,通过这个字符串,你能知道这个实例是从哪个类实例而来

rootContainer

Any public

Defined in libs/CanvasRender.js:29

Available since 1.0.0

渲染器所在最上层的对象

Default: null