Skip to content

Commit 6ffe697

Browse files
authored
Merge pull request #50 from sankhesh/transformCoord_geometry2D
fix(rendering): Use transformCoordinate property at construction
2 parents d0429d3 + e61e41e commit 6ffe697

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/Geometry2DRepresentation.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ export default class Geometry2DRepresentation extends Component {
3434
});
3535
this.lookupTable = vtkColorTransferFunction.newInstance();
3636
this.transformCoordinate = vtkCoordinate.newInstance({
37-
coordinateSystem: Coordinate.DISPLAY,
37+
coordinateSystem:
38+
this.props.transformCoordinate?.coordinateSystem ?? Coordinate.DISPLAY,
3839
});
3940
this.mapper = vtkMapper2D.newInstance({
4041
lookupTable: this.lookupTable,

0 commit comments

Comments
 (0)