+ [task#127426] add region input styles.
This commit is contained in:
@@ -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],
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user