Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/jsm/exporters/DRACOExporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class DRACOExporter {
*
* @param {(Mesh|Points)} object - The mesh or point cloud to export.
* @param {DRACOExporter~Options} options - The export options.
* @return {ArrayBuffer} The exported Draco.
* @return {Int8Array} The exported Draco.
*/
parse( object, options = {} ) {

Expand Down
2 changes: 1 addition & 1 deletion examples/jsm/loaders/FBXLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class FBXLoader extends Loader {
/**
* Parses the given FBX data and returns the resulting group.
*
* @param {Array} FBXBuffer - The raw FBX data as an array buffer.
* @param {ArrayBuffer} FBXBuffer - The raw FBX data as an array buffer.
* @param {string} path - The URL base path.
* @return {Group} An object representing the parsed asset.
*/
Expand Down
4 changes: 2 additions & 2 deletions src/loaders/nodes/NodeObjectLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class NodeObjectLoader extends ObjectLoader {
* A reference to hold the `nodes` JSON property.
*
* @private
* @type {?Object}
* @type {?Object[]}
*/
this._nodesJSON = null;

Expand Down Expand Up @@ -92,7 +92,7 @@ class NodeObjectLoader extends ObjectLoader {
/**
* Parses the node objects from the given JSON and textures.
*
* @param {Object} json - The JSON definition
* @param {Object[]} json - The JSON definition
* @param {Object<string,Texture>} textures - The texture library.
* @return {Object<string,Node>}. The parsed nodes.
*/
Expand Down
12 changes: 6 additions & 6 deletions src/renderers/WebGLRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1297,7 +1297,7 @@ class WebGLRenderer {
* @param {Object3D} scene - The scene or another type of 3D object to precompile.
* @param {Camera} camera - The camera.
* @param {?Scene} [targetScene=null] - The target scene.
* @return {?Set} The precompiled materials.
* @return {Set<Material>} The precompiled materials.
*/
this.compile = function ( scene, camera, targetScene = null ) {

Expand Down Expand Up @@ -2997,7 +2997,7 @@ class WebGLRenderer {
* Copies pixels from the current bound framebuffer into the given texture.
*
* @param {FramebufferTexture} texture - The texture.
* @param {Vector2} position - The start position of the copy operation.
* @param {?Vector2} [position=null] - The start position of the copy operation.
* @param {number} [level=0] - The mip level. The default represents the base mip.
*/
this.copyFramebufferToTexture = function ( texture, position = null, level = 0 ) {
Expand Down Expand Up @@ -3028,10 +3028,10 @@ class WebGLRenderer {
*
* @param {Texture} srcTexture - The source texture.
* @param {Texture} dstTexture - The destination texture.
* @param {Box2|Box3} [srcRegion=null] - A bounding box which describes the source region. Can be two or three-dimensional.
* @param {Vector2|Vector3} [dstPosition=null] - A vector that represents the origin of the destination region. Can be two or three-dimensional.
* @param {number} srcLevel - The source mipmap level to copy.
* @param {number} dstLevel - The destination mipmap level.
* @param {?(Box2|Box3)} [srcRegion=null] - A bounding box which describes the source region. Can be two or three-dimensional.
* @param {?(Vector2|Vector3)} [dstPosition=null] - A vector that represents the origin of the destination region. Can be two or three-dimensional.
* @param {number} [srcLevel=0] - The source mipmap level to copy.
* @param {?number} [dstLevel=null] - The destination mipmap level.
*/
this.copyTextureToTexture = function ( srcTexture, dstTexture, srcRegion = null, dstPosition = null, srcLevel = 0, dstLevel = null ) {

Expand Down
1 change: 1 addition & 0 deletions src/renderers/common/TimestampQueryPool.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ class TimestampQueryPool {
*
* @abstract
* @param {Object} renderContext - The render context to allocate queries for.
* @returns {?number}
*/
allocateQueriesForContext( /* renderContext */ ) {}

Expand Down
2 changes: 1 addition & 1 deletion src/renderers/webxr/WebXRController.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ class WebXRController {
*
* @private
* @param {Group} hand - The group representing the hand space.
* @param {XRHandJoint} inputjoint - The XR frame.
* @param {XRJointSpace} inputjoint - The hand joint data.
* @return {Group} A group representing the hand joint for the given input joint.
*/
_getHandJoint( hand, inputjoint ) {
Expand Down
3 changes: 2 additions & 1 deletion src/renderers/webxr/WebXRManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ class WebXRManager extends EventDispatcher {
/**
* Sets the reference space type. Can be used to configure a spatial relationship with the user's physical
* environment. Depending on how the user moves in 3D space, setting an appropriate reference space can
* improve tracking. Default is `local-floor`.
* improve tracking. Default is `local-floor`. Valid values can be found here
* https://developer.mozilla.org/en-US/docs/Web/API/XRReferenceSpace#reference_space_types.
*
* This method can not be used during a XR session.
*
Expand Down
2 changes: 1 addition & 1 deletion src/textures/DepthArrayTexture.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class DepthArrayTexture extends DepthTexture {
this.generateMipmaps = false;

/**
* The depth compare function.
* Code corresponding to the depth compare function.
*
* @type {?(NeverCompare|LessCompare|EqualCompare|LessEqualCompare|GreaterCompare|NotEqualCompare|GreaterEqualCompare|AlwaysCompare)}
* @default null
Expand Down
2 changes: 1 addition & 1 deletion src/textures/DepthTexture.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class DepthTexture extends Texture {
this.generateMipmaps = false;

/**
* The depth compare function.
* Code corresponding to the depth compare function.
*
* @type {?(NeverCompare|LessCompare|EqualCompare|LessEqualCompare|GreaterCompare|NotEqualCompare|GreaterEqualCompare|AlwaysCompare)}
* @default null
Expand Down
2 changes: 1 addition & 1 deletion src/textures/VideoTexture.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class VideoTexture extends Texture {
/**
* Constructs a new video texture.
*
* @param {Video} video - The video element to use as a data source for the texture.
* @param {HTMLVideoElement} video - The video element to use as a data source for the texture.
* @param {number} [mapping=Texture.DEFAULT_MAPPING] - The texture mapping.
* @param {number} [wrapS=ClampToEdgeWrapping] - The wrapS value.
* @param {number} [wrapT=ClampToEdgeWrapping] - The wrapT value.
Expand Down