Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.4.0

Bug #16992 dotted lines do not show up in SVG
Submitted: 2010-01-13 21:05 UTC
From: daveo Assigned: daveo
Status: Closed Package: Image_Canvas (version CVS)
PHP Version: 5.3.1 OS: Debian
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 4 + 43 = ?

 
 [2010-01-13 21:05 UTC] daveo (Steve Cho)
Description: ------------ Dotted lines appear in PNG, but do not appear in SVG. Test script: --------------- Use Veggerby's demo: http://pear.veggerby.dk/samples/code/id/misc01/ Note the dotted lines in the bar graph connecting the markers (X, +, and star icons). Expected result: ---------------- Dotted lines appear in SVG. Actual result: -------------- No dotted lines in SVG.

Comments

 [2010-01-13 21:13 UTC] daveo (Steve Cho)
I looked at the XML in the SVG file. If you add the following entries to the "style" attribute, the dotted lines will work: stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:1;stroke-dasharray:2,2;stroke-dashoffset:2;
 [2012-01-02 06:35 UTC] doconnor (Daniel O'Connor)
Hey Steve, can you perhaps fork / do a pull request on github for that specific change if possible? The sample link you mentioned is now 404 - https://github.com/veggerby/image_graph-samples is where the content lives.
 [2012-01-02 06:35 UTC] doconnor (Daniel O'Connor)
-Status: Open +Status: Feedback
 [2012-01-04 23:59 UTC] daveo (Steve Cho)
Veggerby moved the examples to Github. The new location of my previous sample link is at https://github.com/veggerby/image_graph-samples/blob/master/misc01.php I will get back to you about the GitHub fork, as I currently do not have access to the changes I made to the code. The fork won't happen till the 9th at the earliest.
 [2012-01-09 20:35 UTC] daveo (Steve Cho)
Hi Daniel: I made the fork and pull request. It's the first time I've done this. I am not sure if the operation was done correctly. In case it was done incorrectly. here is the link to the pull request: https://github.com/pear/Image_Canvas/pull/1
 [2012-01-29 05:54 UTC] doconnor (Daniel O'Connor)
Thanks for that Steve - review comments on the pull request
 [2012-01-30 20:42 UTC] daveo (Steve Cho)
I made the suggested changes to the code. I couldn't figure out how to edit my own patch (if that's even possible), so I make another patch here https://github.com/oevad/Image_Canvas/commit/48bf8c8be2931078d0659051d841b837466cf080
 [2012-01-31 14:15 UTC] doconnor (Daniel O'Connor)
-Status: Feedback +Status: Closed -Assigned To: +Assigned To: daveo