Maps API for JavaScript Developer's Guide

H.util.kinetics.IKinetics

Interface Summary

This interface defines kinetic move parameters used by the map for kinetic drag.

[ For full details, see the Interface Details ]

Property Summary

Table 1. Properties
Properties

power : {number}

This property hods the value of the power multiplier. It is used to increase the speed of the kinetic move. By default the map uses 1.

duration : {number}

This property hold the value indicating the duration of the kinetic move.

Method Summary

Table 2. Methods
Methods

ease (progress) : {number}

This method defines an easing function that modifies the progress of an animation. For example, it can modify the animation in a way it starts rapidly and then slows down towards the end.

Interface Description

This interface defines kinetic move parameters used by the map for kinetic drag.

Property Details

power: {number}

This property hods the value of the power multiplier. It is used to increase the speed of the kinetic move. By default the map uses 1.

duration: {number}

This property hold the value indicating the duration of the kinetic move.

Method Details

ease (progress) : {number}

This method defines an easing function that modifies the progress of an animation. For example, it can modify the animation in a way it starts rapidly and then slows down towards the end.

It is similar to CSS transition timing function. More information at https://developer.mozilla.org/en-US/docs/Web/CSS/single-transition-timing-function.

Several predefined implementations of this function can be found at H.util.animation.ease namespace.

Parameters:
 
progress:
{number}
 
A value from [0..1] range indicating the current progress
Returns:
 
{number}
A value indicating the modified progress