skinview3d/types/viewer.d.ts

31 lines
561 B
TypeScript
Raw Normal View History

2018-02-04 15:15:03 +01:00
import { CompositeAnimation, WalkAnimation } from './animation';
interface SkinViewerOptions {
domElement: Element
animation?: CompositeAnimation | typeof WalkAnimation
slim?: boolean
skinUrl?: string
capeUrl?: string
width?: number
height?: number
}
export class SkinViewer {
skinUrl: string
capeUrl: string
width: number
height: number
constructor(options: SkinViewerOptions)
setSize(width: number, height: number): void
dispose(): void
}
export class SkinControl {
constructor(skinViewer: SkinViewer)
dispose(): void
}