lewisje / svgweb

Automatically exported from code.google.com/p/svgweb
Other
0 stars 0 forks source link

Radial Gradient userSpaceOnUse Matrix calculated incorrectly #502

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Use a Radial Gradient with a fx/fy different from the cx/cy

What is the expected output? What do you see instead?
A radial gradient with the specified fx/fy.  Instead, generally no gradient 
appears.

What version of the product are you using? On what operating system,
browser, and version of Flash?
2010-04-09-dracolisk, Windows Vista, IE8, 10.0.45.2

Please provide any additional information below. Reduced test cases are
always appreciated!
The cause of the problem is the rotate being applied to the matrix at the 
wrong time.  Attached is a test case, radialgradient01.svg.  This test uses 
a different radial gradient fill in each of four rects.  It draws a line 
across each rect using the appropriate radial gradient stroke.  It draws a 
green circle around the radial gradient's circumference and a red filled 
circle at the focal point of the radial gradient.  Attached, also, is a 
before and after screenshot, as well as the fix as a svn diff.  Note that 
this diff contains a fix for the radial gradient stroke problem I'm about 
to write up.

Original issue reported on code.google.com by bduncan%...@gtempaccount.com on 1 Jun 2010 at 6:40

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by bradneub...@gmail.com on 1 Jun 2010 at 10:45

GoogleCodeExporter commented 8 years ago
Fixed in r1159. Thanks for the patch!

Original comment by grick23@gmail.com on 4 Jun 2010 at 2:43