Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
15 lines
594 B
Plaintext
15 lines
594 B
Plaintext
import { isBezierDefinition } from 'motion-utils';
|
|
import { supportsLinearEasing } from '../../../utils/supports/linear-easing.mjs';
|
|
import { supportedWaapiEasing } from './supported.mjs';
|
|
|
|
function isWaapiSupportedEasing(easing) {
|
|
return Boolean((typeof easing === "function" && supportsLinearEasing()) ||
|
|
!easing ||
|
|
(typeof easing === "string" &&
|
|
(easing in supportedWaapiEasing || supportsLinearEasing())) ||
|
|
isBezierDefinition(easing) ||
|
|
(Array.isArray(easing) && easing.every(isWaapiSupportedEasing)));
|
|
}
|
|
|
|
export { isWaapiSupportedEasing };
|