chore: update testing of text

This commit is contained in:
chenshenhai 2021-07-26 12:16:14 +08:00
parent be4e0efa71
commit 7b4afeeb79
3 changed files with 2 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 171 KiB

After

Width:  |  Height:  |  Size: 154 KiB

View file

@ -34,8 +34,7 @@ const data = {
color: "#666666",
borderRadius: 60,
borderWidth: 10,
borderColor: "#bd0b64",
bgColor: '#f0f0f0',
borderColor: "#bd0b64"
},
},
{

View file

@ -15,7 +15,7 @@ export function drawText(
helperConfig: TypeHelperConfig
) {
clearContext(ctx);
drawBox(ctx, elem, elem.desc.bgColor);
drawBox(ctx, elem, elem.desc.bgColor || 'transparent');
rotateElement(ctx, elem, () => {
const desc: TypeElemDescText = {