pointerevents.idl (2495B)
1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into webref 3 // (https://github.com/w3c/webref) 4 // Source: Pointer Events (https://w3c.github.io/pointerevents/) 5 6 dictionary PointerEventInit : MouseEventInit { 7 long pointerId = 0; 8 double width = 1; 9 double height = 1; 10 float pressure = 0; 11 float tangentialPressure = 0; 12 long tiltX; 13 long tiltY; 14 long twist = 0; 15 double altitudeAngle; 16 double azimuthAngle; 17 DOMString pointerType = ""; 18 boolean isPrimary = false; 19 long persistentDeviceId = 0; 20 sequence<PointerEvent> coalescedEvents = []; 21 sequence<PointerEvent> predictedEvents = []; 22 }; 23 24 [Exposed=Window] 25 interface PointerEvent : MouseEvent { 26 constructor(DOMString type, optional PointerEventInit eventInitDict = {}); 27 readonly attribute long pointerId; 28 readonly attribute double width; 29 readonly attribute double height; 30 readonly attribute float pressure; 31 readonly attribute float tangentialPressure; 32 readonly attribute long tiltX; 33 readonly attribute long tiltY; 34 readonly attribute long twist; 35 readonly attribute double altitudeAngle; 36 readonly attribute double azimuthAngle; 37 readonly attribute DOMString pointerType; 38 readonly attribute boolean isPrimary; 39 readonly attribute long persistentDeviceId; 40 [SecureContext] sequence<PointerEvent> getCoalescedEvents(); 41 sequence<PointerEvent> getPredictedEvents(); 42 }; 43 44 partial interface Element { 45 undefined setPointerCapture (long pointerId); 46 undefined releasePointerCapture (long pointerId); 47 boolean hasPointerCapture (long pointerId); 48 }; 49 50 partial interface mixin GlobalEventHandlers { 51 attribute EventHandler onpointerover; 52 attribute EventHandler onpointerenter; 53 attribute EventHandler onpointerdown; 54 attribute EventHandler onpointermove; 55 [SecureContext] attribute EventHandler onpointerrawupdate; 56 attribute EventHandler onpointerup; 57 attribute EventHandler onpointercancel; 58 attribute EventHandler onpointerout; 59 attribute EventHandler onpointerleave; 60 attribute EventHandler ongotpointercapture; 61 attribute EventHandler onlostpointercapture; 62 }; 63 64 partial interface Navigator { 65 readonly attribute long maxTouchPoints; 66 };