Skip to content

Commit bbccda5

Browse files
authored
fix: Fix VoxelManager.numberOfComponents value (#2512)
1 parent a776af0 commit bbccda5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/utilities/VoxelManager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default class VoxelManager<T> {
3737
public sourceVoxelManager: IVoxelManager<T>;
3838
public isInObject: (pointLPS, pointIJK) => boolean;
3939
public readonly dimensions: Point3;
40-
public readonly numberOfComponents;
40+
public readonly numberOfComponents: number;
4141
public getCompleteScalarDataArray?: () => ArrayLike<number>;
4242
public setCompleteScalarDataArray?: (scalarData: ArrayLike<number>) => void;
4343

@@ -100,7 +100,7 @@ export default class VoxelManager<T> {
100100
this._set = options._set;
101101
this._id = options._id || '';
102102
this._getConstructor = options._getConstructor;
103-
this.numberOfComponents = this.numberOfComponents || 1;
103+
this.numberOfComponents = options.numberOfComponents || 1;
104104
this.scalarData = options.scalarData as PixelDataTypedArray;
105105
this._getScalarData = options._getScalarData;
106106
this._updateScalarData = options._updateScalarData;

0 commit comments

Comments
 (0)