google-closure-compiler 20250412.0.0-nightly → 20250413.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -30
- package/cli.js +3 -4
- package/externs/browser/decorators.js +276 -0
- package/externs/browser/deprecated.js +58 -0
- package/externs/browser/es6_proxy.js +143 -0
- package/externs/browser/fetchapi.js +449 -0
- package/externs/browser/fido.js +94 -0
- package/externs/browser/flash.js +226 -0
- package/externs/browser/gecko_css.js +126 -0
- package/externs/browser/gecko_dom.js +479 -0
- package/externs/browser/gecko_event.js +86 -0
- package/externs/browser/gecko_xml.js +73 -0
- package/externs/browser/google_legacy.js +31 -0
- package/externs/browser/html5.js +6647 -0
- package/externs/browser/ie_css.js +270 -0
- package/externs/browser/ie_dom.js +1232 -0
- package/externs/browser/ie_event.js +310 -0
- package/externs/browser/ie_vml.js +77 -0
- package/externs/browser/intersection_observer.js +178 -0
- package/externs/browser/intl.js +602 -0
- package/externs/browser/iphone.js +204 -0
- package/externs/browser/mediakeys.js +305 -0
- package/externs/browser/mediasource.js +155 -0
- package/externs/browser/nonstandard_anim_timing.js +97 -0
- package/externs/browser/nonstandard_audio.js +82 -0
- package/externs/browser/nonstandard_console.js +75 -0
- package/externs/browser/nonstandard_fileapi.js +1066 -0
- package/externs/browser/nonstandard_indexeddb.js +78 -0
- package/externs/browser/nonstandard_navigation_timing.js +38 -0
- package/externs/browser/nonstandard_selection.js +80 -0
- package/externs/browser/page_visibility.js +28 -0
- package/externs/browser/streamsapi.js +593 -0
- package/externs/browser/svg.js +10016 -0
- package/externs/browser/url.js +202 -0
- package/externs/browser/v8.js +134 -0
- package/externs/browser/w3c_abort.js +89 -0
- package/externs/browser/w3c_anim_timing.js +49 -0
- package/externs/browser/w3c_aria_mixin.js +286 -0
- package/externs/browser/w3c_audio.js +1660 -0
- package/externs/browser/w3c_batterystatus.js +85 -0
- package/externs/browser/w3c_clipboard.js +74 -0
- package/externs/browser/w3c_clipboardevent.js +47 -0
- package/externs/browser/w3c_composition_event.js +93 -0
- package/externs/browser/w3c_css.js +3790 -0
- package/externs/browser/w3c_css3d.js +199 -0
- package/externs/browser/w3c_device_sensor_event.js +122 -0
- package/externs/browser/w3c_dom1.js +1160 -0
- package/externs/browser/w3c_dom2.js +3151 -0
- package/externs/browser/w3c_dom3.js +555 -0
- package/externs/browser/w3c_dom4.js +289 -0
- package/externs/browser/w3c_elementtraversal.js +116 -0
- package/externs/browser/w3c_event.js +607 -0
- package/externs/browser/w3c_event3.js +77 -0
- package/externs/browser/w3c_eventsource.js +110 -0
- package/externs/browser/w3c_fileapi.js +302 -0
- package/externs/browser/w3c_gamepad.js +113 -0
- package/externs/browser/w3c_geolocation.js +130 -0
- package/externs/browser/w3c_geometry1.js +899 -0
- package/externs/browser/w3c_indexeddb.js +771 -0
- package/externs/browser/w3c_keyboardlock.js +47 -0
- package/externs/browser/w3c_mediacapabilities.js +206 -0
- package/externs/browser/w3c_midi.js +301 -0
- package/externs/browser/w3c_navigation.js +72 -0
- package/externs/browser/w3c_navigation_timing.js +437 -0
- package/externs/browser/w3c_netinfo.js +85 -0
- package/externs/browser/w3c_payment_request.js +401 -0
- package/externs/browser/w3c_permissions.js +112 -0
- package/externs/browser/w3c_permissions_policy.js +78 -0
- package/externs/browser/w3c_pointer_events.js +163 -0
- package/externs/browser/w3c_pointerlock.js +63 -0
- package/externs/browser/w3c_range.js +284 -0
- package/externs/browser/w3c_referrer_policy.js +36 -0
- package/externs/browser/w3c_requestidlecallback.js +76 -0
- package/externs/browser/w3c_rtc.js +3882 -0
- package/externs/browser/w3c_screen_orientation.js +53 -0
- package/externs/browser/w3c_screen_wake_lock.js +58 -0
- package/externs/browser/w3c_selection.js +209 -0
- package/externs/browser/w3c_selectors.js +113 -0
- package/externs/browser/w3c_serviceworker.js +739 -0
- package/externs/browser/w3c_speech.js +426 -0
- package/externs/browser/w3c_touch_event.js +296 -0
- package/externs/browser/w3c_trusted_types.js +142 -0
- package/externs/browser/w3c_vibration.js +38 -0
- package/externs/browser/w3c_webcodecs.js +1473 -0
- package/externs/browser/w3c_webcrypto.js +839 -0
- package/externs/browser/w3c_worklets.js +54 -0
- package/externs/browser/w3c_xml.js +533 -0
- package/externs/browser/web_animations.js +452 -0
- package/externs/browser/web_app_manifest.js +50 -0
- package/externs/browser/webassembly.js +223 -0
- package/externs/browser/webgl.js +3409 -0
- package/externs/browser/webgl2.js +2727 -0
- package/externs/browser/webgl2_compute.js +1609 -0
- package/externs/browser/webkit_css.js +456 -0
- package/externs/browser/webkit_dom.js +118 -0
- package/externs/browser/webkit_event.js +46 -0
- package/externs/browser/webkit_notifications.js +258 -0
- package/externs/browser/webkit_usercontent.js +55 -0
- package/externs/browser/weblocksapi.js +125 -0
- package/externs/browser/webstorage.js +171 -0
- package/externs/browser/whatwg_bitmap_context.js +37 -0
- package/externs/browser/whatwg_console.js +152 -0
- package/externs/browser/whatwg_encoding.js +99 -0
- package/externs/browser/whatwg_file_system.js +296 -0
- package/externs/browser/wicg_attribution_reporting.js +42 -0
- package/externs/browser/wicg_compression_stream.js +60 -0
- package/externs/browser/wicg_constructable_stylesheets.js +60 -0
- package/externs/browser/wicg_entries.js +169 -0
- package/externs/browser/wicg_file_handling.js +41 -0
- package/externs/browser/wicg_file_system_access.js +191 -0
- package/externs/browser/wicg_floc.js +41 -0
- package/externs/browser/wicg_ink.js +89 -0
- package/externs/browser/wicg_resizeobserver.js +100 -0
- package/externs/browser/wicg_scheduler.js +62 -0
- package/externs/browser/wicg_trust_token.js +89 -0
- package/externs/browser/wicg_uach.js +100 -0
- package/externs/browser/window.js +190 -0
- package/externs/es3.js +2716 -0
- package/externs/es5.js +284 -0
- package/externs/es6.js +2554 -0
- package/externs/es6_collections.js +323 -0
- package/index.js +13 -16
- package/lib/grunt/index.js +71 -92
- package/lib/grunt/vinyl-stream.js +12 -18
- package/lib/gulp/concat-to-json.js +30 -18
- package/lib/gulp/index.js +174 -181
- package/lib/gulp/json-to-vinyl.js +8 -8
- package/lib/node/{closure-compiler.js → index.js} +27 -51
- package/lib/utils.js +16 -14
- package/package.json +19 -16
- package/lib/logger.js +0 -89
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2010 The Closure Compiler Authors
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @fileoverview Definitions for W3C's CSS 3D Transforms specification.
|
|
19
|
+
* The whole file has been fully type annotated. Created from
|
|
20
|
+
* https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html
|
|
21
|
+
*
|
|
22
|
+
* @externs
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @constructor
|
|
27
|
+
* @param {string=} opt_matrix
|
|
28
|
+
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#the-cssmatrix-interface
|
|
29
|
+
*/
|
|
30
|
+
function CSSMatrix(opt_matrix) {}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
|
|
35
|
+
*/
|
|
36
|
+
CSSMatrix.prototype.m11;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
|
|
41
|
+
*/
|
|
42
|
+
CSSMatrix.prototype.m12;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
|
|
47
|
+
*/
|
|
48
|
+
CSSMatrix.prototype.m13;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
|
|
53
|
+
*/
|
|
54
|
+
CSSMatrix.prototype.m14;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
|
|
59
|
+
*/
|
|
60
|
+
CSSMatrix.prototype.m21;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
|
|
65
|
+
*/
|
|
66
|
+
CSSMatrix.prototype.m22;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* @type {number}
|
|
70
|
+
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
|
|
71
|
+
*/
|
|
72
|
+
CSSMatrix.prototype.m23;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @type {number}
|
|
76
|
+
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
|
|
77
|
+
*/
|
|
78
|
+
CSSMatrix.prototype.m24;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @type {number}
|
|
82
|
+
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
|
|
83
|
+
*/
|
|
84
|
+
CSSMatrix.prototype.m31;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* @type {number}
|
|
88
|
+
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
|
|
89
|
+
*/
|
|
90
|
+
CSSMatrix.prototype.m32;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* @type {number}
|
|
94
|
+
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
|
|
95
|
+
*/
|
|
96
|
+
CSSMatrix.prototype.m33;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* @type {number}
|
|
100
|
+
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
|
|
101
|
+
*/
|
|
102
|
+
CSSMatrix.prototype.m34;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* @type {number}
|
|
106
|
+
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
|
|
107
|
+
*/
|
|
108
|
+
CSSMatrix.prototype.m41;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @type {number}
|
|
112
|
+
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
|
|
113
|
+
*/
|
|
114
|
+
CSSMatrix.prototype.m42;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* @type {number}
|
|
118
|
+
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
|
|
119
|
+
*/
|
|
120
|
+
CSSMatrix.prototype.m43;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* @type {number}
|
|
124
|
+
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
|
|
125
|
+
*/
|
|
126
|
+
CSSMatrix.prototype.m44;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* @param {string} string
|
|
130
|
+
* @return {void}
|
|
131
|
+
*/
|
|
132
|
+
CSSMatrix.prototype.setMatrixValue = function(string) {};
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* @param {!CSSMatrix} secondMatrix
|
|
136
|
+
* @return {!CSSMatrix}
|
|
137
|
+
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#widl-CSSMatrix-multiply-CSSMatrix-CSSMatrix-other
|
|
138
|
+
*/
|
|
139
|
+
CSSMatrix.prototype.multiply = function(secondMatrix) {};
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* @return {CSSMatrix} Returns void if the matrix is non-invertable.
|
|
143
|
+
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#widl-CSSMatrix-inverse-CSSMatrix
|
|
144
|
+
*/
|
|
145
|
+
CSSMatrix.prototype.inverse = function() {};
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* @param {number=} opt_x Defaults to 0.
|
|
149
|
+
* @param {number=} opt_y Defaults to 0.
|
|
150
|
+
* @param {number=} opt_z Defaults to 0.
|
|
151
|
+
* @return {!CSSMatrix}
|
|
152
|
+
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#widl-CSSMatrix-translate-CSSMatrix-unrestricted-double-tx-unrestricted-double-ty-unrestricted-double-tz
|
|
153
|
+
*/
|
|
154
|
+
CSSMatrix.prototype.translate = function(opt_x, opt_y, opt_z) {};
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* @param {number=} opt_scaleX Defaults to 1.
|
|
158
|
+
* @param {number=} opt_scaleY Defaults to scaleX.
|
|
159
|
+
* @param {number=} opt_scaleZ Defaults to 1.
|
|
160
|
+
* @return {!CSSMatrix}
|
|
161
|
+
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#widl-CSSMatrix-scale-CSSMatrix-unrestricted-double-scale-unrestricted-double-originX-unrestricted-double-originY
|
|
162
|
+
*/
|
|
163
|
+
CSSMatrix.prototype.scale = function(opt_scaleX, opt_scaleY, opt_scaleZ) {};
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* @param {number=} opt_rotX Defaults to 0.
|
|
167
|
+
* @param {number=} opt_rotY Defaults to 0.
|
|
168
|
+
* @param {number=} opt_rotZ Defaults to rotX if rotY is not defined, else 0.
|
|
169
|
+
* @return {!CSSMatrix}
|
|
170
|
+
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#widl-CSSMatrix-rotate-CSSMatrix-unrestricted-double-angle-unrestricted-double-originX-unrestricted-double-originY
|
|
171
|
+
*/
|
|
172
|
+
CSSMatrix.prototype.rotate = function(opt_rotX, opt_rotY, opt_rotZ) {};
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* @param {number=} opt_x Defaults to 0.
|
|
176
|
+
* @param {number=} opt_y Defaults to 0.
|
|
177
|
+
* @param {number=} opt_z Defaults to 0.
|
|
178
|
+
* @param {number=} opt_angle Defaults to 0.
|
|
179
|
+
* @return {!CSSMatrix}
|
|
180
|
+
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#widl-CSSMatrix-rotateAxisAngle-CSSMatrix-unrestricted-double-x-unrestricted-double-y-unrestricted-double-z-unrestricted-double-angle
|
|
181
|
+
*/
|
|
182
|
+
CSSMatrix.prototype.rotateAxisAngle =
|
|
183
|
+
function(opt_x, opt_y, opt_z, opt_angle) {};
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* @constructor
|
|
187
|
+
* @param {string=} opt_matrix
|
|
188
|
+
* @extends {CSSMatrix}
|
|
189
|
+
* @see http://developer.apple.com/safari/library/documentation/AudioVideo/Reference/WebKitCSSMatrixClassReference/WebKitCSSMatrix/WebKitCSSMatrix.html#//apple_ref/javascript/instm/WebKitCSSMatrix/setMatrixValue
|
|
190
|
+
*/
|
|
191
|
+
function WebKitCSSMatrix(opt_matrix) {}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* @constructor
|
|
195
|
+
* @param {string=} opt_matrix
|
|
196
|
+
* @extends {CSSMatrix}
|
|
197
|
+
* @see http://msdn.microsoft.com/en-us/library/windows/apps/hh453593.aspx
|
|
198
|
+
*/
|
|
199
|
+
function MSCSSMatrix(opt_matrix) {}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2013 The Closure Compiler Authors
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @fileoverview Definitions for W3C's device orientation and device motion
|
|
19
|
+
* events specification.
|
|
20
|
+
* This file depends on w3c_event.js.
|
|
21
|
+
* The whole file has been partially type annotated.
|
|
22
|
+
* Created from http://dev.w3.org/geo/api/spec-source-orientation.
|
|
23
|
+
*
|
|
24
|
+
* @externs
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @record
|
|
29
|
+
* @extends {EventInit}
|
|
30
|
+
* @see https://w3c.github.io/deviceorientation/spec-source-orientation.html#deviceorientation
|
|
31
|
+
*/
|
|
32
|
+
function DeviceOrientationEventInit() {}
|
|
33
|
+
|
|
34
|
+
/** @type {number|undefined} */
|
|
35
|
+
DeviceOrientationEventInit.prototype.alpha;
|
|
36
|
+
|
|
37
|
+
/** @type {number|undefined} */
|
|
38
|
+
DeviceOrientationEventInit.prototype.beta;
|
|
39
|
+
|
|
40
|
+
/** @type {number|undefined} */
|
|
41
|
+
DeviceOrientationEventInit.prototype.gamma;
|
|
42
|
+
|
|
43
|
+
/** @type {boolean|undefined} */
|
|
44
|
+
DeviceOrientationEventInit.prototype.absolute;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @constructor
|
|
48
|
+
* @extends {Event}
|
|
49
|
+
* @param {string} type
|
|
50
|
+
* @param {!DeviceOrientationEventInit=} opt_eventInitDict
|
|
51
|
+
*/
|
|
52
|
+
function DeviceOrientationEvent(type, opt_eventInitDict) {}
|
|
53
|
+
|
|
54
|
+
/** @type {?number} */
|
|
55
|
+
DeviceOrientationEvent.prototype.alpha;
|
|
56
|
+
|
|
57
|
+
/** @type {?number} */
|
|
58
|
+
DeviceOrientationEvent.prototype.beta;
|
|
59
|
+
|
|
60
|
+
/** @type {?number} */
|
|
61
|
+
DeviceOrientationEvent.prototype.gamma;
|
|
62
|
+
|
|
63
|
+
/** @type {boolean} */
|
|
64
|
+
DeviceOrientationEvent.prototype.absolute;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @type {?number}
|
|
68
|
+
* @see https://developer.apple.com/library/safari/documentation/SafariDOMAdditions/Reference/DeviceOrientationEventClassRef/DeviceOrientationEvent/DeviceOrientationEvent.html#//apple_ref/javascript/instp/DeviceOrientationEvent/webkitCompassAccuracy
|
|
69
|
+
*/
|
|
70
|
+
DeviceOrientationEvent.prototype.webkitCompassAccuracy;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @type {?number}
|
|
74
|
+
* @see https://developer.apple.com/library/safari/documentation/SafariDOMAdditions/Reference/DeviceOrientationEventClassRef/DeviceOrientationEvent/DeviceOrientationEvent.html#//apple_ref/javascript/instp/DeviceOrientationEvent/webkitCompassHeading
|
|
75
|
+
*/
|
|
76
|
+
DeviceOrientationEvent.prototype.webkitCompassHeading;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @constructor
|
|
80
|
+
*/
|
|
81
|
+
function DeviceAcceleration() {}
|
|
82
|
+
|
|
83
|
+
/** @type {?number} */
|
|
84
|
+
DeviceAcceleration.prototype.x;
|
|
85
|
+
|
|
86
|
+
/** @type {?number} */
|
|
87
|
+
DeviceAcceleration.prototype.y;
|
|
88
|
+
|
|
89
|
+
/** @type {?number} */
|
|
90
|
+
DeviceAcceleration.prototype.z;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* @constructor
|
|
94
|
+
*/
|
|
95
|
+
function DeviceRotationRate() {}
|
|
96
|
+
|
|
97
|
+
/** @type {?number} */
|
|
98
|
+
DeviceRotationRate.prototype.alpha;
|
|
99
|
+
|
|
100
|
+
/** @type {?number} */
|
|
101
|
+
DeviceRotationRate.prototype.beta;
|
|
102
|
+
|
|
103
|
+
/** @type {?number} */
|
|
104
|
+
DeviceRotationRate.prototype.gamma;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @constructor
|
|
108
|
+
* @extends {Event}
|
|
109
|
+
*/
|
|
110
|
+
function DeviceMotionEvent() {}
|
|
111
|
+
|
|
112
|
+
/** @type {?DeviceAcceleration} */
|
|
113
|
+
DeviceMotionEvent.prototype.acceleration;
|
|
114
|
+
|
|
115
|
+
/** @type {?DeviceAcceleration} */
|
|
116
|
+
DeviceMotionEvent.prototype.accelerationIncludingGravity;
|
|
117
|
+
|
|
118
|
+
/** @type {?DeviceRotationRate} */
|
|
119
|
+
DeviceMotionEvent.prototype.rotationRate;
|
|
120
|
+
|
|
121
|
+
/** @type {?number} */
|
|
122
|
+
DeviceMotionEvent.prototype.interval;
|