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
16 lines
495 B
Plaintext
16 lines
495 B
Plaintext
import { supportsLinearEasing } from '../../../utils/supports/linear-easing.mjs';
|
|
import { isGenerator } from '../../generators/utils/is-generator.mjs';
|
|
|
|
function applyGeneratorOptions({ type, ...options }) {
|
|
if (isGenerator(type) && supportsLinearEasing()) {
|
|
return type.applyToOptions(options);
|
|
}
|
|
else {
|
|
options.duration ?? (options.duration = 300);
|
|
options.ease ?? (options.ease = "easeOut");
|
|
}
|
|
return options;
|
|
}
|
|
|
|
export { applyGeneratorOptions };
|