Skip to content

Commit d2df7e4

Browse files
authored
Merge pull request #2610 from gradienthealth/gradienthealth/fix_vtkScalarsToColors_getRange
fix: vtkScalarsToColors.getRange() should ignore min max values
2 parents 56775db + a8dc05b commit d2df7e4

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Sources/Common/Core/ScalarsToColors/index.d.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,8 @@ export interface vtkScalarsToColors extends vtkObject {
105105

106106
/**
107107
*
108-
* @param {Number} min
109-
* @param {Number} max
110108
*/
111-
getRange(min: number, max: number): Range;
109+
getRange(): Range;
112110

113111
/**
114112
* Get which component of a vector to map to colors.

Sources/Common/Core/ScalarsToColors/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ function vtkScalarsToColors(publicAPI, model) {
510510
publicAPI.getNumberOfAvailableColors = () => 256 * 256 * 256;
511511

512512
publicAPI.setRange = (min, max) => publicAPI.setMappingRange(min, max);
513-
publicAPI.getRange = (min, max) => publicAPI.getMappingRange();
513+
publicAPI.getRange = () => publicAPI.getMappingRange();
514514
}
515515

516516
// ----------------------------------------------------------------------------

0 commit comments

Comments
 (0)