Browse Source

add more undeclared file. All the example should works fine now

lu wang 6 years ago
parent
commit
4674870f56

+ 2 - 2
src/Three.d.ts

@@ -26,7 +26,7 @@ export { Points } from './objects/Points';
 export { Group } from './objects/Group';
 export { VideoTexture } from './textures/VideoTexture';
 export { DataTexture } from './textures/DataTexture';
-//export { DataTexture3D } from './textures/DataTexture3D';
+export { DataTexture3D } from './textures/DataTexture3D';
 export { CompressedTexture } from './textures/CompressedTexture';
 export { CubeTexture } from './textures/CubeTexture';
 export { CanvasTexture } from './textures/CanvasTexture';
@@ -136,7 +136,7 @@ export { PointLightHelper } from './helpers/PointLightHelper';
 export { RectAreaLightHelper } from './helpers/RectAreaLightHelper';
 export { HemisphereLightHelper } from './helpers/HemisphereLightHelper';
 export { GridHelper } from './helpers/GridHelper';
-//export { PolarGridHelper } from './helpers/PolarGridHelper';
+export { PolarGridHelper } from './helpers/PolarGridHelper';
 export { FaceNormalsHelper } from './helpers/FaceNormalsHelper';
 export { DirectionalLightHelper } from './helpers/DirectionalLightHelper';
 export { CameraHelper } from './helpers/CameraHelper';

+ 2 - 2
src/Three.ts

@@ -26,7 +26,7 @@ export { Points } from './objects/Points';
 export { Group } from './objects/Group';
 export { VideoTexture } from './textures/VideoTexture';
 export { DataTexture } from './textures/DataTexture';
-//export { DataTexture3D } from './textures/DataTexture3D';
+export { DataTexture3D } from './textures/DataTexture3D';
 export { CompressedTexture } from './textures/CompressedTexture';
 export { CubeTexture } from './textures/CubeTexture';
 export { CanvasTexture } from './textures/CanvasTexture';
@@ -139,7 +139,7 @@ export { PointLightHelper } from './helpers/PointLightHelper';
 export { RectAreaLightHelper } from './helpers/RectAreaLightHelper';
 export { HemisphereLightHelper } from './helpers/HemisphereLightHelper';
 export { GridHelper } from './helpers/GridHelper';
-//export { PolarGridHelper } from './helpers/PolarGridHelper';
+export { PolarGridHelper } from './helpers/PolarGridHelper';
 export { FaceNormalsHelper } from './helpers/FaceNormalsHelper';
 export { DirectionalLightHelper } from './helpers/DirectionalLightHelper';
 export { CameraHelper } from './helpers/CameraHelper';

+ 1 - 1
src/core/DirectGeometry.d.ts

@@ -7,7 +7,7 @@ import { Sphere } from './../math/Sphere';
 import { Geometry } from './Geometry';
 import { Event } from './Face3';
 import { EventDispatcher } from './EventDispatcher';
-import { MorphTarget } from './Geometry.js';
+import { MorphTarget } from './Geometry';
 /**
  * @see <a href="https://github.com/mrdoob/three.js/blob/master/src/core/DirectGeometry.js">src/core/DirectGeometry.js</a>
  */

+ 10 - 10
src/extras/curves/Curves.d.ts

