From 0c2333da0de7b5d3fc3c739b6d2593a675cd5433 Mon Sep 17 00:00:00 2001 From: wangzemei Date: Fri, 6 Sep 2024 14:34:06 +0800 Subject: [PATCH] + [task#127426] add region input styles. --- lib/zin/wg/think3c/js/v1.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/zin/wg/think3c/js/v1.js b/lib/zin/wg/think3c/js/v1.js index e69d0aa177..5323f86d00 100644 --- a/lib/zin/wg/think3c/js/v1.js +++ b/lib/zin/wg/think3c/js/v1.js @@ -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], + }; } /**