Merge pull request #14 from vishesh/task/clear-canvas
Clear big-bang canvas on each to-draw event #12
This commit is contained in:
commit
ec428bb334
|
@ -315,6 +315,7 @@ ToDraw.prototype.toRawHandler = function(MACHINE, toplevelNode) {
|
||||||
reusableCanvas.height = height;
|
reusableCanvas.height = height;
|
||||||
}
|
}
|
||||||
var ctx = reusableCanvas.getContext("2d");
|
var ctx = reusableCanvas.getContext("2d");
|
||||||
|
ctx.clearRect(0, 0, width, height);
|
||||||
v.render(ctx, 0, 0);
|
v.render(ctx, 0, 0);
|
||||||
success([toplevelNode, reusableCanvasNode]);
|
success([toplevelNode, reusableCanvasNode]);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user