ViewerState#

Enumeration ViewerState

The ViewerState describes the current state of a Viewer. The ViewerState is grouped by the ViewerStateCategory which can be discovered by dividing the State by 1000.

const category : ViewerStateCategory = Math.floor(viewerState / 1000);

Enumeration Members

CREATED: 1000

Indicates that the Viewer is created

ERROR: 5000

Indicates a general Error that doesn't match any of the specific ones.

ERROR_WEBGL_CONTEXT_LOST: 5001

Indicates that the Viewer lost the webGL Context. This can happen when your browser decides that your applications uses too many resources.

READY: 3000

Indicates that the Viewer is ready to use.

SETUP: 2000

Indicates that the Viewer is currently setting up the render pipeline.

WARNING: 4000

Indicates a general Warning that doesn't match any of the specific ones.


Did you find this page useful? Please give it a rating:
Thank you for rating this page!
Any issues or feedback?
What kind of problem would you like to report?
Please tell us more about what's wrong: