skinview3d/types/viewer.d.ts

46 lines
977 B
TypeScript
Raw Normal View History

2018-02-04 16:23:27 +01:00
import * as THREE from 'three'
import { CompositeAnimation, WalkAnimation } from './animation'
import { Animation } from './animation'
import { PlayerObject } from './model'
2018-02-04 15:15:03 +01:00
interface SkinViewerOptions {
domElement: Element
2018-02-04 16:23:27 +01:00
animation?: Animation
2018-02-04 15:15:03 +01:00
slim?: boolean
skinUrl?: string
capeUrl?: string
width?: number
height?: number
}
export class SkinViewer {
skinUrl: string
capeUrl: string
width: number
height: number
2018-02-04 16:23:27 +01:00
readonly domElement: Element
animation: Animation
animationPaused: boolean
animationTime: number
readonly playerObject: PlayerObject
readonly disposed: boolean
readonly camera: THREE.Camera
readonly renderer: THREE.Renderer
readonly scene: THREE.Scene
2018-02-04 15:15:03 +01:00
constructor(options: SkinViewerOptions)
setSize(width: number, height: number): void
dispose(): void
}
export class SkinControl {
2018-02-04 16:23:27 +01:00
enableAnimationControl: boolean
readonly skinViewer: SkinViewer
2018-02-04 15:15:03 +01:00
constructor(skinViewer: SkinViewer)
dispose(): void
}