提交 7aeb9dba 编写于 作者: M Mugen87

TS: More clean up

上级 679f2d4a
......@@ -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 {
......
......@@ -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;
......
......@@ -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 {
......
......@@ -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 {
......
......@@ -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 {
......
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 {
......
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册