Skip to content

Commit

Permalink
Merge pull request #50 from sankhesh/transformCoord_geometry2D
Browse files Browse the repository at this point in the history
fix(rendering): Use transformCoordinate property at construction
  • Loading branch information
jourdain authored Jan 12, 2022
2 parents d0429d3 + e61e41e commit 6ffe697
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/Geometry2DRepresentation.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ export default class Geometry2DRepresentation extends Component {
});
this.lookupTable = vtkColorTransferFunction.newInstance();
this.transformCoordinate = vtkCoordinate.newInstance({
coordinateSystem: Coordinate.DISPLAY,
coordinateSystem:
this.props.transformCoordinate?.coordinateSystem ?? Coordinate.DISPLAY,
});
this.mapper = vtkMapper2D.newInstance({
lookupTable: this.lookupTable,
Expand Down

0 comments on commit 6ffe697

Please sign in to comment.