new Billboard(options)
Name | Type | Description | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
optional
Options:
|
Extends
- BaseBillboard
Members
-
protected_heightnumber
-
Billboard screen height.
-
protected_imageObject
-
Image object.
-
protected_srcstring
-
Image src.
-
protected_widthnumber
-
Billboard screen width.
Methods
-
getHeight(){number}
-
Gets billboard screen height.
Returns:
Type Description number -
getSize(){Object}
-
Returns billboard screen size.
Returns:
Type Description Object -
getWidth(){number}
-
Gets billboard screen width.
Returns:
Type Description number -
setHeight(height)
-
Sets billboard screen heigh.
Name Type Description height
number Height. -
setImage(image)
-
Sets image object.
Name Type Description image
Object JavaScript image object. -
setSize(width, height)
-
Sets billboard screen size in pixels.
Name Type Description width
number Billboard width. height
number Billboard height. -
setSrc(src)
-
Sets billboard image url source.
Name Type Description src
string Image url. -
setWidth(width)
-
Sets billboard screen width.
Name Type Description width
number Width.