Skip to content

Commit 934916d

Browse files
jmannaufloryst
authored andcommitted
style: run npm run reformat
1 parent 8c6f597 commit 934916d

File tree

1 file changed

+8
-8
lines changed
  • Sources/Rendering/OpenGL/ImageMapper

1 file changed

+8
-8
lines changed

Sources/Rendering/OpenGL/ImageMapper/index.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,12 +1237,12 @@ function vtkOpenGLImageMapper(publicAPI, model) {
12371237
const spatialExt = image.getSpatialExtent();
12381238
const basicScalars = imgScalars.getData();
12391239
let scalars = null;
1240-
/**
1240+
/**
12411241
* if available, used to store the range of the scalars array. If
12421242
* available, pre-setting the scalras range can prevent it being
12431243
* calculated again.
1244-
*
1245-
* @type{ import("../../../interfaces").vtkRange[]|undefined }
1244+
*
1245+
* @type{ import("../../../interfaces").vtkRange[]|undefined }
12461246
**/
12471247
let ranges = undefined;
12481248
// Get right scalars according to slicing mode
@@ -1318,22 +1318,22 @@ function vtkOpenGLImageMapper(publicAPI, model) {
13181318
ptsArray[9] = spatialExt[1];
13191319
ptsArray[10] = spatialExt[3];
13201320
ptsArray[11] = sliceDepth;
1321-
if( sliceOffset === 0 ) {
1321+
if (sliceOffset === 0) {
13221322
// If the sliceOffset is 0, the scalars array is a view of the
13231323
// original scalars array. As a micro-optimization, we can get the
13241324
// range from the original scalars array and set the range to the
13251325
// scalars array. This means there is no need to re-calculate the
13261326
// ranges for the scalars array.
1327-
ranges = []
1328-
for( let i = 0; i < numComp; i++ ) {
1327+
ranges = [];
1328+
for (let i = 0; i < numComp; i++) {
13291329
const [min, max] = imgScalars.getRange(i);
13301330
/** @type{ import("../../../interfaces").vtkRange } */
13311331
const range = {
13321332
min,
13331333
max,
13341334
component: i,
1335-
}
1336-
ranges.push( range );
1335+
};
1336+
ranges.push(range);
13371337
}
13381338
}
13391339
} else {

0 commit comments

Comments
 (0)