+ [task#127426] add region input styles.

This commit is contained in:
wangzemei
2024-09-06 15:00:24 +08:00
committed by 刘刚
parent 43eba005bc
commit 0c2333da0d
+11
View File
@@ -239,6 +239,17 @@ function drawRegionInput(canvas, region, colorIndex, area)
if(colorIndex == 4) left -= 50;
if(colorIndex == 5) left += 50;
const styles = {
position: 'absolute',
left: `${left}px`,
top: `${top}px`,
width: `${boxWidth}px`,
height: `${boxHeight}px`,
padding: '5px',
fontSize: '16px',
color: '#000',
backgroundColor: colors[colorIndex % colors.length],
};
}
/**