The main module of Viewer defining major API classes.
Class OccViewer is the main entry point
to WebAssembly module setup and to Viewer initialization.
Example
// Create viewer module object, // where './viewer/' - path to viewer package folder over http. constOccViewerModule = newOccViewer('./viewer/'); // Setup log verbose level. // all messages (for development) OccViewerModule.traceLevel = Message_Gravity.Message_Trace;
// Check if browser supports WASM. if (!OccViewerModule.isWasmSupported()) { varanElement = document.getElementById('output'); anElement.innerHTML += "Browser is too old - WebAssembly support is missing!<br>"; }
// Async viewer initialization function. OccViewerModule.init() .then(() => { // Some business logic }
The main module of Viewer defining major API classes. Class OccViewer is the main entry point to WebAssembly module setup and to Viewer initialization.
Example