模块:ol/easing

ol/easing


import * as olEasing from 'ol/easing';

函数

easeIn(t){number}

import {easeIn} from 'ol/easing';

开始时应缓慢,随后加速。

Name Type 描述
t number

请输入0到1之间的值。

返回:
输出值在0到1之间。

easeOut(t){number}

import {easeOut} from 'ol/easing';

先快后慢。

Name Type 描述
t number

请输入0到1之间的数值。

返回:
输出值在0到1之间。

inAndOut(t){number}

import {inAndOut} from 'ol/easing';

开始时缓慢,随后加速,最后再次减速。

Name Type 描述
t number

请输入0到1之间的数值。

返回:
输出范围在 0 到 1 之间。

linear(t){number}

import {linear} from 'ol/easing';

随时间保持速度恒定。

Name Type 描述
t number

请输入 0 到 1 之间的数值。

返回:
输出值介于0和1之间。

upAndDown(t){number}

import {upAndDown} from 'ol/easing';

开始时缓慢,随后加速,最后再次减速。这与 inAndOut 具有相同的一般行为,但最终减速会延迟。

Name Type 描述
t number

输入值应在0到1之间。

返回:
输出介于 0 和 1 之间。