Skip to main content

projection

TypeProjection
Defaultfalse
Added inv4.0.0

Projection for displaying panorama image/video.
A list of the available projections and how to use each projection can be found in the Projection Guide.

Example

import View360, { EquirectProjection } from "@egjs/view360";

const viewer = new View360("#el_id", {
projection: new EquirectProjection({
src: "URL_TO_PANO_IMAGE_OR_VIDEO"
})
})
{
projection: new EquirectProjection({
src: "/pano/equirect/veste.jpg",
})
}