Skip to content

Commit

Permalink
fix: Fix typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
bruyeret committed Oct 4, 2024
1 parent 87084de commit 4a51712
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 4 additions & 2 deletions Sources/Rendering/Core/Volume/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ export interface vtkVolume extends vtkProp3D {

/**
* Get the volume property for the specified mapper input port, which defaults to 0
* @param {number} mapperInputPort Defaults to 0
*/
getProperty(mapperInputPort = 0): vtkVolumeProperty;
getProperty(mapperInputPort?: number): vtkVolumeProperty;

/**
* Get the volume properties array
Expand Down Expand Up @@ -73,8 +74,9 @@ export interface vtkVolume extends vtkProp3D {
/**
* Set the volume property for the specified mapper input port, which defaults to 0
* @param {vtkVolumeProperty} property
* @param {number} mapperInputPort Defaults to 0
*/
setProperty(property: vtkVolumeProperty, mapperInputPort = 0): boolean;
setProperty(property: vtkVolumeProperty, mapperInputPort?: number): boolean;

/**
* Set the volume properties array
Expand Down
5 changes: 2 additions & 3 deletions Sources/Rendering/Core/VolumeMapper/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import vtkPiecewiseFunction from '../../../Common/DataModel/PiecewiseFunction';
import { Bounds, Range } from '../../../types';
import { Bounds } from '../../../types';
import vtkAbstractMapper3D, {
IAbstractMapper3DInitialValues,
} from '../AbstractMapper3D';
import { BlendMode, FilterMode } from './Constants';
import { BlendMode } from './Constants';

/**
*
Expand Down Expand Up @@ -223,6 +223,5 @@ export declare const vtkVolumeMapper: {
newInstance: typeof newInstance;
extend: typeof extend;
BlendMode: typeof BlendMode;
FilterMode: typeof FilterMode;
};
export default vtkVolumeMapper;

0 comments on commit 4a51712

Please sign in to comment.