new Callout( definition: ) → {Callout}

Description
Creates a Callout
Parameters
Name Type Description
definition: CalloutDefinition describes an instance of a callout
Returns

Members


drawables :Array.<Drawable>

Description
A list of drawable objects owned by the callout

element :HTMLElement

Description
HTML element representing the callout onscreen

definition :CalloutDefinition

Description
The CalloutDefinition that defines the callout

size :Object

Description
Size of the HTML element

Methods


release()

Description
Cleans up listeners, allowing for garbage collection

createElement()

Description
Creates HTML element

animateIn()

Description
Triggers an animation bringing the callout in. Override for custom behavior.

animateOut( onComplete )

Description
Triggers an animation bringing the callout out. Override for custom behavior.
Parameters
Name Type Description
onComplete function Function to call when animation is complete. Must be called exactly once.

update( time )

Description
Update function.
Parameters
Name Type Description
time number

setPosition( position )

Description
Positions the callout element onscreen. Override for custom behavior.
Parameters
Name Type Description
position Object