@@ -1,10 +1,10 @@
-export { ArcCurve } from './ArcCurve.js';
-export { CatmullRomCurve3 } from './CatmullRomCurve3.js';
-export { CubicBezierCurve } from './CubicBezierCurve.js';
-export { CubicBezierCurve3 } from './CubicBezierCurve3.js';
-export { EllipseCurve } from './EllipseCurve.js';
-export { LineCurve } from './LineCurve.js';
-export { LineCurve3 } from './LineCurve3.js';
-export { QuadraticBezierCurve } from './QuadraticBezierCurve.js';
-export { QuadraticBezierCurve3 } from './QuadraticBezierCurve3.js';
-export { SplineCurve } from './SplineCurve.js';
+export { ArcCurve } from './ArcCurve';
+export { CatmullRomCurve3 } from './CatmullRomCurve3';
+export { CubicBezierCurve } from './CubicBezierCurve';
+export { CubicBezierCurve3 } from './CubicBezierCurve3';
+export { EllipseCurve } from './EllipseCurve';
+export { LineCurve } from './LineCurve';
+export { LineCurve3 } from './LineCurve3';
+export { QuadraticBezierCurve } from './QuadraticBezierCurve';
+export { QuadraticBezierCurve3 } from './QuadraticBezierCurve3';
+export { SplineCurve } from './SplineCurve';

+ 4 - 4
src/geometries/BoxGeometry.d.ts

