add missing type definition

This commit is contained in:
yushijinhun 2019-12-28 21:14:45 +08:00
parent de40fa0196
commit f9d7a9185c
No known key found for this signature in database
GPG Key ID: 5BC167F73EA558E4
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ export class SkinViewer {
window.requestAnimationFrame(() => this.draw());
}
setSize(width, height) {
setSize(width: number, height: number) {
this.camera.aspect = width / height;
this.camera.updateProjectionMatrix();
this.renderer.setSize(width, height);