(pos, pageNum)
| 319 | |
| 320 | // handle signature block width and height according to screen |
| 321 | const posWidth = (pos, pageNum) => { |
| 322 | const containerScale = getContainerScale( |
| 323 | props.pdfOriginalWH, |
| 324 | pageNum || props.pageNumber, |
| 325 | props.containerWH |
| 326 | ); |
| 327 | const defaultWidth = defaultWidthHeight(pos.type).width; |
| 328 | const posWidth = pos.Width ? pos.Width : defaultWidth; |
| 329 | return posWidth * containerScale; |
| 330 | }; |
| 331 | const posHeight = (pos, pageNum) => { |
| 332 | const containerScale = getContainerScale( |
| 333 | props.pdfOriginalWH, |
no test coverage detected