Merge pull request #14705 from SirKhepre/master

Added definitions for the ColladaLoader
This commit is contained in:
anubmat
2017-02-21 14:46:26 -08:00
committed by GitHub
2 changed files with 24 additions and 0 deletions
+1
View File
@@ -22,6 +22,7 @@
/// <reference path="three-vreffect.d.ts" />
/// <reference path="three-ctmloader.d.ts" />
/// <reference path="three-octree.d.ts" />
/// <reference path="three-colladaLoader.d.ts" />
declare namespace THREE {
export const REVISION: string;
+23
View File
@@ -0,0 +1,23 @@
// Type definitions for three.js (ColladaLoader2.js)
// NOTE : These typings are for the loader named ColladaLoader2.js
// supplied by the npm package @types/three 0.81.
// Definitions by: Brandon Roberge
declare namespace THREE {
export interface ColladaLoaderReturnType {
}
export class ColladaModel {
animations: any[];
kinematics: any;
scene: THREE.Scene;
library: any;
}
export class ColladaLoader {
constructor();
load(url: string, onLoad: (model: ColladaModel) => void, onProgress?: (request: ProgressEvent) => void, onError?:(event: ErrorEvent) => void): void;
setCrossOrigin(value: any): void;
parse(text: string): ColladaModel;
}
}