ICanvasTile
Extends ITile.
Interface for tiles that can be displayed in the canvas object's 2d context.
Constructor | Fields | Events | Methods
Constructor
ICanvasTile(url)
Parameters:
|
Parameter |
Default value |
Description |
|
|
— |
Type: String Tile URL. |
* Mandatory parameter/option.
Fields
|
Name |
Type |
Description |
|
Event manager. Inherited from IEventEmitter. |
Events
|
Name |
Description |
|
Tile ready event. Inherited from ITile. |
Methods
|
Name |
Returns |
Description |
|
destroy() |
Destroys the tile. Inherited from ITile. |
|
|
isReady() |
Boolean |
Checks tile readiness. Inherited from ITile. |
|
renderAt(context, canvasSize, bounds[, animate]) |
Draws an image tile in the canvas object's 2d context. |
Methods details
renderAt
{} renderAt(context, canvasSize, bounds[, animate])
Draws an image tile in the canvas object's 2d context.
Parameters:
|
Parameter |
Default value |
Description |
|
— |
Type: Object 2D context of the canvas object. |
|
|
— |
Type: Number[] Dimensions of the canvas HTML element. |
|
|
— |
Type: Number[][] Area in client coordinates where the tile should be drawn. |
|
|
false |
Type: Boolean If true, rendering is animated; if false, it is not. |
* Mandatory parameter/option.
Mandatory parameter/option.