lewisje / svgweb

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

Radial Gradient focalLen not used for stroke #503

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 and use it as a 
stroke.

What is the expected output? What do you see instead?
A radial gradient with the specified fx/fy being used as the stroke.  
Instead, the gradient appears with the fx/fy being the same as the cx/cy.

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 missing focalLen argument to the 
lineGradientStyle call.  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 issue 502 as well.

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

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