@bvdmitri/web360 / viewAt
Function: viewAt()
viewAt(
keyframes,time):View
Defined in: web360/src/views.ts:71
The view a keyframed path shows at time, in seconds.
Parameters
keyframes
readonly ViewKeyframe[]
time
number
Returns
Remarks
Each part of the view follows a smooth curve through the keyframes that never overshoots between two of them, keeps moving through a keyframe when the path carries on, and eases into the first and out of the last; before the first and after the last the path holds them. The pan turns the short way round. The keyframes may come in any order. An empty path throws a RangeError.