Mugen87 пре 6 година
родитељ
комит
7aeb9dba7a

+ 0 - 4
src/cameras/PerspectiveCamera.d.ts

@@ -3,10 +3,6 @@ import { Camera } from './Camera';
 /**
  * Camera with perspective projection.
  *
- * # example
- *		 var camera = new THREE.PerspectiveCamera( 45, width / height, 1, 1000 );
- *		 scene.add( camera );
- *
  * @source https://github.com/mrdoob/three.js/blob/master/src/cameras/PerspectiveCamera.js
  */
 export class PerspectiveCamera extends Camera {

+ 1 - 1
src/constants.d.ts

@@ -54,7 +54,7 @@ export const CustomBlending: Blending;
 
 // custom blending equations
 // (numbers start from 100 not to clash with other
-//	mappings to OpenGL constants defined in Texture.js)
+// mappings to OpenGL constants defined in Texture.js)
 export enum BlendingEquation {}
 export const AddEquation: BlendingEquation;
 export const SubtractEquation: BlendingEquation;

+ 0 - 20
src/core/EventDispatcher.d.ts

@@ -3,26 +3,6 @@ import { Event } from './Face3';
 /**
  * JavaScript events for custom objects
  *
- * # Example
- *		 var Car = function () {
- *
- *				 EventDispatcher.call( this );
- *				 this.start = function () {
- *
- *						 this.dispatchEvent( { type: 'start', message: 'vroom vroom!' } );
- *
- *				 };
- *
- *		 };
- *
- *		 var car = new Car();
- *		 car.addEventListener( 'start', function ( event ) {
- *
- *				 alert( event.message );
- *
- *		 } );
- *		 car.start();
- *
  * @source src/core/EventDispatcher.js
  */
 export class EventDispatcher {

+ 0 - 5
src/core/Face3.d.ts

@@ -10,11 +10,6 @@ export interface Event {
 /**
  * Triangle face.
  *
- * # Example
- *		 var normal = new THREE.Vector3( 0, 1, 0 );
- *		 var color = new THREE.Color( 0xffaa00 );
- *		 var face = new THREE.Face3( 0, 1, 2, normal, color, 0 );
- *
  * @source https://github.com/mrdoob/three.js/blob/master/src/core/Face3.js
  */
 export class Face3 {

+ 0 - 8
src/core/Geometry.d.ts

@@ -37,14 +37,6 @@ export let GeometryIdCount: number;
 /**
  * Base class for geometries
  *
- * # Example
- *		 var geometry = new THREE.Geometry();
- *		 geometry.vertices.push( new THREE.Vector3( -10, 10, 0 ) );
- *		 geometry.vertices.push( new THREE.Vector3( -10, -10, 0 ) );
- *		 geometry.vertices.push( new THREE.Vector3( 10, -10, 0 ) );
- *		 geometry.faces.push( new THREE.Face3( 0, 1, 2 ) );
- *		 geometry.computeBoundingSphere();
- *
  * @see https://github.com/mrdoob/three.js/blob/master/src/core/Geometry.js
  */
 export class Geometry extends EventDispatcher {

+ 0 - 7
src/extras/objects/ImmediateRenderObject.d.ts

@@ -1,13 +1,6 @@
 import { Object3D } from './../../core/Object3D';
 import { Material } from './../../materials/Material';
 
-/**
- * @deprecated Use {@link WireframeGeometry THREE.WireframeGeometry} instead.
- */
-// export class WireframeHelper extends LineSegments {
-//	 constructor(object: Object3D, hex?: number);
-// }
-
 // Extras / Objects /////////////////////////////////////////////////////////////////////
 
 export class ImmediateRenderObject extends Object3D {

+ 0 - 4
src/lights/AmbientLight.d.ts

@@ -4,10 +4,6 @@ import { Light } from './Light';
 /**
  * This light's color gets applied to all the objects in the scene globally.
  *
- * # example
- *		 var light = new THREE.AmbientLight( 0x404040 ); // soft white light
- *		 scene.add( light );
- *
  * @source https://github.com/mrdoob/three.js/blob/master/src/lights/AmbientLight.js
  */
 export class AmbientLight extends Light {