diff options
Diffstat (limited to 'scraper/client/common/detectionBoxes.component.js')
| -rw-r--r-- | scraper/client/common/detectionBoxes.component.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/scraper/client/common/detectionBoxes.component.js b/scraper/client/common/detectionBoxes.component.js deleted file mode 100644 index c4872ea8..00000000 --- a/scraper/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), - }} /> - )) -} |
