Class: Theme

UI.Theme

Theme wrapper

new UI.Theme (settings, canvasWidth, canvasHeight)

Name Type Description
settings Object theme settings JSON
canvasWidth Number canvas width
canvasHeight Number canvas height

Methods

getFontDesc (name)String

UI font descriptor getter
Name Type Description
name String the requested object
Returns:
Type Description
String the built font string.

getProperty (name, property)Object

Standard property getter
Name Type Description
name String the requested object
property String the property
Returns:
Type Description
Object the requested property

getSize (name, property)Number

Standard size getter
Name Type Description
name String the requested object. use width/height for lengths.
property String the property
Returns:
Type Description
Number the requested size