jevgen / explorercanvas

Automatically exported from code.google.com/p/explorercanvas
Apache License 2.0
0 stars 0 forks source link

add support for shadows in vml mode (shadowBlur, shadowOffsetX, etc) #99

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It appears that the shadow properties (shadowBlur, shadowOffsetX, 
shadowOffsetY, and shadowColor) are not supported by revision 73 of excanvas.js.

Code like the following produces a shadow in Chrome 9.0.597.98, but in IE 8 
using explorercanvas there is no shadow:

c.fillStyle = "#f00";
c.shadowColor = "#000";
c.shadowOffsetX = 10;
c.shadowOffsetY = 10;
c.fillRect(0, 0, 30, 30);

It should be possible to support shadows in VML production, specifically by 
using the "progid:DXImageTransform.Microsoft.Blur(pixelRadius=XX), so I see no 
technical barrier to implementing this in excanvas.

Original issue reported on code.google.com by james.w....@gmail.com on 28 Feb 2011 at 4:38