MCPcopy Create free account
hub / github.com/alephdata/aleph / setRotation

Method setRotation

ui/src/viewers/PdfViewer.jsx:107–117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105 }
106
107 setRotation() {
108 const { rotate } = this.props;
109 // For reference: https://github.com/wojtekmaj/react-pdf/issues/277#issuecomment-424464542
110 if (this.pageData) {
111 this.setState({
112 effectiveRotation: normalizeDegreeValue(
113 this.pageData.rotate + (rotate || 0)
114 ),
115 });
116 }
117 }
118
119 onResize() {
120 // Node we use a magic number to subtract scrollBarWidth (usually 15-17px)

Callers 2

componentDidUpdateMethod · 0.95
onPageLoadMethod · 0.95

Calls 1

normalizeDegreeValueFunction · 0.85

Tested by

no test coverage detected