animation properties

This commit is contained in:
Asaki Yuki 2026-02-24 19:41:51 +07:00
parent eee464dcd7
commit 2c1242a9ad

View file

@ -523,8 +523,8 @@ export function AsepriteFlipBookKeyframe(
} }
// Quick Animation // Quick Animation
type Anim<T extends AnimType> = AnimationProperties<T> | number export type AnimationByType<T extends AnimType> = AnimationProperties<T> | number
type AnimWithSmartAnim<T extends AnimType> = [SmartAnimation | Anim<T>, ...Anim<T>[]] export type AnimWithSmartAnim<T extends AnimType> = [SmartAnimation | AnimationByType<T>, ...AnimationByType<T>[]]
export function OffsetAnimation(...keyframes: AnimWithSmartAnim<AnimType.OFFSET>) { export function OffsetAnimation(...keyframes: AnimWithSmartAnim<AnimType.OFFSET>) {
return new Animation(AnimType.OFFSET, ...keyframes) return new Animation(AnimType.OFFSET, ...keyframes)