mirror of
https://github.com/idrawjs/idraw
synced 2026-05-24 10:08:34 +00:00
fix: @idraw/core clear context size
This commit is contained in:
parent
63268810e6
commit
e0e7d5799c
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ export function drawContext(
|
|||
): void {
|
||||
clearContext(ctx);
|
||||
const size = ctx.getSize();
|
||||
ctx.clearRect(0, 0, size.width, size.height);
|
||||
ctx.clearRect(0, 0, size.contextWidth, size.contextHeight);
|
||||
|
||||
if (typeof data.bgColor === 'string' && isColorStr(data.bgColor)) {
|
||||
drawBgColor(ctx, data.bgColor);
|
||||
|
|
|
|||
Loading…
Reference in a new issue