17 lines
540 B
Plaintext
17 lines
540 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 };
|
|
//# sourceMappingURL=apply-generator.mjs.map
|