Skip to content

Commit a0f4478

Browse files
committed
Merge branch 'master' into circularVar
2 parents 05f51dc + 3bd4dd4 commit a0f4478

File tree

252 files changed

+16430
-11908
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

252 files changed

+16430
-11908
lines changed

Jakefile renamed to Jakefile.js

File renamed without changes.

bin/lib.d.ts

Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,6 +1231,139 @@ interface ArrayBufferView {
12311231
byteOffset: number;
12321232
}
12331233

1234+
interface DataView {
1235+
buffer: ArrayBuffer;
1236+
byteLength: number;
1237+
byteOffset: number;
1238+
/**
1239+
* Gets the Float32 value at the specified byte offset from the start of the view. There is
1240+
* no alignment constraint; multi-byte values may be fetched from any offset.
1241+
* @param byteOffset The place in the buffer at which the value should be retrieved.
1242+
*/
1243+
getFloat32(byteOffset: number, littleEndian: boolean): number;
1244+
1245+
/**
1246+
* Gets the Float64 value at the specified byte offset from the start of the view. There is
1247+
* no alignment constraint; multi-byte values may be fetched from any offset.
1248+
* @param byteOffset The place in the buffer at which the value should be retrieved.
1249+
*/
1250+
getFloat64(byteOffset: number, littleEndian: boolean): number;
1251+
1252+
/**
1253+
* Gets the Int8 value at the specified byte offset from the start of the view. There is
1254+
* no alignment constraint; multi-byte values may be fetched from any offset.
1255+
* @param byteOffset The place in the buffer at which the value should be retrieved.
1256+
*/
1257+
getInt8(byteOffset: number): number;
1258+
1259+
/**
1260+
* Gets the Int16 value at the specified byte offset from the start of the view. There is
1261+
* no alignment constraint; multi-byte values may be fetched from any offset.
1262+
* @param byteOffset The place in the buffer at which the value should be retrieved.
1263+
*/
1264+
getInt16(byteOffset: number, littleEndian: boolean): number;
1265+
/**
1266+
* Gets the Int32 value at the specified byte offset from the start of the view. There is
1267+
* no alignment constraint; multi-byte values may be fetched from any offset.
1268+
* @param byteOffset The place in the buffer at which the value should be retrieved.
1269+
*/
1270+
getInt32(byteOffset: number, littleEndian: boolean): number;
1271+
1272+
/**
1273+
* Gets the Uint8 value at the specified byte offset from the start of the view. There is
1274+
* no alignment constraint; multi-byte values may be fetched from any offset.
1275+
* @param byteOffset The place in the buffer at which the value should be retrieved.
1276+
*/
1277+
getUint8(byteOffset: number): number;
1278+
1279+
/**
1280+
* Gets the Uint16 value at the specified byte offset from the start of the view. There is
1281+
* no alignment constraint; multi-byte values may be fetched from any offset.
1282+
* @param byteOffset The place in the buffer at which the value should be retrieved.
1283+
*/
1284+
getUint16(byteOffset: number, littleEndian: boolean): number;
1285+
1286+
/**
1287+
* Gets the Uint32 value at the specified byte offset from the start of the view. There is
1288+
* no alignment constraint; multi-byte values may be fetched from any offset.
1289+
* @param byteOffset The place in the buffer at which the value should be retrieved.
1290+
*/
1291+
getUint32(byteOffset: number, littleEndian: boolean): number;
1292+
1293+
/**
1294+
* Stores an Float32 value at the specified byte offset from the start of the view.
1295+
* @param byteOffset The place in the buffer at which the value should be set.
1296+
* @param value The value to set.
1297+
* @param littleEndian If false or undefined, a big-endian value should be written,
1298+
* otherwise a little-endian value should be written.
1299+
*/
1300+
setFloat32(byteOffset: number, value: number, littleEndian: boolean): void;
1301+
1302+
/**
1303+
* Stores an Float64 value at the specified byte offset from the start of the view.
1304+
* @param byteOffset The place in the buffer at which the value should be set.
1305+
* @param value The value to set.
1306+
* @param littleEndian If false or undefined, a big-endian value should be written,
1307+
* otherwise a little-endian value should be written.
1308+
*/
1309+
setFloat64(byteOffset: number, value: number, littleEndian: boolean): void;
1310+
1311+
/**
1312+
* Stores an Int8 value at the specified byte offset from the start of the view.
1313+
* @param byteOffset The place in the buffer at which the value should be set.
1314+
* @param value The value to set.
1315+
*/
1316+
setInt8(byteOffset: number, value: number): void;
1317+
1318+
/**
1319+
* Stores an Int16 value at the specified byte offset from the start of the view.
1320+
* @param byteOffset The place in the buffer at which the value should be set.
1321+
* @param value The value to set.
1322+
* @param littleEndian If false or undefined, a big-endian value should be written,
1323+
* otherwise a little-endian value should be written.
1324+
*/
1325+
setInt16(byteOffset: number, value: number, littleEndian: boolean): void;
1326+
1327+
/**
1328+
* Stores an Int32 value at the specified byte offset from the start of the view.
1329+
* @param byteOffset The place in the buffer at which the value should be set.
1330+
* @param value The value to set.
1331+
* @param littleEndian If false or undefined, a big-endian value should be written,
1332+
* otherwise a little-endian value should be written.
1333+
*/
1334+
setInt32(byteOffset: number, value: number, littleEndian: boolean): void;
1335+
1336+
/**
1337+
* Stores an Uint8 value at the specified byte offset from the start of the view.
1338+
* @param byteOffset The place in the buffer at which the value should be set.
1339+
* @param value The value to set.
1340+
*/
1341+
setUint8(byteOffset: number, value: number): void;
1342+
1343+
/**
1344+
* Stores an Uint16 value at the specified byte offset from the start of the view.
1345+
* @param byteOffset The place in the buffer at which the value should be set.
1346+
* @param value The value to set.
1347+
* @param littleEndian If false or undefined, a big-endian value should be written,
1348+
* otherwise a little-endian value should be written.
1349+
*/
1350+
setUint16(byteOffset: number, value: number, littleEndian: boolean): void;
1351+
1352+
/**
1353+
* Stores an Uint32 value at the specified byte offset from the start of the view.
1354+
* @param byteOffset The place in the buffer at which the value should be set.
1355+
* @param value The value to set.
1356+
* @param littleEndian If false or undefined, a big-endian value should be written,
1357+
* otherwise a little-endian value should be written.
1358+
*/
1359+
setUint32(byteOffset: number, value: number, littleEndian: boolean): void;
1360+
}
1361+
1362+
interface DataViewConstructor {
1363+
new (buffer: ArrayBuffer, byteOffset?: number, byteLength?: number): DataView;
1364+
}
1365+
declare var DataView: DataViewConstructor;
1366+
12341367
/**
12351368
* A typed array of 8-bit integer values. The contents are initialized to 0. If the requested
12361369
* number of bytes could not be allocated an exception is raised.
@@ -15857,11 +15990,13 @@ interface DocumentEvent {
1585715990
createEvent(eventInterface:"CloseEvent"): CloseEvent;
1585815991
createEvent(eventInterface:"CommandEvent"): CommandEvent;
1585915992
createEvent(eventInterface:"CompositionEvent"): CompositionEvent;
15993+
createEvent(eventInterface: "CustomEvent"): CustomEvent;
1586015994
createEvent(eventInterface:"DeviceMotionEvent"): DeviceMotionEvent;
1586115995
createEvent(eventInterface:"DeviceOrientationEvent"): DeviceOrientationEvent;
1586215996
createEvent(eventInterface:"DragEvent"): DragEvent;
1586315997
createEvent(eventInterface:"ErrorEvent"): ErrorEvent;
1586415998
createEvent(eventInterface:"Event"): Event;
15999+
createEvent(eventInterface:"Events"): Event;
1586516000
createEvent(eventInterface:"FocusEvent"): FocusEvent;
1586616001
createEvent(eventInterface:"GamepadEvent"): GamepadEvent;
1586716002
createEvent(eventInterface:"HashChangeEvent"): HashChangeEvent;
@@ -15876,8 +16011,12 @@ interface DocumentEvent {
1587616011
createEvent(eventInterface:"MSSiteModeEvent"): MSSiteModeEvent;
1587716012
createEvent(eventInterface:"MessageEvent"): MessageEvent;
1587816013
createEvent(eventInterface:"MouseEvent"): MouseEvent;
16014+
createEvent(eventInterface:"MouseEvents"): MouseEvent;
1587916015
createEvent(eventInterface:"MouseWheelEvent"): MouseWheelEvent;
16016+
createEvent(eventInterface:"MSGestureEvent"): MSGestureEvent;
16017+
createEvent(eventInterface:"MSPointerEvent"): MSPointerEvent;
1588016018
createEvent(eventInterface:"MutationEvent"): MutationEvent;
16019+
createEvent(eventInterface:"MutationEvents"): MutationEvent;
1588116020
createEvent(eventInterface:"NavigationCompletedEvent"): NavigationCompletedEvent;
1588216021
createEvent(eventInterface:"NavigationEvent"): NavigationEvent;
1588316022
createEvent(eventInterface:"NavigationEventWithReferrer"): NavigationEventWithReferrer;
@@ -15888,13 +16027,15 @@ interface DocumentEvent {
1588816027
createEvent(eventInterface:"PopStateEvent"): PopStateEvent;
1588916028
createEvent(eventInterface:"ProgressEvent"): ProgressEvent;
1589016029
createEvent(eventInterface:"SVGZoomEvent"): SVGZoomEvent;
16030+
createEvent(eventInterface:"SVGZoomEvents"): SVGZoomEvent;
1589116031
createEvent(eventInterface:"ScriptNotifyEvent"): ScriptNotifyEvent;
1589216032
createEvent(eventInterface:"StorageEvent"): StorageEvent;
1589316033
createEvent(eventInterface:"TextEvent"): TextEvent;
1589416034
createEvent(eventInterface:"TouchEvent"): TouchEvent;
1589516035
createEvent(eventInterface:"TrackEvent"): TrackEvent;
1589616036
createEvent(eventInterface:"TransitionEvent"): TransitionEvent;
1589716037
createEvent(eventInterface:"UIEvent"): UIEvent;
16038+
createEvent(eventInterface:"UIEvents"): UIEvent;
1589816039
createEvent(eventInterface:"UnviewableContentIdentifiedEvent"): UnviewableContentIdentifiedEvent;
1589916040
createEvent(eventInterface:"WebGLContextEvent"): WebGLContextEvent;
1590016041
createEvent(eventInterface:"WheelEvent"): WheelEvent;

bin/lib.dom.d.ts

Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,139 @@ interface ArrayBufferView {
6161
byteOffset: number;
6262
}
6363

64+
interface DataView {
65+
buffer: ArrayBuffer;
66+
byteLength: number;
67+
byteOffset: number;
68+
/**
69+
* Gets the Float32 value at the specified byte offset from the start of the view. There is
70+
* no alignment constraint; multi-byte values may be fetched from any offset.
71+
* @param byteOffset The place in the buffer at which the value should be retrieved.
72+
*/
73+
getFloat32(byteOffset: number, littleEndian: boolean): number;
74+
75+
/**
76+
* Gets the Float64 value at the specified byte offset from the start of the view. There is
77+
* no alignment constraint; multi-byte values may be fetched from any offset.
78+
* @param byteOffset The place in the buffer at which the value should be retrieved.
79+
*/
80+
getFloat64(byteOffset: number, littleEndian: boolean): number;
81+
82+
/**
83+
* Gets the Int8 value at the specified byte offset from the start of the view. There is
84+
* no alignment constraint; multi-byte values may be fetched from any offset.
85+
* @param byteOffset The place in the buffer at which the value should be retrieved.
86+
*/
87+
getInt8(byteOffset: number): number;
88+
89+
/**
90+
* Gets the Int16 value at the specified byte offset from the start of the view. There is
91+
* no alignment constraint; multi-byte values may be fetched from any offset.
92+
* @param byteOffset The place in the buffer at which the value should be retrieved.
93+
*/
94+
getInt16(byteOffset: number, littleEndian: boolean): number;
95+
/**
96+
* Gets the Int32 value at the specified byte offset from the start of the view. There is
97+
* no alignment constraint; multi-byte values may be fetched from any offset.
98+
* @param byteOffset The place in the buffer at which the value should be retrieved.
99+
*/
100+
getInt32(byteOffset: number, littleEndian: boolean): number;
101+
102+
/**
103+
* Gets the Uint8 value at the specified byte offset from the start of the view. There is
104+
* no alignment constraint; multi-byte values may be fetched from any offset.
105+
* @param byteOffset The place in the buffer at which the value should be retrieved.
106+
*/
107+
getUint8(byteOffset: number): number;
108+
109+
/**
110+
* Gets the Uint16 value at the specified byte offset from the start of the view. There is
111+
* no alignment constraint; multi-byte values may be fetched from any offset.
112+
* @param byteOffset The place in the buffer at which the value should be retrieved.
113+
*/
114+
getUint16(byteOffset: number, littleEndian: boolean): number;
115+
116+
/**
117+
* Gets the Uint32 value at the specified byte offset from the start of the view. There is
118+
* no alignment constraint; multi-byte values may be fetched from any offset.
119+
* @param byteOffset The place in the buffer at which the value should be retrieved.
120+
*/
121+
getUint32(byteOffset: number, littleEndian: boolean): number;
122+
123+
/**
124+
* Stores an Float32 value at the specified byte offset from the start of the view.
125+
* @param byteOffset The place in the buffer at which the value should be set.
126+
* @param value The value to set.
127+
* @param littleEndian If false or undefined, a big-endian value should be written,
128+
* otherwise a little-endian value should be written.
129+
*/
130+
setFloat32(byteOffset: number, value: number, littleEndian: boolean): void;
131+
132+
/**
133+
* Stores an Float64 value at the specified byte offset from the start of the view.
134+
* @param byteOffset The place in the buffer at which the value should be set.
135+
* @param value The value to set.
136+
* @param littleEndian If false or undefined, a big-endian value should be written,
137+
* otherwise a little-endian value should be written.
138+
*/
139+
setFloat64(byteOffset: number, value: number, littleEndian: boolean): void;
140+
141+
/**
142+
* Stores an Int8 value at the specified byte offset from the start of the view.
143+
* @param byteOffset The place in the buffer at which the value should be set.
144+
* @param value The value to set.
145+
*/
146+
setInt8(byteOffset: number, value: number): void;
147+
148+
/**
149+
* Stores an Int16 value at the specified byte offset from the start of the view.
150+
* @param byteOffset The place in the buffer at which the value should be set.
151+
* @param value The value to set.
152+
* @param littleEndian If false or undefined, a big-endian value should be written,
153+
* otherwise a little-endian value should be written.
154+
*/
155+
setInt16(byteOffset: number, value: number, littleEndian: boolean): void;
156+
157+
/**
158+
* Stores an Int32 value at the specified byte offset from the start of the view.
159+
* @param byteOffset The place in the buffer at which the value should be set.
160+
* @param value The value to set.
161+
* @param littleEndian If false or undefined, a big-endian value should be written,
162+
* otherwise a little-endian value should be written.
163+
*/
164+
setInt32(byteOffset: number, value: number, littleEndian: boolean): void;
165+
166+
/**
167+
* Stores an Uint8 value at the specified byte offset from the start of the view.
168+
* @param byteOffset The place in the buffer at which the value should be set.
169+
* @param value The value to set.
170+
*/
171+
setUint8(byteOffset: number, value: number): void;
172+
173+
/**
174+
* Stores an Uint16 value at the specified byte offset from the start of the view.
175+
* @param byteOffset The place in the buffer at which the value should be set.
176+
* @param value The value to set.
177+
* @param littleEndian If false or undefined, a big-endian value should be written,
178+
* otherwise a little-endian value should be written.
179+
*/
180+
setUint16(byteOffset: number, value: number, littleEndian: boolean): void;
181+
182+
/**
183+
* Stores an Uint32 value at the specified byte offset from the start of the view.
184+
* @param byteOffset The place in the buffer at which the value should be set.
185+
* @param value The value to set.
186+
* @param littleEndian If false or undefined, a big-endian value should be written,
187+
* otherwise a little-endian value should be written.
188+
*/
189+
setUint32(byteOffset: number, value: number, littleEndian: boolean): void;
190+
}
191+
192+
interface DataViewConstructor {
193+
new (buffer: ArrayBuffer, byteOffset?: number, byteLength?: number): DataView;
194+
}
195+
declare var DataView: DataViewConstructor;
196+
64197
/**
65198
* A typed array of 8-bit integer values. The contents are initialized to 0. If the requested
66199
* number of bytes could not be allocated an exception is raised.
@@ -14687,11 +14820,13 @@ interface DocumentEvent {
1468714820
createEvent(eventInterface:"CloseEvent"): CloseEvent;
1468814821
createEvent(eventInterface:"CommandEvent"): CommandEvent;
1468914822
createEvent(eventInterface:"CompositionEvent"): CompositionEvent;
14823+
createEvent(eventInterface: "CustomEvent"): CustomEvent;
1469014824
createEvent(eventInterface:"DeviceMotionEvent"): DeviceMotionEvent;
1469114825
createEvent(eventInterface:"DeviceOrientationEvent"): DeviceOrientationEvent;
1469214826
createEvent(eventInterface:"DragEvent"): DragEvent;
1469314827
createEvent(eventInterface:"ErrorEvent"): ErrorEvent;
1469414828
createEvent(eventInterface:"Event"): Event;
14829+
createEvent(eventInterface:"Events"): Event;
1469514830
createEvent(eventInterface:"FocusEvent"): FocusEvent;
1469614831
createEvent(eventInterface:"GamepadEvent"): GamepadEvent;
1469714832
createEvent(eventInterface:"HashChangeEvent"): HashChangeEvent;
@@ -14706,8 +14841,12 @@ interface DocumentEvent {
1470614841
createEvent(eventInterface:"MSSiteModeEvent"): MSSiteModeEvent;
1470714842
createEvent(eventInterface:"MessageEvent"): MessageEvent;
1470814843
createEvent(eventInterface:"MouseEvent"): MouseEvent;
14844+
createEvent(eventInterface:"MouseEvents"): MouseEvent;
1470914845
createEvent(eventInterface:"MouseWheelEvent"): MouseWheelEvent;
14846+
createEvent(eventInterface:"MSGestureEvent"): MSGestureEvent;
14847+
createEvent(eventInterface:"MSPointerEvent"): MSPointerEvent;
1471014848
createEvent(eventInterface:"MutationEvent"): MutationEvent;
14849+
createEvent(eventInterface:"MutationEvents"): MutationEvent;
1471114850
createEvent(eventInterface:"NavigationCompletedEvent"): NavigationCompletedEvent;
1471214851
createEvent(eventInterface:"NavigationEvent"): NavigationEvent;
1471314852
createEvent(eventInterface:"NavigationEventWithReferrer"): NavigationEventWithReferrer;
@@ -14718,13 +14857,15 @@ interface DocumentEvent {
1471814857
createEvent(eventInterface:"PopStateEvent"): PopStateEvent;
1471914858
createEvent(eventInterface:"ProgressEvent"): ProgressEvent;
1472014859
createEvent(eventInterface:"SVGZoomEvent"): SVGZoomEvent;
14860+
createEvent(eventInterface:"SVGZoomEvents"): SVGZoomEvent;
1472114861
createEvent(eventInterface:"ScriptNotifyEvent"): ScriptNotifyEvent;
1472214862
createEvent(eventInterface:"StorageEvent"): StorageEvent;
1472314863
createEvent(eventInterface:"TextEvent"): TextEvent;
1472414864
createEvent(eventInterface:"TouchEvent"): TouchEvent;
1472514865
createEvent(eventInterface:"TrackEvent"): TrackEvent;
1472614866
createEvent(eventInterface:"TransitionEvent"): TransitionEvent;
1472714867
createEvent(eventInterface:"UIEvent"): UIEvent;
14868+
createEvent(eventInterface:"UIEvents"): UIEvent;
1472814869
createEvent(eventInterface:"UnviewableContentIdentifiedEvent"): UnviewableContentIdentifiedEvent;
1472914870
createEvent(eventInterface:"WebGLContextEvent"): WebGLContextEvent;
1473014871
createEvent(eventInterface:"WheelEvent"): WheelEvent;

0 commit comments

Comments
 (0)