Jelajahi Sumber

Add file extension to import paths

bentok 8 tahun lalu
induk
melakukan
680f499d6b
100 mengubah file dengan 371 tambahan dan 371 penghapusan
  1. 1 1
      src/animation/AnimationAction.js
  2. 6 6
      src/animation/AnimationClip.js
  3. 6 6
      src/animation/AnimationMixer.js
  4. 2 2
      src/animation/AnimationObjectGroup.js
  5. 9 9
      src/animation/KeyframeTrack.js
  6. 1 1
      src/animation/KeyframeTrackConstructor.js
  7. 6 6
      src/animation/KeyframeTrackPrototype.js
  8. 1 1
      src/animation/PropertyMixer.js
  9. 3 3
      src/animation/tracks/BooleanKeyframeTrack.js
  10. 2 2
      src/animation/tracks/ColorKeyframeTrack.js
  11. 2 2
      src/animation/tracks/NumberKeyframeTrack.js
  12. 4 4
      src/animation/tracks/QuaternionKeyframeTrack.js
  13. 3 3
      src/animation/tracks/StringKeyframeTrack.js
  14. 2 2
      src/animation/tracks/VectorKeyframeTrack.js
  15. 1 1
      src/audio/Audio.js
  16. 4 4
      src/audio/AudioListener.js
  17. 3 3
      src/audio/PositionalAudio.js
  18. 1 1
      src/cameras/ArrayCamera.js
  19. 4 4
      src/cameras/Camera.js
  20. 5 5
      src/cameras/CubeCamera.js
  21. 2 2
      src/cameras/OrthographicCamera.js
  22. 3 3
      src/cameras/PerspectiveCamera.js
  23. 3 3
      src/cameras/StereoCamera.js
  24. 5 5
      src/core/BufferAttribute.js
  25. 12 12
      src/core/BufferGeometry.js
  26. 1 1
      src/core/DirectGeometry.js
  27. 2 2
      src/core/Face3.js
  28. 11 11
      src/core/Geometry.js
  29. 1 1
      src/core/InstancedBufferAttribute.js
  30. 1 1
      src/core/InstancedBufferGeometry.js
  31. 1 1
      src/core/InstancedInterleavedBuffer.js
  32. 1 1
      src/core/InterleavedBuffer.js
  33. 1 1
      src/core/InterleavedBufferAttribute.js
  34. 8 8
      src/core/Object3D.js
  35. 1 1
      src/core/Raycaster.js
  36. 3 3
      src/extras/SceneUtils.js
  37. 3 3
      src/extras/core/Curve.js
  38. 4 4
      src/extras/core/CurvePath.js
  39. 2 2
      src/extras/core/Font.js
  40. 3 3
      src/extras/core/Path.js
  41. 7 7
      src/extras/core/PathPrototype.js
  42. 2 2
      src/extras/core/Shape.js
  43. 3 3
      src/extras/core/ShapePath.js
  44. 1 1
      src/extras/curves/ArcCurve.js
  45. 2 2
      src/extras/curves/CatmullRomCurve3.js
  46. 3 3
      src/extras/curves/CubicBezierCurve.js
  47. 3 3
      src/extras/curves/CubicBezierCurve3.js
  48. 2 2
      src/extras/curves/EllipseCurve.js
  49. 1 1
      src/extras/curves/LineCurve.js
  50. 2 2
      src/extras/curves/LineCurve3.js
  51. 3 3
      src/extras/curves/QuadraticBezierCurve.js
  52. 3 3
      src/extras/curves/QuadraticBezierCurve3.js
  53. 3 3
      src/extras/curves/SplineCurve.js
  54. 1 1
      src/extras/objects/ImmediateRenderObject.js
  55. 4 4
      src/geometries/BoxGeometry.js
  56. 5 5
      src/geometries/CircleGeometry.js
  57. 2 2
      src/geometries/ConeGeometry.js
  58. 5 5
      src/geometries/CylinderGeometry.js
  59. 2 2
      src/geometries/DodecahedronGeometry.js
  60. 4 4
      src/geometries/EdgesGeometry.js
  61. 6 6
      src/geometries/ExtrudeGeometry.js
  62. 2 2
      src/geometries/IcosahedronGeometry.js
  63. 6 6
      src/geometries/LatheGeometry.js
  64. 2 2
      src/geometries/OctahedronGeometry.js
  65. 4 4
      src/geometries/ParametricGeometry.js
  66. 3 3
      src/geometries/PlaneGeometry.js
  67. 5 5
      src/geometries/PolyhedronGeometry.js
  68. 5 5
      src/geometries/RingGeometry.js
  69. 4 4
      src/geometries/ShapeGeometry.js
  70. 4 4
      src/geometries/SphereGeometry.js
  71. 2 2
      src/geometries/TetrahedronGeometry.js
  72. 2 2
      src/geometries/TextGeometry.js
  73. 4 4
      src/geometries/TorusGeometry.js
  74. 4 4
      src/geometries/TorusKnotGeometry.js
  75. 5 5
      src/geometries/TubeGeometry.js
  76. 3 3
      src/geometries/WireframeGeometry.js
  77. 9 9
      src/helpers/ArrowHelper.js
  78. 5 5
      src/helpers/AxisHelper.js
  79. 6 6
      src/helpers/Box3Helper.js
  80. 5 5
      src/helpers/BoxHelper.js
  81. 8 8
      src/helpers/CameraHelper.js
  82. 6 6
      src/helpers/DirectionalLightHelper.js
  83. 6 6
      src/helpers/FaceNormalsHelper.js
  84. 6 6
      src/helpers/GridHelper.js
  85. 8 8
      src/helpers/HemisphereLightHelper.js
  86. 7 7
      src/helpers/PlaneHelper.js
  87. 3 3
      src/helpers/PointLightHelper.js
  88. 6 6
      src/helpers/PolarGridHelper.js
  89. 5 5
      src/helpers/RectAreaLightHelper.js
  90. 9 9
      src/helpers/SkeletonHelper.js
  91. 6 6
      src/helpers/SpotLightHelper.js
  92. 6 6
      src/helpers/VertexNormalsHelper.js
  93. 1 1
      src/lights/AmbientLight.js
  94. 3 3
      src/lights/DirectionalLight.js
  95. 2 2
      src/lights/DirectionalLightShadow.js
  96. 3 3
      src/lights/HemisphereLight.js
  97. 2 2
      src/lights/Light.js
  98. 2 2
      src/lights/LightShadow.js
  99. 3 3
      src/lights/PointLight.js
  100. 1 1
      src/lights/RectAreaLight.js

+ 1 - 1
src/animation/AnimationAction.js

