canvasLab

canvasLab

{Object} canvasLab CanvasLab core application

Constructor

new canvasLab()

Description:
  • Create a canvasLab object
Source:
Properties:
Name Type Description
canvas Object Main canvas context
canvases Array Array of all canvas contexts
font string Main font type

Methods

animate()

Description:
  • Animate the transition passed
Source:
Properties:
Name Type Description
transition Transition Transition animation

application() → {Application}

Description:
  • Returns this application
Source:
Returns:
Canvas Lab application
Type
Application

canvas(value)

Description:
  • Set canvas value
Source:
Parameters:
Name Type Description
value string Canvas identifier

canvas() → {string}

Description:
  • Get canvas value
Source:
See:
  • discrete.canvas
Returns:
Canvas identifier
Type
string

canvases(canvasId)

Description:
  • Set canvas value
Source:
Parameters:
Name Type Description
canvasId string Canvas identifier

canvases() → {Array}

Description:
  • Set canvas value
Source:
Returns:
Array of canvas contexts
Type
Array

center() → {Point}

Description:
  • Returns the center X & Y coordinates of the present canvas
Source:
Returns:
Center X & Y coordinates
Type
Point

dom() → {Object}

Description:
  • Get dom details
Source:
Returns:
DOM details
Type
Object

font(font)

Description:
  • Set main font type
Source:
Parameters:
Name Type Description
font string Main font type

font() → {string}

Description:
  • Get main font type
Source:
Returns:
font Main font type
Type
string

get() → {Object}

Description:
  • Get getters
Source:
Returns:
Get getters
Type
Object

rotation(value)

Description:
  • Sets rotation property value
Source:
Parameters:
Name Type Description
value number Rotation value

rotation() → {number}

Description:
  • Get rotation property value
Source:
Returns:
Rotation value
Type
number