Skip to content

Commit 47e308e

Browse files
jmannaufloryst
authored andcommitted
docs: Update JSDoc with optional arguments
1 parent 7d4c58f commit 47e308e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/Rendering/OpenGL/Texture/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,8 @@ export interface vtkOpenGLTexture extends vtkViewNode {
244244
* @param numComps The number of components in the texture.
245245
* @param dataType The data type of the texture.
246246
* @param data The raw data for the texture.
247-
* @param preferSizeOverAccuracy Whether to prefer texture size over accuracy.
248-
* @param ranges The ranges of the data (optional).
247+
* @param [preferSizeOverAccuracy=false] Whether to prefer texture size over accuracy. Defaults to false.
248+
* @param [ranges] The ranges of the data (optional).
249249
* @returns {boolean} True if the texture was successfully created, false otherwise.
250250
*/
251251
create2DFilterableFromRaw(
@@ -254,7 +254,7 @@ export interface vtkOpenGLTexture extends vtkViewNode {
254254
numComps: number,
255255
dataType: VtkDataTypes,
256256
data: any,
257-
preferSizeOverAccuracy: boolean,
257+
preferSizeOverAccuracy?: boolean,
258258
ranges?: vtkRange[]
259259
): boolean;
260260

0 commit comments

Comments
 (0)