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

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:01 UTC