|
@@ -387,11 +387,12 @@ export default defineComponent({
|
|
|
return null
|
|
|
}
|
|
|
if (index === 0 && boundingBox) {
|
|
|
+ // console.log('左',formatZoom(boundingBox.y) - 5, formatZoom(boundingBox.x),X,SettingState.sett.scoreSize)
|
|
|
return (
|
|
|
<div
|
|
|
style={{
|
|
|
position: 'absolute',
|
|
|
- top: formatZoom(boundingBox.y) - 5 + 'px',
|
|
|
+ top: formatZoom(boundingBox.y) + 'px',
|
|
|
left: formatZoom(boundingBox.x) + 'px',
|
|
|
height: formatZoom(boundingBox.height) + 'px',
|
|
|
border: `5px solid ${eyeBorderColor}`,
|
|
@@ -403,11 +404,12 @@ export default defineComponent({
|
|
|
)
|
|
|
}
|
|
|
if (index === 1 && boundingBox) {
|
|
|
+ // console.log('右',formatZoom(boundingBox.y - 5), formatZoom(boundingBox.end_x),X)
|
|
|
return (
|
|
|
<div
|
|
|
style={{
|
|
|
position: 'absolute',
|
|
|
- top: formatZoom(boundingBox.y - 5) + 'px',
|
|
|
+ top: formatZoom(boundingBox.y) + 'px',
|
|
|
left: formatZoom(boundingBox.end_x) + 'px',
|
|
|
height: formatZoom(boundingBox.height) + 'px',
|
|
|
border: `5px solid ${eyeBorderColor}`,
|