mirror of
https://github.com/idrawjs/idraw
synced 2026-05-24 10:08:34 +00:00
chore: update @idraw/board examples
This commit is contained in:
parent
8230fe2598
commit
469be6c867
1 changed files with 2 additions and 2 deletions
|
|
@ -6,8 +6,8 @@ export function drawData(board, idx) {
|
|||
const helperCtx = board.getHelperContext();
|
||||
const data = getData();
|
||||
board.clear();
|
||||
ctx.clearRect(0, 0, opts.width, opts.height);
|
||||
helperCtx.clearRect(0, 0, opts.width, opts.height);
|
||||
ctx.clearRect(0, 0, opts.devicePixelRatio * opts.contextWidth, opts.devicePixelRatio * opts.contextHeight);
|
||||
helperCtx.clearRect(0, 0, opts.devicePixelRatio * opts.contextWidth, opts.devicePixelRatio * opts.contextHeight);
|
||||
|
||||
// ctx.setFillStyle('#ffffff');
|
||||
// ctx.fillRect(0, 0, opts.width, opts.height);
|
||||
|
|
|
|||
Loading…
Reference in a new issue