fa-canvas-surface
This directive creates a Famo.us CanvasSurface.
Usage
<fa-canvas-surface fa-size="[400,400]">
</fa-canvas-surface>
API
Attr | Type | Details |
---|---|---|
faSize |
String
|
Array that passes width and height to the canvas |
Example
To use fa-canvas-surface
, declare an fa-size
attribute with an array containing width and height.
<fa-canvas-surface
fa-size="[400,400]"
class="main-canvas"
>
</fa-canvas-surface>
Fa-canvas-surface
accepts classes and faSize, the only two attributes HTML5 canvas requires is width and height.