Revision: 484
Author:
ryandesign.com
Date: Fri Sep 13 11:51:19 2013 UTC
Log: remove incorrect optimization when fill and stroke color are the
same, which had resulted in edge arrows appearing slightly too small and
table horizontal and vertical rules not getting drawn at all
http://code.google.com/p/canviz/source/detail?r=484
Modified:
/canviz/trunk/src/Canviz.js
=======================================
--- /canviz/trunk/src/Canviz.js Sat Sep 7 01:22:37 2013 UTC
+++ /canviz/trunk/src/Canviz.js Fri Sep 13 11:51:19 2013 UTC
@@ -303,7 +303,6 @@
path.makePath(ctx);
ctx.fill();
}
- if (ctx.fillStyle != ctx.strokeStyle || !filled) {
switch (dashStyle) {
case 'dashed':
ctx.beginPath();
@@ -324,7 +323,6 @@
}
ctx.stroke();
if (oldLineWidth) ctx.lineWidth = oldLineWidth;
- }
}
};