Skip to content

Commit fdba266

Browse files
committed
feat: improved resize refresh properties
BREAKING CHANGE: change to how resize/refresh behaves and the props to configure it
1 parent 136f6ff commit fdba266

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/CornerstoneViewport/CornerstoneViewport.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,11 @@ class CornerstoneViewport extends Component {
7171
PropTypes.element,
7272
PropTypes.func,
7373
]),
74+
/** false to enable automatic viewport resizing */
7475
enableResizeDetector: PropTypes.bool,
76+
/** rate at witch to apply resize mode's logic */
7577
resizeRefreshRateMs: PropTypes.number,
78+
/** whether resize refresh behavior is exhibited as throttle or debounce */
7679
resizeRefreshMode: PropTypes.oneOf(['throttle', 'debounce']),
7780
//
7881
style: PropTypes.object,

0 commit comments

Comments
 (0)