ERROR_CODES
Error codes of View360Error
const ERROR_CODES: {
CANVAS_NOT_FOUND: 3;
ELEMENT_NOT_FOUND: 2;
FAILED_CREATE_CONTEXT_2D: 5;
FAILED_LINKING_PROGRAM: 7;
INSUFFICIENT_ARGS: 8;
PROVIDE_PROJECTION_FIRST: 6;
WEBGL_NOT_SUPPORTED: 4;
WRONG_OPTION: 1;
WRONG_TYPE: 0
}
Properties
Couldn't find canvas element inside the given container element.
The element with given CSS selector does not exist
Failed creating canvas 2D context
Failed linking WebGL program. Only can be thrown when debug is true
.
Arguments are not sufficient for the given property.
init()
is called before setting projection
The browser does not support WebGL
The given value is not a supported option
The given value's type is not expected
Properties
CANVAS_NOT_FOUND
CANVAS_NOT_FOUND3
Couldn't find canvas element inside the given container element.
ELEMENT_NOT_FOUND
ELEMENT_NOT_FOUND2
The element with given CSS selector does not exist
FAILED_CREATE_CONTEXT_2D
FAILED_CREATE_CONTEXT_2D5
Failed creating canvas 2D context
FAILED_LINKING_PROGRAM
FAILED_LINKING_PROGRAM7
Failed linking WebGL program. Only can be thrown when debug is true
.
INSUFFICIENT_ARGS
INSUFFICIENT_ARGS8
Arguments are not sufficient for the given property.
PROVIDE_PROJECTION_FIRST
PROVIDE_PROJECTION_FIRST6
init()
is called before setting projection
WEBGL_NOT_SUPPORTED
WEBGL_NOT_SUPPORTED4
The browser does not support WebGL
WRONG_OPTION
WRONG_OPTION1
The given value is not a supported option
WRONG_TYPE
WRONG_TYPE0
The given value's type is not expected