W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2010

Advanced Pointer Events: InkML

From: Charles Pritchard <chuck@jumis.com>
Date: Sun, 21 Mar 2010 22:50:58 -0700
Message-ID: <4BA70542.7000105@jumis.com>
To: www-dom@w3.org
InkML is an xml serialization of advanced pointer events, last updated 2006.

Focus on the <channel> and <channelProperty> elements.

The elements are sufficient for documenting, with high precision
various physical properties obtainable by any number of sensors.

InkML provides an effective streaming mechanism:

DOM selectors are commonly used over the id and class
attributes of xml elements, and could manage nested or
grouped event sources.

Untrusted coordinates could be restricted to a safe x/y area:

The InkML interchange format extends pointer events to allow replay,
as well as streaming of pointer events across networks; an unlimited
number of event sources, and a high level of flexibility in implementation.


An event api based on InkML would bring these kind of uses:

<canvas style="ink-source: url(/automatedevents.xml); ink-transform: 
<div ontouchstart="return ontouchstart(event);" style="ink-source: 
touch/1">Only touch/1 will trigger my events</div>
<body onmousedown="..." style="ink-source: url(http://remote.ink:8080)">

(inkElement = document.createElement('ink')).
 setAttribute('d','X Y');
inkElement.appendChild(document.createElement('trace')).innerHTML = '0 0 
20 20...';

document.body.addEventSelector('touch/[2-4]', function() {}, bubble);
document.body.style.inkSource='touch/[2-3]'; // events from 4 will never 
reach our selector.

We can not do much about the standard "mouse" event, but otherwise, 
there's a lot of room for
extending compatibility backward.
Received on Monday, 22 March 2010 05:51:51 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:36:56 UTC