From 741dc9e3efc2c893b3f2b1d7a93346a7983b9014 Mon Sep 17 00:00:00 2001 From: yushijinhun Date: Fri, 9 Feb 2018 12:44:12 +0800 Subject: [PATCH] export invokeAnimation() --- src/skinview3d.js | 2 +- types/animation.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/skinview3d.js b/src/skinview3d.js index cffcaab..b6d47d2 100644 --- a/src/skinview3d.js +++ b/src/skinview3d.js @@ -25,4 +25,4 @@ export { SkinObject, CapeObject, PlayerObject } from "./model"; export { SkinViewer, SkinControl } from "./viewer"; -export { CompositeAnimation, WalkAnimation } from "./animation"; +export { invokeAnimation, CompositeAnimation, WalkAnimation } from "./animation"; diff --git a/types/animation.d.ts b/types/animation.d.ts index 8308807..20e8620 100644 --- a/types/animation.d.ts +++ b/types/animation.d.ts @@ -6,7 +6,7 @@ interface IAnimation { } export type Animation = AnimationFn | IAnimation; -declare function invokeAnimation( +export function invokeAnimation( animation: Animation, player: PlayerObject, time: number,