
import { Animation } from './animation.uts'
import { UXCreateAnimationOptions } from '../../types/types.uts'

export class Anim {
	
	/**
	 * 创建动画
	 */
	createAnimation(options : UXCreateAnimationOptions = {} as UXCreateAnimationOptions) : Animation {
		// #ifdef APP || WEB
		return new Animation(options)
		// #endif
		// #ifndef APP || WEB
		// @ts-ignore
		return uni.createAnimation({ ...(options ?? {}) })
		// #endif
	}
}