Class: ZoneCanvas

ZoneCanvas

Show zones on canvas

Extends

  • Component

Methods

actualizeScreenshot()

Source:

clearActualZone()

Source:

componentDidMount()

Source:

componentDidUpdate(prevProps, prevState, snapshot)

Parameters:
Name Type Description
prevProps
prevState
snapshot
Source:

displayToCanvas(coords) → {Object}

converts from displayed canvas coordinates to logical canvas coordinates
Parameters:
Name Type Description
coords
Source:
Returns:
Type
Object

displayToImage(coords) → {Object}

converts from displayed canvas coordinates to image coordinates
Parameters:
Name Type Description
coords
Source:
Returns:
Type
Object

imageToDisplay(coords) → {Object}

converts from image coordinates to displayed canvas coordinates
Parameters:
Name Type Description
coords
Source:
Returns:
Type
Object

onImageError()

Source:

onImageLoaded()

Source:

render() → {*}

Source:
Returns:
Type
*

showSpinner()

code source: https://codepen.io/reneras/pen/HFrmC edited size of spinner
Source: