提交 5c38b0e6 编写于 作者: J Jerome Etienne 提交者: GitHub

Merge pull request #126 from marcellkiss/feature/npm-example

adjusts three.js/contribs/npm and adds type definition file initiative
此差异已折叠。
// TODO: continue and replace 'any'-s to exact types.
export class ARClickability {
constructor(sourceElement: any);
computeIntersects: (DOMEvent: any, objects: any) => any;
onResize: () => any;
update: () => any;
};
export class ArBaseControls {
constructor(object3d: any);
addEventListener: (type: any, listener: any) => {};
hasEventListener: (type: any, listener: any) => {};
removeEventListener: (type: any, listener: any) => {};
dispatchEvent: (event: any) => {};
name: () => {};
update: () => {};
};
export class ArMarkerCloak {
constructor(videoTexture: any);
fragmentShader: any;
markerSpaceShaderFunction: any;
vertexShader: any;
}
export class ArMarkerControls {
constructor(context: any, object3d: any, parameters: any);
}
export class ArMarkerHelper {
constructor(markerControls: any);
}
export class ArMultiMakersLearning {
constructor(arToolkitContext: any, subMarkersControls: any);
}
export class ArMultiMarkerControls {
constructor(arToolkitContext: any, object3d: any, parameters: any);
}
export const ArMultiMarkerUtils = {
}
export class ArSmoothedControls {
constructor(object3d: any, parameters: any);
}
export class ArToolkitContext {
constructor(parameters: any);
}
export class ArToolkitProfile {
constructor();
}
export class ArToolkitSource {
constructor(parameters: any);
}
export class ArVideoInWebgl {
constructor(videoTexture: any);
}
export as namespace THREEx;
\ No newline at end of file
......@@ -2,7 +2,7 @@
"name": "ar.js",
"version": "1.0.1",
"description": "Augmented Reality for the Web",
"main": "index.js",
"main": "build/ar.js",
"repository": {
"type": "git",
"url": "git+https://github.com/jeromeetienne/ar.js.git"
......@@ -13,5 +13,8 @@
"bugs": {
"url": "https://github.com/jeromeetienne/ar.js/issues"
},
"homepage": "https://github.com/jeromeetienne/ar.js"
}
"homepage": "https://github.com/jeromeetienne/ar.js",
"dependencies": {
"three": "0.86.0"
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册