Module hilo/view/Drawable
Requires
hilo/core/Class, hilo/util/util
Source
Drawable.js
Drawable is a wrapper of drawable images.
Property | Defined | |
---|---|---|
image:Object
Image to be drawed, can used by CanvasRenderingContext2D.drawImage,like HTMLImageElement、HTMLCanvasElement、HTMLVideoElement。
|
Drawable | |
rect:array
The retangle area that image will be drawed.
|
Drawable |
Method | Defined | |
---|---|---|
Drawable(properties:Object)
Constructor
|
Drawable | |
init(properties:Object)
Initialize drawable elements.
|
Drawable | |
isDrawable(elem:Object):Boolean
static
Check whether the given 'elem' and be wrapped into Drawable object.
|
Drawable |