From dd7085241e08c9e968da1c60fad990a757101d58 Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Wed, 25 Jun 2014 17:47:55 -0300 Subject: [PATCH] now it is "clearing" properly --- jointjs/testcanvas.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jointjs/testcanvas.html b/jointjs/testcanvas.html index ac87039..d497270 100644 --- a/jointjs/testcanvas.html +++ b/jointjs/testcanvas.html @@ -15,6 +15,9 @@ var canvas = document.getElementById('example'); var ctx = canvas.getContext('2d'); // master +ctx.fillStyle = '#ffffff'; +ctx.fillRect(10, 10, 50, 30); + ctx.fillStyle = 'rgb(0, 0, 0)'; ctx.strokeRect(10, 10, 50, 30); ctx.fillText('Master', 15, 25);