touchevents.html
changeset 223 df8e585dbc59
parent 220 3558dee2ba49
child 224 bce3d93b8085
equal deleted inserted replaced
220:3558dee2ba49 223:df8e585dbc59
   558       </p>
   558       </p>
   559 
   559 
   560       <pre class="idl"><span class="idlInterface" id="idl-def-Touch">partial interface <span class="idlInterfaceID">Touch</span> {
   560       <pre class="idl"><span class="idlInterface" id="idl-def-Touch">partial interface <span class="idlInterfaceID">Touch</span> {
   561 <span class="idlAttribute">    readonly    attribute <span class="idlAttrType">long</span>  <span class="idlAttrName"><a href="#widl-Touch-radiusX">radiusX</a></span>;</span>
   561 <span class="idlAttribute">    readonly    attribute <span class="idlAttrType">long</span>  <span class="idlAttrName"><a href="#widl-Touch-radiusX">radiusX</a></span>;</span>
   562 <span class="idlAttribute">    readonly    attribute <span class="idlAttrType">long</span>  <span class="idlAttrName"><a href="#widl-Touch-radiusY">radiusY</a></span>;</span>
   562 <span class="idlAttribute">    readonly    attribute <span class="idlAttrType">long</span>  <span class="idlAttrName"><a href="#widl-Touch-radiusY">radiusY</a></span>;</span>
       
   563 <span class="idlAttribute">    readonly    attribute <span class="idlAttrType">float</span> <span class="idlAttrName"><a href="#widl-Touch-rotationAngle">rotationAngle</a></span>;</span>
   563 <span class="idlAttribute">    readonly    attribute <span class="idlAttrType">float</span> <span class="idlAttrName"><a href="#widl-Touch-force">force</a></span>;</span>
   564 <span class="idlAttribute">    readonly    attribute <span class="idlAttrType">float</span> <span class="idlAttrName"><a href="#widl-Touch-force">force</a></span>;</span>
   564 };</span></pre><section id="attributes"><h3 aria-level="2" role="heading" id="h3_attributes"><span class="secno">2.1 </span>Attributes</h3><dl class="attributes"><dt id="widl-Touch-force"><code>force</code> of type <span class="idlAttrType">float</span>, readonly   </dt><dd>
   565 };</span></pre><section id="attributes"><h3 aria-level="2" role="heading" id="h3_attributes"><span class="secno">2.1 </span>Attributes</h3><dl class="attributes"><dt id="widl-Touch-force"><code>force</code> of type <span class="idlAttrType">float</span>, readonly   </dt><dd>
   565           a relative value of pressure applied, in the range <code>0</code> to
   566           a relative value of pressure applied, in the range <code>0</code> to
   566           <code>1</code>, where <code>0</code> is no pressure, and
   567           <code>1</code>, where <code>0</code> is no pressure, and
   567           <code>1</code> is the highest level of pressure the touch device is
   568           <code>1</code> is the highest level of pressure the touch device is
   577             Language (InkML)</a>, in addition to force, e.g. adding
   578             Language (InkML)</a>, in addition to force, e.g. adding
   578             angle, clientZ, rotation, etc.
   579             angle, clientZ, rotation, etc.
   579           </p></div>
   580           </p></div>
   580         </dd><dt id="widl-Touch-radiusX"><code>radiusX</code> of type <span class="idlAttrType">long</span>, readonly   </dt><dd>
   581         </dd><dt id="widl-Touch-radiusX"><code>radiusX</code> of type <span class="idlAttrType">long</span>, readonly   </dt><dd>
   581           the radius of the ellipse which most closely circumscribes the
   582           the radius of the ellipse which most closely circumscribes the
   582           touching area (e.g. finger, stylus) along the x-axis, in CSS pixels of
   583           touching area (e.g. finger, stylus) along the axis indicated by rotationAngle, in CSS pixels of
   583           the same scale as screenX; <code>1</code> if no value is
   584           the same scale as screenX; <code>1</code> if no value is
   584           known.  The value must be positive.
   585           known.  The value must be positive.
   585         </dd><dt id="widl-Touch-radiusY"><code>radiusY</code> of type <span class="idlAttrType">long</span>, readonly   </dt><dd>
   586         </dd><dt id="widl-Touch-radiusY"><code>radiusY</code> of type <span class="idlAttrType">long</span>, readonly   </dt><dd>
   586           the radius of the ellipse which most closely circumscribes the
   587           the radius of the ellipse which most closely circumscribes the
   587           touching area (e.g. finger, stylus) along the y-axis, in CSS pixels of
   588           touching area (e.g. finger, stylus) along the axis perpendicular to that indicated by rotationAngle, in CSS pixels of
   588           the same scale as screenY; <code>1</code> if no value is
   589           the same scale as screenY; <code>1</code> if no value is
   589           known.  The value must be positive.
   590           known.  The value must be positive.
       
   591         </dd><dt id="widl-Touch-rotationAngle"><code>rotationAngle</code> of type <span class="idlAttrType">float</span>, readonly   </dt><dd>
       
   592           <p>
       
   593             the angle (in degrees) that the ellipse described by <a>radiusX</a>
       
   594             and <a>radiusY</a> is rotated clockwise about its center;
       
   595             <code>0</code> if no value is known.  The value must be greater
       
   596             than or equal to <code>0</code> and less than <code>90</code>.
       
   597           </p>
       
   598           <p>
       
   599             If the ellipse described by <a>radiusX</a> and <a>radiusY</a> is
       
   600             circular, then <a>rotationAngle</a> has no effect.  The user agent
       
   601             may use <code>0</code> as the value in this case, or it may use any
       
   602             other value in the allowed range.  (For example, the user agent may
       
   603             use the <a>rotationAngle</a> value from the previous touch event,
       
   604             to avoid sudden changes.)
       
   605           </p>
   590         </dd></dl></section>
   606         </dd></dl></section>
   591     </section>
   607     </section>
   592 
   608 
   593     <section id="touchlist-interface">
   609     <section id="touchlist-interface">
   594       <!--OddPage--><h2 aria-level="1" role="heading" id="h2_touchlist-interface"><span class="secno">3. </span><a href="#idl-def-TouchList" class="idlType"><code>TouchList</code></a> Interface</h2>
   610       <!--OddPage--><h2 aria-level="1" role="heading" id="h2_touchlist-interface"><span class="secno">3. </span><a href="#idl-def-TouchList" class="idlType"><code>TouchList</code></a> Interface</h2>