mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-05 19:12:40 +08:00
11 lines
220 B
TypeScript
11 lines
220 B
TypeScript
import type { Curve } from './track';
|
|
|
|
export function maskIfEmpty<T extends Curve> (curve: T) {
|
|
return curve.keyFramesCount === 0 ? undefined : curve;
|
|
}
|
|
|
|
export interface Range {
|
|
min: number;
|
|
max: number;
|
|
}
|