Skip to content

Commit 9a6ff4d

Browse files
authored
Update three.js (#1798)
* Update three.js * Add src * Update patch and delete src * Update declarations * Add jsdoc * Update patch and delete jsdoc * Update declarations
1 parent 358f760 commit 9a6ff4d

File tree

7 files changed

+76
-87
lines changed

7 files changed

+76
-87
lines changed

jsdoc-testing/changes.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2298,7 +2298,7 @@ index b3beb46d..b27cb65e 100644
22982298
+// eslint-disable-next-line @typescript-eslint/no-empty-interface
22992299
+export interface MeshDepthMaterial extends MeshDepthMaterialProperties {}
23002300
diff --git a/jsdoc-testing/jsdoc/materials/MeshDistanceMaterial.d.ts b/jsdoc-testing/jsdoc/materials/MeshDistanceMaterial.d.ts
2301-
index 65ab8f0e..34a4486b 100644
2301+
index bddc4ff5..4e7170f4 100644
23022302
--- a/jsdoc-testing/jsdoc/materials/MeshDistanceMaterial.d.ts
23032303
+++ b/jsdoc-testing/jsdoc/materials/MeshDistanceMaterial.d.ts
23042304
@@ -1,39 +1,11 @@
@@ -2309,7 +2309,7 @@ index 65ab8f0e..34a4486b 100644
23092309
- * Can also be used to customize the shadow casting of an object by assigning
23102310
- * an instance of `MeshDistanceMaterial` to {@link Object3D#customDistanceMaterial}.
23112311
- * The following examples demonstrates this approach in order to ensure
2312-
- * transparent parts of objects do no cast shadows.
2312+
- * transparent parts of objects do not cast shadows.
23132313
- *
23142314
- * @augments Material
23152315
- */
@@ -2391,7 +2391,7 @@ index 65ab8f0e..34a4486b 100644
23912391
+ * Can also be used to customize the shadow casting of an object by assigning
23922392
+ * an instance of `MeshDistanceMaterial` to {@link Object3D#customDistanceMaterial}.
23932393
+ * The following examples demonstrates this approach in order to ensure
2394-
+ * transparent parts of objects do no cast shadows.
2394+
+ * transparent parts of objects do not cast shadows.
23952395
+ */
23962396
+export class MeshDistanceMaterial extends Material {
23972397
+ /**

src-testing/changes.patch

Lines changed: 63 additions & 74 deletions
Large diffs are not rendered by default.

three.js

Submodule three.js updated 37 files

types/three/src/materials/MeshDistanceMaterial.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export interface MeshDistanceMaterialParameters
6363
* Can also be used to customize the shadow casting of an object by assigning
6464
* an instance of `MeshDistanceMaterial` to {@link Object3D#customDistanceMaterial}.
6565
* The following examples demonstrates this approach in order to ensure
66-
* transparent parts of objects do no cast shadows.
66+
* transparent parts of objects do not cast shadows.
6767
*/
6868
export class MeshDistanceMaterial extends Material {
6969
/**

types/three/src/nodes/core/Node.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ declare class Node extends EventDispatcher<{
289289
* This state builds the output node and returns the resulting shader string.
290290
*
291291
* @param {NodeBuilder} builder - The current node builder.
292-
* @param {?string} output - Can be used to define the output type.
292+
* @param {?string} [output] - Can be used to define the output type.
293293
* @return {?string} The generated shader string.
294294
*/
295295
generate(builder: NodeBuilder, output?: string | null): string | null | undefined;
@@ -327,14 +327,14 @@ declare class Node extends EventDispatcher<{
327327
* - **generate**: Generates the shader code for the node. Returns the generated shader string.
328328
*
329329
* @param {NodeBuilder} builder - The current node builder.
330-
* @param {string|Node|null} [output=null] - Can be used to define the output type.
331-
* @return {Node|string|null} The result of the build process, depending on the build stage.
330+
* @param {?(string|Node)} [output=null] - Can be used to define the output type.
331+
* @return {?(Node|string)} The result of the build process, depending on the build stage.
332332
*/
333333
build(builder: NodeBuilder, output?: string | Node | null): Node | string | null;
334334
/**
335335
* Returns the child nodes as a JSON object.
336336
*
337-
* @return {Array<Object>} An iterable list of serialized child objects as JSON.
337+
* @return {Generator<Object>} An iterable list of serialized child objects as JSON.
338338
*/
339339
getSerializeChildren(): Generator<import("./NodeUtils.js").NodeChild, void, unknown>;
340340
/**

types/three/src/renderers/common/Attributes.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ declare class Attributes extends DataMap<{
3030
* Deletes the data for the given attribute.
3131
*
3232
* @param {BufferAttribute} attribute - The attribute.
33-
* @return {Object|null} The deleted attribute data.
33+
* @return {?Object} The deleted attribute data.
3434
*/
3535
delete(attribute: BufferAttribute | InterleavedBufferAttribute): Data;
3636
/**

types/three/src/renderers/common/Renderer.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ declare class Renderer {
742742
* if the renderer has been initialized.
743743
*
744744
* @param {Node|Array<Node>} computeNodes - The compute node(s).
745-
* @param {Array<number>|number} [dispatchSizeOrCount=null] - Array with [ x, y, z ] values for dispatch or a single number for the count.
745+
* @param {?(Array<number>|number)} [dispatchSizeOrCount=null] - Array with [ x, y, z ] values for dispatch or a single number for the count.
746746
* @return {Promise|undefined} A Promise that resolve when the compute has finished. Only returned when the renderer has not been initialized.
747747
*/
748748
compute(
@@ -754,7 +754,7 @@ declare class Renderer {
754754
*
755755
* @async
756756
* @param {Node|Array<Node>} computeNodes - The compute node(s).
757-
* @param {Array<number>|number} [dispatchSizeOrCount=null] - Array with [ x, y, z ] values for dispatch or a single number for the count.
757+
* @param {?(Array<number>|number)} [dispatchSizeOrCount=null] - Array with [ x, y, z ] values for dispatch or a single number for the count.
758758
* @return {Promise} A Promise that resolve when the compute has finished.
759759
*/
760760
computeAsync(
@@ -806,7 +806,7 @@ declare class Renderer {
806806
* Copies the current bound framebuffer into the given texture.
807807
*
808808
* @param {FramebufferTexture} framebufferTexture - The texture.
809-
* @param {?Vector2|Vector4} [rectangle=null] - A two or four dimensional vector that defines the rectangular portion of the framebuffer that should be copied.
809+
* @param {?(Vector2|Vector4)} [rectangle=null] - A two or four dimensional vector that defines the rectangular portion of the framebuffer that should be copied.
810810
*/
811811
copyFramebufferToTexture(framebufferTexture: FramebufferTexture, rectangle?: Rectangle | null): void;
812812
/**

0 commit comments

Comments
 (0)