[whatwg] proposed canvas 2d API additions

Kristof Zelechovski giecrilj at stegny.2a.pl
Mon Mar 2 01:52:05 PST 2009


Philip's demonstration of how to handle detection of pointing at the curve
is miserably wrong.  His curve is not typographically correct (bounding
box!).  The detection should be in based on of precomputed regions rather
than flattening.  This all can be done in script library, of course, but the
library would have to rely on mathematical techniques that the graphic
designer need not understand.  And the region information could be cached
on-demand when it is first needed.  I think it would be better to build the
thing into the browser.
See my solution at <http://www.2a.pl/~ne01026/bzr.htm> (VML + VBScript
required).
Chris







More information about the whatwg mailing list