W3C home > Mailing lists > Public > public-svg-wg@w3.org > April to June 2014

Re: Cursor (was: Agenda, 19 June 2014 SVG WG telcon)

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 18 Jun 2014 09:36:34 -0700
Message-ID: <CAAWBYDCQhWAmFduegcXtWpWfJWu6ge2scVRfcSW44DjAiGJYog@mail.gmail.com>
To: Chris Lilley <chris@w3.org>
Cc: www-svg <www-svg@w3.org>, public-svg-wg@w3.org, Erik Dahlström <ed@opera.com>
On Jun 18, 2014 7:29 AM, "Chris Lilley" <chris@w3.org> wrote:
> However, one difference between an ordinary image format and a cursor
> format is that a cursor also defines the coordinates of the hotspot
> (the place where the cursor points). As an example, a cursor shape
> which is an arrow pointing to the upper left would have the hotspot in
> the upper left at the point of the arrow. A cursor which is like a
> crosshair would have the hotspot in the middle of the crosshairs.
>
> Thus, rather than pointing to the image file directly, SVG introduced
> a cursor element with two attributes, x and y, which are the hotspot
> coordinates and a third attribute to point to the actual image.
> http://www.w3.org/TR/SVG10/interact.html#CursorElement
>
> So you could make a cursor from a PNG (or indeed from an SVG).
>
> (All of that is explained by the first two paragraphs of 16.8.3 The
> 'cursor' element, but maybe the above explanation helps).

Of course, the 'cursor' property also allows manually specifying the
hotspot, and defines the interaction with native hotspots.

~TJ
Received on Wednesday, 18 June 2014 16:37:07 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:20:19 UTC