Skip to main content

initialYaw

Typenumber
Default0
Added inv4.0.0

Initial yaw(Y-axis rotation) value.

If the absolute value is in the range of 0-180,
The viewer will look to the left if initialYaw > 0 and to the right if initialYaw < 0.

There is no restriction on the numerical range, but it is stored within the range of 0~360 when actual yaw is set.
For example, 300 is used for -60 and 60 for 420 as the actual value.

Example

{
initialYaw: 60,
projection: new EquirectProjection({
src: "/pano/equirect/veste.jpg",
})
}
{
initialYaw: -60,
projection: new EquirectProjection({
src: "/pano/equirect/veste.jpg",
})
}