Skip to content

Commit

Permalink
fix(props): set isOverlayVisible param using props (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbousamra authored Feb 6, 2020
1 parent 50e33ba commit a18dd08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/CornerstoneViewport/CornerstoneViewport.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ class CornerstoneViewport extends Component {
// Init
cornerstoneOptions: {},
isStackPrefetchEnabled: false,
isOverlayVisible: true,
loadIndicatorDelay: 45,
loadingIndicatorComponent: LoadingIndicator,
resizeThrottleMs: 200,
Expand All @@ -97,6 +98,7 @@ class CornerstoneViewport extends Component {

const imageIdIndex = props.imageIdIndex;
const imageId = props.imageIds[imageIdIndex];
const isOverlayVisible = props.isOverlayVisible;

this.state = {
// Used for metadata lookup (imagePlane, orientation markers)
Expand All @@ -111,7 +113,7 @@ class CornerstoneViewport extends Component {
scale: undefined,
windowWidth: undefined,
windowCenter: undefined,
isOverlayVisible: true,
isOverlayVisible,
// Orientation Markers
rotationDegrees: undefined,
isFlippedVertically: undefined,
Expand Down

0 comments on commit a18dd08

Please sign in to comment.