Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #32569

Re: Find element/object below mouse

From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: Find element/object below mouse
Date 2017-02-09 02:07 +0100
Organization PointedEars Software (PES)
Message-ID <6644223.EvYhyI6sBW@PointedEars.de> (permalink)
References <f29d15a6-d5d3-49eb-907c-52a8972d3444@googlegroups.com> <sle60fn8jola.7jj05r2oxc55$.dlg@40tude.net>

Show all headers | View raw


JJ wrote:

> Your canvas "objects" is only in your script's mind. Canvas only sees
> pixels. You'll have to do it manually for each canvas "object" you create
> like any other games in any platform.

This is precisely the problem with Canvas.  In SVG, you do have the 
geometric shapes as DOM objects instead, and you can let the renderer do any 
calculations required to modify the shape; the only thing you have to tell 
it is which shape you want.  Also, there is no standard that you can even 
remotely rely on, while SVG is a Web standard.  I regard Canvas as a 
technique inferior to SVG.

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
<https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Find element/object below mouse jonas.thornvall@gmail.com - 2017-02-05 21:29 -0800
  Re: Find element/object below mouse JJ <jj4public@vfemail.net> - 2017-02-06 20:03 +0700
    Re: Find element/object below mouse jonas.thornvall@gmail.com - 2017-02-06 08:30 -0800
      Re: Find element/object below mouse Silvio <silvio@internet.com> - 2017-02-06 19:01 +0100
        Re: Find element/object below mouse jonas.thornvall@gmail.com - 2017-02-06 11:20 -0800
          Re: Find element/object below mouse jonas.thornvall@gmail.com - 2017-02-06 11:56 -0800
            Re: Find element/object below mouse jonas.thornvall@gmail.com - 2017-02-06 11:59 -0800
          Re: Find element/object below mouse JJ <jj4public@vfemail.net> - 2017-02-07 22:35 +0700
            Re: Find element/object below mouse jonas.thornvall@gmail.com - 2017-02-07 07:46 -0800
    Re: Find element/object below mouse Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-02-09 02:07 +0100

csiph-web