Module: ol/easing

ol/easing


import * as olEasing from 'ol/easing';

函数s

easeIn(t){number}

import {easeIn} from 'ol/easing';

开始慢,然后加速。

Name Type Description
t number

0 到 1 之间的输入值。

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

easeOut(t){number}

import {easeOut} from 'ol/easing';

开始快,然后减速。

Name Type Description
t number

0 到 1 之间的输入值。

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

inAndOut(t){number}

import {inAndOut} from 'ol/easing';

开始慢,加速,然后再减速。

Name Type Description
t number

0 到 1 之间的输入值。

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

linear(t){number}

import {linear} from 'ol/easing';

随时间保持匀速。

Name Type Description
t number

0 到 1 之间的输入值。

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

upAndDown(t){number}

import {upAndDown} from 'ol/easing';

开始慢,加速,在最后再减速。这与 inAndOut 具有相同的总体行为,但最终的减速被延迟了。

Name Type Description
t number

0 到 1 之间的输入值。

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