Skip to content

Commit 812dc2b

Browse files
committed
fix: Fix typescript
1 parent e31e714 commit 812dc2b

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Sources/Rendering/Core/Volume/index.d.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ export interface vtkVolume extends vtkProp3D {
3131

3232
/**
3333
* Get the volume property for the specified mapper input port, which defaults to 0
34+
* @param {number} mapperInputPort Defaults to 0
3435
*/
35-
getProperty(mapperInputPort = 0): vtkVolumeProperty;
36+
getProperty(mapperInputPort?: number): vtkVolumeProperty;
3637

3738
/**
3839
* Get the volume properties array
@@ -73,8 +74,9 @@ export interface vtkVolume extends vtkProp3D {
7374
/**
7475
* Set the volume property for the specified mapper input port, which defaults to 0
7576
* @param {vtkVolumeProperty} property
77+
* @param {number} mapperInputPort Defaults to 0
7678
*/
77-
setProperty(property: vtkVolumeProperty, mapperInputPort = 0): boolean;
79+
setProperty(property: vtkVolumeProperty, mapperInputPort?: number): boolean;
7880

7981
/**
8082
* Set the volume properties array

Sources/Rendering/Core/VolumeMapper/index.d.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import vtkPiecewiseFunction from '../../../Common/DataModel/PiecewiseFunction';
2-
import { Bounds, Range } from '../../../types';
2+
import { Bounds } from '../../../types';
33
import vtkAbstractMapper3D, {
44
IAbstractMapper3DInitialValues,
55
} from '../AbstractMapper3D';
6-
import { BlendMode, FilterMode } from './Constants';
6+
import { BlendMode } from './Constants';
77

88
/**
99
*
@@ -223,6 +223,5 @@ export declare const vtkVolumeMapper: {
223223
newInstance: typeof newInstance;
224224
extend: typeof extend;
225225
BlendMode: typeof BlendMode;
226-
FilterMode: typeof FilterMode;
227226
};
228227
export default vtkVolumeMapper;

0 commit comments

Comments
 (0)