mirror of
https://github.com/idrawjs/idraw
synced 2026-05-24 10:08:34 +00:00
chore: update testing of text
This commit is contained in:
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 |
|
|
@ -34,8 +34,7 @@ const data = {
|
|||
color: "#666666",
|
||||
borderRadius: 60,
|
||||
borderWidth: 10,
|
||||
borderColor: "#bd0b64",
|
||||
bgColor: '#f0f0f0',
|
||||
borderColor: "#bd0b64"
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue