暂无描述

deviceorientation.json 7.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  1. {
  2. "title":"DeviceOrientation & DeviceMotion events",
  3. "description":"API for detecting orientation and motion events from the device running the browser.",
  4. "spec":"https://www.w3.org/TR/orientation-event/",
  5. "status":"cr",
  6. "links":[
  7. {
  8. "url":"https://www.html5rocks.com/en/tutorials/device/orientation/",
  9. "title":"HTML5 Rocks tutorial"
  10. },
  11. {
  12. "url":"https://raw.github.com/phiggins42/has.js/master/detect/features.js#native-orientation",
  13. "title":"has.js test"
  14. },
  15. {
  16. "url":"http://html5labs.interoperabilitybridges.com/prototypes/device-orientation-events/device-orientation-events/info",
  17. "title":"DeviceOrientation implementation prototype for IE10"
  18. },
  19. {
  20. "url":"http://aurelio.audero.it/demo/device-orientation-api-demo.html",
  21. "title":"Demo"
  22. }
  23. ],
  24. "bugs":[
  25. {
  26. "description":"`DeviceOrientationEvent.beta` has values between -90 and 90 on mobile Safari and between 180 and -180 on Firefox.\r\n`DeviceOrientationEvent.gamma` has values between -180 and 180 on mobile Safari and between 90 and -90 on Firefox.\r\nSee [Firefox reference](https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent)\r\nand [Safari reference](https://developer.apple.com/library/safari/documentation/SafariDOMAdditions/Reference/DeviceOrientationEventClassRef/DeviceOrientationEvent/DeviceOrientationEvent.html#//apple_ref/javascript/instp/DeviceOrientationEvent/beta)"
  27. },
  28. {
  29. "description":"Safari on iOS doesn't implement the spec correctly, because alpha is arbitrary instead of relative to true north. Safari instead offers webkitCompassHeading`, which has the opposite sign to alpha and is also relative to magnetic north instead of true north. (see [details](https://github.com/w3c/deviceorientation/issues/6))"
  30. }
  31. ],
  32. "categories":[
  33. "JS API"
  34. ],
  35. "stats":{
  36. "ie":{
  37. "5.5":"n",
  38. "6":"n",
  39. "7":"n",
  40. "8":"n",
  41. "9":"n",
  42. "10":"n",
  43. "11":"a #1"
  44. },
  45. "edge":{
  46. "12":"y",
  47. "13":"y",
  48. "14":"y",
  49. "15":"y",
  50. "16":"y",
  51. "17":"y"
  52. },
  53. "firefox":{
  54. "2":"n",
  55. "3":"n",
  56. "3.5":"n",
  57. "3.6":"p",
  58. "4":"p",
  59. "5":"p",
  60. "6":"a",
  61. "7":"a",
  62. "8":"a",
  63. "9":"a",
  64. "10":"a",
  65. "11":"a",
  66. "12":"a",
  67. "13":"a",
  68. "14":"a",
  69. "15":"a",
  70. "16":"a",
  71. "17":"a",
  72. "18":"a",
  73. "19":"a",
  74. "20":"a",
  75. "21":"a",
  76. "22":"a",
  77. "23":"a",
  78. "24":"a",
  79. "25":"a",
  80. "26":"a",
  81. "27":"a",
  82. "28":"a",
  83. "29":"a",
  84. "30":"a",
  85. "31":"a",
  86. "32":"a",
  87. "33":"a",
  88. "34":"a",
  89. "35":"a",
  90. "36":"a",
  91. "37":"a",
  92. "38":"a",
  93. "39":"a",
  94. "40":"a",
  95. "41":"a",
  96. "42":"a",
  97. "43":"a",
  98. "44":"a",
  99. "45":"a",
  100. "46":"a",
  101. "47":"a",
  102. "48":"a",
  103. "49":"a",
  104. "50":"a",
  105. "51":"a",
  106. "52":"a",
  107. "53":"a",
  108. "54":"a",
  109. "55":"a",
  110. "56":"a",
  111. "57":"a",
  112. "58":"a",
  113. "59":"a",
  114. "60":"a",
  115. "61":"a"
  116. },
  117. "chrome":{
  118. "4":"n",
  119. "5":"n",
  120. "6":"n",
  121. "7":"a",
  122. "8":"a",
  123. "9":"a",
  124. "10":"a",
  125. "11":"a",
  126. "12":"a",
  127. "13":"a",
  128. "14":"a",
  129. "15":"a",
  130. "16":"a",
  131. "17":"a",
  132. "18":"a",
  133. "19":"a",
  134. "20":"a",
  135. "21":"a",
  136. "22":"a",
  137. "23":"a",
  138. "24":"a",
  139. "25":"a",
  140. "26":"a",
  141. "27":"a",
  142. "28":"a",
  143. "29":"a",
  144. "30":"a",
  145. "31":"a",
  146. "32":"a",
  147. "33":"a",
  148. "34":"a",
  149. "35":"a",
  150. "36":"a",
  151. "37":"a",
  152. "38":"a",
  153. "39":"a",
  154. "40":"a",
  155. "41":"a",
  156. "42":"a",
  157. "43":"a",
  158. "44":"a",
  159. "45":"a",
  160. "46":"a",
  161. "47":"a",
  162. "48":"a",
  163. "49":"a",
  164. "50":"a",
  165. "51":"a",
  166. "52":"a",
  167. "53":"a",
  168. "54":"a",
  169. "55":"a",
  170. "56":"a",
  171. "57":"a",
  172. "58":"a",
  173. "59":"a",
  174. "60":"a",
  175. "61":"a",
  176. "62":"a",
  177. "63":"a",
  178. "64":"a",
  179. "65":"a",
  180. "66":"a",
  181. "67":"a"
  182. },
  183. "safari":{
  184. "3.1":"n",
  185. "3.2":"n",
  186. "4":"n",
  187. "5":"n",
  188. "5.1":"n",
  189. "6":"n",
  190. "6.1":"n",
  191. "7":"n",
  192. "7.1":"n",
  193. "8":"n",
  194. "9":"n",
  195. "9.1":"n",
  196. "10":"n",
  197. "10.1":"n",
  198. "11":"n",
  199. "11.1":"n",
  200. "TP":"n"
  201. },
  202. "opera":{
  203. "9":"n",
  204. "9.5-9.6":"n",
  205. "10.0-10.1":"n",
  206. "10.5":"n",
  207. "10.6":"n",
  208. "11":"n",
  209. "11.1":"n",
  210. "11.5":"n",
  211. "11.6":"n",
  212. "12":"n",
  213. "12.1":"n",
  214. "15":"a",
  215. "16":"a",
  216. "17":"a",
  217. "18":"a",
  218. "19":"a",
  219. "20":"a",
  220. "21":"a",
  221. "22":"a",
  222. "23":"a",
  223. "24":"a",
  224. "25":"a",
  225. "26":"a",
  226. "27":"a",
  227. "28":"a",
  228. "29":"a",
  229. "30":"a",
  230. "31":"a",
  231. "32":"a",
  232. "33":"a",
  233. "34":"a",
  234. "35":"a",
  235. "36":"a",
  236. "37":"a",
  237. "38":"a",
  238. "39":"a",
  239. "40":"a",
  240. "41":"a",
  241. "42":"a",
  242. "43":"a",
  243. "44":"a",
  244. "45":"a",
  245. "46":"a",
  246. "47":"a",
  247. "48":"a",
  248. "49":"a",
  249. "50":"a",
  250. "51":"a",
  251. "52":"a"
  252. },
  253. "ios_saf":{
  254. "3.2":"n",
  255. "4.0-4.1":"n",
  256. "4.2-4.3":"a",
  257. "5.0-5.1":"a",
  258. "6.0-6.1":"a",
  259. "7.0-7.1":"a",
  260. "8":"a",
  261. "8.1-8.4":"a",
  262. "9.0-9.2":"a",
  263. "9.3":"a",
  264. "10.0-10.2":"a",
  265. "10.3":"a",
  266. "11.0-11.2":"a",
  267. "11.3":"a"
  268. },
  269. "op_mini":{
  270. "all":"n"
  271. },
  272. "android":{
  273. "2.1":"n",
  274. "2.2":"n",
  275. "2.3":"n",
  276. "3":"a",
  277. "4":"a",
  278. "4.1":"a",
  279. "4.2-4.3":"a",
  280. "4.4":"a",
  281. "4.4.3-4.4.4":"a",
  282. "62":"a"
  283. },
  284. "bb":{
  285. "7":"n",
  286. "10":"a"
  287. },
  288. "op_mob":{
  289. "10":"n",
  290. "11":"n",
  291. "11.1":"n",
  292. "11.5":"n",
  293. "12":"y",
  294. "12.1":"y",
  295. "37":"a"
  296. },
  297. "and_chr":{
  298. "64":"a"
  299. },
  300. "and_ff":{
  301. "57":"a"
  302. },
  303. "ie_mob":{
  304. "10":"n",
  305. "11":"y"
  306. },
  307. "and_uc":{
  308. "11.8":"a"
  309. },
  310. "samsung":{
  311. "4":"a",
  312. "5":"a",
  313. "6.2":"a"
  314. },
  315. "and_qq":{
  316. "1.2":"a"
  317. },
  318. "baidu":{
  319. "7.12":"a"
  320. }
  321. },
  322. "notes":"Partial support refers to the lack of compassneedscalibration event. Partial support also refers to the lack of devicemotion event support for Chrome 30- and Opera. Opera Mobile 14 lost the ondevicemotion event support. Firefox 3.6, 4 and 5 support the non-standard [MozOrientation](https://developer.mozilla.org/en/DOM/MozOrientation) event.",
  323. "notes_by_num":{
  324. "1":"`compassneedscalibration` supported in IE11 only for compatible devices with Windows 8.1+."
  325. },
  326. "usage_perc_y":2.03,
  327. "usage_perc_a":89.93,
  328. "ucprefix":false,
  329. "parent":"",
  330. "keywords":"ondeviceorientation,ondevicemotion",
  331. "ie_id":"deviceorientation,devicemotion",
  332. "chrome_id":"5874690627207168,5556931766779904",
  333. "firefox_id":"device-orientation",
  334. "webkit_id":"specification-deviceorientation-events",
  335. "shown":true
  336. }