回答

0

这是你如何创建一个观众

opts = { controls: { mouseViewMode: "drag" } } 
const viewer = new Marzipano.Viewer(document.getElementById(domID), opts); 

let defaultCubeGeometry = [{ tileSize: 256, size: 256, fallbackOnly: true }, { tileSize: 1024, size: 1024 }]; 
let cubeGeometry = new Marzipano.CubeGeometry(defaultCubeGeometry); 

let limiter = return new Marzipano.util.compose(
    Marzipano.RectilinearView.limit.resolution(resolution), 
    Marzipano.RectilinearView.limit.vfov(vfov.min, vfov.max), 
    Marzipano.RectilinearView.limit.hfov(vfov.min, vfov.max), 
    Marzipano.RectilinearView.limit.pitch(pitch.min, pitch.max) 
); 

let initialView = { yaw:0, pitch:0, roll:0 }; 
let view = new Marzipano.RectilinearView(initialView, limiter); 
let source = new Marzipano.ImageUrlSource.fromString(imageUrl); 
let scene = viewer.createScene({ source, geometry, view }); 
scene.switchTo(); 

这应该是观众

的完成初始化