@@ -1,4 +1,4 @@
-import { WrapAroundEnding, ZeroCurvatureEnding, ZeroSlopeEnding, LoopPingPong, LoopOnce, LoopRepeat } from '../constants';
+import { WrapAroundEnding, ZeroCurvatureEnding, ZeroSlopeEnding, LoopPingPong, LoopOnce, LoopRepeat } from '../constants.js';
 
 /**
  *

+ 6 - 6
src/animation/AnimationClip.js

@@ -1,9 +1,9 @@
-import { VectorKeyframeTrack } from './tracks/VectorKeyframeTrack';
-import { QuaternionKeyframeTrack } from './tracks/QuaternionKeyframeTrack';
-import { NumberKeyframeTrack } from './tracks/NumberKeyframeTrack';
-import { AnimationUtils } from './AnimationUtils';
-import { KeyframeTrack } from './KeyframeTrack';
-import { _Math } from '../math/Math';
+import { VectorKeyframeTrack } from './tracks/VectorKeyframeTrack.js';
+import { QuaternionKeyframeTrack } from './tracks/QuaternionKeyframeTrack.js';
+import { NumberKeyframeTrack } from './tracks/NumberKeyframeTrack.js';
+import { AnimationUtils } from './AnimationUtils.js';
+import { KeyframeTrack } from './KeyframeTrack.js';
+import { _Math } from '../math/Math.js';
 
 /**
  *

+ 6 - 6
src/animation/AnimationMixer.js

@@ -1,9 +1,9 @@
-import { AnimationAction } from './AnimationAction';
-import { EventDispatcher } from '../core/EventDispatcher';
-import { LinearInterpolant } from '../math/interpolants/LinearInterpolant';
-import { PropertyBinding } from './PropertyBinding';
-import { PropertyMixer } from './PropertyMixer';
-import { AnimationClip } from './AnimationClip';
+import { AnimationAction } from './AnimationAction.js';
+import { EventDispatcher } from '../core/EventDispatcher.js';
+import { LinearInterpolant } from '../math/interpolants/LinearInterpolant.js';
+import { PropertyBinding } from './PropertyBinding.js';
+import { PropertyMixer } from './PropertyMixer.js';
+import { AnimationClip } from './AnimationClip.js';
 
 /**
  *

+ 2 - 2
src/animation/AnimationObjectGroup.js

@@ -1,5 +1,5 @@
-import { PropertyBinding } from './PropertyBinding';
-import { _Math } from '../math/Math';
+import { PropertyBinding } from './PropertyBinding.js';
+import { _Math } from '../math/Math.js';
 
 /**
  *

+ 9 - 9
src/animation/KeyframeTrack.js

@@ -1,12 +1,12 @@
-import { KeyframeTrackPrototype } from './KeyframeTrackPrototype';
-import { StringKeyframeTrack } from './tracks/StringKeyframeTrack';
-import { BooleanKeyframeTrack } from './tracks/BooleanKeyframeTrack';
-import { QuaternionKeyframeTrack } from './tracks/QuaternionKeyframeTrack';
-import { ColorKeyframeTrack } from './tracks/ColorKeyframeTrack';
-import { VectorKeyframeTrack } from './tracks/VectorKeyframeTrack';
-import { NumberKeyframeTrack } from './tracks/NumberKeyframeTrack';
-import { AnimationUtils } from './AnimationUtils';
-import { KeyframeTrackConstructor } from './KeyframeTrackConstructor';
+import { KeyframeTrackPrototype } from './KeyframeTrackPrototype.js';
+import { StringKeyframeTrack } from './tracks/StringKeyframeTrack.js';
+import { BooleanKeyframeTrack } from './tracks/BooleanKeyframeTrack.js';
+import { QuaternionKeyframeTrack } from './tracks/QuaternionKeyframeTrack.js';
+import { ColorKeyframeTrack } from './tracks/ColorKeyframeTrack.js';
+import { VectorKeyframeTrack } from './tracks/VectorKeyframeTrack.js';
+import { NumberKeyframeTrack } from './tracks/NumberKeyframeTrack.js';
+import { AnimationUtils } from './AnimationUtils.js';
+import { KeyframeTrackConstructor } from './KeyframeTrackConstructor.js';
 
 /**
  *

+ 1 - 1
src/animation/KeyframeTrackConstructor.js

@@ -1,4 +1,4 @@
-import { AnimationUtils } from './AnimationUtils';
+import { AnimationUtils } from './AnimationUtils.js';
 
 function KeyframeTrackConstructor( name, times, values, interpolation ) {
 

+ 6 - 6
src/animation/KeyframeTrackPrototype.js

@@ -1,9 +1,9 @@
-import { InterpolateLinear } from '../constants';
-import { AnimationUtils } from './AnimationUtils';
-import { InterpolateSmooth, InterpolateDiscrete } from '../constants';
-import { CubicInterpolant } from '../math/interpolants/CubicInterpolant';
-import { LinearInterpolant } from '../math/interpolants/LinearInterpolant';
-import { DiscreteInterpolant } from '../math/interpolants/DiscreteInterpolant';
+import { InterpolateLinear } from '../constants.js';
+import { AnimationUtils } from './AnimationUtils.js';
+import { InterpolateSmooth, InterpolateDiscrete } from '../constants.js';
+import { CubicInterpolant } from '../math/interpolants/CubicInterpolant.js';
+import { LinearInterpolant } from '../math/interpolants/LinearInterpolant.js';
+import { DiscreteInterpolant } from '../math/interpolants/DiscreteInterpolant.js';
 
 var KeyframeTrackPrototype;
 

+ 1 - 1
src/animation/PropertyMixer.js

@@ -1,4 +1,4 @@
-import { Quaternion } from '../math/Quaternion';
+import { Quaternion } from '../math/Quaternion.js';
 
 /**
  *

+ 3 - 3
src/animation/tracks/BooleanKeyframeTrack.js

@@ -1,6 +1,6 @@
-import { InterpolateDiscrete } from '../../constants';
-import { KeyframeTrackPrototype } from '../KeyframeTrackPrototype';
-import { KeyframeTrackConstructor } from '../KeyframeTrackConstructor';
+import { InterpolateDiscrete } from '../../constants.js';
+import { KeyframeTrackPrototype } from '../KeyframeTrackPrototype.js';
+import { KeyframeTrackConstructor } from '../KeyframeTrackConstructor.js';
 
 /**
  *

+ 2 - 2
src/animation/tracks/ColorKeyframeTrack.js

@@ -1,5 +1,5 @@
-import { KeyframeTrackPrototype } from '../KeyframeTrackPrototype';
-import { KeyframeTrackConstructor } from '../KeyframeTrackConstructor';
+import { KeyframeTrackPrototype } from '../KeyframeTrackPrototype.js';
+import { KeyframeTrackConstructor } from '../KeyframeTrackConstructor.js';
 
 /**
  *

+ 2 - 2
src/animation/tracks/NumberKeyframeTrack.js

@@ -1,5 +1,5 @@
-import { KeyframeTrackPrototype } from '../KeyframeTrackPrototype';
-import { KeyframeTrackConstructor } from '../KeyframeTrackConstructor';
+import { KeyframeTrackPrototype } from '../KeyframeTrackPrototype.js';
+import { KeyframeTrackConstructor } from '../KeyframeTrackConstructor.js';
 
 /**
  *

+ 4 - 4
src/animation/tracks/QuaternionKeyframeTrack.js

@@ -1,7 +1,7 @@
-import { InterpolateLinear } from '../../constants';
-import { KeyframeTrackPrototype } from '../KeyframeTrackPrototype';
-import { QuaternionLinearInterpolant } from '../../math/interpolants/QuaternionLinearInterpolant';
-import { KeyframeTrackConstructor } from '../KeyframeTrackConstructor';
+import { InterpolateLinear } from '../../constants.js';
+import { KeyframeTrackPrototype } from '../KeyframeTrackPrototype.js';
+import { QuaternionLinearInterpolant } from '../../math/interpolants/QuaternionLinearInterpolant.js';
+import { KeyframeTrackConstructor } from '../KeyframeTrackConstructor.js';
 
 /**
  *

+ 3 - 3
src/animation/tracks/StringKeyframeTrack.js

@@ -1,6 +1,6 @@
-import { InterpolateDiscrete } from '../../constants';
-import { KeyframeTrackPrototype } from '../KeyframeTrackPrototype';
-import { KeyframeTrackConstructor } from '../KeyframeTrackConstructor';
+import { InterpolateDiscrete } from '../../constants.js';
+import { KeyframeTrackPrototype } from '../KeyframeTrackPrototype.js';
+import { KeyframeTrackConstructor } from '../KeyframeTrackConstructor.js';
 
 /**
  *

+ 2 - 2
src/animation/tracks/VectorKeyframeTrack.js

@@ -1,5 +1,5 @@
-import { KeyframeTrackPrototype } from '../KeyframeTrackPrototype';
-import { KeyframeTrackConstructor } from '../KeyframeTrackConstructor';
+import { KeyframeTrackPrototype } from '../KeyframeTrackPrototype.js';
+import { KeyframeTrackConstructor } from '../KeyframeTrackConstructor.js';
 
 /**
  *

+ 1 - 1
src/audio/Audio.js

@@ -3,7 +3,7 @@
  * @author Reece Aaron Lecrivain / http://reecenotes.com/
  */
 
