WireItLibrary

WireIt  0.6.0

WireItLibrary > WireIt > WireIt.CanvasContainer
Search:
 
Filters

Class WireIt.CanvasContainer - extends WireIt.Container

Container that draw into a canvas. (Draw an Ellipse by default, override the drawCanvas method to customize)

Constructor

WireIt.CanvasContainer ( options , layer )
Parameters:
options <Object>
layer <WireIt.Layer>

Properties

className - String

CSS class name for the container element
Default Value: ""WireIt-Container WireIt-CanvasContainer"

ddHandle - Boolean

(only if draggable) boolean indicating we use a handle for drag'n drop
Default Value: false

height - Integer

initial height of the container
Default Value: 100

width - Integer

initial width of the container
Default Value: 200

xtype - String

String representing this class for exporting as JSON
Default Value: "WireIt.CanvasContainer"

Methods

drawCanvas

void drawCanvas ( )
Draw the canvas

onResize

void onResize ( )
On resize, resize the canvas element and redraw it

render

void render ( )
Add the image property as a background image for the container


Copyright © 2010 Eric Abouaf All rights reserved.