@@ -560,6 +560,7 @@ <h2 property="dcterms:issued" datatype="xsd:dateTime" content="2013-10-31T04:00:
560
560
< pre class ="idl "> < span class ="idlInterface " id ="idl-def-Touch "> partial interface < span class ="idlInterfaceID "> Touch</ span > {
561
561
< span class ="idlAttribute "> readonly attribute < span class ="idlAttrType "> long</ span > < span class ="idlAttrName "> < a href ="#widl-Touch-radiusX "> radiusX</ a > </ span > ;</ span >
562
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
564
< span class ="idlAttribute "> readonly attribute < span class ="idlAttrType "> float</ span > < span class ="idlAttrName "> < a href ="#widl-Touch-force "> force</ a > </ span > ;</ span >
564
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
566
a relative value of pressure applied, in the range < code > 0</ code > to
@@ -579,14 +580,29 @@ <h2 property="dcterms:issued" datatype="xsd:dateTime" content="2013-10-31T04:00:
579
580
</ p > </ div >
580
581
</ dd > < dt id ="widl-Touch-radiusX "> < code > radiusX</ code > of type < span class ="idlAttrType "> long</ span > , readonly </ dt > < dd >
581
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
584
the same scale as screenX; < code > 1</ code > if no value is
584
585
known. The value must be positive.
585
586
</ dd > < dt id ="widl-Touch-radiusY "> < code > radiusY</ code > of type < span class ="idlAttrType "> long</ span > , readonly </ dt > < dd >
586
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
589
the same scale as screenY; < code > 1</ code > if no value is
589
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
606
</ dd > </ dl > </ section >
591
607
</ section >
592
608
0 commit comments