@@ -1237,12 +1237,12 @@ function vtkOpenGLImageMapper(publicAPI, model) {
1237
1237
const spatialExt = image . getSpatialExtent ( ) ;
1238
1238
const basicScalars = imgScalars . getData ( ) ;
1239
1239
let scalars = null ;
1240
- /**
1240
+ /**
1241
1241
* if available, used to store the range of the scalars array. If
1242
1242
* available, pre-setting the scalras range can prevent it being
1243
1243
* calculated again.
1244
- *
1245
- * @type { import("../../../interfaces").vtkRange[]|undefined }
1244
+ *
1245
+ * @type { import("../../../interfaces").vtkRange[]|undefined }
1246
1246
**/
1247
1247
let ranges = undefined ;
1248
1248
// Get right scalars according to slicing mode
@@ -1318,22 +1318,22 @@ function vtkOpenGLImageMapper(publicAPI, model) {
1318
1318
ptsArray [ 9 ] = spatialExt [ 1 ] ;
1319
1319
ptsArray [ 10 ] = spatialExt [ 3 ] ;
1320
1320
ptsArray [ 11 ] = sliceDepth ;
1321
- if ( sliceOffset === 0 ) {
1321
+ if ( sliceOffset === 0 ) {
1322
1322
// If the sliceOffset is 0, the scalars array is a view of the
1323
1323
// original scalars array. As a micro-optimization, we can get the
1324
1324
// range from the original scalars array and set the range to the
1325
1325
// scalars array. This means there is no need to re-calculate the
1326
1326
// 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 ++ ) {
1329
1329
const [ min , max ] = imgScalars . getRange ( i ) ;
1330
1330
/** @type { import("../../../interfaces").vtkRange } */
1331
1331
const range = {
1332
1332
min,
1333
1333
max,
1334
1334
component : i ,
1335
- }
1336
- ranges . push ( range ) ;
1335
+ } ;
1336
+ ranges . push ( range ) ;
1337
1337
}
1338
1338
}
1339
1339
} else {
0 commit comments