<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16587" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>The HTML5 specification appears to say to ignore a
line composed of just a moveTo() call in a <CANVAS> element,<BR>but both
the opera(1) and firefox(1) browsers appear to ignore any polyline that does not
change the position. That is,<BR> moveTo(x,y)
lineTo(x,y)<BR>does not produce a point. I think it should.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I have been collecting my experiences with the
<CANVAS> implementations in the opera(1) and firefox(1) browsers
at<BR> <A
href="http://home.comcast.net/~urbanjost/canvas/canvas1.html">http://home.comcast.net/~urbanjost/canvas/canvas1.html</A><BR>where
I have this note ...</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2># POINTS: Neither browser showed a line of zero
length, even when it contained two points (The HTML5 proposal currently says to
ignore a path with "less than two" points in it; it does not imply lines of null
length are ignored though). In order to make points easy to render I think a
path composed of just a move and/or a move and then draws(s) to the same point
should show a circle with a diameter equal to the current line width or a square
with a side equal to the current line width or a minimum of one unit (or pixel)
in order to make points visible. Maybe an option to display markers of different
styles at such "points" would be nice (an X, a +, a hollow circle,
...)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I am currently working around this by processing
all my polylines thru JavaScript procedures. Look at the<BR>example at<BR>
<A
href="http://home.comcast.net/~urbanjost/canvas/vogle4.html">http://home.comcast.net/~urbanjost/canvas/vogle4.html</A><BR>that
makes simple points show up. Does anyone else think the browsers are wrong in
not making a point or marker<BR>to represent polylines whose elements all have
the same coordinates?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Why would someone put a moveTo() in a file without
intending it to render something?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><BR>-- <BR>Using Opera's revolutionary e-mail
client: <A
href="http://www.opera.com/mail/">http://www.opera.com/mail/</A></FONT></DIV></BODY></HTML>