Browse Source

Chore: Clean up.

linbingquan 5 years ago
parent
commit
d9f32722f8

+ 1 - 1
src/cameras/OrthographicCamera.d.ts

@@ -7,7 +7,7 @@ import { Camera } from './Camera';
  * var camera = new THREE.OrthographicCamera( width / - 2, width / 2, height / 2, height / - 2, 1, 1000 );
  * var camera = new THREE.OrthographicCamera( width / - 2, width / 2, height / 2, height / - 2, 1, 1000 );
  * scene.add( camera );
  * scene.add( camera );
  *
  *
- * @see <a href="https://github.com/mrdoob/three.js/blob/master/src/cameras/OrthographicCamera.js">src/cameras/OrthographicCamera.js</a>
+ * @see {@link https://github.com/mrdoob/three.js/blob/master/src/cameras/OrthographicCamera.js|src/cameras/OrthographicCamera.js}
  */
  */
 export class OrthographicCamera extends Camera {
 export class OrthographicCamera extends Camera {
 
 

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

@@ -3,7 +3,7 @@ import { Matrix3 } from './../math/Matrix3';
 import { Matrix4 } from './../math/Matrix4';
 import { Matrix4 } from './../math/Matrix4';
 
 
 /**
 /**
- * @see <a href="https://github.com/mrdoob/three.js/blob/master/src/core/BufferAttribute.js">src/core/BufferAttribute.js</a>
+ * @see {@link https://github.com/mrdoob/three.js/blob/master/src/core/BufferAttribute.js|src/core/BufferAttribute.js}
  */
  */
 export class BufferAttribute {
 export class BufferAttribute {
 
 

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

@@ -15,7 +15,7 @@ import { InterleavedBufferAttribute } from './InterleavedBufferAttribute';
  * It reduces memory costs and cpu cycles. But it is not as easy to work with because of all the necessary buffer calculations.
  * It reduces memory costs and cpu cycles. But it is not as easy to work with because of all the necessary buffer calculations.
  * It is mainly interesting when working with static objects.
  * It is mainly interesting when working with static objects.
  *
  *
- * @see <a href="https://github.com/mrdoob/three.js/blob/master/src/core/BufferGeometry.js">src/core/BufferGeometry.js</a>
+ * @see {@link https://github.com/mrdoob/three.js/blob/master/src/core/BufferGeometry.js|src/core/BufferGeometry.js}
  */
  */
 export class BufferGeometry extends EventDispatcher {
 export class BufferGeometry extends EventDispatcher {
 
 

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

@@ -1,7 +1,7 @@
 /**
 /**
  * Object for keeping track of time.
  * Object for keeping track of time.
  *
  *
- * @see <a href="https://github.com/mrdoob/three.js/blob/master/src/core/Clock.js">src/core/Clock.js</a>
+ * @see {@link https://github.com/mrdoob/three.js/blob/master/src/core/Clock.js|src/core/Clock.js}
  */
  */
 export class Clock {
 export class Clock {
 
 

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

@@ -6,8 +6,9 @@ import { Box3 } from './../math/Box3';
 import { Sphere } from './../math/Sphere';
 import { Sphere } from './../math/Sphere';
 import { Geometry } from './Geometry';
 import { Geometry } from './Geometry';
 import { MorphTarget } from './Geometry';
 import { MorphTarget } from './Geometry';
+
 /**
 /**
- * @see <a href="https://github.com/mrdoob/three.js/blob/master/src/core/DirectGeometry.js">src/core/DirectGeometry.js</a>
+ * @see {@link https://github.com/mrdoob/three.js/blob/master/src/core/DirectGeometry.js|src/core/DirectGeometry.js}
  */
  */
 export class DirectGeometry {
 export class DirectGeometry {
 
 

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

@@ -37,7 +37,7 @@ export let GeometryIdCount: number;
 /**
 /**
  * Base class for geometries
  * Base class for geometries
  *
  *
- * @see https://github.com/mrdoob/three.js/blob/master/src/core/Geometry.js
+ * @see {@link https://github.com/mrdoob/three.js/blob/master/src/core/Geometry.js|src/core/Geometry.js}
  */
  */
 export class Geometry extends EventDispatcher {
 export class Geometry extends EventDispatcher {
 
 

+ 2 - 2
src/core/InstancedBufferAttribute.d.ts

@@ -2,7 +2,7 @@ import { BufferGeometry } from './BufferGeometry';
 import { BufferAttribute } from './BufferAttribute';
 import { BufferAttribute } from './BufferAttribute';
 
 
 /**
 /**
- * @see <a href="https://github.com/mrdoob/three.js/blob/master/examples/jsm/utils/BufferGeometryUtils.js">examples/jsm/utils/BufferGeometryUtils.js</a>
+ * @see {@link https://github.com/mrdoob/three.js/blob/master/examples/jsm/utils/BufferGeometryUtils.js|examples/jsm/utils/BufferGeometryUtils.js}
  */
  */
 export namespace BufferGeometryUtils {
 export namespace BufferGeometryUtils {
 	export function mergeBufferGeometries(
 	export function mergeBufferGeometries(
@@ -33,7 +33,7 @@ export namespace GeometryUtils {
 }
 }
 
 
 /**
 /**
- * @see <a href="https://github.com/mrdoob/three.js/blob/master/src/core/InstancedBufferAttribute.js">src/core/InstancedBufferAttribute.js</a>
+ * @see {@link https://github.com/mrdoob/three.js/blob/master/src/core/InstancedBufferAttribute.js|src/core/InstancedBufferAttribute.js}
  */
  */
 export class InstancedBufferAttribute extends BufferAttribute {
 export class InstancedBufferAttribute extends BufferAttribute {
 
 

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

@@ -1,7 +1,7 @@
 import { BufferGeometry } from './BufferGeometry';
 import { BufferGeometry } from './BufferGeometry';
 
 
 /**
 /**
- * @see <a href="https://github.com/mrdoob/three.js/blob/master/src/core/InstancedBufferGeometry.js">src/core/InstancedBufferGeometry.js</a>
+ * @see {@link https://github.com/mrdoob/three.js/blob/master/src/core/InstancedBufferGeometry.js|src/core/InstancedBufferGeometry.js}
  */
  */
 export class InstancedBufferGeometry extends BufferGeometry {
 export class InstancedBufferGeometry extends BufferGeometry {
 
 

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

@@ -1,7 +1,7 @@
 import { InterleavedBuffer } from './InterleavedBuffer';
 import { InterleavedBuffer } from './InterleavedBuffer';
 
 
 /**
 /**
- * @see <a href="https://github.com/mrdoob/three.js/blob/master/src/core/InstancedInterleavedBuffer.js">src/core/InstancedInterleavedBuffer.js</a>
+ * @see {@link https://github.com/mrdoob/three.js/blob/master/src/core/InstancedInterleavedBuffer.js|src/core/InstancedInterleavedBuffer.js}
  */
  */
 export class InstancedInterleavedBuffer extends InterleavedBuffer {
 export class InstancedInterleavedBuffer extends InterleavedBuffer {
 
 

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

@@ -2,7 +2,7 @@ import { InterleavedBufferAttribute } from './InterleavedBufferAttribute';
 import { Usage } from '../constants';
 import { Usage } from '../constants';
 
 
 /**
 /**
- * @see <a href="https://github.com/mrdoob/three.js/blob/master/src/core/InterleavedBuffer.js">src/core/InterleavedBuffer.js</a>
+ * @see {@link https://github.com/mrdoob/three.js/blob/master/src/core/InterleavedBuffer.js|src/core/InterleavedBuffer.js}
  */
  */
 export class InterleavedBuffer {
 export class InterleavedBuffer {
 
 

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

@@ -1,7 +1,7 @@
 import { InterleavedBuffer } from './InterleavedBuffer';
 import { InterleavedBuffer } from './InterleavedBuffer';
 import { Matrix4 } from './../math/Matrix4';
 import { Matrix4 } from './../math/Matrix4';
 /**
 /**
- * @see <a href="https://github.com/mrdoob/three.js/blob/master/src/core/InterleavedBufferAttribute.js">src/core/InterleavedBufferAttribute.js</a>
+ * @see {@link https://github.com/mrdoob/three.js/blob/master/src/core/InterleavedBufferAttribute.js|src/core/InterleavedBufferAttribute.js}
  */
  */
 export class InterleavedBufferAttribute {
 export class InterleavedBufferAttribute {
 
 

+ 1 - 1
src/lights/DirectionalLight.d.ts

@@ -10,7 +10,7 @@ import { Light } from './Light';
  * directionalLight.position.set( 0, 1, 0 );
  * directionalLight.position.set( 0, 1, 0 );
  * scene.add( directionalLight );
  * scene.add( directionalLight );
  *
  *
- * @see <a href="https://github.com/mrdoob/three.js/blob/master/src/lights/DirectionalLight.js">src/lights/DirectionalLight.js</a>
+ * @see {@link https://github.com/mrdoob/three.js/blob/master/src/lights/DirectionalLight.js|src/lights/DirectionalLight.js}
  */
  */
 export class DirectionalLight extends Light {
 export class DirectionalLight extends Light {
 
 

+ 1 - 1
src/math/Color.d.ts

@@ -14,7 +14,7 @@ export interface HSL {
  * @example
  * @example
  * var color = new THREE.Color( 0xff0000 );
  * var color = new THREE.Color( 0xff0000 );
  *
  *
- * @see <a href="https://github.com/mrdoob/three.js/blob/master/src/math/Color.js">src/math/Color.js</a>
+ * @see {@link https://github.com/mrdoob/three.js/blob/master/src/math/Color.js|src/math/Color.js}
  */
  */
 export class Color {
 export class Color {
 
 

+ 1 - 2
src/math/MathUtils.d.ts

@@ -1,8 +1,7 @@
 import { Quaternion } from './Quaternion';
 import { Quaternion } from './Quaternion';
 
 
 /**
 /**
- *
- * @see <a href="https://github.com/mrdoob/three.js/blob/master/src/math/Math.js">src/math/Math.js</a>
+ * @see {@link https://github.com/mrdoob/three.js/blob/master/src/math/MathUtils.js|src/math/MathUtils.js}
  */
  */
 export namespace MathUtils {
 export namespace MathUtils {
 	export const DEG2RAD: number;
 	export const DEG2RAD: number;

+ 1 - 1
src/math/Vector3.d.ts

@@ -16,7 +16,7 @@ import { Vector } from './Vector2';
  * var c = new THREE.Vector3();
  * var c = new THREE.Vector3();
  * c.crossVectors( a, b );
  * c.crossVectors( a, b );
  *
  *
- * @see <a href="https://github.com/mrdoob/three.js/blob/master/src/math/Vector3.js">src/math/Vector3.js</a>
+ * @see {@link https://github.com/mrdoob/three.js/blob/master/src/math/Vector3.js|src/math/Vector3.js}
  *
  *
  * ( class Vector3 implements Vector<Vector3> )
  * ( class Vector3 implements Vector<Vector3> )
  */
  */

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

@@ -8,7 +8,7 @@ import { Intersection } from '../core/Raycaster';
 /**
 /**
  * A class for displaying particles in the form of variable size points. For example, if using the WebGLRenderer, the particles are displayed using GL_POINTS.
  * A class for displaying particles in the form of variable size points. For example, if using the WebGLRenderer, the particles are displayed using GL_POINTS.
  *
  *
- * @see <a href="https://github.com/mrdoob/three.js/blob/master/src/objects/ParticleSystem.js">src/objects/ParticleSystem.js</a>
+ * @see {@link https://github.com/mrdoob/three.js/blob/master/src/objects/ParticleSystem.js|src/objects/ParticleSystem.js}
  */
  */
 export class Points extends Object3D {
 export class Points extends Object3D {
 
 

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

@@ -100,7 +100,7 @@ export interface WebGLDebug {
  * The WebGL renderer displays your beautifully crafted scenes using WebGL, if your device supports it.
  * The WebGL renderer displays your beautifully crafted scenes using WebGL, if your device supports it.
  * This renderer has way better performance than CanvasRenderer.
  * This renderer has way better performance than CanvasRenderer.
  *
  *
- * @see <a href="https://github.com/mrdoob/three.js/blob/master/src/renderers/WebGLRenderer.js">src/renderers/WebGLRenderer.js</a>
+ * @see {@link https://github.com/mrdoob/three.js/blob/master/src/renderers/WebGLRenderer.js|src/renderers/WebGLRenderer.js}
  */
  */
 export class WebGLRenderer implements Renderer {
 export class WebGLRenderer implements Renderer {