Class: ContextFactory

Context. ContextFactory

Factory to create a context

new ContextFactory()

Methods


<static> create(type, configuration, options)

Factory to create a context. Creates a context based on :
  • the context type CONTEXT,
  • the global Mizar's configuration,
  • the options for the specific context
Parameters:
Name Type Description
type CONTEXT Type of animation.
configuration Object see options.configuration for Mizar
options Object See options.planetContext or options.skyContext configuration for Mizar
Throws:
Type not valid - a valid type is included in the list CONTEXT
Type
RangeError
Returns:
- the object to handle an animation
Type
Context