From e61e41e8c60a507a498fa18b80f9d6d7945dade8 Mon Sep 17 00:00:00 2001 From: Sankhesh Jhaveri Date: Wed, 12 Jan 2022 09:27:10 -0500 Subject: [PATCH] fix(rendering): Use transformCoordinate property at construction --- src/core/Geometry2DRepresentation.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/Geometry2DRepresentation.js b/src/core/Geometry2DRepresentation.js index da06eeb..d2e7857 100644 --- a/src/core/Geometry2DRepresentation.js +++ b/src/core/Geometry2DRepresentation.js @@ -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,