Skip to content

Latest commit

 

History

History
executable file
·
44 lines (26 loc) · 1.21 KB

File metadata and controls

executable file
·
44 lines (26 loc) · 1.21 KB

Class: VirtualTour

new VirtualTour(containerElement, sceneData, imageDirectory)

Parameters:

Name Type Description
containerElement String ID of the HTML element that should contain the tour
sceneData String Path of a json file that contains the structure of the tour
imageDirectory String Path of the directory that contains the 360-degree images (optional)

Source: VirtualTour.js, line 12

Learn how to structure the .json tourFile here.

Methods

start()

Starts the animation of the virtual tour

Source: VirtualTour.js, line 243


stop()

Stops the animation of the virtual tour

Source: VirtualTour.js, line 249


setContainer(elementId)

Changes the HTML element containing the virtual tour

Parameters:

Name Type Description
elementId String HTML element ID

Source: VirtualTour.js, line 253