@@ -1,7 +1,7 @@
-import { Geometry } from '../core/Geometry.js';
-import { BufferGeometry } from '../core/BufferGeometry.js';
-import { Float32BufferAttribute } from '../core/BufferAttribute.js';
-import { Vector3 } from '../math/Vector3.js';
+import { Geometry } from '../core/Geometry';
+import { BufferGeometry } from '../core/BufferGeometry';
+import { Float32BufferAttribute } from '../core/BufferAttribute';
+import { Vector3 } from '../math/Vector3';
 
 // Extras / Geometries /////////////////////////////////////////////////////////////////////
 export class BoxBufferGeometry extends BufferGeometry {

+ 1 - 1
src/geometries/CircleGeometry.d.ts

@@ -1,5 +1,5 @@
 import { Geometry } from './../core/Geometry';
-import { BufferGeometry } from '../core/BufferGeometry.js';
+import { BufferGeometry } from '../core/BufferGeometry';
 
 /**
  * @deprecated Use {@link BoxGeometry} instead.

+ 2 - 2
src/geometries/ConeGeometry.d.ts

@@ -1,5 +1,5 @@
-import { CylinderGeometry } from './CylinderGeometry.js';
-import { CylinderBufferGeometry } from './CylinderGeometry.js';
+import { CylinderGeometry } from './CylinderGeometry';
+import { CylinderBufferGeometry } from './CylinderGeometry';
 import { BufferGeometry } from '../core/BufferGeometry';
 
 export class ConeBufferGeometry extends BufferGeometry {

+ 1 - 1
src/geometries/CylinderGeometry.d.ts

@@ -1,5 +1,5 @@
 import { Geometry } from './../core/Geometry';
-import { BufferGeometry } from '../core/BufferGeometry.js';
+import { BufferGeometry } from '../core/BufferGeometry';
 
 export class CylinderBufferGeometry extends BufferGeometry {
   constructor(

+ 1 - 1
src/geometries/DodecahedronGeometry.d.ts

@@ -1,5 +1,5 @@
 import { Geometry } from './../core/Geometry';
-import { PolyhedronBufferGeometry } from './PolyhedronGeometry.js';
+import { PolyhedronBufferGeometry } from './PolyhedronGeometry';
 
 export class DodecahedronBufferGeometry extends PolyhedronBufferGeometry {
   constructor(radius?: number, detail?: number);

+ 17 - 0
src/helpers/PolarGridHelper.d.ts

@@ -0,0 +1,17 @@
+import { LineSegments } from '../objects/LineSegments';
+import { VertexColors } from '../constants.js';
+import { LineBasicMaterial } from '../materials/LineBasicMaterial';
+import { Float32BufferAttribute } from '../core/BufferAttribute';
+import { BufferGeometry } from '../core/BufferGeometry';
+import { Color } from '../math/Color';
+
+export class PolarGridHelper {
+  constructor(
+    radius: number,
+    radials: number,
+    circles: number,
+    divisions: number,
+    color1: Color | string | number | undefined,
+    color2: Color | string | number | undefined
+  );
+}

+ 1 - 1
src/loaders/AnimationLoader.d.ts

@@ -1,4 +1,4 @@
-import { LoadingManager } from './LoadingManager.js';
+import { LoadingManager } from './LoadingManager';
 
 export class AnimationLoader {
   constructor(manager?: LoadingManager);

+ 18 - 18
src/materials/Materials.d.ts

@@ -1,18 +1,18 @@
-export { ShadowMaterial } from './ShadowMaterial.js';
-export { SpriteMaterial } from './SpriteMaterial.js';
-export { RawShaderMaterial } from './RawShaderMaterial.js';
-export { ShaderMaterial } from './ShaderMaterial.js';
-export { PointsMaterial } from './PointsMaterial.js';
-export { MeshPhysicalMaterial } from './MeshPhysicalMaterial.js';
-export { MeshStandardMaterial } from './MeshStandardMaterial.js';
-export { MeshPhongMaterial } from './MeshPhongMaterial.js';
-//export { MeshToonMaterial } from './MeshToonMaterial.js';
-export { MeshNormalMaterial } from './MeshNormalMaterial.js';
-export { MeshLambertMaterial } from './MeshLambertMaterial.js';
-export { MeshDepthMaterial } from './MeshDepthMaterial.js';
-//export { MeshDistanceMaterial } from './MeshDistanceMaterial.js';
-export { MeshBasicMaterial } from './MeshBasicMaterial.js';
-//export { MeshMatcapMaterial } from './MeshMatcapMaterial.js';
-export { LineDashedMaterial } from './LineDashedMaterial.js';
-export { LineBasicMaterial } from './LineBasicMaterial.js';
-export { Material } from './Material.js';
+export { ShadowMaterial } from './ShadowMaterial';
+export { SpriteMaterial } from './SpriteMaterial';
+export { RawShaderMaterial } from './RawShaderMaterial';
+export { ShaderMaterial } from './ShaderMaterial';
+export { PointsMaterial } from './PointsMaterial';
+export { MeshPhysicalMaterial } from './MeshPhysicalMaterial';
+export { MeshStandardMaterial } from './MeshStandardMaterial';
+export { MeshPhongMaterial } from './MeshPhongMaterial';
+//export { MeshToonMaterial } from './MeshToonMaterial';
+export { MeshNormalMaterial } from './MeshNormalMaterial';
+export { MeshLambertMaterial } from './MeshLambertMaterial';
+export { MeshDepthMaterial } from './MeshDepthMaterial';
+//export { MeshDistanceMaterial } from './MeshDistanceMaterial';
+export { MeshBasicMaterial } from './MeshBasicMaterial';
+//export { MeshMatcapMaterial } from './MeshMatcapMaterial';
+export { LineDashedMaterial } from './LineDashedMaterial';
+export { LineBasicMaterial } from './LineBasicMaterial';
+export { Material } from './Material';

+ 1 - 1
src/objects/LineLoop.d.ts

@@ -1,4 +1,4 @@
-import { Line } from './Line.js';
+import { Line } from './Line';
 import { Geometry } from './../core/Geometry';
 import { Material } from './../materials/Material';
 import { BufferGeometry } from '../core/BufferGeometry';

+ 1 - 1
src/renderers/WebGLMultisampleRenderTarget.d.ts

@@ -1,7 +1,7 @@
 import {
   WebGLRenderTarget,
   WebGLRenderTargetOptions,
-} from './WebGLRenderTarget.js';
+} from './WebGLRenderTarget';
 
 export class WebGLMultisampleRenderTarget extends WebGLRenderTarget {
   constructor(

+ 12 - 0
src/textures/DataTexture3D.d.ts

@@ -0,0 +1,12 @@
+import { Texture } from './Texture';
+import { NearestFilter } from '../constants';
+import { TypedArray } from '../polyfills';
+
+export class DataTexture3D extends Texture {
+  constructor(
+    data: ArrayBuffer | TypedArray,
+    width: number,
+    heighht: number,
+    depth?: number
+  );
+}