Extends
- Component
Methods
actualizeScreenshot()
clearActualZone()
componentDidMount()
componentDidUpdate(prevProps, prevState, snapshot)
Parameters:
Name | Type | Description |
---|---|---|
prevProps |
||
prevState |
||
snapshot |
displayToCanvas(coords) → {Object}
converts from displayed canvas coordinates to logical canvas coordinates
Parameters:
Name | Type | Description |
---|---|---|
coords |
Returns:
- Type
- Object
displayToImage(coords) → {Object}
converts from displayed canvas coordinates to image coordinates
Parameters:
Name | Type | Description |
---|---|---|
coords |
Returns:
- Type
- Object
imageToDisplay(coords) → {Object}
converts from image coordinates to displayed canvas coordinates
Parameters:
Name | Type | Description |
---|---|---|
coords |
Returns:
- Type
- Object
onImageError()
onImageLoaded()
render() → {*}
Returns:
- Type
- *
showSpinner()
code source: https://codepen.io/reneras/pen/HFrmC
edited size of spinner