Skip to content

Commit a18dd08

Browse files
authored
fix(props): set isOverlayVisible param using props (#59)
1 parent 50e33ba commit a18dd08

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/CornerstoneViewport/CornerstoneViewport.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ class CornerstoneViewport extends Component {
8686
// Init
8787
cornerstoneOptions: {},
8888
isStackPrefetchEnabled: false,
89+
isOverlayVisible: true,
8990
loadIndicatorDelay: 45,
9091
loadingIndicatorComponent: LoadingIndicator,
9192
resizeThrottleMs: 200,
@@ -97,6 +98,7 @@ class CornerstoneViewport extends Component {
9798

9899
const imageIdIndex = props.imageIdIndex;
99100
const imageId = props.imageIds[imageIdIndex];
101+
const isOverlayVisible = props.isOverlayVisible;
100102

101103
this.state = {
102104
// Used for metadata lookup (imagePlane, orientation markers)
@@ -111,7 +113,7 @@ class CornerstoneViewport extends Component {
111113
scale: undefined,
112114
windowWidth: undefined,
113115
windowCenter: undefined,
114-
isOverlayVisible: true,
116+
isOverlayVisible,
115117
// Orientation Markers
116118
rotationDegrees: undefined,
117119
isFlippedVertically: undefined,

0 commit comments

Comments
 (0)