Specify param type of createOrbitControls

This commit is contained in:
yushijinhun 2018-08-16 19:28:03 +08:00
parent 204420dab9
commit 07c927952c
No known key found for this signature in database
GPG Key ID: 5BC167F73EA558E4
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
import * as THREE from "three"; import * as THREE from "three";
import { SkinViewer } from "./viewer";
const STATE = { const STATE = {
NONE: - 1, NONE: - 1,
@ -714,7 +715,7 @@ interface ThreeEvent extends Event {
keyCode: number; keyCode: number;
} }
export function createOrbitControls(skinViewer) { export function createOrbitControls(skinViewer : SkinViewer) {
const control = new OrbitControls(skinViewer.camera, skinViewer.renderer.domElement); const control = new OrbitControls(skinViewer.camera, skinViewer.renderer.domElement);
// default configuration // default configuration