Skip to content

Commit

Permalink
Update declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 committed Jan 19, 2025
1 parent ecbd3b2 commit a368e24
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion types/three/src/renderers/common/BufferUtils.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @module BufferUtils **/
/**
* This function is usually called with the length in bytes of an array buffer.
* It returns an padded value whic ensure chunk size alignment according to STD140 layout.
* It returns an padded value which ensure chunk size alignment according to STD140 layout.
*
* @function
* @param {Number} floatLength - The buffer length.
Expand Down
2 changes: 1 addition & 1 deletion types/three/src/renderers/common/BundleGroup.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Group } from "../../objects/Group.js";
/**
* A specialized group which eanbles applications access to the
* A specialized group which enables applications access to the
* Render Bundle API of WebGPU. The group with all its descendant nodes
* are considered as one render bundle and processed as such by
* the renderer.
Expand Down
2 changes: 1 addition & 1 deletion types/three/src/renderers/common/Pipelines.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ declare class Pipelines extends DataMap<{
* Releases the shader program.
*
* @private
* @param {Object} program - The shdaer program to release.
* @param {Object} program - The shader program to release.
*/
_releaseProgram(program: ProgrammableStage): void;
/**
Expand Down
4 changes: 2 additions & 2 deletions types/three/src/renderers/common/RenderObject.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ declare class RenderObject {
/**
* Returns the node builder state of this render object.
*
* @return {NodeBuilderState} The node buider state.
* @return {NodeBuilderState} The node builder state.
*/
getNodeBuilderState(): NodeBuilderState;
/**
Expand Down Expand Up @@ -224,7 +224,7 @@ declare class RenderObject {
* `RenderObjects.get()`. The render object's NodeMaterialObserver is then used to detect
* a need for a refresh due to material, geometry or object related value changes.
*
* TODO: Investigate if it's possible to merge boths steps so there is only a single place
* TODO: Investigate if it's possible to merge both steps so there is only a single place
* that performs the 'needsUpdate' check.
*
* @type {Boolean}
Expand Down
2 changes: 1 addition & 1 deletion types/three/src/renderers/common/Renderer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ declare class Renderer {
*
* @async
* @param {Function} callback - The application's animation loop.
* @return {Promise} A Promise that resolves when the set has been exeucted.
* @return {Promise} A Promise that resolves when the set has been executed.
*/
setAnimationLoop(callback: ((time: DOMHighResTimeStamp, frame?: XRFrame) => void) | null): Promise<void>;
/**
Expand Down
4 changes: 2 additions & 2 deletions types/three/src/renderers/common/nodes/NodeLibrary.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ declare class NodeLibrary {
/**
* Returns a node material class definition for a material type.
*
* @param {Sring} materialType - The material type.
* @param {String} materialType - The material type.
* @return {NodeMaterial.constructor?} The node material class definition. Returns `null` if no node material is found.
*/
getMaterialNodeClass(materialType: string): (new() => NodeMaterial) | null;
/**
* Adds a node material class definition for a given material type.
*
* @param {NodeMaterial.constructor} materialNodeClass - The node material class definition.
* @param {Sring} materialClassType - The material type.
* @param {String} materialClassType - The material type.
*/
addMaterial(materialNodeClass: {
new(): NodeMaterial;
Expand Down
2 changes: 1 addition & 1 deletion types/three/src/renderers/common/nodes/Nodes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ declare class Nodes extends DataMap<{
*/
needsRefresh(renderObject: RenderObject): boolean;
/**
* Frees the intenral resources.
* Frees the internal resources.
*/
dispose(): void;
}
Expand Down

0 comments on commit a368e24

Please sign in to comment.