-import { Object3D } from '../core/Object3D';
+import { Object3D } from '../core/Object3D.js';
 
 function Audio( listener ) {
 

+ 4 - 4
src/audio/AudioListener.js

@@ -2,10 +2,10 @@
  * @author mrdoob / http://mrdoob.com/
  */
 
-import { Vector3 } from '../math/Vector3';
-import { Quaternion } from '../math/Quaternion';
-import { Object3D } from '../core/Object3D';
-import { AudioContext } from './AudioContext';
+import { Vector3 } from '../math/Vector3.js';
+import { Quaternion } from '../math/Quaternion.js';
+import { Object3D } from '../core/Object3D.js';
+import { AudioContext } from './AudioContext.js';
 
 function AudioListener() {
 

+ 3 - 3
src/audio/PositionalAudio.js

@@ -2,9 +2,9 @@
  * @author mrdoob / http://mrdoob.com/
  */
 
-import { Vector3 } from '../math/Vector3';
-import { Audio } from './Audio';
-import { Object3D } from '../core/Object3D';
+import { Vector3 } from '../math/Vector3.js';
+import { Audio } from './Audio.js';
+import { Object3D } from '../core/Object3D.js';
 
 function PositionalAudio( listener ) {
 

+ 1 - 1
src/cameras/ArrayCamera.js

@@ -2,7 +2,7 @@
  * @author mrdoob / http://mrdoob.com/
  */
 
-import { PerspectiveCamera } from './PerspectiveCamera';
+import { PerspectiveCamera } from './PerspectiveCamera.js';
 
 function ArrayCamera( array ) {
 

+ 4 - 4
src/cameras/Camera.js

@@ -4,10 +4,10 @@
  * @author WestLangley / http://github.com/WestLangley
 */
 
-import { Matrix4 } from '../math/Matrix4';
-import { Quaternion } from '../math/Quaternion';
-import { Object3D } from '../core/Object3D';
-import { Vector3 } from '../math/Vector3';
+import { Matrix4 } from '../math/Matrix4.js';
+import { Quaternion } from '../math/Quaternion.js';
+import { Object3D } from '../core/Object3D.js';
+import { Vector3 } from '../math/Vector3.js';
 
 function Camera() {
 

+ 5 - 5
src/cameras/CubeCamera.js

@@ -1,8 +1,8 @@
-import { Object3D } from '../core/Object3D';
-import { WebGLRenderTargetCube } from '../renderers/WebGLRenderTargetCube';
-import { LinearFilter, RGBFormat } from '../constants';
-import { Vector3 } from '../math/Vector3';
-import { PerspectiveCamera } from './PerspectiveCamera';
+import { Object3D } from '../core/Object3D.js';
+import { WebGLRenderTargetCube } from '../renderers/WebGLRenderTargetCube.js';
+import { LinearFilter, RGBFormat } from '../constants.js';
+import { Vector3 } from '../math/Vector3.js';
+import { PerspectiveCamera } from './PerspectiveCamera.js';
 
 /**
  * Camera for rendering cube maps

+ 2 - 2
src/cameras/OrthographicCamera.js

@@ -1,5 +1,5 @@
-import { Camera } from './Camera';
-import { Object3D } from '../core/Object3D';
+import { Camera } from './Camera.js';
+import { Object3D } from '../core/Object3D.js';
 
 /**
  * @author alteredq / http://alteredqualia.com/

+ 3 - 3
src/cameras/PerspectiveCamera.js

@@ -1,6 +1,6 @@
-import { Camera } from './Camera';
-import { Object3D } from '../core/Object3D';
-import { _Math } from '../math/Math';
+import { Camera } from './Camera.js';
+import { Object3D } from '../core/Object3D.js';
+import { _Math } from '../math/Math.js';
 
 /**
  * @author mrdoob / http://mrdoob.com/

+ 3 - 3
src/cameras/StereoCamera.js

@@ -1,6 +1,6 @@
-import { Matrix4 } from '../math/Matrix4';
-import { _Math } from '../math/Math';
-import { PerspectiveCamera } from './PerspectiveCamera';
+import { Matrix4 } from '../math/Matrix4.js';
+import { _Math } from '../math/Math.js';
+import { PerspectiveCamera } from './PerspectiveCamera.js';
 
 /**
  * @author mrdoob / http://mrdoob.com/

+ 5 - 5
src/core/BufferAttribute.js

@@ -1,8 +1,8 @@
-import { Vector4 } from '../math/Vector4';
-import { Vector3 } from '../math/Vector3';
-import { Vector2 } from '../math/Vector2';
-import { Color } from '../math/Color';
-import { _Math } from '../math/Math';
+import { Vector4 } from '../math/Vector4.js';
+import { Vector3 } from '../math/Vector3.js';
+import { Vector2 } from '../math/Vector2.js';
+import { Color } from '../math/Color.js';
+import { _Math } from '../math/Math.js';
 
 /**
  * @author mrdoob / http://mrdoob.com/

+ 12 - 12
src/core/BufferGeometry.js

@@ -1,15 +1,15 @@
-import { Vector3 } from '../math/Vector3';
-import { Box3 } from '../math/Box3';
-import { EventDispatcher } from './EventDispatcher';
-import { BufferAttribute, Float32BufferAttribute, Uint16BufferAttribute, Uint32BufferAttribute } from './BufferAttribute';
-import { Sphere } from '../math/Sphere';
-import { DirectGeometry } from './DirectGeometry';
-import { Object3D } from './Object3D';
-import { Matrix4 } from '../math/Matrix4';
-import { Matrix3 } from '../math/Matrix3';
-import { _Math } from '../math/Math';
-import { arrayMax } from '../utils';
-import { GeometryIdCount } from './Geometry';
+import { Vector3 } from '../math/Vector3.js';
+import { Box3 } from '../math/Box3.js';
+import { EventDispatcher } from './EventDispatcher.js';
+import { BufferAttribute, Float32BufferAttribute, Uint16BufferAttribute, Uint32BufferAttribute } from './BufferAttribute.js';
+import { Sphere } from '../math/Sphere.js';
+import { DirectGeometry } from './DirectGeometry.js';
+import { Object3D } from './Object3D.js';
+import { Matrix4 } from '../math/Matrix4.js';
+import { Matrix3 } from '../math/Matrix3.js';
+import { _Math } from '../math/Math.js';
+import { arrayMax } from '../utils.js';
+import { GeometryIdCount } from './Geometry.js';
 
 /**
  * @author alteredq / http://alteredqualia.com/

+ 1 - 1
src/core/DirectGeometry.js

@@ -2,7 +2,7 @@
  * @author mrdoob / http://mrdoob.com/
  */
 
-import { Vector2 } from '../math/Vector2';
+import { Vector2 } from '../math/Vector2.js';
 
 function DirectGeometry() {
 

+ 2 - 2
src/core/Face3.js

@@ -1,5 +1,5 @@
-import { Color } from '../math/Color';
-import { Vector3 } from '../math/Vector3';
+import { Color } from '../math/Color.js';
+import { Vector3 } from '../math/Vector3.js';
 
 /**
  * @author mrdoob / http://mrdoob.com/

+ 11 - 11
src/core/Geometry.js

@@ -1,14 +1,14 @@
-import { EventDispatcher } from './EventDispatcher';
-import { Face3 } from './Face3';
-import { Matrix3 } from '../math/Matrix3';
-import { Sphere } from '../math/Sphere';
-import { Box3 } from '../math/Box3';
-import { Vector3 } from '../math/Vector3';
-import { Matrix4 } from '../math/Matrix4';
-import { Vector2 } from '../math/Vector2';
-import { Color } from '../math/Color';
-import { Object3D } from './Object3D';
-import { _Math } from '../math/Math';
+import { EventDispatcher } from './EventDispatcher.js';
+import { Face3 } from './Face3.js';
+import { Matrix3 } from '../math/Matrix3.js';
+import { Sphere } from '../math/Sphere.js';
+import { Box3 } from '../math/Box3.js';
+import { Vector3 } from '../math/Vector3.js';
+import { Matrix4 } from '../math/Matrix4.js';
+import { Vector2 } from '../math/Vector2.js';
+import { Color } from '../math/Color.js';
+import { Object3D } from './Object3D.js';
+import { _Math } from '../math/Math.js';
 
 /**
  * @author mrdoob / http://mrdoob.com/

+ 1 - 1
src/core/InstancedBufferAttribute.js

@@ -1,4 +1,4 @@
-import { BufferAttribute } from './BufferAttribute';
+import { BufferAttribute } from './BufferAttribute.js';
 
 /**
  * @author benaadams / https://twitter.com/ben_a_adams

+ 1 - 1
src/core/InstancedBufferGeometry.js

@@ -1,4 +1,4 @@
-import { BufferGeometry } from './BufferGeometry';
+import { BufferGeometry } from './BufferGeometry.js';
 
 /**
  * @author benaadams / https://twitter.com/ben_a_adams

+ 1 - 1
src/core/InstancedInterleavedBuffer.js

@@ -1,4 +1,4 @@
-import { InterleavedBuffer } from './InterleavedBuffer';
+import { InterleavedBuffer } from './InterleavedBuffer.js';
 
 /**
  * @author benaadams / https://twitter.com/ben_a_adams

+ 1 - 1
src/core/InterleavedBuffer.js

@@ -1,4 +1,4 @@
-import { _Math } from '../math/Math';
+import { _Math } from '../math/Math.js';
 
 /**
  * @author benaadams / https://twitter.com/ben_a_adams

+ 1 - 1
src/core/InterleavedBufferAttribute.js

@@ -1,4 +1,4 @@
-import { _Math } from '../math/Math';
+import { _Math } from '../math/Math.js';
 
 /**
  * @author benaadams / https://twitter.com/ben_a_adams

+ 8 - 8
src/core/Object3D.js

@@ -1,11 +1,11 @@
-import { Quaternion } from '../math/Quaternion';
-import { Vector3 } from '../math/Vector3';
-import { Matrix4 } from '../math/Matrix4';
-import { EventDispatcher } from './EventDispatcher';
-import { Euler } from '../math/Euler';
-import { Layers } from './Layers';
-import { Matrix3 } from '../math/Matrix3';
-import { _Math } from '../math/Math';
+import { Quaternion } from '../math/Quaternion.js';
+import { Vector3 } from '../math/Vector3.js';
+import { Matrix4 } from '../math/Matrix4.js';
+import { EventDispatcher } from './EventDispatcher.js';
+import { Euler } from '../math/Euler.js';
+import { Layers } from './Layers.js';
+import { Matrix3 } from '../math/Matrix3.js';
+import { _Math } from '../math/Math.js';
 
 /**
  * @author mrdoob / http://mrdoob.com/

+ 1 - 1
src/core/Raycaster.js

@@ -1,4 +1,4 @@
-import { Ray } from '../math/Ray';
+import { Ray } from '../math/Ray.js';
 
 /**
  * @author mrdoob / http://mrdoob.com/

+ 3 - 3
src/extras/SceneUtils.js

@@ -1,6 +1,6 @@
-import { Matrix4 } from '../math/Matrix4';
-import { Mesh } from '../objects/Mesh';
-import { Group } from '../objects/Group';
+import { Matrix4 } from '../math/Matrix4.js';
+import { Mesh } from '../objects/Mesh.js';
+import { Group } from '../objects/Group.js';
 
 /**
  * @author alteredq / http://alteredqualia.com/

+ 3 - 3
src/extras/core/Curve.js

@@ -1,6 +1,6 @@
-import { _Math } from '../../math/Math';
-import { Vector3 } from '../../math/Vector3';
-import { Matrix4 } from '../../math/Matrix4';
+import { _Math } from '../../math/Math.js';
+import { Vector3 } from '../../math/Vector3.js';
+import { Matrix4 } from '../../math/Matrix4.js';
 
 /**
  * @author zz85 / http://www.lab4games.net/zz85/blog

+ 4 - 4
src/extras/core/CurvePath.js

@@ -1,7 +1,7 @@
-import { Curve } from './Curve';
-import { Vector3 } from '../../math/Vector3';
-import { Geometry } from '../../core/Geometry';
-import { LineCurve } from '../curves/LineCurve';
+import { Curve } from './Curve.js';
+import { Vector3 } from '../../math/Vector3.js';
+import { Geometry } from '../../core/Geometry.js';
+import { LineCurve } from '../curves/LineCurve.js';
 
 /**
  * @author zz85 / http://www.lab4games.net/zz85/blog

+ 2 - 2
src/extras/core/Font.js

@@ -3,8 +3,8 @@
  * @author mrdoob / http://mrdoob.com/
  */
 
-import { QuadraticBezier, CubicBezier } from './Interpolations';
-import { ShapePath } from './ShapePath';
+import { QuadraticBezier, CubicBezier } from './Interpolations.js';
+import { ShapePath } from './ShapePath.js';
 
 
 function Font( data ) {

+ 3 - 3
src/extras/core/Path.js

@@ -3,9 +3,9 @@
  * Creates free form 2d path using series of points, lines or curves.
  **/
 
-import { PathPrototype } from './PathPrototype';
-import { Vector2 } from '../../math/Vector2';
-import { CurvePath } from './CurvePath';
+import { PathPrototype } from './PathPrototype.js';
+import { Vector2 } from '../../math/Vector2.js';
+import { CurvePath } from './CurvePath.js';
 
 
 function Path( points ) {

+ 7 - 7
src/extras/core/PathPrototype.js

@@ -1,10 +1,10 @@
-import { CurvePath } from './CurvePath';
-import { EllipseCurve } from '../curves/EllipseCurve';
-import { SplineCurve } from '../curves/SplineCurve';
-import { Vector2 } from '../../math/Vector2';
-import { CubicBezierCurve } from '../curves/CubicBezierCurve';
-import { QuadraticBezierCurve } from '../curves/QuadraticBezierCurve';
-import { LineCurve } from '../curves/LineCurve';
+import { CurvePath } from './CurvePath.js';
+import { EllipseCurve } from '../curves/EllipseCurve.js';
+import { SplineCurve } from '../curves/SplineCurve.js';
+import { Vector2 } from '../../math/Vector2.js';
+import { CubicBezierCurve } from '../curves/CubicBezierCurve.js';
+import { QuadraticBezierCurve } from '../curves/QuadraticBezierCurve.js';
+import { LineCurve } from '../curves/LineCurve.js';
 
 var PathPrototype = Object.assign( Object.create( CurvePath.prototype ), {
 

+ 2 - 2
src/extras/core/Shape.js

@@ -1,5 +1,5 @@
-import { PathPrototype } from './PathPrototype';
-import { Path } from './Path';
+import { PathPrototype } from './PathPrototype.js';
+import { Path } from './Path.js';
 
 /**
  * @author zz85 / http://www.lab4games.net/zz85/blog

+ 3 - 3
src/extras/core/ShapePath.js

@@ -1,6 +1,6 @@
-import { Path } from './Path';
-import { Shape } from './Shape';
-import { ShapeUtils } from '../ShapeUtils';
+import { Path } from './Path.js';
+import { Shape } from './Shape.js';
+import { ShapeUtils } from '../ShapeUtils.js';
 
 /**
  * @author zz85 / http://www.lab4games.net/zz85/blog

+ 1 - 1
src/extras/curves/ArcCurve.js

@@ -1,4 +1,4 @@
-import { EllipseCurve } from './EllipseCurve';
+import { EllipseCurve } from './EllipseCurve.js';
 
 
 function ArcCurve( aX, aY, aRadius, aStartAngle, aEndAngle, aClockwise ) {

+ 2 - 2
src/extras/curves/CatmullRomCurve3.js

@@ -1,5 +1,5 @@
-import { Vector3 } from '../../math/Vector3';
-import { Curve } from '../core/Curve';
+import { Vector3 } from '../../math/Vector3.js';
+import { Curve } from '../core/Curve.js';
 
 /**
  * @author zz85 https://github.com/zz85

+ 3 - 3
src/extras/curves/CubicBezierCurve.js

@@ -1,6 +1,6 @@
-import { Curve } from '../core/Curve';
-import { CubicBezier } from '../core/Interpolations';
-import { Vector2 } from '../../math/Vector2';
+import { Curve } from '../core/Curve.js';
+import { CubicBezier } from '../core/Interpolations.js';
+import { Vector2 } from '../../math/Vector2.js';
 
 
 function CubicBezierCurve( v0, v1, v2, v3 ) {

+ 3 - 3
src/extras/curves/CubicBezierCurve3.js

@@ -1,6 +1,6 @@
-import { Curve } from '../core/Curve';
-import { CubicBezier } from '../core/Interpolations';
-import { Vector3 } from '../../math/Vector3';
+import { Curve } from '../core/Curve.js';
+import { CubicBezier } from '../core/Interpolations.js';
+import { Vector3 } from '../../math/Vector3.js';
 
 
 function CubicBezierCurve3( v0, v1, v2, v3 ) {

+ 2 - 2
src/extras/curves/EllipseCurve.js

@@ -1,5 +1,5 @@
-import { Curve } from '../core/Curve';
-import { Vector2 } from '../../math/Vector2';
+import { Curve } from '../core/Curve.js';
+import { Vector2 } from '../../math/Vector2.js';
 
 
 function EllipseCurve( aX, aY, xRadius, yRadius, aStartAngle, aEndAngle, aClockwise, aRotation ) {

+ 1 - 1
src/extras/curves/LineCurve.js

@@ -1,4 +1,4 @@
-import { Curve } from '../core/Curve';
+import { Curve } from '../core/Curve.js';
 
 
 function LineCurve( v1, v2 ) {

+ 2 - 2
src/extras/curves/LineCurve3.js

@@ -1,5 +1,5 @@
-import { Vector3 } from '../../math/Vector3';
-import { Curve } from '../core/Curve';
+import { Vector3 } from '../../math/Vector3.js';
+import { Curve } from '../core/Curve.js';
 
 
 function LineCurve3( v1, v2 ) {

+ 3 - 3
src/extras/curves/QuadraticBezierCurve.js

@@ -1,6 +1,6 @@
-import { Curve } from '../core/Curve';
-import { QuadraticBezier } from '../core/Interpolations';
-import { Vector2 } from '../../math/Vector2';
+import { Curve } from '../core/Curve.js';
+import { QuadraticBezier } from '../core/Interpolations.js';
+import { Vector2 } from '../../math/Vector2.js';
 
 
 function QuadraticBezierCurve( v0, v1, v2 ) {

+ 3 - 3
src/extras/curves/QuadraticBezierCurve3.js

@@ -1,6 +1,6 @@
-import { Curve } from '../core/Curve';
-import { QuadraticBezier } from '../core/Interpolations';
-import { Vector3 } from '../../math/Vector3';
+import { Curve } from '../core/Curve.js';
+import { QuadraticBezier } from '../core/Interpolations.js';
+import { Vector3 } from '../../math/Vector3.js';
 
 
 function QuadraticBezierCurve3( v0, v1, v2 ) {

+ 3 - 3
src/extras/curves/SplineCurve.js

@@ -1,6 +1,6 @@
-import { Curve } from '../core/Curve';
-import { CatmullRom } from '../core/Interpolations';
-import { Vector2 } from '../../math/Vector2';
+import { Curve } from '../core/Curve.js';
+import { CatmullRom } from '../core/Interpolations.js';
+import { Vector2 } from '../../math/Vector2.js';
 
 
 function SplineCurve( points /* array of Vector2 */ ) {

+ 1 - 1
src/extras/objects/ImmediateRenderObject.js

@@ -1,4 +1,4 @@
-import { Object3D } from '../../core/Object3D';
+import { Object3D } from '../../core/Object3D.js';
 
 /**
  * @author alteredq / http://alteredqualia.com/

+ 4 - 4
src/geometries/BoxGeometry.js

@@ -3,10 +3,10 @@
  * @author Mugen87 / https://github.com/Mugen87
  */
 
-import { Geometry } from '../core/Geometry';
-import { BufferGeometry } from '../core/BufferGeometry';
-import { Float32BufferAttribute } from '../core/BufferAttribute';
-import { Vector3 } from '../math/Vector3';
+import { Geometry } from '../core/Geometry.js';
+import { BufferGeometry } from '../core/BufferGeometry.js';
+import { Float32BufferAttribute } from '../core/BufferAttribute.js';
+import { Vector3 } from '../math/Vector3.js';
 
 // BoxGeometry
 

+ 5 - 5
src/geometries/CircleGeometry.js

@@ -4,11 +4,11 @@
  * @author hughes
  */
 
-import { Geometry } from '../core/Geometry';
-import { BufferGeometry } from '../core/BufferGeometry';
-import { Float32BufferAttribute } from '../core/BufferAttribute';
-import { Vector3 } from '../math/Vector3';
-import { Vector2 } from '../math/Vector2';
+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 { Vector2 } from '../math/Vector2.js';
 
 // CircleGeometry
 

+ 2 - 2
src/geometries/ConeGeometry.js

@@ -2,8 +2,8 @@
  * @author abelnation / http://github.com/abelnation
  */
 
-import { CylinderGeometry } from './CylinderGeometry';
-import { CylinderBufferGeometry } from './CylinderGeometry';
+import { CylinderGeometry } from './CylinderGeometry.js';
+import { CylinderBufferGeometry } from './CylinderGeometry.js';
 
 // ConeGeometry
 

+ 5 - 5
src/geometries/CylinderGeometry.js

@@ -3,11 +3,11 @@
  * @author Mugen87 / https://github.com/Mugen87
  */
 
-import { Geometry } from '../core/Geometry';
-import { BufferGeometry } from '../core/BufferGeometry';
-import { Float32BufferAttribute } from '../core/BufferAttribute';
-import { Vector3 } from '../math/Vector3';
-import { Vector2 } from '../math/Vector2';
+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 { Vector2 } from '../math/Vector2.js';
 
 // CylinderGeometry
 

+ 2 - 2
src/geometries/DodecahedronGeometry.js

@@ -3,8 +3,8 @@
  * @author Mugen87 / https://github.com/Mugen87
  */
 
-import { Geometry } from '../core/Geometry';
-import { PolyhedronBufferGeometry } from './PolyhedronGeometry';
+import { Geometry } from '../core/Geometry.js';
+import { PolyhedronBufferGeometry } from './PolyhedronGeometry.js';
 
 // DodecahedronGeometry
 

+ 4 - 4
src/geometries/EdgesGeometry.js

@@ -3,10 +3,10 @@
  * @author Mugen87 / https://github.com/Mugen87
  */
 
-import { BufferGeometry } from '../core/BufferGeometry';
-import { Float32BufferAttribute } from '../core/BufferAttribute';
-import { Geometry } from '../core/Geometry';
-import { _Math } from '../math/Math';
+import { BufferGeometry } from '../core/BufferGeometry.js';
+import { Float32BufferAttribute } from '../core/BufferAttribute.js';
+import { Geometry } from '../core/Geometry.js';
+import { _Math } from '../math/Math.js';
 
 function EdgesGeometry( geometry, thresholdAngle ) {
 

+ 6 - 6
src/geometries/ExtrudeGeometry.js

@@ -22,12 +22,12 @@
  * }
  */
 
-import { Geometry } from '../core/Geometry';
-import { BufferGeometry } from '../core/BufferGeometry';
-import { Float32BufferAttribute } from '../core/BufferAttribute';
-import { Vector2 } from '../math/Vector2';
-import { Vector3 } from '../math/Vector3';
-import { ShapeUtils } from '../extras/ShapeUtils';
+import { Geometry } from '../core/Geometry.js';
+import { BufferGeometry } from '../core/BufferGeometry.js';
+import { Float32BufferAttribute } from '../core/BufferAttribute.js';
+import { Vector2 } from '../math/Vector2.js';
+import { Vector3 } from '../math/Vector3.js';
+import { ShapeUtils } from '../extras/ShapeUtils.js';
 
 // ExtrudeGeometry
 

+ 2 - 2
src/geometries/IcosahedronGeometry.js

@@ -3,8 +3,8 @@
  * @author Mugen87 / https://github.com/Mugen87
  */
 
-import { Geometry } from '../core/Geometry';
-import { PolyhedronBufferGeometry } from './PolyhedronGeometry';
+import { Geometry } from '../core/Geometry.js';
+import { PolyhedronBufferGeometry } from './PolyhedronGeometry.js';
 
 // IcosahedronGeometry
 

+ 6 - 6
src/geometries/LatheGeometry.js

@@ -5,12 +5,12 @@
  * @author Mugen87 / https://github.com/Mugen87
  */
 
-import { Geometry } from '../core/Geometry';
-import { Float32BufferAttribute } from '../core/BufferAttribute';
-import { BufferGeometry } from '../core/BufferGeometry';
-import { Vector3 } from '../math/Vector3';
-import { Vector2 } from '../math/Vector2';
-import { _Math } from '../math/Math';
+import { Geometry } from '../core/Geometry.js';
+import { Float32BufferAttribute } from '../core/BufferAttribute.js';
+import { BufferGeometry } from '../core/BufferGeometry.js';
+import { Vector3 } from '../math/Vector3.js';
+import { Vector2 } from '../math/Vector2.js';
+import { _Math } from '../math/Math.js';
 
 // LatheGeometry
 

+ 2 - 2
src/geometries/OctahedronGeometry.js

@@ -3,8 +3,8 @@
  * @author Mugen87 / https://github.com/Mugen87
  */
 
-import { Geometry } from '../core/Geometry';
-import { PolyhedronBufferGeometry } from './PolyhedronGeometry';
+import { Geometry } from '../core/Geometry.js';
+import { PolyhedronBufferGeometry } from './PolyhedronGeometry.js';
 
 // OctahedronGeometry
 

+ 4 - 4
src/geometries/ParametricGeometry.js

@@ -6,10 +6,10 @@
  * based on the brilliant article by @prideout http://prideout.net/blog/?p=44
  */
 
-import { Geometry } from '../core/Geometry';
-import { BufferGeometry } from '../core/BufferGeometry';
-import { Float32BufferAttribute } from '../core/BufferAttribute';
-import { Vector3 } from '../math/Vector3';
+import { Geometry } from '../core/Geometry.js';
+import { BufferGeometry } from '../core/BufferGeometry.js';
+import { Float32BufferAttribute } from '../core/BufferAttribute.js';
+import { Vector3 } from '../math/Vector3.js';
 
 // ParametricGeometry
 

+ 3 - 3
src/geometries/PlaneGeometry.js

@@ -3,9 +3,9 @@
  * @author Mugen87 / https://github.com/Mugen87
  */
 
-import { Geometry } from '../core/Geometry';
-import { BufferGeometry } from '../core/BufferGeometry';
-import { Float32BufferAttribute } from '../core/BufferAttribute';
+import { Geometry } from '../core/Geometry.js';
+import { BufferGeometry } from '../core/BufferGeometry.js';
+import { Float32BufferAttribute } from '../core/BufferAttribute.js';
 
 // PlaneGeometry
 

+ 5 - 5
src/geometries/PolyhedronGeometry.js

@@ -5,11 +5,11 @@
  * @author Mugen87 / https://github.com/Mugen87
  */
 
-import { Geometry } from '../core/Geometry';
-import { BufferGeometry } from '../core/BufferGeometry';
-import { Float32BufferAttribute } from '../core/BufferAttribute';
-import { Vector3 } from '../math/Vector3';
-import { Vector2 } from '../math/Vector2';
+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 { Vector2 } from '../math/Vector2.js';
 
 // PolyhedronGeometry
 

+ 5 - 5
src/geometries/RingGeometry.js

@@ -3,11 +3,11 @@
  * @author Mugen87 / https://github.com/Mugen87
  */
 
-import { Geometry } from '../core/Geometry';
-import { BufferGeometry } from '../core/BufferGeometry';
-import { Float32BufferAttribute } from '../core/BufferAttribute';
-import { Vector2 } from '../math/Vector2';
-import { Vector3 } from '../math/Vector3';
+import { Geometry } from '../core/Geometry.js';
+import { BufferGeometry } from '../core/BufferGeometry.js';
+import { Float32BufferAttribute } from '../core/BufferAttribute.js';
+import { Vector2 } from '../math/Vector2.js';
+import { Vector3 } from '../math/Vector3.js';
 
 // RingGeometry
 

+ 4 - 4
src/geometries/ShapeGeometry.js

@@ -3,10 +3,10 @@
  * @author Mugen87 / https://github.com/Mugen87
  */
 
-import { Geometry } from '../core/Geometry';
-import { BufferGeometry } from '../core/BufferGeometry';
-import { Float32BufferAttribute } from '../core/BufferAttribute';
-import { ShapeUtils } from '../extras/ShapeUtils';
+import { Geometry } from '../core/Geometry.js';
+import { BufferGeometry } from '../core/BufferGeometry.js';
+import { Float32BufferAttribute } from '../core/BufferAttribute.js';
+import { ShapeUtils } from '../extras/ShapeUtils.js';
 
 // ShapeGeometry
 

+ 4 - 4
src/geometries/SphereGeometry.js

@@ -4,10 +4,10 @@
  * @author Mugen87 / https://github.com/Mugen87
  */
 
-import { Geometry } from '../core/Geometry';
-import { BufferGeometry } from '../core/BufferGeometry';
-import { Float32BufferAttribute } from '../core/BufferAttribute';
-import { Vector3 } from '../math/Vector3';
+import { Geometry } from '../core/Geometry.js';
+import { BufferGeometry } from '../core/BufferGeometry.js';
+import { Float32BufferAttribute } from '../core/BufferAttribute.js';
+import { Vector3 } from '../math/Vector3.js';
 
 // SphereGeometry
 

+ 2 - 2
src/geometries/TetrahedronGeometry.js

@@ -3,8 +3,8 @@
  * @author Mugen87 / https://github.com/Mugen87
  */
 
-import { Geometry } from '../core/Geometry';
-import { PolyhedronBufferGeometry } from './PolyhedronGeometry';
+import { Geometry } from '../core/Geometry.js';
+import { PolyhedronBufferGeometry } from './PolyhedronGeometry.js';
 
 // TetrahedronGeometry
 

+ 2 - 2
src/geometries/TextGeometry.js

@@ -17,8 +17,8 @@
  * }
  */
 
-import { Geometry } from '../core/Geometry';
-import { ExtrudeBufferGeometry } from './ExtrudeGeometry';
+import { Geometry } from '../core/Geometry.js';
+import { ExtrudeBufferGeometry } from './ExtrudeGeometry.js';
 
 // TextGeometry
 

+ 4 - 4
src/geometries/TorusGeometry.js

@@ -4,10 +4,10 @@
  * @author Mugen87 / https://github.com/Mugen87
  */
 
-import { Geometry } from '../core/Geometry';
-import { BufferGeometry } from '../core/BufferGeometry';
-import { Float32BufferAttribute } from '../core/BufferAttribute';
-import { Vector3 } from '../math/Vector3';
+import { Geometry } from '../core/Geometry.js';
+import { BufferGeometry } from '../core/BufferGeometry.js';
+import { Float32BufferAttribute } from '../core/BufferAttribute.js';
+import { Vector3 } from '../math/Vector3.js';
 
 // TorusGeometry
 

+ 4 - 4
src/geometries/TorusKnotGeometry.js

@@ -5,10 +5,10 @@
  * based on http://www.blackpawn.com/texts/pqtorus/
  */
 
-import { Geometry } from '../core/Geometry';
-import { BufferGeometry } from '../core/BufferGeometry';
-import { Float32BufferAttribute } from '../core/BufferAttribute';
-import { Vector3 } from '../math/Vector3';
+import { Geometry } from '../core/Geometry.js';
+import { BufferGeometry } from '../core/BufferGeometry.js';
+import { Float32BufferAttribute } from '../core/BufferAttribute.js';
+import { Vector3 } from '../math/Vector3.js';
 
 // TorusKnotGeometry
 

+ 5 - 5
src/geometries/TubeGeometry.js

@@ -8,11 +8,11 @@
  *
  */
 
-import { Geometry } from '../core/Geometry';
-import { BufferGeometry } from '../core/BufferGeometry';
-import { Float32BufferAttribute } from '../core/BufferAttribute';
-import { Vector2 } from '../math/Vector2';
-import { Vector3 } from '../math/Vector3';
+import { Geometry } from '../core/Geometry.js';
+import { BufferGeometry } from '../core/BufferGeometry.js';
+import { Float32BufferAttribute } from '../core/BufferAttribute.js';
+import { Vector2 } from '../math/Vector2.js';
+import { Vector3 } from '../math/Vector3.js';
 
 // TubeGeometry
 

+ 3 - 3
src/geometries/WireframeGeometry.js

@@ -3,9 +3,9 @@
  * @author Mugen87 / https://github.com/Mugen87
  */
 
-import { BufferGeometry } from '../core/BufferGeometry';
-import { Float32BufferAttribute } from '../core/BufferAttribute';
-import { Vector3 } from '../math/Vector3';
+import { BufferGeometry } from '../core/BufferGeometry.js';
+import { Float32BufferAttribute } from '../core/BufferAttribute.js';
+import { Vector3 } from '../math/Vector3.js';
 
 function WireframeGeometry( geometry ) {
 

+ 9 - 9
src/helpers/ArrowHelper.js

@@ -14,15 +14,15 @@
  *  headWidth - Number
  */
 
-import { Float32BufferAttribute } from '../core/BufferAttribute';
-import { BufferGeometry } from '../core/BufferGeometry';
-import { Object3D } from '../core/Object3D';
-import { CylinderBufferGeometry } from '../geometries/CylinderGeometry';
-import { MeshBasicMaterial } from '../materials/MeshBasicMaterial';
-import { LineBasicMaterial } from '../materials/LineBasicMaterial';
-import { Mesh } from '../objects/Mesh';
-import { Line } from '../objects/Line';
-import { Vector3 } from '../math/Vector3';
+import { Float32BufferAttribute } from '../core/BufferAttribute.js';
+import { BufferGeometry } from '../core/BufferGeometry.js';
+import { Object3D } from '../core/Object3D.js';
+import { CylinderBufferGeometry } from '../geometries/CylinderGeometry.js';
+import { MeshBasicMaterial } from '../materials/MeshBasicMaterial.js';
+import { LineBasicMaterial } from '../materials/LineBasicMaterial.js';
+import { Mesh } from '../objects/Mesh.js';
+import { Line } from '../objects/Line.js';
+import { Vector3 } from '../math/Vector3.js';
 
 var lineGeometry, coneGeometry;
 

+ 5 - 5
src/helpers/AxisHelper.js

@@ -3,11 +3,11 @@
  * @author mrdoob / http://mrdoob.com/
  */
 
-import { LineSegments } from '../objects/LineSegments';
-import { VertexColors } from '../constants';
-import { LineBasicMaterial } from '../materials/LineBasicMaterial';
-import { Float32BufferAttribute } from '../core/BufferAttribute';
-import { BufferGeometry } from '../core/BufferGeometry';
+import { LineSegments } from '../objects/LineSegments.js';
+import { VertexColors } from '../constants.js';
+import { LineBasicMaterial } from '../materials/LineBasicMaterial.js';
+import { Float32BufferAttribute } from '../core/BufferAttribute.js';
+import { BufferGeometry } from '../core/BufferGeometry.js';
 
 function AxisHelper( size ) {
 

+ 6 - 6
src/helpers/Box3Helper.js

@@ -2,12 +2,12 @@
  * @author WestLangley / http://github.com/WestLangley
  */
 
-import { LineSegments } from '../objects/LineSegments';
-import { LineBasicMaterial } from '../materials/LineBasicMaterial';
-import { BufferAttribute } from '../core/BufferAttribute';
-import { Float32BufferAttribute } from '../core/BufferAttribute';
-import { BufferGeometry } from '../core/BufferGeometry';
-import { Object3D } from '../core/Object3D';
+import { LineSegments } from '../objects/LineSegments.js';
+import { LineBasicMaterial } from '../materials/LineBasicMaterial.js';
+import { BufferAttribute } from '../core/BufferAttribute.js';
+import { Float32BufferAttribute } from '../core/BufferAttribute.js';
+import { BufferGeometry } from '../core/BufferGeometry.js';
+import { Object3D } from '../core/Object3D.js';
 
 function Box3Helper( box, hex ) {
 

+ 5 - 5
src/helpers/BoxHelper.js

@@ -3,11 +3,11 @@
  * @author Mugen87 / http://github.com/Mugen87
  */
 
-import { Box3 } from '../math/Box3';
-import { LineSegments } from '../objects/LineSegments';
-import { LineBasicMaterial } from '../materials/LineBasicMaterial';
-import { BufferAttribute } from '../core/BufferAttribute';
-import { BufferGeometry } from '../core/BufferGeometry';
+import { Box3 } from '../math/Box3.js';
+import { LineSegments } from '../objects/LineSegments.js';
+import { LineBasicMaterial } from '../materials/LineBasicMaterial.js';
+import { BufferAttribute } from '../core/BufferAttribute.js';
+import { BufferGeometry } from '../core/BufferGeometry.js';
 
 function BoxHelper( object, color ) {
 

+ 8 - 8
src/helpers/CameraHelper.js

@@ -8,14 +8,14 @@
  *		http://evanw.github.com/lightgl.js/tests/shadowmap.html
  */
 
-import { Camera } from '../cameras/Camera';
-import { Vector3 } from '../math/Vector3';
-import { LineSegments } from '../objects/LineSegments';
-import { Color } from '../math/Color';
-import { FaceColors } from '../constants';
-import { LineBasicMaterial } from '../materials/LineBasicMaterial';
-import { BufferGeometry } from '../core/BufferGeometry';
-import { Float32BufferAttribute } from '../core/BufferAttribute';
+import { Camera } from '../cameras/Camera.js';
+import { Vector3 } from '../math/Vector3.js';
+import { LineSegments } from '../objects/LineSegments.js';
+import { Color } from '../math/Color.js';
+import { FaceColors } from '../constants.js';
+import { LineBasicMaterial } from '../materials/LineBasicMaterial.js';
+import { BufferGeometry } from '../core/BufferGeometry.js';
+import { Float32BufferAttribute } from '../core/BufferAttribute.js';
 
 function CameraHelper( camera ) {
 

+ 6 - 6
src/helpers/DirectionalLightHelper.js

@@ -4,12 +4,12 @@
  * @author WestLangley / http://github.com/WestLangley
  */
 
-import { Vector3 } from '../math/Vector3';
-import { Object3D } from '../core/Object3D';
-import { Line } from '../objects/Line';
-import { Float32BufferAttribute } from '../core/BufferAttribute';
-import { BufferGeometry } from '../core/BufferGeometry';
-import { LineBasicMaterial } from '../materials/LineBasicMaterial';
+import { Vector3 } from '../math/Vector3.js';
+import { Object3D } from '../core/Object3D.js';
+import { Line } from '../objects/Line.js';
+import { Float32BufferAttribute } from '../core/BufferAttribute.js';
+import { BufferGeometry } from '../core/BufferGeometry.js';
+import { LineBasicMaterial } from '../materials/LineBasicMaterial.js';
 
 function DirectionalLightHelper( light, size, color ) {
 

+ 6 - 6
src/helpers/FaceNormalsHelper.js

@@ -3,12 +3,12 @@
  * @author WestLangley / http://github.com/WestLangley
  */
 
-import { Matrix3 } from '../math/Matrix3';
-import { Vector3 } from '../math/Vector3';
-import { LineSegments } from '../objects/LineSegments';
-import { LineBasicMaterial } from '../materials/LineBasicMaterial';
-import { Float32BufferAttribute } from '../core/BufferAttribute';
-import { BufferGeometry } from '../core/BufferGeometry';
+import { Matrix3 } from '../math/Matrix3.js';
+import { Vector3 } from '../math/Vector3.js';
+import { LineSegments } from '../objects/LineSegments.js';
+import { LineBasicMaterial } from '../materials/LineBasicMaterial.js';
+import { Float32BufferAttribute } from '../core/BufferAttribute.js';
+import { BufferGeometry } from '../core/BufferGeometry.js';
 
 function FaceNormalsHelper( object, size, hex, linewidth ) {
 

+ 6 - 6
src/helpers/GridHelper.js

@@ -2,12 +2,12 @@
  * @author mrdoob / http://mrdoob.com/
  */
 
-import { LineSegments } from '../objects/LineSegments';
-import { VertexColors } from '../constants';
-import { LineBasicMaterial } from '../materials/LineBasicMaterial';
-import { Float32BufferAttribute } from '../core/BufferAttribute';
-import { BufferGeometry } from '../core/BufferGeometry';
-import { Color } from '../math/Color';
+import { LineSegments } from '../objects/LineSegments.js';
+import { VertexColors } from '../constants.js';
+import { LineBasicMaterial } from '../materials/LineBasicMaterial.js';
+import { Float32BufferAttribute } from '../core/BufferAttribute.js';
+import { BufferGeometry } from '../core/BufferGeometry.js';
+import { Color } from '../math/Color.js';
 
 function GridHelper( size, divisions, color1, color2 ) {
 

+ 8 - 8
src/helpers/HemisphereLightHelper.js

@@ -4,14 +4,14 @@
  * @author Mugen87 / https://github.com/Mugen87
  */
 
-import { Vector3 } from '../math/Vector3';
-import { Color } from '../math/Color';
-import { Object3D } from '../core/Object3D';
-import { Mesh } from '../objects/Mesh';
-import { VertexColors } from '../constants';
-import { MeshBasicMaterial } from '../materials/MeshBasicMaterial';
-import { OctahedronBufferGeometry } from '../geometries/OctahedronGeometry';
-import { BufferAttribute } from '../core/BufferAttribute';
+import { Vector3 } from '../math/Vector3.js';
+import { Color } from '../math/Color.js';
+import { Object3D } from '../core/Object3D.js';
+import { Mesh } from '../objects/Mesh.js';
+import { VertexColors } from '../constants.js';
+import { MeshBasicMaterial } from '../materials/MeshBasicMaterial.js';
+import { OctahedronBufferGeometry } from '../geometries/OctahedronGeometry.js';
+import { BufferAttribute } from '../core/BufferAttribute.js';
 
 function HemisphereLightHelper( light, size, color ) {
 

+ 7 - 7
src/helpers/PlaneHelper.js

@@ -2,13 +2,13 @@
  * @author WestLangley / http://github.com/WestLangley
  */
 
-import { Line } from '../objects/Line';
-import { Mesh } from '../objects/Mesh';
-import { LineBasicMaterial } from '../materials/LineBasicMaterial';
-import { MeshBasicMaterial } from '../materials/MeshBasicMaterial';
-import { Float32BufferAttribute } from '../core/BufferAttribute';
-import { BufferGeometry } from '../core/BufferGeometry';
-import { Object3D } from '../core/Object3D';
+import { Line } from '../objects/Line.js';
+import { Mesh } from '../objects/Mesh.js';
+import { LineBasicMaterial } from '../materials/LineBasicMaterial.js';
+import { MeshBasicMaterial } from '../materials/MeshBasicMaterial.js';
+import { Float32BufferAttribute } from '../core/BufferAttribute.js';
+import { BufferGeometry } from '../core/BufferGeometry.js';
+import { Object3D } from '../core/Object3D.js';
 
 function PlaneHelper( plane, size, hex ) {
 

+ 3 - 3
src/helpers/PointLightHelper.js

@@ -3,9 +3,9 @@
  * @author mrdoob / http://mrdoob.com/
  */
 
-import { Mesh } from '../objects/Mesh';
-import { MeshBasicMaterial } from '../materials/MeshBasicMaterial';
-import { SphereBufferGeometry } from '../geometries/SphereGeometry';
+import { Mesh } from '../objects/Mesh.js';
+import { MeshBasicMaterial } from '../materials/MeshBasicMaterial.js';
+import { SphereBufferGeometry } from '../geometries/SphereGeometry.js';
 
 function PointLightHelper( light, sphereSize, color ) {
 

+ 6 - 6
src/helpers/PolarGridHelper.js

@@ -4,12 +4,12 @@
  * @author Hectate / http://www.github.com/Hectate
  */
 
-import { LineSegments } from '../objects/LineSegments';
-import { VertexColors } from '../constants';
-import { LineBasicMaterial } from '../materials/LineBasicMaterial';
-import { Float32BufferAttribute } from '../core/BufferAttribute';
-import { BufferGeometry } from '../core/BufferGeometry';
-import { Color } from '../math/Color';
+import { LineSegments } from '../objects/LineSegments.js';
+import { VertexColors } from '../constants.js';
+import { LineBasicMaterial } from '../materials/LineBasicMaterial.js';
+import { Float32BufferAttribute } from '../core/BufferAttribute.js';
+import { BufferGeometry } from '../core/BufferGeometry.js';
+import { Color } from '../math/Color.js';
 
 function PolarGridHelper( radius, radials, circles, divisions, color1, color2 ) {
 

+ 5 - 5
src/helpers/RectAreaLightHelper.js

@@ -4,11 +4,11 @@
  * @author WestLangley / http://github.com/WestLangley
  */
 
-import { Object3D } from '../core/Object3D';
-import { Line } from '../objects/Line';
-import { LineBasicMaterial } from '../materials/LineBasicMaterial';
-import { BufferGeometry } from '../core/BufferGeometry';
-import { BufferAttribute } from '../core/BufferAttribute';
+import { Object3D } from '../core/Object3D.js';
+import { Line } from '../objects/Line.js';
+import { LineBasicMaterial } from '../materials/LineBasicMaterial.js';
+import { BufferGeometry } from '../core/BufferGeometry.js';
+import { BufferAttribute } from '../core/BufferAttribute.js';
 
 function RectAreaLightHelper( light, color ) {
 

+ 9 - 9
src/helpers/SkeletonHelper.js

@@ -6,15 +6,15 @@
  * @author Mugen87 / https://github.com/Mugen87
  */
 
-import { LineSegments } from '../objects/LineSegments';
-import { Matrix4 } from '../math/Matrix4';
-import { VertexColors } from '../constants';
-import { LineBasicMaterial } from '../materials/LineBasicMaterial';
-import { Color } from '../math/Color';
-import { Vector3 } from '../math/Vector3';
-import { BufferGeometry } from '../core/BufferGeometry';
-import { Float32BufferAttribute } from '../core/BufferAttribute';
-import { Object3D } from '../core/Object3D';
+import { LineSegments } from '../objects/LineSegments.js';
+import { Matrix4 } from '../math/Matrix4.js';
+import { VertexColors } from '../constants.js';
+import { LineBasicMaterial } from '../materials/LineBasicMaterial.js';
+import { Color } from '../math/Color.js';
+import { Vector3 } from '../math/Vector3.js';
+import { BufferGeometry } from '../core/BufferGeometry.js';
+import { Float32BufferAttribute } from '../core/BufferAttribute.js';
+import { Object3D } from '../core/Object3D.js';
 
 function getBoneList( object ) {
 

+ 6 - 6
src/helpers/SpotLightHelper.js

@@ -4,12 +4,12 @@
  * @author WestLangley / http://github.com/WestLangley
  */
 
-import { Vector3 } from '../math/Vector3';
-import { Object3D } from '../core/Object3D';
-import { LineSegments } from '../objects/LineSegments';
-import { LineBasicMaterial } from '../materials/LineBasicMaterial';
-import { Float32BufferAttribute } from '../core/BufferAttribute';
-import { BufferGeometry } from '../core/BufferGeometry';
+import { Vector3 } from '../math/Vector3.js';
+import { Object3D } from '../core/Object3D.js';
+import { LineSegments } from '../objects/LineSegments.js';
+import { LineBasicMaterial } from '../materials/LineBasicMaterial.js';
+import { Float32BufferAttribute } from '../core/BufferAttribute.js';
+import { BufferGeometry } from '../core/BufferGeometry.js';
 
 function SpotLightHelper( light, color ) {
 

+ 6 - 6
src/helpers/VertexNormalsHelper.js

@@ -3,12 +3,12 @@
  * @author WestLangley / http://github.com/WestLangley
  */
 
-import { Matrix3 } from '../math/Matrix3';
-import { Vector3 } from '../math/Vector3';
-import { LineSegments } from '../objects/LineSegments';
-import { LineBasicMaterial } from '../materials/LineBasicMaterial';
-import { Float32BufferAttribute } from '../core/BufferAttribute';
-import { BufferGeometry } from '../core/BufferGeometry';
+import { Matrix3 } from '../math/Matrix3.js';
+import { Vector3 } from '../math/Vector3.js';
+import { LineSegments } from '../objects/LineSegments.js';
+import { LineBasicMaterial } from '../materials/LineBasicMaterial.js';
+import { Float32BufferAttribute } from '../core/BufferAttribute.js';
+import { BufferGeometry } from '../core/BufferGeometry.js';
 
 function VertexNormalsHelper( object, size, hex, linewidth ) {
 

+ 1 - 1
src/lights/AmbientLight.js

@@ -1,4 +1,4 @@
-import { Light } from './Light';
+import { Light } from './Light.js';
 
 /**
  * @author mrdoob / http://mrdoob.com/

+ 3 - 3
src/lights/DirectionalLight.js

@@ -1,6 +1,6 @@
-import { Light } from './Light';
-import { DirectionalLightShadow } from './DirectionalLightShadow';
-import { Object3D } from '../core/Object3D';
+import { Light } from './Light.js';
+import { DirectionalLightShadow } from './DirectionalLightShadow.js';
+import { Object3D } from '../core/Object3D.js';
 
 /**
  * @author mrdoob / http://mrdoob.com/

+ 2 - 2
src/lights/DirectionalLightShadow.js

@@ -1,5 +1,5 @@
-import { LightShadow } from './LightShadow';
-import { OrthographicCamera } from '../cameras/OrthographicCamera';
+import { LightShadow } from './LightShadow.js';
+import { OrthographicCamera } from '../cameras/OrthographicCamera.js';
 
 /**
  * @author mrdoob / http://mrdoob.com/

+ 3 - 3
src/lights/HemisphereLight.js

@@ -1,6 +1,6 @@
-import { Light } from './Light';
-import { Color } from '../math/Color';
-import { Object3D } from '../core/Object3D';
+import { Light } from './Light.js';
+import { Color } from '../math/Color.js';
+import { Object3D } from '../core/Object3D.js';
 
 /**
  * @author alteredq / http://alteredqualia.com/

+ 2 - 2
src/lights/Light.js

@@ -1,5 +1,5 @@
-import { Object3D } from '../core/Object3D';
-import { Color } from '../math/Color';
+import { Object3D } from '../core/Object3D.js';
+import { Color } from '../math/Color.js';
 
 /**
  * @author mrdoob / http://mrdoob.com/

+ 2 - 2
src/lights/LightShadow.js

@@ -1,5 +1,5 @@
-import { Matrix4 } from '../math/Matrix4';
-import { Vector2 } from '../math/Vector2';
+import { Matrix4 } from '../math/Matrix4.js';
+import { Vector2 } from '../math/Vector2.js';
 
 /**
  * @author mrdoob / http://mrdoob.com/

+ 3 - 3
src/lights/PointLight.js

@@ -1,6 +1,6 @@
-import { Light } from './Light';
-import { PerspectiveCamera } from '../cameras/PerspectiveCamera';
-import { LightShadow } from './LightShadow';
+import { Light } from './Light.js';
+import { PerspectiveCamera } from '../cameras/PerspectiveCamera.js';
+import { LightShadow } from './LightShadow.js';
 
 /**
  * @author mrdoob / http://mrdoob.com/

+ 1 - 1
src/lights/RectAreaLight.js

@@ -1,4 +1,4 @@
-import { Light } from './Light';
+import { Light } from './Light.js';
 
 /**
  * @author abelnation / http://github.com/abelnation

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini