If you draw a number of lines using moveTo() and lineTo() followed by a
zero-length line (e.g.
moveTo(20, 30); lineTo(20, 30);), when stroke() and closePath() are called, the
path will not display.
If the command to draw this zero-length line is not the last line you draw
before calling closePath(),
the path displays as expected.
Attached is a test case. It draws a picture of an equals sign (=) putting the
line-drawing commands
in different orders. The first canvas draws the top line, then a zero-length
line, then the bottom line
The second canvas draws the top line, then the bottom line, and then a
zero-length line. In a
browser using its native canvas implementation (tested in Chrome and Firefox on
Mac OS X), they
display identically; in IE (tested on 6, 7, and 8 in Windows XP) the second
does not display at all.
Behavior is the same for current explorercanvas release (release 3) as well as
current SVN trunk
(r73).
The attached test case expects to be opened in a directory containing
excanvas.js. In a canvas-
enabled browser you should see two boxes with red equals signs in them; in
excanvas-enabled IE
you will see two boxes, one with a red equals sign and one that is empty.
Original issue reported on code.google.com by hyn...@gmail.com on 25 Apr 2010 at 9:42
Original issue reported on code.google.com by
hyn...@gmail.com
on 25 Apr 2010 at 9:42Attachments: