principalPointWithEasing static method
- List<
Point2DKeyframe> keyframes, - Easing easing,
- KeyframeInterpolationMode interpolationMode
Creates a map camera principal point keyframe track.
It enables animations on the pixel point where the map camera's target is placed in view coordinates. (0,0) is top left of the viewport, (viewport width, viewport height) is bottom right.
-
keyframesThe list of keyframes that specify how the camera property is changed. Point values must be in screen (pixel) coordinates with origin (0,0) in the top left of the viewport. Point values outside of viewport boundaries will be clamped to the viewport boundaries during animation. Keyframe time offsets are considered to be relative to the previous keyframe in the list or relative to the start of the animation if the current keyframe is first in the list. Time offset of the first keyframe in the list should be 0, otherwise an error occurs and creation of the keyframe track will fail. -
easingThe easing to apply during keyframe interpolation. -
interpolationModeThe type of interpolation done between keyframe values.
Returns MapCameraKeyframeTrack. A keyframe track over the principal point.
Throws MapCameraKeyframeTrackInstantiationException. Indicates an instantiation issue.
Implementation
static MapCameraKeyframeTrack principalPointWithEasing(List<Point2DKeyframe> keyframes, Easing easing, KeyframeInterpolationMode interpolationMode) => $prototype.principalPointWithEasing(keyframes, easing, interpolationMode);