Skip to content

Commit 661a4cb

Browse files
cmhhelgesonMugen87
andauthored
Sprite - Update JSDoc for SpriteNodeMaterial (#31642)
* update sprite type to prevent type issues on things like PointsNodeMaterial * Update Sprite.js Clean up. --------- Co-authored-by: Michael Herzog <[email protected]>
1 parent 23c3f48 commit 661a4cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/objects/Sprite.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class Sprite extends Object3D {
4848
/**
4949
* Constructs a new sprite.
5050
*
51-
* @param {SpriteMaterial} [material] - The sprite material.
51+
* @param {(SpriteMaterial|SpriteNodeMaterial)} [material] - The sprite material.
5252
*/
5353
constructor( material = new SpriteMaterial() ) {
5454

@@ -94,7 +94,7 @@ class Sprite extends Object3D {
9494
/**
9595
* The sprite material.
9696
*
97-
* @type {SpriteMaterial}
97+
* @type {(SpriteMaterial|SpriteNodeMaterial)}
9898
*/
9999
this.material = material;
100100

0 commit comments

Comments
 (0)