The Voyager 3D Story tool is designed to be used as a single page client-side application. Sample HTML documents are provided as part of the distributable package.
The application can be launched via custom HTML element, or by creating an instance of the application class and attaching it to a DOM element.
Both the custom HTML element and the application class can be customized using the following properties. Properties can be provided as URL variables, as attributes of the custom HTML element, or by providing a properties object as an argument to the application constructor.
|root||String/URL||Path to the root folder (base folder for all assets)|
|document||String/URL||Path to the JSON document to load (relative to the root folder).|
|model||String/URL||URL of a model (supported formats: gltf, glb) to load and display at startup (relative to the root folder).|
|geometry||String/URL||URL of a geometry (supported formats: obj, ply) to load and display at startup (relative to the root folder).|
|texture||String/URL||If a geometry URL is given, optional URL of a color texture to use with the geometry (relative to the root folder).|
|quality||“Thumb”, “Low”, “Medium”, “High”, “Highest”||For a model/geometry/texture: The quality level of the generated derivative.|
|referrer||String/URL||The page URL to navigate to when the user exits the story tool.|
|mode||“QC”, “Author”, “Expert”||Launch in “qc” mode to edit/QC an item. Launch in “author” mode to author items and presentations. Launch in “expert” mode to get access to all tasks/for debugging|
Example 1: launching the Story tool via custom HTML element
Example 2: launching the Story tool via application class