Add exports
This commit is contained in:
parent
127d2ee7a3
commit
3123646db7
|
|
@ -20,8 +20,11 @@ export {
|
||||||
AnimationFn,
|
AnimationFn,
|
||||||
Animation,
|
Animation,
|
||||||
invokeAnimation,
|
invokeAnimation,
|
||||||
|
|
||||||
|
SubAnimationHandle,
|
||||||
AnimationHandle,
|
AnimationHandle,
|
||||||
CompositeAnimation,
|
CompositeAnimation,
|
||||||
|
RootAnimation,
|
||||||
|
|
||||||
WalkingAnimation,
|
WalkingAnimation,
|
||||||
RunningAnimation,
|
RunningAnimation,
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ export interface SkinViewerOptions {
|
||||||
export class SkinViewer {
|
export class SkinViewer {
|
||||||
|
|
||||||
public readonly domElement: Node;
|
public readonly domElement: Node;
|
||||||
public readonly animations: RootAnimation;
|
public readonly animations: RootAnimation = new RootAnimation();
|
||||||
public detectModel: boolean = true;
|
public detectModel: boolean = true;
|
||||||
public disposed: boolean = false;
|
public disposed: boolean = false;
|
||||||
|
|
||||||
|
|
@ -111,7 +111,6 @@ export class SkinViewer {
|
||||||
if (options.width) this.width = options.width;
|
if (options.width) this.width = options.width;
|
||||||
if (options.height) this.height = options.height;
|
if (options.height) this.height = options.height;
|
||||||
|
|
||||||
this.animations = new RootAnimation();
|
|
||||||
const draw = () => {
|
const draw = () => {
|
||||||
if (this.disposed) return;
|
if (this.disposed) return;
|
||||||
window.requestAnimationFrame(draw);
|
window.requestAnimationFrame(draw);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue