Michael Herzog 10 месяцев назад
Родитель
Сommit
caddbf4cd8
100 измененных файлов с 145 добавлено и 17 удалено
  1. 1 0
      examples/jsm/animation/AnimationClipCreator.js
  2. 3 0
      examples/jsm/animation/CCDIKSolver.js
  3. 1 0
      examples/jsm/capabilities/WebGL.js
  4. 1 0
      examples/jsm/capabilities/WebGPU.js
  5. 1 0
      examples/jsm/controls/ArcballControls.js
  6. 1 0
      examples/jsm/controls/DragControls.js
  7. 1 0
      examples/jsm/controls/FirstPersonControls.js
  8. 1 0
      examples/jsm/controls/FlyControls.js
  9. 1 0
      examples/jsm/controls/MapControls.js
  10. 2 1
      examples/jsm/controls/PointerLockControls.js
  11. 1 0
      examples/jsm/controls/TrackballControls.js
  12. 1 0
      examples/jsm/controls/TransformControls.js
  13. 2 0
      examples/jsm/csm/CSM.js
  14. 2 0
      examples/jsm/csm/CSMFrustum.js
  15. 1 0
      examples/jsm/csm/CSMHelper.js
  16. 4 1
      examples/jsm/csm/CSMShader.js
  17. 1 0
      examples/jsm/csm/CSMShadowNode.js
  18. 14 0
      examples/jsm/curves/CurveExtras.js
  19. 1 0
      examples/jsm/curves/NURBSCurve.js
  20. 2 0
      examples/jsm/curves/NURBSSurface.js
  21. 4 1
      examples/jsm/curves/NURBSUtils.js
  22. 2 0
      examples/jsm/curves/NURBSVolume.js
  23. 2 0
      examples/jsm/effects/AnaglyphEffect.js
  24. 2 0
      examples/jsm/effects/AsciiEffect.js
  25. 2 0
      examples/jsm/effects/OutlineEffect.js
  26. 2 0
      examples/jsm/effects/ParallaxBarrierEffect.js
  27. 2 0
      examples/jsm/effects/PeppersGhostEffect.js
  28. 2 0
      examples/jsm/effects/StereoEffect.js
  29. 1 0
      examples/jsm/environments/DebugEnvironment.js
  30. 1 0
      examples/jsm/environments/RoomEnvironment.js
  31. 2 0
      examples/jsm/exporters/DRACOExporter.js
  32. 2 0
      examples/jsm/exporters/EXRExporter.js
  33. 2 0
      examples/jsm/exporters/GLTFExporter.js
  34. 2 0
      examples/jsm/exporters/KTX2Exporter.js
  35. 2 0
      examples/jsm/exporters/OBJExporter.js
  36. 2 0
      examples/jsm/exporters/PLYExporter.js
  37. 2 0
      examples/jsm/exporters/STLExporter.js
  38. 2 0
      examples/jsm/exporters/USDZExporter.js
  39. 1 0
      examples/jsm/geometries/BoxLineGeometry.js
  40. 1 0
      examples/jsm/geometries/ConvexGeometry.js
  41. 1 0
      examples/jsm/geometries/DecalGeometry.js
  42. 4 1
      examples/jsm/geometries/ParametricFunctions.js
  43. 1 0
      examples/jsm/geometries/ParametricGeometry.js
  44. 1 0
      examples/jsm/geometries/RoundedBoxGeometry.js
  45. 1 0
      examples/jsm/geometries/TeapotGeometry.js
  46. 1 0
      examples/jsm/geometries/TextGeometry.js
  47. 1 0
      examples/jsm/helpers/LightProbeHelper.js
  48. 1 0
      examples/jsm/helpers/LightProbeHelperGPU.js
  49. 1 0
      examples/jsm/helpers/OctreeHelper.js
  50. 1 0
      examples/jsm/helpers/PositionalAudioHelper.js
  51. 1 0
      examples/jsm/helpers/RapierHelper.js
  52. 1 0
      examples/jsm/helpers/RectAreaLightHelper.js
  53. 1 0
      examples/jsm/helpers/TextureHelper.js
  54. 1 0
      examples/jsm/helpers/TextureHelperGPU.js
  55. 1 0
      examples/jsm/helpers/VertexNormalsHelper.js
  56. 1 0
      examples/jsm/helpers/VertexTangentsHelper.js
  57. 1 0
      examples/jsm/helpers/ViewHelper.js
  58. 1 0
      examples/jsm/interactive/HTMLMesh.js
  59. 1 0
      examples/jsm/interactive/InteractiveGroup.js
  60. 2 0
      examples/jsm/interactive/SelectionBox.js
  61. 2 0
      examples/jsm/interactive/SelectionHelper.js
  62. 1 0
      examples/jsm/lighting/TiledLighting.js
  63. 1 0
      examples/jsm/lights/LightProbeGenerator.js
  64. 1 0
      examples/jsm/lights/RectAreaLightTexturesLib.js
  65. 1 0
      examples/jsm/lights/RectAreaLightUniformsLib.js
  66. 1 0
      examples/jsm/lines/Line2.js
  67. 1 0
      examples/jsm/lines/LineGeometry.js
  68. 1 0
      examples/jsm/lines/LineMaterial.js
  69. 1 0
      examples/jsm/lines/LineSegments2.js
  70. 1 0
      examples/jsm/lines/LineSegmentsGeometry.js
  71. 1 0
      examples/jsm/lines/Wireframe.js
  72. 1 0
      examples/jsm/lines/WireframeGeometry2.js
  73. 1 0
      examples/jsm/lines/webgpu/Line2.js
  74. 1 0
      examples/jsm/lines/webgpu/LineSegments2.js
  75. 1 0
      examples/jsm/lines/webgpu/Wireframe.js
  76. 1 0
      examples/jsm/loaders/3DMLoader.js
  77. 1 0
      examples/jsm/loaders/3MFLoader.js
  78. 1 0
      examples/jsm/loaders/AMFLoader.js
  79. 1 0
      examples/jsm/loaders/BVHLoader.js
  80. 1 0
      examples/jsm/loaders/ColladaLoader.js
  81. 1 0
      examples/jsm/loaders/DDSLoader.js
  82. 1 0
      examples/jsm/loaders/DRACOLoader.js
  83. 1 0
      examples/jsm/loaders/EXRLoader.js
  84. 1 0
      examples/jsm/loaders/FBXLoader.js
  85. 1 0
      examples/jsm/loaders/FontLoader.js
  86. 1 0
      examples/jsm/loaders/GCodeLoader.js
  87. 1 0
      examples/jsm/loaders/GLTFLoader.js
  88. 1 0
      examples/jsm/loaders/HDRCubeTextureLoader.js
  89. 1 0
      examples/jsm/loaders/IESLoader.js
  90. 1 0
      examples/jsm/loaders/KMZLoader.js
  91. 1 0
      examples/jsm/loaders/KTX2Loader.js
  92. 1 0
      examples/jsm/loaders/KTXLoader.js
  93. 1 0
      examples/jsm/loaders/LDrawLoader.js
  94. 1 0
      examples/jsm/loaders/LUT3dlLoader.js
  95. 1 0
      examples/jsm/loaders/LUTCubeLoader.js
  96. 1 0
      examples/jsm/loaders/LUTImageLoader.js
  97. 1 13
      examples/jsm/loaders/LWOLoader.js
  98. 1 0
      examples/jsm/loaders/LottieLoader.js
  99. 1 0
      examples/jsm/loaders/MD2Loader.js
  100. 1 0
      examples/jsm/loaders/MDDLoader.js

