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