diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-11-25 22:19:15 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-11-25 22:19:15 +0100 |
| commit | ee3d0d98e19f1d8177d85af1866fd0ee431fe9ea (patch) | |
| tree | 41372528e78d4328bc2a47bbbabac7e809c58894 /client/common/detectionBoxes.component.js | |
| parent | 255b8178af1e25a71fd23703d30c0d1f74911f47 (diff) | |
moving stuff
Diffstat (limited to 'client/common/detectionBoxes.component.js')
| -rw-r--r-- | client/common/detectionBoxes.component.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/client/common/detectionBoxes.component.js b/client/common/detectionBoxes.component.js deleted file mode 100644 index c4872ea8..00000000 --- a/client/common/detectionBoxes.component.js +++ /dev/null @@ -1,15 +0,0 @@ -import React from 'react' - -import { px } from '../util' - -export default function DetectionBoxes({ detections, width, height }) { - return detections.map(({ rect }, i) => ( - rect && - <div className='rect' key={i} style={{ - left: px(rect[0], width), - top: px(rect[1], height), - width: px(rect[2] - rect[0], width), - height: px(rect[3] - rect[1], height), - }} /> - )) -} |
