Extensions
Extension
Base class for all extensions. Extensions are created via createExtension method from the viewer instance.
Properties
viewer
All extensions hold a reference to the viewer implementation instance that spawned them
Accessors
enabled
All extensions should implement enabling/disabling themselves
inject
Gets the list of extensions that need to get injected on creation time.
This is how an extension declares that it needs other extensions injected.
Injection is automatically done when calling createExtension
Methods
onEarlyUpdate
Update function called before the viewer’s update
onLateUpdate
Update function called after the viewer’s update
onRender
Render function called after the viewer’s render
onResize
Called whenever a resize happens