(element: Element)
| 24 | * the captured shape stays in one place. |
| 25 | */ |
| 26 | export const getImageOriginRect = (element: Element): ImageOriginRect => { |
| 27 | const { top, left, width, height } = element.getBoundingClientRect(); |
| 28 | return { top, left, width, height }; |
| 29 | }; |
| 30 | |
| 31 | interface ImageModalProps extends ReactModal.Props { |
| 32 | src: string; |
no outgoing calls
no test coverage detected