fill text and inactive masks in reviewer

This commit is contained in:
llama 2025-06-02 19:38:18 +08:00
parent 1a907af5d0
commit 9a94b202d7
No known key found for this signature in database
GPG key ID: 0B7543854B9413C3

View file

@ -217,7 +217,7 @@ function drawShapes(
context,
size,
shape,
fill: properties.inActiveShapeColor,
fill: shape.fill ?? properties.inActiveShapeColor,
stroke: properties.inActiveBorder.color,
strokeWidth: properties.inActiveBorder.width,
});
@ -358,7 +358,7 @@ function drawShape({
maxWidth + TEXT_PADDING,
totalHeight + TEXT_PADDING,
);
ctx.fillStyle = "#000";
ctx.fillStyle = shape.fill ?? "#000";
for (const line of linePositions) {
ctx.fillText(line.text, line.x, line.y);
}