blob: 23c4de11ad078d2f631a97217a10b5e8f5358a53 [file] [log] [blame]
Kevin Lubick217056c2018-09-20 17:39:31 -04001/*
2 * This externs file prevents the Closure JS compiler from minifying away
3 * names of objects created by Emscripten.
4 * Basically, by defining empty objects and functions here, Closure will
5 * know not to rename them. This is needed because of our pre-js files,
6 * that is, the JS we hand-write to bundle into the output. That JS will be
7 * hit by the closure compiler and thus needs to know about what functions
8 * have special names and should not be minified.
9 *
10 * Emscripten does not support automatically generating an externs file, so we
11 * do it by hand. The general process is to write some JS code, and then put any
12 * calls to CanvasKit or related things in here. Running ./compile.sh and then
13 * looking at the minified results or running the Release trybot should
14 * verify nothing was missed. Optionally, looking directly at the minified
15 * pathkit.js can be useful when developing locally.
16 *
17 * Docs:
18 * https://github.com/cljsjs/packages/wiki/Creating-Externs
19 * https://github.com/google/closure-compiler/wiki/Types-in-the-Closure-Type-System
20 *
21 * Example externs:
22 * https://github.com/google/closure-compiler/tree/master/externs
23 */
24
25var CanvasKit = {
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -050026 // public API (i.e. things we declare in the pre-js file or in the cpp bindings)
27 Color: function() {},
Nathaniel Nifonge5d32542020-03-26 09:27:48 -040028 Color4f: function() {},
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -050029 /** @return {CanvasKit.SkRect} */
30 LTRBRect: function() {},
31 /** @return {CanvasKit.SkRect} */
32 XYWHRect: function() {},
33 /** @return {CanvasKit.SkRRect} */
34 RRectXY: function() {},
35 /** @return {ImageData} */
36 ImageData: function() {},
Kevin Lubick543f3522019-03-08 10:04:28 -050037
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -050038 GetWebGLContext: function() {},
39 MakeBlurMaskFilter: function() {},
40 MakeCanvas: function() {},
41 MakeCanvasSurface: function() {},
42 MakeGrContext: function() {},
43 /** @return {CanvasKit.SkAnimatedImage} */
44 MakeAnimatedImageFromEncoded: function() {},
45 /** @return {CanvasKit.SkImage} */
46 MakeImage: function() {},
47 /** @return {CanvasKit.SkImage} */
48 MakeImageFromEncoded: function() {},
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -050049 MakeOnScreenGLSurface: function() {},
50 MakePathFromCmds: function() {},
51 MakePathFromOp: function() {},
52 MakePathFromSVGString: function() {},
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -050053 MakeRenderTarget: function() {},
54 MakeSkPicture: function() {},
55 MakeSWCanvasSurface: function() {},
56 MakeManagedAnimation: function() {},
57 MakeParticles: function() {},
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -050058 MakeSkVertices: function() {},
59 MakeSurface: function() {},
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -050060 MakeWebGLCanvasSurface: function() {},
61 /** @return {TypedArray} */
62 Malloc: function() {},
63 /** @return {TonalColors} */
64 computeTonalColors: function() {},
65 currentContext: function() {},
66 getColorComponents: function() {},
67 getDecodeCacheLimitBytes: function() {},
68 getDecodeCacheUsageBytes: function() {},
69 getSkDataBytes: function() {},
70 multiplyByAlpha: function() {},
71 parseColorString: function() {},
72 setCurrentContext: function() {},
73 setDecodeCacheLimitBytes: function() {},
Kevin Lubick217056c2018-09-20 17:39:31 -040074
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -050075 // private API (i.e. things declared in the bindings that we use
76 // in the pre-js file)
77 _MakeImage: function() {},
78 _MakeLinearGradientShader: function() {},
79 _MakePathFromCmds: function() {},
80 _MakeRadialGradientShader: function() {},
Dan Field3d44f732020-03-16 09:17:30 -070081 _MakeSweepGradientShader: function() {},
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -050082 _MakeManagedAnimation: function() {},
83 _MakeParticles: function() {},
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -050084 _MakeSkPicture: function() {},
85 _MakeSkVertices: function() {},
86 _MakeTwoPointConicalGradientShader: function() {},
87 _decodeAnimatedImage: function() {},
88 _decodeImage: function() {},
89 _drawShapedText: function() {},
90 _getRasterDirectSurface: function() {},
91 _getRasterN32PremulSurface: function() {},
Kevin Lubick217056c2018-09-20 17:39:31 -040092
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -050093 // The testing object is meant to expose internal functions
94 // for more fine-grained testing, e.g. parseColor
95 _testing: {},
Kevin Lubick1a05fce2018-11-20 12:51:16 -050096
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -050097 // Objects and properties on CanvasKit
Kevin Lubick217056c2018-09-20 17:39:31 -040098
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -050099 GrContext: {
100 // public API (from C++ bindings)
101 getResourceCacheLimitBytes: function() {},
102 getResourceCacheUsageBytes: function() {},
103 releaseResourcesAndAbandonContext: function() {},
104 setResourceCacheLimitBytes: function() {},
105 },
Kevin Lubickcd544662019-03-22 15:41:36 -0400106
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500107 Paragraph: {
108 // public API (from C++ bindings)
109 didExceedMaxLines: function() {},
110 getAlphabeticBaseline: function() {},
111 getGlyphPositionAtCoordinate: function() {},
112 getHeight: function() {},
113 getIdeographicBaseline: function() {},
114 getLongestLine: function() {},
115 getMaxIntrinsicWidth: function() {},
116 getMaxWidth: function() {},
117 getMinIntrinsicWidth: function() {},
118 getWordBoundary: function() {},
119 layout: function() {},
Kevin Lubick369f6a52019-10-03 11:22:08 -0400120
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500121 // private API
122 /** @return {Float32Array} */
123 _getRectsForRange: function() {},
124 },
Kevin Lubick369f6a52019-10-03 11:22:08 -0400125
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500126 SkRuntimeEffect: {
127 // public API (from C++ bindings)
128 Make: function() {},
Kevin Lubick4b5b6452019-12-06 13:55:58 -0500129
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500130 // private API
131 _makeShader: function() {},
132 _makeShaderWithChildren: function() {},
133 },
Kevin Lubick4b5b6452019-12-06 13:55:58 -0500134
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500135 ParagraphStyle: function() {},
136 RSXFormBuilder: function() {},
137 SkColorBuilder: function() {},
138 SkRectBuilder: function() {},
Kevin Lubickd3cfbca2019-03-15 15:36:29 -0400139
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500140 ShapedText: {
141 // public API (from C++ bindings)
142 getBounds: function() {},
143 },
Kevin Lubick1ba9c4d2019-02-22 10:04:06 -0500144
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500145 SkAnimatedImage: {
146 // public API (from C++ bindings)
147 decodeNextFrame: function() {},
148 getFrameCount: function() {},
149 getRepetitionCount: function() {},
150 height: function() {},
151 reset: function() {},
152 width: function() {},
153 },
Kevin Lubick6b921b72019-09-18 16:18:17 -0400154
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500155 SkCanvas: {
156 // public API (from C++ bindings)
157 clear: function() {},
158 clipPath: function() {},
159 clipRRect: function() {},
160 clipRect: function() {},
161 concat: function() {},
162 drawAnimatedImage: function() {},
163 drawArc: function() {},
164 drawCircle: function() {},
165 drawColor: function() {},
166 drawDRRect: function() {},
167 drawImage: function() {},
168 drawImageNine: function() {},
169 drawImageRect: function() {},
170 drawLine: function() {},
171 drawOval: function() {},
172 drawPaint: function() {},
173 drawParagraph: function() {},
174 drawPath: function() {},
175 drawPicture: function() {},
176 drawRRect: function() {},
177 drawRect: function() {},
178 drawRoundRect: function() {},
179 drawShadow: function() {},
180 drawText: function() {},
181 drawTextBlob: function() {},
182 drawVertices: function() {},
183 flush: function() {},
184 getSaveCount: function() {},
185 getTotalMatrix: function() {},
186 makeSurface: function() {},
187 restore: function() {},
188 restoreToCount: function() {},
189 rotate: function() {},
190 save: function() {},
Kevin Lubick7957d532020-03-16 18:08:32 +0000191 saveLayer: function() {},
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500192 scale: function() {},
193 skew: function() {},
194 translate: function() {},
Kevin Lubick006a6f32018-10-19 14:34:34 -0400195
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500196 // private API
197 _drawAtlas: function() {},
198 _drawPoints: function() {},
199 _drawSimpleText: function() {},
200 _readPixels: function() {},
201 _writePixels: function() {},
202 delete: function() {},
203 },
Kevin Lubick006a6f32018-10-19 14:34:34 -0400204
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500205 SkColorFilter: {
206 // public API (from C++ bindings and JS interface)
207 MakeBlend: function() {},
208 MakeCompose: function() {},
209 MakeLerp: function() {},
210 MakeLinearToSRGBGamma: function() {},
211 MakeMatrix: function() {},
212 MakeSRGBToLinearGamma: function() {},
213 // private API (from C++ bindings)
214 _makeMatrix: function() {},
215 },
Kevin Lubickd3729342019-09-12 11:11:25 -0400216
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500217 SkColorMatrix: {
218 concat: function() {},
219 identity: function() {},
220 postTranslate: function() {},
221 rotated: function() {},
222 scaled: function() {},
223 },
Kevin Lubickd3729342019-09-12 11:11:25 -0400224
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500225 SkContourMeasureIter: {
226 next: function() {},
227 },
Kevin Lubicke59c1672019-11-20 14:17:53 -0500228
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500229 SkContourMeasure: {
230 getPosTan: function() {},
231 getSegment: function() {},
232 isClosed: function() {},
233 length: function() {},
234 },
Kevin Lubicke59c1672019-11-20 14:17:53 -0500235
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500236 SkFont: {
237 // public API (from C++ bindings)
238 getScaleX: function() {},
239 getSize: function() {},
240 getSkewX: function() {},
241 getTypeface: function() {},
242 measureText: function() {},
243 setHinting: function() {},
244 setLinearMetrics: function() {},
245 setScaleX: function() {},
246 setSize: function() {},
247 setSkewX: function() {},
248 setSubpixel: function() {},
249 setTypeface: function() {},
250 // private API (from C++ bindings)
251 _getWidths: function() {},
252 },
Kevin Lubick35ac0382019-01-02 15:13:57 -0500253
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500254 SkFontMgr: {
255 // public API (from C++ and JS bindings)
256 FromData: function() {},
257 RefDefault: function() {},
258 countFamilies: function() {},
259 getFamilyName: function() {},
Kevin Lubickddd0a332018-12-12 10:35:13 -0500260
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500261 // private API
262 _makeTypefaceFromData: function() {},
263 _fromData: function() {},
264 },
Kevin Lubickddd0a332018-12-12 10:35:13 -0500265
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500266 SkImage: {
267 // public API (from C++ bindings)
268 height: function() {},
269 width: function() {},
270 // private API
271 _encodeToData: function() {},
272 _encodeToDataWithFormat: function() {},
273 _makeShader: function() {},
274 },
Kevin Lubick006a6f32018-10-19 14:34:34 -0400275
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500276 SkImageFilter: {
277 MakeBlur: function() {},
278 MakeColorFilter: function() {},
279 MakeCompose: function() {},
280 MakeMatrixTransform: function() {},
281 },
Kevin Lubick15b40232019-10-29 09:55:39 -0400282
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500283 // These are defined in interface.js
284 SkM44: {
285 identity: function() {},
286 invert: function() {},
287 multiply: function() {},
288 rotatedUnitSinCos: function() {},
289 rotated: function() {},
290 scaled: function() {},
291 translated: function() {},
292 lookat: function() {},
293 perspective: function() {},
294 rc: function() {},
295 transpose: function() {},
296 },
Nathaniel Nifong77798b42020-02-21 17:15:22 -0500297
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500298 SkMatrix: {
299 identity: function() {},
300 invert: function() {},
301 mapPoints: function() {},
302 multiply: function() {},
303 rotated: function() {},
304 scaled: function() {},
305 skewed: function() {},
306 translated: function() {},
307 },
Kevin Lubickb9db3902018-11-26 11:47:54 -0500308
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500309 SkMaskFilter: {
310 MakeBlur: function() {},
311 },
Kevin Lubick15b40232019-10-29 09:55:39 -0400312
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500313 SkPaint: {
314 // public API (from C++ bindings)
315 /** @return {CanvasKit.SkPaint} */
316 copy: function() {},
317 getBlendMode: function() {},
318 getColor: function() {},
319 getFilterQuality: function() {},
320 getStrokeCap: function() {},
321 getStrokeJoin: function() {},
322 getStrokeMiter: function() {},
323 getStrokeWidth: function() {},
324 setAntiAlias: function() {},
325 setBlendMode: function() {},
326 setColor: function() {},
327 setFilterQuality: function() {},
328 setImageFilter: function() {},
329 setMaskFilter: function() {},
330 setPathEffect: function() {},
331 setShader: function() {},
332 setStrokeCap: function() {},
333 setStrokeJoin: function() {},
334 setStrokeMiter: function() {},
335 setStrokeWidth: function() {},
336 setStyle: function() {},
Kevin Lubickb9db3902018-11-26 11:47:54 -0500337
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500338 // Private API
339 delete: function() {},
340 },
Kevin Lubick1a05fce2018-11-20 12:51:16 -0500341
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500342 SkPathEffect: {
Kevin Lubickf279c632020-03-18 09:53:55 -0400343 MakeCorner: function() {},
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500344 MakeDash: function() {},
Kevin Lubickf279c632020-03-18 09:53:55 -0400345 MakeDiscrete: function() {},
346
347 // Private C++ API
348 _MakeDash: function() {},
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500349 },
Nathaniel Nifong23b0ed92020-03-04 15:43:50 -0500350
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500351 SkParticleEffect: {
352 // public API (from C++ bindings)
353 draw: function() {},
354 getEffectUniform: function() {},
355 getEffectUniformCount: function() {},
356 getEffectUniformFloatCount: function() {},
357 getEffectUniformName: function() {},
358 getParticleUniformCount: function() {},
359 getParticleUniformFloatCount: function() {},
360 getParticleUniformName: function() {},
361 getParticleUniform: function() {},
362 setPosition: function() {},
363 setRate: function() {},
364 start: function() {},
365 update: function() {},
Kevin Lubickf8f9cd82020-02-21 08:26:59 -0500366
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500367 // private API (from C++ bindings)
368 _effectUniformPtr: function() {},
369 _particleUniformPtr: function() {},
370 },
Kevin Lubickf8f9cd82020-02-21 08:26:59 -0500371
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500372 SkPath: {
373 // public API (from C++ bindings)
374 computeTightBounds: function() {},
375 contains: function() {},
376 /** @return {CanvasKit.SkPath} */
377 copy: function() {},
378 countPoints: function() {},
379 equals: function() {},
380 getBounds: function() {},
381 getFillType: function() {},
382 getPoint: function() {},
383 isEmpty: function() {},
384 isVolatile: function() {},
385 reset: function() {},
386 rewind: function() {},
387 setFillType: function() {},
388 setIsVolatile: function() {},
389 toSVGString: function() {},
Kevin Lubick006a6f32018-10-19 14:34:34 -0400390
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500391 // private API
392 _addArc: function() {},
393 _addOval: function() {},
394 _addPath: function() {},
395 _addRect: function() {},
396 _addPoly: function() {},
397 _addRoundRect: function() {},
398 _arc: function() {},
399 _arcTo: function() {},
400 _close: function() {},
401 _conicTo: function() {},
402 _cubicTo: function() {},
403 _dash: function() {},
404 _lineTo: function() {},
405 _moveTo: function() {},
406 _op: function() {},
407 _quadTo: function() {},
408 _rArcTo: function() {},
409 _rConicTo: function() {},
410 _rCubicTo: function() {},
411 _rLineTo: function() {},
412 _rMoveTo: function() {},
413 _rQuadTo: function() {},
414 _rect: function() {},
415 _simplify: function() {},
416 _stroke: function() {},
417 _transform: function() {},
418 _trim: function() {},
419 delete: function() {},
420 dump: function() {},
421 dumpHex: function() {},
422 },
Kevin Lubickd3cfbca2019-03-15 15:36:29 -0400423
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500424 SkPathMeasure: {
425 getLength: function() {},
426 getSegment: function() {},
427 getPosTan: function() {},
428 isClosed: function() {},
429 nextContour: function() {},
430 },
Kevin Lubickcc13fd32019-04-05 13:00:01 -0400431
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500432 SkPicture: {
433 serialize: function() {},
434 },
Kevin Lubickcc13fd32019-04-05 13:00:01 -0400435
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500436 SkPictureRecorder: {
437 beginRecording: function() {},
438 finishRecordingAsPicture: function() {},
439 },
Kevin Lubick006a6f32018-10-19 14:34:34 -0400440
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500441 SkRect: {
442 fLeft: {},
443 fTop: {},
444 fRight: {},
445 fBottom: {},
446 },
Kevin Lubick2e5fe352019-09-03 12:59:06 -0400447
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500448 SkRRect: {
449 rect: {},
450 rx1: {},
451 ry1: {},
452 rx2: {},
453 ry2: {},
454 rx3: {},
455 ry3: {},
456 rx4: {},
457 ry4: {},
458 },
Kevin Lubick62836902019-12-09 09:04:26 -0500459
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500460 SkShader: {
461 Blend: function() {},
462 Color: function() {},
463 Empty: function() {},
464 Lerp: function() {},
Nathaniel Nifongd96c3c72020-03-09 10:50:43 -0400465 MakeLinearGradient: function() {},
466 MakeRadialGradient: function() {},
467 MakeTwoPointConicalGradient: function() {},
Dan Field3d44f732020-03-16 09:17:30 -0700468 MakeSweepGradient: function() {},
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500469 },
Kevin Lubick006a6f32018-10-19 14:34:34 -0400470
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500471 SkSurface: {
472 // public API (from C++ bindings)
473 /** @return {CanvasKit.SkCanvas} */
474 getCanvas: function() {},
475 /** @return {CanvasKit.SkImage} */
476 makeImageSnapshot: function() {},
477 makeSurface: function() {},
478 grContext: {},
Kevin Lubick006a6f32018-10-19 14:34:34 -0400479
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500480 // private API
481 _flush: function() {},
482 _getRasterN32PremulSurface: function() {},
483 delete: function() {},
484 },
Kevin Lubickec4903d2019-01-14 08:36:08 -0500485
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500486 SkTextBlob: {
487 // public API (both C++ and JS bindings)
488 MakeFromRSXform: function() {},
489 MakeFromText: function() {},
490 MakeOnPath: function() {},
491 // private API (from C++ bindings)
492 _MakeFromRSXform: function() {},
493 _MakeFromText: function() {},
494 },
Nathaniel Nifong77798b42020-02-21 17:15:22 -0500495
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500496 // These are defined in interface.js
497 SkVector: {
498 add: function() {},
499 sub: function() {},
500 dot: function() {},
501 cross: function() {},
502 normalize: function() {},
503 mulScalar: function() {},
504 length: function() {},
505 lengthSquared: function() {},
506 dist: function() {},
507 },
Kevin Lubickb5ae3b52018-11-03 07:51:19 -0400508
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500509 SkVertices: {
510 // public API (from C++ bindings)
511 bounds: function() {},
512 mode: function() {},
513 uniqueID: function() {},
514 vertexCount: function() {},
515 },
Kevin Lubickb5ae3b52018-11-03 07:51:19 -0400516
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500517 _SkVerticesBuilder: {
518 colors: function() {},
519 detach: function() {},
520 indices: function() {},
521 positions: function() {},
522 texCoords: function() {},
523 },
Kevin Lubickd6ba7252019-06-03 14:38:05 -0400524
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500525 TextStyle: function() {},
Kevin Lubick369f6a52019-10-03 11:22:08 -0400526
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500527 // Constants and Enums
528 gpu: {},
529 skottie: {},
Kevin Lubick006a6f32018-10-19 14:34:34 -0400530
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500531 TRANSPARENT: {},
Nathaniel Nifonge5d32542020-03-26 09:27:48 -0400532 BLACK: {},
533 WHITE: {},
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500534 RED: {},
Nathaniel Nifonge5d32542020-03-26 09:27:48 -0400535 GREEN: {},
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500536 BLUE: {},
537 YELLOW: {},
538 CYAN: {},
Nathaniel Nifonge5d32542020-03-26 09:27:48 -0400539 MAGENTA: {},
Kevin Lubickea905ec2018-11-30 14:05:58 -0500540
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500541 MOVE_VERB: {},
542 LINE_VERB: {},
543 QUAD_VERB: {},
544 CONIC_VERB: {},
545 CUBIC_VERB: {},
546 CLOSE_VERB: {},
Kevin Lubickda3d8ac2019-01-07 11:08:55 -0500547
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500548 NoDecoration: {},
549 UnderlineDecoration: {},
550 OverlineDecoration: {},
551 LineThroughDecoration: {},
Kevin Lubick369f6a52019-10-03 11:22:08 -0400552
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500553 SaveLayerInitWithPrevious: {},
554 SaveLayerF16ColorType: {},
Kevin Lubick77d9b5c2019-10-29 10:48:26 -0400555
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500556 Affinity: {
557 Upstream: {},
558 Downstream: {},
559 },
Kevin Lubick369f6a52019-10-03 11:22:08 -0400560
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500561 AlphaType: {
562 Opaque: {},
563 Premul: {},
564 Unpremul: {},
565 },
Kevin Lubick61ef7b22018-11-27 13:26:59 -0500566
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500567 BlendMode: {
568 Clear: {},
569 Src: {},
570 Dst: {},
571 SrcOver: {},
572 DstOver: {},
573 SrcIn: {},
574 DstIn: {},
575 SrcOut: {},
576 DstOut: {},
577 SrcATop: {},
578 DstATop: {},
579 Xor: {},
580 Plus: {},
581 Modulate: {},
582 Screen: {},
583 Overlay: {},
584 Darken: {},
585 Lighten: {},
586 ColorDodge: {},
587 ColorBurn: {},
588 HardLight: {},
589 SoftLight: {},
590 Difference: {},
591 Exclusion: {},
592 Multiply: {},
593 Hue: {},
594 Saturation: {},
595 Color: {},
596 Luminosity: {},
597 },
Kevin Lubick61ef7b22018-11-27 13:26:59 -0500598
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500599 BlurStyle: {
600 Normal: {},
601 Solid: {},
602 Outer: {},
603 Inner: {},
604 },
Kevin Lubick61ef7b22018-11-27 13:26:59 -0500605
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500606 ClipOp: {
607 Difference: {},
608 Intersect: {},
609 },
Kevin Lubickeb2f6b02018-11-29 15:07:02 -0500610
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500611 ColorType: {
612 Alpha_8: {},
613 RGB_565: {},
614 ARGB_4444: {},
615 RGBA_8888: {},
616 RGB_888x: {},
617 BGRA_8888: {},
618 RGBA_1010102: {},
619 RGB_101010x: {},
620 Gray_8: {},
621 RGBA_F16: {},
622 RGBA_F32: {},
623 },
Kevin Lubickea905ec2018-11-30 14:05:58 -0500624
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500625 FillType: {
626 Winding: {},
627 EvenOdd: {},
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500628 },
Kevin Lubick006a6f32018-10-19 14:34:34 -0400629
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500630 FilterQuality: {
631 None: {},
632 Low: {},
633 Medium: {},
634 High: {},
635 },
Kevin Lubick0a1293c2018-12-03 12:31:04 -0500636
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500637 FontSlant: {
638 Upright: {},
639 Italic: {},
640 Oblique: {},
641 },
Kevin Lubickd3b1fe62019-10-21 10:50:26 -0400642
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500643 FontHinting: {
644 None: {},
645 Slight: {},
646 Normal: {},
647 Full: {},
648 },
Kevin Lubickbde9fcc2020-02-28 08:09:08 -0500649
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500650 FontWeight: {
651 Invisible: {},
652 Thin: {},
653 ExtraLight: {},
654 Light: {},
655 Normal: {},
656 Medium: {},
657 SemiBold: {},
658 Bold: {},
659 ExtraBold: {},
660 Black: {},
661 ExtraBlack: {},
662 },
Kevin Lubickd3b1fe62019-10-21 10:50:26 -0400663
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500664 FontWidth: {
665 UltraCondensed: {},
666 ExtraCondensed: {},
667 Condensed: {},
668 SemiCondensed: {},
669 Normal: {},
670 SemiExpanded: {},
671 Expanded: {},
672 ExtraExpanded: {},
673 UltraExpanded: {},
674 },
Kevin Lubickd3b1fe62019-10-21 10:50:26 -0400675
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500676 ImageFormat: {
677 PNG: {},
678 JPEG: {},
679 },
Alexander Khovansky3e119332018-11-15 02:01:19 +0300680
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500681 PaintStyle: {
682 Fill: {},
683 Stroke: {},
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500684 },
Kevin Lubickb9db3902018-11-26 11:47:54 -0500685
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500686 PathOp: {
687 Difference: {},
688 Intersect: {},
689 Union: {},
690 XOR: {},
691 ReverseDifference: {},
692 },
Kevin Lubickeb2f6b02018-11-29 15:07:02 -0500693
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500694 PointMode: {
695 Points: {},
696 Lines: {},
697 Polygon: {},
698 },
Kevin Lubick37ab53e2019-11-11 10:06:08 -0500699
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500700 RectHeightStyle: {
701 Tight: {},
702 Max: {},
703 IncludeLineSpacingMiddle: {},
704 IncludeLineSpacingTop: {},
705 IncludeLineSpacingBottom: {},
706 },
Kevin Lubick369f6a52019-10-03 11:22:08 -0400707
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500708 RectWidthStyle: {
709 Tight: {},
710 Max: {},
711 },
Kevin Lubick369f6a52019-10-03 11:22:08 -0400712
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500713 StrokeCap: {
714 Butt: {},
715 Round: {},
716 Square: {},
717 },
Kevin Lubickb9db3902018-11-26 11:47:54 -0500718
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500719 StrokeJoin: {
720 Miter: {},
721 Round: {},
722 Bevel: {},
723 },
Kevin Lubickb9db3902018-11-26 11:47:54 -0500724
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500725 TextAlign: {
726 Left: {},
727 Right: {},
728 Center: {},
729 Justify: {},
730 Start: {},
731 End: {},
732 },
Kevin Lubick369f6a52019-10-03 11:22:08 -0400733
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500734 TextDirection: {
735 LTR: {},
736 RTL: {},
737 },
Kevin Lubickd3b1fe62019-10-21 10:50:26 -0400738
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500739 TileMode: {
740 Clamp: {},
741 Repeat: {},
742 Mirror: {},
743 Decal: {},
744 },
Kevin Lubickeb2f6b02018-11-29 15:07:02 -0500745
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500746 VertexMode: {
747 Triangles: {},
748 TrianglesStrip: {},
749 TriangleFan: {},
750 },
Kevin Lubickeb2f6b02018-11-29 15:07:02 -0500751
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500752 // Things Enscriptem adds for us
Kevin Lubick006a6f32018-10-19 14:34:34 -0400753
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500754 /**
755 * @type {Float32Array}
756 */
757 HEAPF32: {},
758 /**
759 * @type {Float64Array}
760 */
761 HEAPF64: {},
762 /**
763 * @type {Uint8Array}
764 */
765 HEAPU8: {},
766 /**
767 * @type {Uint16Array}
768 */
769 HEAPU16: {},
770 /**
771 * @type {Uint32Array}
772 */
773 HEAPU32: {},
774 /**
775 * @type {Int8Array}
776 */
777 HEAP8: {},
778 /**
779 * @type {Int16Array}
780 */
781 HEAP16: {},
782 /**
783 * @type {Int32Array}
784 */
785 HEAP32: {},
Kevin Lubickfa5a1382019-10-09 10:46:14 -0400786
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500787 _malloc: function() {},
788 _free: function() {},
789 onRuntimeInitialized: function() {},
Kevin Lubick006a6f32018-10-19 14:34:34 -0400790};
Kevin Lubick217056c2018-09-20 17:39:31 -0400791
Kevin Lubick006a6f32018-10-19 14:34:34 -0400792// Public API things that are newly declared in the JS should go here.
793// It's not enough to declare them above, because closure can still erase them
794// unless they go on the prototype.
Kevin Lubick369f6a52019-10-03 11:22:08 -0400795CanvasKit.Paragraph.prototype.getRectsForRange = function() {};
796
Kevin Lubick1a05fce2018-11-20 12:51:16 -0500797CanvasKit.SkPath.prototype.addArc = function() {};
Kevin Lubicke384df42019-08-26 15:48:09 -0400798CanvasKit.SkPath.prototype.addOval = function() {};
Kevin Lubick217056c2018-09-20 17:39:31 -0400799CanvasKit.SkPath.prototype.addPath = function() {};
Kevin Lubick37ab53e2019-11-11 10:06:08 -0500800CanvasKit.SkPath.prototype.addPoly = function() {};
Kevin Lubick1a05fce2018-11-20 12:51:16 -0500801CanvasKit.SkPath.prototype.addRect = function() {};
Kevin Lubickda3d8ac2019-01-07 11:08:55 -0500802CanvasKit.SkPath.prototype.addRoundRect = function() {};
Alexander Khovansky3e119332018-11-15 02:01:19 +0300803CanvasKit.SkPath.prototype.arc = function() {};
Kevin Lubick006a6f32018-10-19 14:34:34 -0400804CanvasKit.SkPath.prototype.arcTo = function() {};
Kevin Lubick217056c2018-09-20 17:39:31 -0400805CanvasKit.SkPath.prototype.close = function() {};
Kevin Lubick006a6f32018-10-19 14:34:34 -0400806CanvasKit.SkPath.prototype.conicTo = function() {};
807CanvasKit.SkPath.prototype.cubicTo = function() {};
Kevin Lubickb5ae3b52018-11-03 07:51:19 -0400808CanvasKit.SkPath.prototype.dash = function() {};
Kevin Lubick006a6f32018-10-19 14:34:34 -0400809CanvasKit.SkPath.prototype.lineTo = function() {};
810CanvasKit.SkPath.prototype.moveTo = function() {};
Kevin Lubicke384df42019-08-26 15:48:09 -0400811CanvasKit.SkPath.prototype.offset = function() {};
Kevin Lubick006a6f32018-10-19 14:34:34 -0400812CanvasKit.SkPath.prototype.op = function() {};
813CanvasKit.SkPath.prototype.quadTo = function() {};
Kevin Lubick79b71342019-11-01 14:36:52 -0400814CanvasKit.SkPath.prototype.rArcTo = function() {};
815CanvasKit.SkPath.prototype.rConicTo = function() {};
816CanvasKit.SkPath.prototype.rCubicTo = function() {};
817CanvasKit.SkPath.prototype.rLineTo = function() {};
818CanvasKit.SkPath.prototype.rMoveTo = function() {};
819CanvasKit.SkPath.prototype.rQuadTo = function() {};
Kevin Lubick006a6f32018-10-19 14:34:34 -0400820CanvasKit.SkPath.prototype.rect = function() {};
Kevin Lubick217056c2018-09-20 17:39:31 -0400821CanvasKit.SkPath.prototype.simplify = function() {};
Kevin Lubickb5ae3b52018-11-03 07:51:19 -0400822CanvasKit.SkPath.prototype.stroke = function() {};
Kevin Lubick217056c2018-09-20 17:39:31 -0400823CanvasKit.SkPath.prototype.transform = function() {};
Kevin Lubickb5ae3b52018-11-03 07:51:19 -0400824CanvasKit.SkPath.prototype.trim = function() {};
Kevin Lubick217056c2018-09-20 17:39:31 -0400825
Kevin Lubicka4f218d2020-01-14 08:39:09 -0500826CanvasKit.SkPicture.prototype.saveAsFile = function() {};
Kevin Lubickcc13fd32019-04-05 13:00:01 -0400827
Kevin Lubick5b90b842018-10-17 07:57:18 -0400828CanvasKit.SkSurface.prototype.dispose = function() {};
Kevin Lubick359a7e32019-03-19 09:34:37 -0400829CanvasKit.SkSurface.prototype.flush = function() {};
830CanvasKit.SkSurface.prototype.requestAnimationFrame = function() {};
Bryce Thomas2c5b8562020-01-22 13:49:41 -0800831CanvasKit.SkSurface.prototype.drawOnce = function() {};
Kevin Lubickcc13fd32019-04-05 13:00:01 -0400832CanvasKit.SkSurface.prototype.captureFrameAsSkPicture = function() {};
Kevin Lubick53965c92018-10-11 08:51:55 -0400833
Alexander Khovansky3e119332018-11-15 02:01:19 +0300834CanvasKit.SkImage.prototype.encodeToData = function() {};
Kevin Lubicka064c282019-04-04 09:28:53 -0400835CanvasKit.SkImage.prototype.makeShader = function() {};
Alexander Khovansky3e119332018-11-15 02:01:19 +0300836
Kevin Lubickee91c072019-03-29 10:39:52 -0400837CanvasKit.SkCanvas.prototype.drawAtlas = function() {};
Kevin Lubick37ab53e2019-11-11 10:06:08 -0500838CanvasKit.SkCanvas.prototype.drawPoints = function() {};
Kevin Lubickec4903d2019-01-14 08:36:08 -0500839CanvasKit.SkCanvas.prototype.drawText = function() {};
Kevin Lubick52b9f372018-12-04 13:57:36 -0500840/** @return {Uint8Array} */
841CanvasKit.SkCanvas.prototype.readPixels = function() {};
842CanvasKit.SkCanvas.prototype.writePixels = function() {};
843
Kevin Lubickddd0a332018-12-12 10:35:13 -0500844CanvasKit.SkFontMgr.prototype.MakeTypefaceFromData = function() {};
845
Kevin Lubickd3cfbca2019-03-15 15:36:29 -0400846CanvasKit.SkFont.prototype.getWidths = function() {};
847
848CanvasKit.RSXFormBuilder.prototype.build = function() {};
849CanvasKit.RSXFormBuilder.prototype.delete = function() {};
850CanvasKit.RSXFormBuilder.prototype.push = function() {};
Kevin Lubickee91c072019-03-29 10:39:52 -0400851CanvasKit.RSXFormBuilder.prototype.set = function() {};
852
853CanvasKit.SkColorBuilder.prototype.build = function() {};
854CanvasKit.SkColorBuilder.prototype.delete = function() {};
855CanvasKit.SkColorBuilder.prototype.push = function() {};
856CanvasKit.SkColorBuilder.prototype.set = function() {};
Kevin Lubickd3cfbca2019-03-15 15:36:29 -0400857
Kevin Lubickf3d6c362020-01-06 08:11:52 -0500858CanvasKit.SkRuntimeEffect.prototype.makeShader = function() {};
Kevin Lubickecd87622020-02-22 07:37:33 -0500859CanvasKit.SkRuntimeEffect.prototype.makeShaderWithChildren = function() {};
Kevin Lubick4b5b6452019-12-06 13:55:58 -0500860
Kevin Lubickf8f9cd82020-02-21 08:26:59 -0500861CanvasKit.SkParticleEffect.prototype.effectUniforms = function() {};
862CanvasKit.SkParticleEffect.prototype.particleUniforms = function() {};
863
Kevin Lubickb5ae3b52018-11-03 07:51:19 -0400864// Define StrokeOpts object
865var StrokeOpts = {};
866StrokeOpts.prototype.width;
867StrokeOpts.prototype.miter_limit;
868StrokeOpts.prototype.cap;
869StrokeOpts.prototype.join;
Kevin Lubick1646e7d2018-12-07 13:03:08 -0500870StrokeOpts.prototype.precision;
Kevin Lubickb5ae3b52018-11-03 07:51:19 -0400871
Kevin Lubickeb2f6b02018-11-29 15:07:02 -0500872// Define everything created in the canvas2d spec here
Kevin Lubickb9db3902018-11-26 11:47:54 -0500873var HTMLCanvas = {};
Kevin Lubick0a1293c2018-12-03 12:31:04 -0500874HTMLCanvas.prototype.decodeImage = function() {};
875HTMLCanvas.prototype.dispose = function() {};
Kevin Lubickb9db3902018-11-26 11:47:54 -0500876HTMLCanvas.prototype.getContext = function() {};
Kevin Lubick8e4a3312018-12-14 15:03:41 -0500877HTMLCanvas.prototype.loadFont = function() {};
Kevin Lubicka40f8322018-12-17 16:01:36 -0500878HTMLCanvas.prototype.makePath2D = function() {};
Kevin Lubickb9db3902018-11-26 11:47:54 -0500879HTMLCanvas.prototype.toDataURL = function() {};
Kevin Lubickb9db3902018-11-26 11:47:54 -0500880
881var CanvasRenderingContext2D = {};
882CanvasRenderingContext2D.prototype.addHitRegion = function() {};
883CanvasRenderingContext2D.prototype.arc = function() {};
884CanvasRenderingContext2D.prototype.arcTo = function() {};
885CanvasRenderingContext2D.prototype.beginPath = function() {};
886CanvasRenderingContext2D.prototype.bezierCurveTo = function() {};
887CanvasRenderingContext2D.prototype.clearHitRegions = function() {};
Kevin Lubick12c0e502018-11-28 12:51:56 -0500888CanvasRenderingContext2D.prototype.clearRect = function() {};
Kevin Lubickeb2f6b02018-11-29 15:07:02 -0500889CanvasRenderingContext2D.prototype.clip = function() {};
Kevin Lubickb9db3902018-11-26 11:47:54 -0500890CanvasRenderingContext2D.prototype.closePath = function() {};
Kevin Lubick52b9f372018-12-04 13:57:36 -0500891CanvasRenderingContext2D.prototype.createImageData = function() {};
Kevin Lubickeb2f6b02018-11-29 15:07:02 -0500892CanvasRenderingContext2D.prototype.createLinearGradient = function() {};
Kevin Lubickd29edd72018-12-07 08:29:52 -0500893CanvasRenderingContext2D.prototype.createPattern = function() {};
Kevin Lubickeb2f6b02018-11-29 15:07:02 -0500894CanvasRenderingContext2D.prototype.createRadialGradient = function() {};
Kevin Lubickb9db3902018-11-26 11:47:54 -0500895CanvasRenderingContext2D.prototype.drawFocusIfNeeded = function() {};
Kevin Lubick0a1293c2018-12-03 12:31:04 -0500896CanvasRenderingContext2D.prototype.drawImage = function() {};
Kevin Lubickb9db3902018-11-26 11:47:54 -0500897CanvasRenderingContext2D.prototype.ellipse = function() {};
Kevin Lubick61ef7b22018-11-27 13:26:59 -0500898CanvasRenderingContext2D.prototype.fill = function() {};
Kevin Lubick12c0e502018-11-28 12:51:56 -0500899CanvasRenderingContext2D.prototype.fillRect = function() {};
Kevin Lubickb9db3902018-11-26 11:47:54 -0500900CanvasRenderingContext2D.prototype.fillText = function() {};
Kevin Lubick52b9f372018-12-04 13:57:36 -0500901CanvasRenderingContext2D.prototype.getImageData = function() {};
Kevin Lubick12c0e502018-11-28 12:51:56 -0500902CanvasRenderingContext2D.prototype.getLineDash = function() {};
Kevin Lubick1646e7d2018-12-07 13:03:08 -0500903CanvasRenderingContext2D.prototype.isPointInPath = function() {};
904CanvasRenderingContext2D.prototype.isPointInStroke = function() {};
Kevin Lubickb9db3902018-11-26 11:47:54 -0500905CanvasRenderingContext2D.prototype.lineTo = function() {};
906CanvasRenderingContext2D.prototype.measureText = function() {};
907CanvasRenderingContext2D.prototype.moveTo = function() {};
Kevin Lubick52b9f372018-12-04 13:57:36 -0500908CanvasRenderingContext2D.prototype.putImageData = function() {};
Kevin Lubickb9db3902018-11-26 11:47:54 -0500909CanvasRenderingContext2D.prototype.quadraticCurveTo = function() {};
910CanvasRenderingContext2D.prototype.rect = function() {};
911CanvasRenderingContext2D.prototype.removeHitRegion = function() {};
912CanvasRenderingContext2D.prototype.resetTransform = function() {};
Kevin Lubick61ef7b22018-11-27 13:26:59 -0500913CanvasRenderingContext2D.prototype.restore = function() {};
Kevin Lubickb9db3902018-11-26 11:47:54 -0500914CanvasRenderingContext2D.prototype.rotate = function() {};
Kevin Lubick61ef7b22018-11-27 13:26:59 -0500915CanvasRenderingContext2D.prototype.save = function() {};
Kevin Lubickb9db3902018-11-26 11:47:54 -0500916CanvasRenderingContext2D.prototype.scale = function() {};
917CanvasRenderingContext2D.prototype.scrollPathIntoView = function() {};
Kevin Lubick12c0e502018-11-28 12:51:56 -0500918CanvasRenderingContext2D.prototype.setLineDash = function() {};
Kevin Lubickb9db3902018-11-26 11:47:54 -0500919CanvasRenderingContext2D.prototype.setTransform = function() {};
920CanvasRenderingContext2D.prototype.stroke = function() {};
Kevin Lubick12c0e502018-11-28 12:51:56 -0500921CanvasRenderingContext2D.prototype.strokeRect = function() {};
Kevin Lubickb9db3902018-11-26 11:47:54 -0500922CanvasRenderingContext2D.prototype.strokeText = function() {};
923CanvasRenderingContext2D.prototype.transform = function() {};
924CanvasRenderingContext2D.prototype.translate = function() {};
925
Kevin Lubicka40f8322018-12-17 16:01:36 -0500926var Path2D = {};
927Path2D.prototype.addPath = function() {};
928Path2D.prototype.arc = function() {};
929Path2D.prototype.arcTo = function() {};
930Path2D.prototype.bezierCurveTo = function() {};
931Path2D.prototype.closePath = function() {};
932Path2D.prototype.ellipse = function() {};
933Path2D.prototype.lineTo = function() {};
934Path2D.prototype.moveTo = function() {};
935Path2D.prototype.quadraticCurveTo = function() {};
936Path2D.prototype.rect = function() {};
937
Kevin Lubickeb2f6b02018-11-29 15:07:02 -0500938var LinearCanvasGradient = {};
939LinearCanvasGradient.prototype.addColorStop = function() {};
940var RadialCanvasGradient = {};
941RadialCanvasGradient.prototype.addColorStop = function() {};
Kevin Lubickd29edd72018-12-07 08:29:52 -0500942var CanvasPattern = {};
943CanvasPattern.prototype.setTransform = function() {};
Kevin Lubickeb2f6b02018-11-29 15:07:02 -0500944
Kevin Lubick52b9f372018-12-04 13:57:36 -0500945var ImageData = {
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500946 /**
947 * @type {Uint8ClampedArray}
948 */
949 data: {},
950 height: {},
951 width: {},
Kevin Lubick52b9f372018-12-04 13:57:36 -0500952};
953
Kevin Lubickd29edd72018-12-07 08:29:52 -0500954var DOMMatrix = {
Nathaniel Nifong6066a0c2020-03-05 10:27:14 -0500955 a: {},
956 b: {},
957 c: {},
958 d: {},
959 e: {},
960 f: {},
Kevin Lubickd29edd72018-12-07 08:29:52 -0500961};
962
Kevin Lubick217056c2018-09-20 17:39:31 -0400963// Not sure why this is needed - might be a bug in emsdk that this isn't properly declared.
Kevin Lubick6fccc9d2018-11-20 15:55:10 -0500964function loadWebAssemblyModule() {};