Skip to main content
The first thing you’ll need is a container for the viewer and a javascript/typescript script which will run the viewer code. We’ll create a simple HTML and a simple typescript file
Basic Setup HTML
Now save this HTML snippet as index.html Next we’ll create the typescript file:
Basic Setup JavaScript
Now save this typescript snippet asindex.ts You can run the live example here or below:

Basic Setup Example

Last modified on July 18, 2026