+ 1 - 0
examples/jsm/animation/AnimationClipCreator.js

@@ -11,6 +11,7 @@ import {
  * A utility class with factory methods for creating basic animation clips.
  *
  * @hideconstructor
+ * @three_import import { AnimationClipCreator } from 'three/addons/animation/AnimationClipCreator.js';
  */
 class AnimationClipCreator {
 

+ 3 - 0
examples/jsm/animation/CCDIKSolver.js

@@ -29,6 +29,8 @@ const _matrix = new Matrix4();
  * This class solves the Inverse Kinematics Problem with a [CCD Algorithm]{@link https://web.archive.org/web/20221206080850/https://sites.google.com/site/auraliusproject/ccd-algorithm}.
  *
  * `CCDIKSolver` is designed to work with instances of {@link SkinnedMesh}.
+ *
+ * @three_import import { CCDIKSolver } from 'three/addons/animation/CCDIKSolver.js';
  */
 class CCDIKSolver {
 
@@ -322,6 +324,7 @@ function setPositionOfBoneToAttributeArray( array, index, bone, matrixWorldInv )
  * Helper for visualizing IK bones.
  *
  * @augments Object3D
+ * @three_import import { CCDIKHelper } from 'three/addons/animation/CCDIKSolver.js';
  */
 class CCDIKHelper extends Object3D {
 

+ 1 - 0
examples/jsm/capabilities/WebGL.js

@@ -2,6 +2,7 @@
  * A utility module with basic WebGL 2 capability testing.
  *
  * @hideconstructor
+ * @three_import import WebGL from 'three/addons/capabilities/WebGL.js';
  */
 class WebGL {
 

+ 1 - 0
examples/jsm/capabilities/WebGPU.js

@@ -10,6 +10,7 @@ if ( typeof window !== 'undefined' && isAvailable ) {
  * A utility module with basic WebGPU capability testing.
  *
  * @hideconstructor
+ * @three_import import WebGPU from 'three/addons/capabilities/WebGPU.js';
  */
 class WebGPU {
 

+ 1 - 0
examples/jsm/controls/ArcballControls.js

@@ -107,6 +107,7 @@ const _EPS = 0.000001;
  * animation loop when animations are on.
  *
  * @augments Controls
+ * @three_import import { ArcballControls } from 'three/addons/controls/ArcballControls.js';
  */
 class ArcballControls extends Controls {
 

+ 1 - 0
examples/jsm/controls/DragControls.js

@@ -52,6 +52,7 @@ const STATE = {
  * ```
  *
  * @augments Controls
+ * @three_import import { DragControls } from 'three/addons/controls/DragControls.js';
  */
 class DragControls extends Controls {
 

+ 1 - 0
examples/jsm/controls/FirstPersonControls.js

@@ -14,6 +14,7 @@ const _targetPosition = new Vector3();
  * This class is an alternative implementation of {@link FlyControls}.
  *
  * @augments Controls
+ * @three_import import { FirstPersonControls } from 'three/addons/controls/FirstPersonControls.js';
  */
 class FirstPersonControls extends Controls {
 

+ 1 - 0
examples/jsm/controls/FlyControls.js

@@ -21,6 +21,7 @@ const _tmpQuaternion = new Quaternion();
  * (e.g. focus on a specific target).
  *
  * @augments Controls
+ * @three_import import { FlyControls } from 'three/addons/controls/FlyControls.js';
  */
 class FlyControls extends Controls {
 

+ 1 - 0
examples/jsm/controls/MapControls.js

@@ -12,6 +12,7 @@ import { OrbitControls } from './OrbitControls.js';
  * - Pan: Left mouse, or arrow keys / touch: one-finger move.
  *
  * @augments OrbitControls
+ * @three_import import { MapControls } from 'three/addons/controls/MapControls.js';
  */
 class MapControls extends OrbitControls {
 

+ 2 - 1
examples/jsm/controls/PointerLockControls.js

@@ -55,6 +55,7 @@ const _PI_2 = Math.PI / 2;
  * ```
  *
  * @augments Controls
+ * @three_import import { PointerLockControls } from 'three/addons/controls/PointerLockControls.js';
  */
 class PointerLockControls extends Controls {
 
@@ -200,7 +201,7 @@ class PointerLockControls extends Controls {
 
 	/**
 	 * Activates the pointer lock.
-	 * 
+	 *
 	 * @param {boolean} [unadjustedMovement=false] - Disables OS-level adjustment for mouse acceleration, and accesses raw mouse input instead.
 	 * Setting it to true will disable mouse acceleration.
 	 */

+ 1 - 0
examples/jsm/controls/TrackballControls.js

@@ -51,6 +51,7 @@ const _moveDirection = new Vector3();
  * to stay "right side up".
  *
  * @augments Controls
+ * @three_import import { TrackballControls } from 'three/addons/controls/TrackballControls.js';
  */
 class TrackballControls extends Controls {
 

+ 1 - 0
examples/jsm/controls/TransformControls.js

@@ -72,6 +72,7 @@ const _objectChangeEvent = { type: 'objectChange' };
  * `TransformControls` expects that its attached 3D object is part of the scene graph.
  *
  * @augments Controls
+ * @three_import import { TransformControls } from 'three/addons/controls/TransformControls.js';
  */
 class TransformControls extends Controls {
 

+ 2 - 0
examples/jsm/csm/CSM.js

@@ -25,6 +25,8 @@ const _up = new Vector3( 0, 1, 0 );
  *
  * This module can only be used with {@link WebGLRenderer}. When using {@link WebGPURenderer},
  * use {@link CSMShadowNode} instead.
+ *
+ * @three_import import { CSM } from 'three/addons/csm/CSM.js';
  */
 export class CSM {
 

+ 2 - 0
examples/jsm/csm/CSMFrustum.js

@@ -4,6 +4,8 @@ const inverseProjectionMatrix = new Matrix4();
 
 /**
  * Represents the frustum of a CSM instance.
+ *
+ * @three_import import { CSMFrustum } from 'three/addons/csm/CSMFrustum.js';
  */
 class CSMFrustum {
 

+ 1 - 0
examples/jsm/csm/CSMHelper.js

@@ -16,6 +16,7 @@ import {
  * A helper for visualizing the cascades of a CSM instance.
  *
  * @augments Group
+ * @three_import import { CSMHelper } from 'three/addons/csm/CSMHelper.js';
  */
 class CSMHelper extends Group {
 

+ 4 - 1
examples/jsm/csm/CSMShader.js

@@ -1,6 +1,9 @@
 import { ShaderChunk } from 'three';
 
-/** @module CSMShader */
+/**
+ * @module CSMShader
+ * @three_import import { CSMShader } from 'three/addons/csm/CSMShader.js';
+ */
 
 /**
  * The object that holds the GLSL enhancements to enable CSM. This

+ 1 - 0
examples/jsm/csm/CSMShadowNode.js

@@ -42,6 +42,7 @@ class LwLight extends Object3D {
  * use {@link CSM} instead.
  *
  * @augments ShadowBaseNode
+ * @three_import import { CSMShadowNode } from 'three/addons/csm/CSMShadowNode.js';
  */
 class CSMShadowNode extends ShadowBaseNode {
 

+ 14 - 0
examples/jsm/curves/CurveExtras.js

@@ -17,6 +17,7 @@ import {
  * A Granny Knot curve.
  *
  * @augments Curve
+ * @three_import import { GrannyKnot } from 'three/addons/curves/CurveExtras.js';
  */
 class GrannyKnot extends Curve {
 
@@ -47,6 +48,7 @@ class GrannyKnot extends Curve {
  * A heart curve.
  *
  * @augments Curve
+ * @three_import import { HeartCurve } from 'three/addons/curves/CurveExtras.js';
  */
 class HeartCurve extends Curve {
 
@@ -96,6 +98,7 @@ class HeartCurve extends Curve {
  * A Viviani curve.
  *
  * @augments Curve
+ * @three_import import { VivianiCurve } from 'three/addons/curves/CurveExtras.js';
  */
 class VivianiCurve extends Curve {
 
@@ -146,6 +149,7 @@ class VivianiCurve extends Curve {
  * A knot curve.
  *
  * @augments Curve
+ * @three_import import { KnotCurve } from 'three/addons/curves/CurveExtras.js';
  */
 class KnotCurve extends Curve {
 
@@ -179,6 +183,7 @@ class KnotCurve extends Curve {
  * A helix curve.
  *
  * @augments Curve
+ * @three_import import { HelixCurve } from 'three/addons/curves/CurveExtras.js';
  */
 class HelixCurve extends Curve {
 
@@ -212,6 +217,7 @@ class HelixCurve extends Curve {
  * A Trefoil Knot.
  *
  * @augments Curve
+ * @three_import import { TrefoilKnot } from 'three/addons/curves/CurveExtras.js';
  */
 class TrefoilKnot extends Curve {
 
@@ -261,6 +267,7 @@ class TrefoilKnot extends Curve {
  * A torus knot.
  *
  * @augments Curve
+ * @three_import import { TorusKnot } from 'three/addons/curves/CurveExtras.js';
  */
 class TorusKnot extends Curve {
 
@@ -313,6 +320,7 @@ class TorusKnot extends Curve {
  * A Cinquefoil Knot.
  *
  * @augments Curve
+ * @three_import import { CinquefoilKnot } from 'three/addons/curves/CurveExtras.js';
  */
 class CinquefoilKnot extends Curve {
 
@@ -365,6 +373,7 @@ class CinquefoilKnot extends Curve {
  * A Trefoil Polynomial Knot.
  *
  * @augments Curve
+ * @three_import import { TrefoilPolynomialKnot } from 'three/addons/curves/CurveExtras.js';
  */
 class TrefoilPolynomialKnot extends Curve {
 
@@ -421,6 +430,7 @@ function scaleTo( x, y, t ) {
  * A Figure Eight Polynomial Knot.
  *
  * @augments Curve
+ * @three_import import { FigureEightPolynomialKnot } from 'three/addons/curves/CurveExtras.js';
  */
 class FigureEightPolynomialKnot extends Curve {
 
@@ -470,6 +480,7 @@ class FigureEightPolynomialKnot extends Curve {
  * A Decorated Torus Knot 4a.
  *
  * @augments Curve
+ * @three_import import { DecoratedTorusKnot4a } from 'three/addons/curves/CurveExtras.js';
  */
 class DecoratedTorusKnot4a extends Curve {
 
@@ -519,6 +530,7 @@ class DecoratedTorusKnot4a extends Curve {
  * A Decorated Torus Knot 4b.
  *
  * @augments Curve
+ * @three_import import { DecoratedTorusKnot4b } from 'three/addons/curves/CurveExtras.js';
  */
 class DecoratedTorusKnot4b extends Curve {
 
@@ -568,6 +580,7 @@ class DecoratedTorusKnot4b extends Curve {
  * A Decorated Torus Knot 5a.
  *
  * @augments Curve
+ * @three_import import { DecoratedTorusKnot5a } from 'three/addons/curves/CurveExtras.js';
  */
 class DecoratedTorusKnot5a extends Curve {
 
@@ -617,6 +630,7 @@ class DecoratedTorusKnot5a extends Curve {
  * A Decorated Torus Knot 5c.
  *
  * @augments Curve
+ * @three_import import { DecoratedTorusKnot5c } from 'three/addons/curves/CurveExtras.js';
  */
 class DecoratedTorusKnot5c extends Curve {
 

+ 1 - 0
examples/jsm/curves/NURBSCurve.js

@@ -11,6 +11,7 @@ import * as NURBSUtils from '../curves/NURBSUtils.js';
  * Implementation is based on `(x, y [, z=0 [, w=1]])` control points with `w=weight`.
  *
  * @augments Curve
+ * @three_import import { NURBSCurve } from 'three/addons/curves/NURBSCurve.js';
  */
 class NURBSCurve extends Curve {
 

+ 2 - 0
examples/jsm/curves/NURBSSurface.js

@@ -7,6 +7,8 @@ import * as NURBSUtils from '../curves/NURBSUtils.js';
  * This class represents a NURBS surface.
  *
  * Implementation is based on `(x, y [, z=0 [, w=1]])` control points with `w=weight`.
+ *
+ * @three_import import { NURBSSurface } from 'three/addons/curves/NURBSSurface.js';
  */
 class NURBSSurface {
 

+ 4 - 1
examples/jsm/curves/NURBSUtils.js

@@ -3,7 +3,10 @@ import {
 	Vector4
 } from 'three';
 
-/** @module NURBSUtils */
+/**
+ * @module NURBSUtils
+ * @three_import import * as NURBSUtils from 'three/addons/curves/NURBSUtils.js';
+ */
 
 /**
  * Finds knot vector span.

+ 2 - 0
examples/jsm/curves/NURBSVolume.js

@@ -7,6 +7,8 @@ import * as NURBSUtils from '../curves/NURBSUtils.js';
  * This class represents a NURBS volume.
  *
  * Implementation is based on `(x, y [, z=0 [, w=1]])` control points with `w=weight`.
+ *
+ * @three_import import { NURBSVolume } from 'three/addons/curves/NURBSVolume.js';
  */
 class NURBSVolume {
 

+ 2 - 0
examples/jsm/effects/AnaglyphEffect.js

@@ -14,6 +14,8 @@ import { FullScreenQuad } from '../postprocessing/Pass.js';
  *
  * Note that this class can only be used with {@link WebGLRenderer}.
  * When using {@link WebGPURenderer}, use {@link AnaglyphPassNode}.
+ *
+ * @three_import import { AnaglyphEffect } from 'three/addons/effects/AnaglyphEffect.js';
  */
 class AnaglyphEffect {
 

+ 2 - 0
examples/jsm/effects/AsciiEffect.js

@@ -2,6 +2,8 @@
  * A class that creates an ASCII effect.
  *
  * The ASCII generation is based on [jsascii]{@link https://github.com/hassadee/jsascii/blob/master/jsascii.js}.
+ *
+ * @three_import import { AsciiEffect } from 'three/addons/effects/AsciiEffect.js';
  */
 class AsciiEffect {
 

+ 2 - 0
examples/jsm/effects/OutlineEffect.js

@@ -21,6 +21,8 @@ import {
  *
  * }
  * ```
+ *
+ * @three_import import { OutlineEffect } from 'three/addons/effects/OutlineEffect.js';
  */
 class OutlineEffect {
 

+ 2 - 0
examples/jsm/effects/ParallaxBarrierEffect.js

@@ -13,6 +13,8 @@ import { FullScreenQuad } from '../postprocessing/Pass.js';
  *
  * Note that this class can only be used with {@link WebGLRenderer}.
  * When using {@link WebGPURenderer}, use {@link ParallaxBarrierPassNode}.
+ *
+ * @three_import import { ParallaxBarrierEffect } from 'three/addons/effects/ParallaxBarrierEffect.js';
  */
 class ParallaxBarrierEffect {
 

+ 2 - 0
examples/jsm/effects/PeppersGhostEffect.js

@@ -8,6 +8,8 @@ import {
  * A class that implements a peppers ghost effect.
  *
  * Reference: [Reflective Prism]{@link http://www.instructables.com/id/Reflective-Prism/?ALLSTEPS}
+ *
+ * @three_import import { PeppersGhostEffect } from 'three/addons/effects/PeppersGhostEffect.js';
  */
 class PeppersGhostEffect {
 

+ 2 - 0
examples/jsm/effects/StereoEffect.js

@@ -8,6 +8,8 @@ import {
  *
  * Note that this class can only be used with {@link WebGLRenderer}.
  * When using {@link WebGPURenderer}, use {@link StereoPassNode}.
+ *
+ * @three_import import { StereoEffect } from 'three/addons/effects/StereoEffect.js';
  */
 class StereoEffect {
 

+ 1 - 0
examples/jsm/environments/DebugEnvironment.js

@@ -26,6 +26,7 @@ import {
  * ```
  *
  * @augments Scene
+ * @three_import import { DebugEnvironment } from 'three/addons/environments/DebugEnvironment.js';
  */
 class DebugEnvironment extends Scene {
 

+ 1 - 0
examples/jsm/environments/RoomEnvironment.js

@@ -26,6 +26,7 @@ import {
  * ```
  *
  * @augments Scene
+ * @three_import import { RoomEnvironment } from 'three/addons/environments/RoomEnvironment.js';
  */
 class RoomEnvironment extends Scene {
 

+ 2 - 0
examples/jsm/exporters/DRACOExporter.js

@@ -19,6 +19,8 @@ import { Color, ColorManagement, SRGBColorSpace } from 'three';
  * const exporter = new DRACOExporter();
  * const data = exporter.parse( mesh, options );
  * ```
+ *
+ * @three_import import { DRACOExporter } from 'three/addons/exporters/DRACOExporter.js';
  */
 class DRACOExporter {
 

+ 2 - 0
examples/jsm/exporters/EXRExporter.js

@@ -26,6 +26,8 @@ const ZIP_COMPRESSION = 3;
  * const exporter = new EXRExporter();
  * const result = await exporter.parse( renderer, options );
  * ```
+ *
+ * @three_import import { EXRExporter } from 'three/addons/exporters/EXRExporter.js';
  */
 class EXRExporter {
 

+ 2 - 0
examples/jsm/exporters/GLTFExporter.js

@@ -97,6 +97,8 @@ const KHR_mesh_quantization_ExtraAttrTypes = {
  * const exporter = new GLTFExporter();
  * const data = await exporter.parseAsync( scene, options );
  * ```
+ *
+ * @three_import import { GLTFExporter } from 'three/addons/exporters/GLTFExporter.js';
  */
 class GLTFExporter {
 

+ 2 - 0
examples/jsm/exporters/KTX2Exporter.js

@@ -134,6 +134,8 @@ const ERROR_COLOR_SPACE = 'THREE.KTX2Exporter: Supported color spaces are SRGBCo
  * const exporter = new KTX2Exporter();
  * const result = await exporter.parse( dataTexture );
  * ```
+ *
+ * @three_import import { KTX2Exporter } from 'three/addons/exporters/KTX2Exporter.js';
  */
 export class KTX2Exporter {
 

+ 2 - 0
examples/jsm/exporters/OBJExporter.js

@@ -16,6 +16,8 @@ import {
  * const exporter = new OBJExporter();
  * const data = exporter.parse( scene );
  * ```
+ *
+ * @three_import import { OBJExporter } from 'three/addons/exporters/OBJExporter.js';
  */
 class OBJExporter {
 

+ 2 - 0
examples/jsm/exporters/PLYExporter.js

@@ -18,6 +18,8 @@ import {
  * const exporter = new PLYExporter();
  * const data = exporter.parse( scene, options );
  * ```
+ *
+ * @three_import import { PLYExporter } from 'three/addons/exporters/PLYExporter.js';
  */
 class PLYExporter {
 

+ 2 - 0
examples/jsm/exporters/STLExporter.js

@@ -12,6 +12,8 @@ import { Vector3 } from 'three';
  * const exporter = new STLExporter();
  * const data = exporter.parse( mesh, { binary: true } );
  * ```
+ *
+ * @three_import import { STLExporter } from 'three/addons/exporters/STLExporter.js';
  */
 class STLExporter {
 

+ 2 - 0
examples/jsm/exporters/USDZExporter.js

@@ -16,6 +16,8 @@ import {
  * const exporter = new USDZExporter();
  * const arraybuffer = await exporter.parseAsync( scene );
  * ```
+ *
+ * @three_import import { USDZExporter } from 'three/addons/exporters/USDZExporter.js';
  */
 class USDZExporter {
 

+ 1 - 0
examples/jsm/geometries/BoxLineGeometry.js

@@ -14,6 +14,7 @@ import {
  * ```
  *
  * @augments BufferGeometry
+ * @three_import import { BoxLineGeometry } from 'three/addons/geometries/BoxLineGeometry.js';
  */
 class BoxLineGeometry extends BufferGeometry {
 

+ 1 - 0
examples/jsm/geometries/ConvexGeometry.js

@@ -16,6 +16,7 @@ import { ConvexHull } from '../math/ConvexHull.js';
  * ```
  *
  * @augments BufferGeometry
+ * @three_import import { ConvexGeometry } from 'three/addons/geometries/ConvexGeometry.js';
  */
 class ConvexGeometry extends BufferGeometry {
 

+ 1 - 0
examples/jsm/geometries/DecalGeometry.js

@@ -25,6 +25,7 @@ import {
  * ```
  *
  * @augments BufferGeometry
+ * @three_import import { DecalGeometry } from 'three/addons/geometries/DecalGeometry.js';
  */
 class DecalGeometry extends BufferGeometry {
 

+ 4 - 1
examples/jsm/geometries/ParametricFunctions.js

@@ -1,5 +1,8 @@
 
-/** @module ParametricFunctions */
+/**
+ * @module ParametricFunctions
+ * @three_import import * as ParametricFunctions from 'three/addons/geometries/ParametricFunctions.js';
+ */
 
 /**
  * A parametric function representing the Klein bottle.

+ 1 - 0
examples/jsm/geometries/ParametricGeometry.js

@@ -17,6 +17,7 @@ import {
  * ```
  *
  * @augments BufferGeometry
+ * @three_import import { ParametricGeometry } from 'three/addons/geometries/ParametricGeometry.js';
  */
 class ParametricGeometry extends BufferGeometry {
 

+ 1 - 0
examples/jsm/geometries/RoundedBoxGeometry.js

@@ -49,6 +49,7 @@ function getUv( faceDirVector, normal, uvAxis, projectionAxis, radius, sideLengt
  * ```
  *
  * @augments BoxGeometry
+ * @three_import import { RoundedBoxGeometry } from 'three/addons/geometries/RoundedBoxGeometry.js';
  */
 class RoundedBoxGeometry extends BoxGeometry {
 

+ 1 - 0
examples/jsm/geometries/TeapotGeometry.js

@@ -26,6 +26,7 @@ import {
  * ```
  *
  * @augments BufferGeometry
+ * @three_import import { TeapotGeometry } from 'three/addons/geometries/TeapotGeometry.js';
  */
 class TeapotGeometry extends BufferGeometry {
 

+ 1 - 0
examples/jsm/geometries/TextGeometry.js

@@ -23,6 +23,7 @@ import {
  * ```
  *
  * @augments ExtrudeGeometry
+ * @three_import import { TextGeometry } from 'three/addons/geometries/TextGeometry.js';
  */
 class TextGeometry extends ExtrudeGeometry {
 

+ 1 - 0
examples/jsm/helpers/LightProbeHelper.js

@@ -16,6 +16,7 @@ import {
  * ```
  *
  * @augments Mesh
+ * @three_import import { LightProbeHelper } from 'three/addons/helpers/LightProbeHelper.js';
  */
 class LightProbeHelper extends Mesh {
 

+ 1 - 0
examples/jsm/helpers/LightProbeHelperGPU.js

@@ -18,6 +18,7 @@ import { float, Fn, getShIrradianceAt, normalWorld, uniformArray, uniform, vec4
  *
  * @private
  * @augments Mesh
+ * @three_import import { LightProbeHelper } from 'three/addons/helpers/LightProbeHelperGPU.js';
  */
 class LightProbeHelper extends Mesh {
 

+ 1 - 0
examples/jsm/helpers/OctreeHelper.js

@@ -14,6 +14,7 @@ import {
  * ```
  *
  * @augments LineSegments
+ * @three_import import { OctreeHelper } from 'three/addons/helpers/OctreeHelper.js';
  */
 class OctreeHelper extends LineSegments {
 

+ 1 - 0
examples/jsm/helpers/PositionalAudioHelper.js

@@ -21,6 +21,7 @@ import {
  * ```
  *
  * @augments Line
+ * @three_import import { PositionalAudioHelper } from 'three/addons/helpers/PositionalAudioHelper.js';
  */
 class PositionalAudioHelper extends Line {
 

+ 1 - 0
examples/jsm/helpers/RapierHelper.js

@@ -3,6 +3,7 @@ import { LineSegments, LineBasicMaterial, BufferAttribute } from 'three';
  * This class displays all Rapier Colliders in outline.
  *
  * @augments LineSegments
+ * @three_import import { RapierHelper } from 'three/addons/helpers/RapierHelper.js';
  */
 class RapierHelper extends LineSegments {
 

+ 1 - 0
examples/jsm/helpers/RectAreaLightHelper.js

@@ -20,6 +20,7 @@ import {
  * ```
  *
  * @augments Line
+ * @three_import import { RectAreaLightHelper } from 'three/addons/helpers/RectAreaLightHelper.js';
  */
 class RectAreaLightHelper extends Line {
 

+ 1 - 0
examples/jsm/helpers/TextureHelper.js

@@ -18,6 +18,7 @@ import { mergeGeometries } from '../utils/BufferGeometryUtils.js';
  * When using {@link WebGPURenderer}, import from `TextureHelperGPU.js`.
  *
  * @augments Mesh
+ * @three_import import { TextureHelper } from 'three/addons/helpers/TextureHelper.js';
  */
 class TextureHelper extends Mesh {
 

+ 1 - 0
examples/jsm/helpers/TextureHelperGPU.js

@@ -20,6 +20,7 @@ import { mergeGeometries } from '../utils/BufferGeometryUtils.js';
  *
  * @private
  * @augments Mesh
+ * @three_import import { TextureHelper } from 'three/addons/helpers/TextureHelperGPU.js';
  */
 class TextureHelper extends Mesh {
 

+ 1 - 0
examples/jsm/helpers/VertexNormalsHelper.js

@@ -27,6 +27,7 @@ const _normalMatrix = new Matrix3();
  * ```
  *
  * @augments LineSegments
+ * @three_import import { VertexNormalsHelper } from 'three/addons/helpers/VertexNormalsHelper.js';
  */
 class VertexNormalsHelper extends LineSegments {
 

+ 1 - 0
examples/jsm/helpers/VertexTangentsHelper.js

@@ -20,6 +20,7 @@ const _v2 = new Vector3();
  * ```
  *
  * @augments LineSegments
+ * @three_import import { VertexTangentsHelper } from 'three/addons/helpers/VertexTangentsHelper.js';
  */
 class VertexTangentsHelper extends LineSegments {
 

+ 1 - 0
examples/jsm/helpers/ViewHelper.js

@@ -26,6 +26,7 @@ import {
  * so it looks along the selected axis.
  *
  * @augments Object3D
+ * @three_import import { ViewHelper } from 'three/addons/helpers/ViewHelper.js';
  */
 class ViewHelper extends Object3D {
 

+ 1 - 0
examples/jsm/interactive/HTMLMesh.js

@@ -23,6 +23,7 @@ import {
  * ```
  *
  * @augments Mesh
+ * @three_import import { HTMLMesh } from 'three/addons/interactive/HTMLMesh.js';
  */
 class HTMLMesh extends Mesh {
 

+ 1 - 0
examples/jsm/interactive/InteractiveGroup.js

@@ -34,6 +34,7 @@ const _raycaster = new Raycaster();
  * group.add( mesh1, mesh2, mesh3 );
  * ```
  * @augments Group
+ * @three_import import { InteractiveGroup } from 'three/addons/interactive/InteractiveGroup.js';
  */
 class InteractiveGroup extends Group {
 

+ 2 - 0
examples/jsm/interactive/SelectionBox.js

@@ -37,6 +37,8 @@ const _scale = new Vector3();
  * const selectionBox = new SelectionBox( camera, scene );
  * const selectedObjects = selectionBox.select( startPoint, endPoint );
  * ```
+ *
+ * @three_import import { SelectionBox } from 'three/addons/interactive/SelectionBox.js';
  */
 class SelectionBox {
 

+ 2 - 0
examples/jsm/interactive/SelectionHelper.js

@@ -4,6 +4,8 @@ import { Vector2 } from 'three';
  * A helper for {@link SelectionBox}.
  *
  * It visualizes the current selection box with a `div` container element.
+ *
+ * @three_import import { SelectionHelper } from 'three/addons/interactive/SelectionHelper.js';
  */
 class SelectionHelper {
 

+ 1 - 0
examples/jsm/lighting/TiledLighting.js

@@ -11,6 +11,7 @@ import { tiledLights } from '../tsl/lighting/TiledLightsNode.js';
  * ```
  *
  * @augments Lighting
+ * @three_import import { TiledLighting } from 'three/addons/lighting/TiledLighting.js';
  */
 export class TiledLighting extends Lighting {
 

+ 1 - 0
examples/jsm/lights/LightProbeGenerator.js

@@ -15,6 +15,7 @@ import {
  * Utility class for creating instances of {@link LightProbe}.
  *
  * @hideconstructor
+ * @three_import import { LightProbeGenerator } from 'three/addons/lights/LightProbeGenerator.js';
  */
 class LightProbeGenerator {
 

+ 1 - 0
examples/jsm/lights/RectAreaLightTexturesLib.js

@@ -25,6 +25,7 @@ import {
  * in the main build files.
  *
  * @hideconstructor
+ * @three_import import { RectAreaLightTexturesLib } from 'three/addons/lights/RectAreaLightTexturesLib.js';
  */
 class RectAreaLightTexturesLib {
 

+ 1 - 0
examples/jsm/lights/RectAreaLightUniformsLib.js

@@ -12,6 +12,7 @@ import { RectAreaLightTexturesLib } from './RectAreaLightTexturesLib.js';
  * ```
  *
  * @hideconstructor
+ * @three_import import { RectAreaLightUniformsLib } from 'three/addons/lights/RectAreaLightUniformsLib.js';
  */
 class RectAreaLightUniformsLib {
 

+ 1 - 0
examples/jsm/lines/Line2.js

@@ -24,6 +24,7 @@ import { LineMaterial } from '../lines/LineMaterial.js';
  * ```
  *
  * @augments LineSegments2
+ * @three_import import { Line2 } from 'three/addons/lines/Line2.js';
  */
 class Line2 extends LineSegments2 {
 

+ 1 - 0
examples/jsm/lines/LineGeometry.js

@@ -17,6 +17,7 @@ import { LineSegmentsGeometry } from '../lines/LineSegmentsGeometry.js';
  * ```
  *
  * @augments LineSegmentsGeometry
+ * @three_import import { LineLineGeometry2 } from 'three/addons/lines/LineGeometry.js';
  */
 class LineGeometry extends LineSegmentsGeometry {
 

+ 1 - 0
examples/jsm/lines/LineMaterial.js

@@ -413,6 +413,7 @@ ShaderLib[ 'line' ] = {
  * use {@link Line2NodeMaterial}.
  *
  * @augments ShaderMaterial
+ * @three_import import { LineMaterial } from 'three/addons/lines/LineMaterial.js';
  */
 class LineMaterial extends ShaderMaterial {
 

+ 1 - 0
examples/jsm/lines/LineSegments2.js

@@ -246,6 +246,7 @@ function raycastScreenSpace( lineSegments, camera, intersects ) {
  * ```
  *
  * @augments Mesh
+ * @three_import import { LineSegments2 } from 'three/addons/lines/LineSegments2.js';
  */
 class LineSegments2 extends Mesh {
 

+ 1 - 0
examples/jsm/lines/LineSegmentsGeometry.js

@@ -18,6 +18,7 @@ const _vector = new Vector3();
  * This is used in {@link LineSegments2} to describe the shape.
  *
  * @augments InstancedBufferGeometry
+ * @three_import import { LineSegmentsGeometry } from 'three/addons/lines/LineSegmentsGeometry.js';
  */
 class LineSegmentsGeometry extends InstancedBufferGeometry {
 

+ 1 - 0
examples/jsm/lines/Wireframe.js

@@ -27,6 +27,7 @@ const _viewport = new Vector4();
  * ```
  *
  * @augments Mesh
+ * @three_import import { Wireframe } from 'three/addons/lines/Wireframe.js';
  */
 class Wireframe extends Mesh {
 

+ 1 - 0
examples/jsm/lines/WireframeGeometry2.js

@@ -14,6 +14,7 @@ import { LineSegmentsGeometry } from '../lines/LineSegmentsGeometry.js';
  * ```
  *
  * @augments LineSegmentsGeometry
+ * @three_import import { WireframeGeometry2 } from 'three/addons/lines/WireframeGeometry2.js';
  */
 class WireframeGeometry2 extends LineSegmentsGeometry {
 

+ 1 - 0
examples/jsm/lines/webgpu/Line2.js

@@ -14,6 +14,7 @@ import { LineGeometry } from '../LineGeometry.js';
  * import the class from `lines/Line2.js`.
  *
  * @augments LineSegments2
+ * @three_import import { Line2 } from 'three/addons/lines/webgpu/Line2.js';
  */
 class Line2 extends LineSegments2 {
 

+ 1 - 0
examples/jsm/lines/webgpu/LineSegments2.js

@@ -234,6 +234,7 @@ function raycastScreenSpace( lineSegments, camera, intersects ) {
  * import the class from `lines/LineSegments2.js`.
  *
  * @augments Mesh
+ * @three_import import { LineSegments2 } from 'three/addons/lines/webgpu/LineSegments2.js';
  */
 class LineSegments2 extends Mesh {
 

+ 1 - 0
examples/jsm/lines/webgpu/Wireframe.js

@@ -18,6 +18,7 @@ const _end = new Vector3();
  * import the class from `lines/Wireframe.js`.
  *
  * @augments Mesh
+ * @three_import import { Wireframe } from 'three/addons/lines/webgpu/Wireframe.js';
  */
 class Wireframe extends Mesh {
 

+ 1 - 0
examples/jsm/loaders/3DMLoader.js

@@ -48,6 +48,7 @@ const _taskCache = new WeakMap();
  * ```
  *
  * @augments Loader
+ * @three_import import { Rhino3dmLoader } from 'three/addons/loaders/3DMLoader.js';
  */
 class Rhino3dmLoader extends Loader {
 

+ 1 - 0
examples/jsm/loaders/3MFLoader.js

@@ -48,6 +48,7 @@ const COLOR_SPACE_3MF = SRGBColorSpace;
  * ```
  *
  * @augments Loader
+ * @three_import import { ThreeMFLoader } from 'three/addons/loaders/3MFLoader.js';
  */
 class ThreeMFLoader extends Loader {
 

+ 1 - 0
examples/jsm/loaders/AMFLoader.js

@@ -24,6 +24,7 @@ import * as fflate from '../libs/fflate.module.js';
  * ```
  *
  * @augments Loader
+ * @three_import import { AMFLoader } from 'three/addons/loaders/AMFLoader.js';
  */
 class AMFLoader extends Loader {
 

+ 1 - 0
examples/jsm/loaders/BVHLoader.js

@@ -31,6 +31,7 @@ import {
  * ```
  *
  * @augments Loader
+ * @three_import import { BVHLoader } from 'three/addons/loaders/BVHLoader.js';
  */
 class BVHLoader extends Loader {
 

+ 1 - 0
examples/jsm/loaders/ColladaLoader.js

@@ -58,6 +58,7 @@ import { TGALoader } from '../loaders/TGALoader.js';
  * ```
  *
  * @augments Loader
+ * @three_import import { ColladaLoader } from 'three/addons/loaders/ColladaLoader.js';
  */
 class ColladaLoader extends Loader {
 

+ 1 - 0
examples/jsm/loaders/DDSLoader.js

@@ -20,6 +20,7 @@ import {
  * ```
  *
  * @augments CompressedTextureLoader
+ * @three_import import { DDSLoader } from 'three/addons/loaders/DDSLoader.js';
  */
 class DDSLoader extends CompressedTextureLoader {
 

+ 1 - 0
examples/jsm/loaders/DRACOLoader.js

@@ -41,6 +41,7 @@ const _taskCache = new WeakMap();
  * ```
  *
  * @augments Loader
+ * @three_import import { DRACOLoader } from 'three/addons/loaders/DRACOLoader.js';
  */
 class DRACOLoader extends Loader {
 

+ 1 - 0
examples/jsm/loaders/EXRLoader.js

@@ -92,6 +92,7 @@ import * as fflate from '../libs/fflate.module.js';
  * ```
  *
  * @augments DataTextureLoader
+ * @three_import import { EXRLoader } from 'three/addons/loaders/EXRLoader.js';
  */
 class EXRLoader extends DataTextureLoader {
 

+ 1 - 0
examples/jsm/loaders/FBXLoader.js

@@ -73,6 +73,7 @@ let sceneGraph;
  * ```
  *
  * @augments Loader
+ * @three_import import { FBXLoader } from 'three/addons/loaders/FBXLoader.js';
  */
 class FBXLoader extends Loader {
 

+ 1 - 0
examples/jsm/loaders/FontLoader.js

@@ -15,6 +15,7 @@ import {
  * ```
  *
  * @augments Loader
+ * @three_import import { FontLoader } from 'three/addons/loaders/FontLoader.js';
  */
 class FontLoader extends Loader {
 

+ 1 - 0
examples/jsm/loaders/GCodeLoader.js

@@ -20,6 +20,7 @@ import {
  * ```
  *
  * @augments Loader
+ * @three_import import { GCodeLoader } from 'three/addons/loaders/GCodeLoader.js';
  */
 class GCodeLoader extends Loader {
 

+ 1 - 0
examples/jsm/loaders/GLTFLoader.js

@@ -115,6 +115,7 @@ import { toTrianglesDrawMode } from '../utils/BufferGeometryUtils.js';
  * ```
  *
  * @augments Loader
+ * @three_import import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
  */
 class GLTFLoader extends Loader {
 

+ 1 - 0
examples/jsm/loaders/HDRCubeTextureLoader.js

@@ -23,6 +23,7 @@ import { RGBELoader } from '../loaders/RGBELoader.js';
  * ```
  *
  * @augments Loader
+ * @three_import import { HDRCubeTextureLoader } from 'three/addons/loaders/HDRCubeTextureLoader.js';
  */
 class HDRCubeTextureLoader extends Loader {
 

+ 1 - 0
examples/jsm/loaders/IESLoader.js

@@ -25,6 +25,7 @@ import {
  * ```
  *
  * @augments Loader
+ * @three_import import { IESLoader } from 'three/addons/loaders/IESLoader.js';
  */
 class IESLoader extends Loader {
 

+ 1 - 0
examples/jsm/loaders/KMZLoader.js

@@ -18,6 +18,7 @@ import * as fflate from '../libs/fflate.module.js';
  * ```
  *
  * @augments Loader
+ * @three_import import { KMZLoader } from 'three/addons/loaders/KMZLoader.js';
  */
 class KMZLoader extends Loader {
 

+ 1 - 0
examples/jsm/loaders/KTX2Loader.js

@@ -90,6 +90,7 @@ let _zstd;
  * ```
  *
  * @augments Loader
+ * @three_import import { KTX2Loader } from 'three/addons/loaders/KTX2Loader.js';
  */
 class KTX2Loader extends Loader {
 

+ 1 - 0
examples/jsm/loaders/KTXLoader.js

@@ -17,6 +17,7 @@ import {
  * ```
  *
  * @augments CompressedTextureLoader
+ * @three_import import { KTXLoader } from 'three/addons/loaders/KTXLoader.js';
  */
 class KTXLoader extends CompressedTextureLoader {
 

+ 1 - 0
examples/jsm/loaders/LDrawLoader.js

@@ -1776,6 +1776,7 @@ function createObject( loader, elements, elementSize, isConditionalSegments = fa
  * ```
  *
  * @augments Loader
+ * @three_import import { LDrawLoader } from 'three/addons/loaders/LDrawLoader.js';
  */
 class LDrawLoader extends Loader {
 

+ 1 - 0
examples/jsm/loaders/LUT3dlLoader.js

@@ -21,6 +21,7 @@ import {
  * ```
  *
  * @augments Loader
+ * @three_import import { LUT3dlLoader } from 'three/addons/loaders/LUT3dlLoader.js';
  */
 export class LUT3dlLoader extends Loader {
 

+ 1 - 0
examples/jsm/loaders/LUTCubeLoader.js

@@ -20,6 +20,7 @@ import {
  * ```
  *
  * @augments Loader
+ * @three_import import { LUTCubeLoader } from 'three/addons/loaders/LUTCubeLoader.js';
  */
 export class LUTCubeLoader extends Loader {
 

+ 1 - 0
examples/jsm/loaders/LUTImageLoader.js

@@ -17,6 +17,7 @@ import {
  * ```
  *
  * @augments Loader
+ * @three_import import { LUTImageLoader } from 'three/addons/loaders/LUTImageLoader.js';
  */
 export class LUTImageLoader extends Loader {
 

+ 1 - 13
examples/jsm/loaders/LWOLoader.js

@@ -1,16 +1,3 @@
-/**
- * @version 1.1.1
- *
- * @desc Load files in LWO3 and LWO2 format on Three.js
- *
- * LWO3 format specification:
- *  https://static.lightwave3d.com/sdk/2019/html/filefmts/lwo3.html
- *
- * LWO2 format specification:
- *  https://static.lightwave3d.com/sdk/2019/html/filefmts/lwo2.html
- *
- **/
-
 import {
 	AddOperation,
 	BackSide,
@@ -61,6 +48,7 @@ let _lwoTree;
  * ```
  *
  * @augments Loader
+ * @three_import import { LWOLoader } from 'three/addons/loaders/LWOLoader.js';
  */
 class LWOLoader extends Loader {
 

+ 1 - 0
examples/jsm/loaders/LottieLoader.js

@@ -29,6 +29,7 @@ import lottie from '../libs/lottie_canvas.module.js';
  * ```
  *
  * @augments Loader
+ * @three_import import { LottieLoader } from 'three/addons/loaders/LottieLoader.js';
  */
 class LottieLoader extends Loader {
 

+ 1 - 0
examples/jsm/loaders/MD2Loader.js

@@ -105,6 +105,7 @@ const _normalData = [
  * ```
  *
  * @augments Loader
+ * @three_import import { MD2Loader } from 'three/addons/loaders/MD2Loader.js';
  */
 class MD2Loader extends Loader {
 

+ 1 - 0
examples/jsm/loaders/MDDLoader.js

@@ -40,6 +40,7 @@ import {
  * ```
  *
  * @augments Loader
+ * @three_import import { MDDLoader } from 'three/addons/loaders/MDDLoader.js';
  */
 class MDDLoader extends Loader {
 

Некоторые файлы не были показаны из-за большого количества измененных файлов

粤ICP备19079148号