Guidesv3.2 API Referencev3.1 API Reference

Interface: IKinetics

Interface: IKinetics

Interface: IKinetics

H.util.kinetics.IKinetics

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

Members

duration number

This property hold the value indicating the duration of the kinetic move. By default the map uses 600.

power number

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

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.

It is similar to CSS transition timing function.

Several predefined implementations of this function can be found at H.util.animation.ease namespace. By default the map uses H.util.animation.ease.EASE_OUT_QUAD.

Name Type Description
progress number

A value from [0…1] range indicating the current progress

Returns:
Type Description
number A value indicating the modified progress