blob: a3cf30665cb5a05f81131b454735e5db0473787e [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 = {
26 // public API (i.e. things we declare in the pre-js file)
Kevin Lubick006a6f32018-10-19 14:34:34 -040027 Color: function() {},
28 /** @return {CanvasKit.SkRect} */
29 LTRBRect: function() {},
Kevin Lubick0a1293c2018-12-03 12:31:04 -050030 /** @return {CanvasKit.SkRect} */
31 XYWHRect: function() {},
Kevin Lubick7d644e12019-09-11 14:22:22 -040032 /** @return {CanvasKit.SkRRect} */
33 RRectXY: function() {},
Kevin Lubick52b9f372018-12-04 13:57:36 -050034 /** @return {ImageData} */
35 ImageData: function() {},
Kevin Lubick543f3522019-03-08 10:04:28 -050036
37 GetWebGLContext: function() {},
Kevin Lubick61ef7b22018-11-27 13:26:59 -050038 MakeBlurMaskFilter: function() {},
Kevin Lubick006a6f32018-10-19 14:34:34 -040039 MakeCanvas: function() {},
40 MakeCanvasSurface: function() {},
Kevin Lubick543f3522019-03-08 10:04:28 -050041 MakeGrContext: function() {},
Kevin Lubick6b921b72019-09-18 16:18:17 -040042 /** @return {CanvasKit.SkAnimatedImage} */
43 MakeAnimatedImageFromEncoded: function() {},
Kevin Lubick0a1293c2018-12-03 12:31:04 -050044 /** @return {CanvasKit.SkImage} */
45 MakeImageFromEncoded: function() {},
Kevin Lubickeb2f6b02018-11-29 15:07:02 -050046 /** @return {LinearCanvasGradient} */
Kevin Lubickb5ae3b52018-11-03 07:51:19 -040047 MakeLinearGradientShader: function() {},
Kevin Lubick543f3522019-03-08 10:04:28 -050048 MakeOnScreenGLSurface: function() {},
Kevin Lubickda3d8ac2019-01-07 11:08:55 -050049 MakePathFromCmds: function() {},
Kevin Lubicka40f8322018-12-17 16:01:36 -050050 MakePathFromOp: function() {},
51 MakePathFromSVGString: function() {},
Kevin Lubick61ef7b22018-11-27 13:26:59 -050052 MakeRadialGradientShader: function() {},
Kevin Lubick543f3522019-03-08 10:04:28 -050053 MakeRenderTarget: function() {},
Kevin Lubick61ef7b22018-11-27 13:26:59 -050054 MakeSWCanvasSurface: function() {},
Kevin Lubickf5ea37f2019-02-28 10:06:18 -050055 MakeManagedAnimation: function() {},
Kevin Lubick006a6f32018-10-19 14:34:34 -040056 MakeSkDashPathEffect: function() {},
Kevin Lubickb5ae3b52018-11-03 07:51:19 -040057 MakeSkVertices: function() {},
Kevin Lubick006a6f32018-10-19 14:34:34 -040058 MakeSurface: function() {},
Kevin Lubickeb2f6b02018-11-29 15:07:02 -050059 /** @return {RadialCanvasGradient} */
60 MakeTwoPointConicalGradientShader: function() {},
Kevin Lubick61ef7b22018-11-27 13:26:59 -050061 MakeWebGLCanvasSurface: function() {},
Kevin Lubicke25df6c2019-10-22 09:04:32 -040062 /** @return {TypedArray} */
63 Malloc: function() {},
Kevin Lubick50f377e2019-09-11 15:23:00 -040064 /** @return {TonalColors} */
65 computeTonalColors: function() {},
Kevin Lubick217056c2018-09-20 17:39:31 -040066 currentContext: function() {},
Kevin Lubick61ef7b22018-11-27 13:26:59 -050067 getColorComponents: function() {},
Kevin Lubick12c0e502018-11-28 12:51:56 -050068 getSkDataBytes: function() {},
Kevin Lubick12c0e502018-11-28 12:51:56 -050069 multiplyByAlpha: function() {},
Kevin Lubick006a6f32018-10-19 14:34:34 -040070 setCurrentContext: function() {},
Kevin Lubick217056c2018-09-20 17:39:31 -040071
72 // private API (i.e. things declared in the bindings that we use
73 // in the pre-js file)
Kevin Lubick52b9f372018-12-04 13:57:36 -050074 _MakeImage: function() {},
Kevin Lubickb5ae3b52018-11-03 07:51:19 -040075 _MakeLinearGradientShader: function() {},
Kevin Lubickda3d8ac2019-01-07 11:08:55 -050076 _MakePathFromCmds: function() {},
Kevin Lubickb5ae3b52018-11-03 07:51:19 -040077 _MakeRadialGradientShader: function() {},
Kevin Lubickf5ea37f2019-02-28 10:06:18 -050078 _MakeManagedAnimation: function() {},
Kevin Lubick006a6f32018-10-19 14:34:34 -040079 _MakeSkDashPathEffect: function() {},
Kevin Lubickb5ae3b52018-11-03 07:51:19 -040080 _MakeSkVertices: function() {},
Kevin Lubickeb2f6b02018-11-29 15:07:02 -050081 _MakeTwoPointConicalGradientShader: function() {},
Kevin Lubick6b921b72019-09-18 16:18:17 -040082 _decodeAnimatedImage: function() {},
Kevin Lubick0a1293c2018-12-03 12:31:04 -050083 _decodeImage: function() {},
Kevin Lubick1ba9c4d2019-02-22 10:04:06 -050084 _drawShapedText: function() {},
Kevin Lubickea905ec2018-11-30 14:05:58 -050085 _getRasterDirectSurface: function() {},
Kevin Lubick134be1d2018-10-30 15:05:04 -040086 _getRasterN32PremulSurface: function() {},
Kevin Lubick217056c2018-09-20 17:39:31 -040087
Kevin Lubick1a05fce2018-11-20 12:51:16 -050088 // The testing object is meant to expose internal functions
89 // for more fine-grained testing, e.g. parseColor
90 _testing: {},
91
Kevin Lubick217056c2018-09-20 17:39:31 -040092 // Objects and properties on CanvasKit
93
Kevin Lubickcd544662019-03-22 15:41:36 -040094 GrContext: {
95 // public API (from C++ bindings)
96 getResourceCacheLimitBytes: function() {},
97 getResourceCacheUsageBytes: function() {},
98 setResourceCacheLimitBytes: function() {},
99 },
100
Kevin Lubick369f6a52019-10-03 11:22:08 -0400101 Paragraph: {
102 // public API (from C++ bindings)
Kevin Lubick04912672019-11-15 14:48:55 -0500103 didExceedMaxLines: function() {},
104 getAlphabeticBaseline: function() {},
Kevin Lubick369f6a52019-10-03 11:22:08 -0400105 getGlyphPositionAtCoordinate: function() {},
Kevin Lubick04912672019-11-15 14:48:55 -0500106 getHeight: function() {},
107 getIdeographicBaseline: function() {},
108 getLongestLine: function() {},
109 getMaxIntrinsicWidth: function() {},
110 getMaxWidth: function() {},
111 getMinIntrinsicWidth: function() {},
112 getWordBoundary: function() {},
Kevin Lubick369f6a52019-10-03 11:22:08 -0400113 layout: function() {},
114
115 // private API
116 /** @return {Float32Array} */
117 _getRectsForRange: function() {},
118 },
119
120 ParagraphStyle: function() {},
Kevin Lubickd3cfbca2019-03-15 15:36:29 -0400121 RSXFormBuilder: function() {},
Kevin Lubickee91c072019-03-29 10:39:52 -0400122 SkColorBuilder: function() {},
123 SkRectBuilder: function() {},
Kevin Lubickd3cfbca2019-03-15 15:36:29 -0400124
Kevin Lubick1ba9c4d2019-02-22 10:04:06 -0500125 ShapedText: {
126 // public API (from C++ bindings)
127 getBounds: function() {},
128 },
129
Kevin Lubick6b921b72019-09-18 16:18:17 -0400130 SkAnimatedImage: {
131 // public API (from C++ bindings)
Kevin Lubick6b921b72019-09-18 16:18:17 -0400132 decodeNextFrame: function() {},
Kevin Lubick47bd9f12019-11-08 06:55:15 -0800133 getFrameCount: function() {},
134 getRepetitionCount: function() {},
135 height: function() {},
136 reset: function() {},
137 width: function() {},
Kevin Lubick6b921b72019-09-18 16:18:17 -0400138 },
139
Kevin Lubick006a6f32018-10-19 14:34:34 -0400140 SkCanvas: {
141 // public API (from C++ bindings)
142 clear: function() {},
Kevin Lubickeb2f6b02018-11-29 15:07:02 -0500143 clipPath: function() {},
Kevin Lubick6dbc4ed2019-10-22 09:43:34 -0400144 clipRRect: function() {},
Kevin Lubick5d5723c2018-12-07 10:09:11 -0500145 clipRect: function() {},
146 concat: function() {},
Kevin Lubick6dbc4ed2019-10-22 09:43:34 -0400147 drawAnimatedImage: function() {},
Kevin Lubickda3d8ac2019-01-07 11:08:55 -0500148 drawArc: function() {},
Kevin Lubicke384df42019-08-26 15:48:09 -0400149 drawCircle: function() {},
Kevin Lubick6dbc4ed2019-10-22 09:43:34 -0400150 drawColor: function() {},
Kevin Lubick2e5fe352019-09-03 12:59:06 -0400151 drawDRRect: function() {},
Kevin Lubick0a1293c2018-12-03 12:31:04 -0500152 drawImage: function() {},
Kevin Lubick37ab53e2019-11-11 10:06:08 -0500153 drawImageNine: function() {},
Kevin Lubick0a1293c2018-12-03 12:31:04 -0500154 drawImageRect: function() {},
Kevin Lubickda3d8ac2019-01-07 11:08:55 -0500155 drawLine: function() {},
156 drawOval: function() {},
Kevin Lubick006a6f32018-10-19 14:34:34 -0400157 drawPaint: function() {},
Kevin Lubick369f6a52019-10-03 11:22:08 -0400158 drawParagraph: function() {},
Kevin Lubick006a6f32018-10-19 14:34:34 -0400159 drawPath: function() {},
Kevin Lubickcc13fd32019-04-05 13:00:01 -0400160 drawPicture: function() {},
Kevin Lubick2e5fe352019-09-03 12:59:06 -0400161 drawRRect: function() {},
Kevin Lubick12c0e502018-11-28 12:51:56 -0500162 drawRect: function() {},
Kevin Lubickda3d8ac2019-01-07 11:08:55 -0500163 drawRoundRect: function() {},
Kevin Lubick61ef7b22018-11-27 13:26:59 -0500164 drawShadow: function() {},
Kevin Lubick12c0e502018-11-28 12:51:56 -0500165 drawText: function() {},
Kevin Lubickec4903d2019-01-14 08:36:08 -0500166 drawTextBlob: function() {},
Kevin Lubick12c0e502018-11-28 12:51:56 -0500167 drawVertices: function() {},
Kevin Lubick006a6f32018-10-19 14:34:34 -0400168 flush: function() {},
Kevin Lubick2e5fe352019-09-03 12:59:06 -0400169 getSaveCount: function() {},
Kevin Lubick5d5723c2018-12-07 10:09:11 -0500170 getTotalMatrix: function() {},
Kevin Lubick543f3522019-03-08 10:04:28 -0500171 makeSurface: function() {},
Kevin Lubickeb2f6b02018-11-29 15:07:02 -0500172 restore: function() {},
Kevin Lubickb3574c92019-03-06 08:25:36 -0500173 restoreToCount: function() {},
Kevin Lubick006a6f32018-10-19 14:34:34 -0400174 rotate: function() {},
175 save: function() {},
Kevin Lubickb3574c92019-03-06 08:25:36 -0500176 saveLayer: function() {},
Kevin Lubick006a6f32018-10-19 14:34:34 -0400177 scale: function() {},
Kevin Lubick006a6f32018-10-19 14:34:34 -0400178 skew: function() {},
179 translate: function() {},
180
181 // private API
Kevin Lubickee91c072019-03-29 10:39:52 -0400182 _drawAtlas: function() {},
Kevin Lubick37ab53e2019-11-11 10:06:08 -0500183 _drawPoints: function() {},
Kevin Lubickec4903d2019-01-14 08:36:08 -0500184 _drawSimpleText: function() {},
Kevin Lubick52b9f372018-12-04 13:57:36 -0500185 _readPixels: function() {},
186 _writePixels: function() {},
Kevin Lubick006a6f32018-10-19 14:34:34 -0400187 delete: function() {},
188 },
189
Kevin Lubickd3729342019-09-12 11:11:25 -0400190 SkColorFilter: {
191 // public API (from C++ bindings and JS interface)
192 MakeBlend: function() {},
193 MakeCompose: function() {},
194 MakeLerp: function() {},
195 MakeLinearToSRGBGamma: function() {},
196 MakeMatrix: function() {},
197 MakeSRGBToLinearGamma: function() {},
198 // private API (from C++ bindings)
199 _makeMatrix: function() {},
200 },
201
202 SkColorMatrix: {
203 concat: function() {},
204 identity: function() {},
205 postTranslate: function() {},
206 rotated: function() {},
207 scaled: function() {},
208 },
209
Kevin Lubicke59c1672019-11-20 14:17:53 -0500210 SkContourMeasureIter: {
211 next: function() {},
212 },
213
214 SkContourMeasure: {
215 getPosTan: function() {},
216 getSegment: function() {},
217 isClosed: function() {},
218 length: function() {},
219 },
220
Kevin Lubick35ac0382019-01-02 15:13:57 -0500221 SkFont: {
222 // public API (from C++ bindings)
223 getScaleX: function() {},
224 getSize: function() {},
225 getSkewX: function() {},
226 getTypeface: function() {},
227 measureText: function() {},
228 setScaleX: function() {},
229 setSize: function() {},
230 setSkewX: function() {},
231 setTypeface: function() {},
Kevin Lubickd3cfbca2019-03-15 15:36:29 -0400232 // private API (from C++ bindings)
233 _getWidths: function() {},
Kevin Lubick35ac0382019-01-02 15:13:57 -0500234 },
235
Kevin Lubickddd0a332018-12-12 10:35:13 -0500236 SkFontMgr: {
Kevin Lubick61887c72019-09-26 13:20:50 -0400237 // public API (from C++ and JS bindings)
238 FromData: function() {},
Kevin Lubickddd0a332018-12-12 10:35:13 -0500239 RefDefault: function() {},
240 countFamilies: function() {},
241
242 // private API
243 _makeTypefaceFromData: function() {},
Kevin Lubick61887c72019-09-26 13:20:50 -0400244 _fromData: function() {},
Kevin Lubickddd0a332018-12-12 10:35:13 -0500245 },
246
Kevin Lubick006a6f32018-10-19 14:34:34 -0400247 SkImage: {
Kevin Lubick0a1293c2018-12-03 12:31:04 -0500248 // public API (from C++ bindings)
249 height: function() {},
250 width: function() {},
Alexander Khovansky3e119332018-11-15 02:01:19 +0300251 // private API
252 _encodeToData: function() {},
253 _encodeToDataWithFormat: function() {},
Kevin Lubicka064c282019-04-04 09:28:53 -0400254 _makeShader: function() {},
Kevin Lubick006a6f32018-10-19 14:34:34 -0400255 },
256
Kevin Lubick15b40232019-10-29 09:55:39 -0400257 SkImageFilter: {
258 MakeBlur: function() {},
259 MakeColorFilter: function() {},
260 MakeCompose: function() {},
Kevin Lubickd2677192019-11-15 14:13:20 -0500261 MakeMatrixTransform: function() {},
Kevin Lubick15b40232019-10-29 09:55:39 -0400262 },
263
Kevin Lubick1a05fce2018-11-20 12:51:16 -0500264 SkMatrix: {
Kevin Lubickb9db3902018-11-26 11:47:54 -0500265 identity: function() {},
Kevin Lubickf3555182019-03-14 10:55:10 -0400266 invert: function() {},
Kevin Lubickb9db3902018-11-26 11:47:54 -0500267 mapPoints: function() {},
268 multiply: function() {},
Kevin Lubick1a05fce2018-11-20 12:51:16 -0500269 rotated: function() {},
Kevin Lubickb9db3902018-11-26 11:47:54 -0500270 scaled: function() {},
271 skewed: function() {},
272 translated: function() {},
273 },
274
Kevin Lubick15b40232019-10-29 09:55:39 -0400275 SkMaskFilter: {
276 MakeBlur: function() {},
277 },
278
Kevin Lubickb9db3902018-11-26 11:47:54 -0500279 SkPaint: {
280 // public API (from C++ bindings)
281 /** @return {CanvasKit.SkPaint} */
282 copy: function() {},
Kevin Lubick12c0e502018-11-28 12:51:56 -0500283 getBlendMode: function() {},
Kevin Lubick61ef7b22018-11-27 13:26:59 -0500284 getColor: function() {},
Kevin Lubick0a1293c2018-12-03 12:31:04 -0500285 getFilterQuality: function() {},
Kevin Lubickb9db3902018-11-26 11:47:54 -0500286 getStrokeCap: function() {},
287 getStrokeJoin: function() {},
288 getStrokeMiter: function() {},
289 getStrokeWidth: function() {},
Kevin Lubickb9db3902018-11-26 11:47:54 -0500290 setAntiAlias: function() {},
Kevin Lubick12c0e502018-11-28 12:51:56 -0500291 setBlendMode: function() {},
Kevin Lubickb9db3902018-11-26 11:47:54 -0500292 setColor: function() {},
Kevin Lubick0a1293c2018-12-03 12:31:04 -0500293 setFilterQuality: function() {},
Kevin Lubick15b40232019-10-29 09:55:39 -0400294 setImageFilter: function() {},
Kevin Lubick61ef7b22018-11-27 13:26:59 -0500295 setMaskFilter: function() {},
Kevin Lubickb9db3902018-11-26 11:47:54 -0500296 setPathEffect: function() {},
297 setShader: function() {},
298 setStrokeCap: function() {},
299 setStrokeJoin: function() {},
300 setStrokeMiter: function() {},
301 setStrokeWidth: function() {},
302 setStyle: function() {},
Kevin Lubickb9db3902018-11-26 11:47:54 -0500303
304 //private API
305 delete: function() {},
Kevin Lubick1a05fce2018-11-20 12:51:16 -0500306 },
307
Kevin Lubick006a6f32018-10-19 14:34:34 -0400308 SkPath: {
309 // public API (from C++ bindings)
Kevin Lubickb9db3902018-11-26 11:47:54 -0500310 computeTightBounds: function() {},
Kevin Lubick1646e7d2018-12-07 13:03:08 -0500311 contains: function() {},
Kevin Lubickb9db3902018-11-26 11:47:54 -0500312 /** @return {CanvasKit.SkPath} */
313 copy: function() {},
314 countPoints: function() {},
315 equals: function() {},
316 getBounds: function() {},
317 getFillType: function() {},
318 getPoint: function() {},
Kevin Lubick1646e7d2018-12-07 13:03:08 -0500319 isEmpty: function() {},
Kevin Lubick2b79d1c2018-12-14 16:10:38 -0500320 isVolatile: function() {},
Kevin Lubickda3d8ac2019-01-07 11:08:55 -0500321 reset: function() {},
322 rewind: function() {},
Kevin Lubickb9db3902018-11-26 11:47:54 -0500323 setFillType: function() {},
Kevin Lubick2b79d1c2018-12-14 16:10:38 -0500324 setIsVolatile: function() {},
Kevin Lubickb9db3902018-11-26 11:47:54 -0500325 toSVGString: function() {},
Kevin Lubick006a6f32018-10-19 14:34:34 -0400326
327 // private API
Kevin Lubick1a05fce2018-11-20 12:51:16 -0500328 _addArc: function() {},
Kevin Lubicke384df42019-08-26 15:48:09 -0400329 _addOval: function() {},
Kevin Lubick006a6f32018-10-19 14:34:34 -0400330 _addPath: function() {},
Kevin Lubick1a05fce2018-11-20 12:51:16 -0500331 _addRect: function() {},
Kevin Lubick37ab53e2019-11-11 10:06:08 -0500332 _addPoly: function() {},
Kevin Lubickda3d8ac2019-01-07 11:08:55 -0500333 _addRoundRect: function() {},
Alexander Khovansky3e119332018-11-15 02:01:19 +0300334 _arc: function() {},
Kevin Lubick006a6f32018-10-19 14:34:34 -0400335 _arcTo: function() {},
336 _close: function() {},
337 _conicTo: function() {},
338 _cubicTo: function() {},
Kevin Lubickb5ae3b52018-11-03 07:51:19 -0400339 _dash: function() {},
Kevin Lubick006a6f32018-10-19 14:34:34 -0400340 _lineTo: function() {},
341 _moveTo: function() {},
342 _op: function() {},
343 _quadTo: function() {},
Kevin Lubick79b71342019-11-01 14:36:52 -0400344 _rArcTo: function() {},
345 _rConicTo: function() {},
346 _rCubicTo: function() {},
347 _rLineTo: function() {},
348 _rMoveTo: function() {},
349 _rQuadTo: function() {},
Kevin Lubick006a6f32018-10-19 14:34:34 -0400350 _rect: function() {},
351 _simplify: function() {},
Kevin Lubickb5ae3b52018-11-03 07:51:19 -0400352 _stroke: function() {},
Kevin Lubick006a6f32018-10-19 14:34:34 -0400353 _transform: function() {},
Kevin Lubickb5ae3b52018-11-03 07:51:19 -0400354 _trim: function() {},
Kevin Lubick006a6f32018-10-19 14:34:34 -0400355 delete: function() {},
Kevin Lubickb9db3902018-11-26 11:47:54 -0500356 dump: function() {},
357 dumpHex: function() {},
Kevin Lubick006a6f32018-10-19 14:34:34 -0400358 },
359
Kevin Lubickd3cfbca2019-03-15 15:36:29 -0400360 SkPathMeasure: {
361 getLength: function() {},
Kevin Lubick37ab53e2019-11-11 10:06:08 -0500362 getSegment: function() {},
Kevin Lubickd3cfbca2019-03-15 15:36:29 -0400363 getPosTan: function() {},
364 isClosed: function() {},
365 nextContour: function() {},
366 },
367
Kevin Lubickcc13fd32019-04-05 13:00:01 -0400368 SkPicture: {
369 DEBUGONLY_serialize: function() {},
370 },
371
372 SkPictureRecorder: {
373 beginRecording: function() {},
374 finishRecordingAsPicture: function() {},
375 },
376
Kevin Lubick006a6f32018-10-19 14:34:34 -0400377 SkRect: {
378 fLeft: {},
379 fTop: {},
380 fRight: {},
381 fBottom: {},
382 },
383
Kevin Lubick2e5fe352019-09-03 12:59:06 -0400384 SkRRect: {
385 rect: {},
Kevin Lubick7d644e12019-09-11 14:22:22 -0400386 rx1: {},
387 ry1: {},
388 rx2: {},
389 ry2: {},
390 rx3: {},
391 ry3: {},
392 rx4: {},
393 ry4: {},
Kevin Lubick2e5fe352019-09-03 12:59:06 -0400394 },
395
Kevin Lubick006a6f32018-10-19 14:34:34 -0400396 SkSurface: {
397 // public API (from C++ bindings)
398 /** @return {CanvasKit.SkCanvas} */
399 getCanvas: function() {},
400 /** @return {CanvasKit.SkImage} */
401 makeImageSnapshot: function() {},
Kevin Lubick543f3522019-03-08 10:04:28 -0500402 makeSurface: function() {},
Kevin Lubickcd544662019-03-22 15:41:36 -0400403 grContext: {},
Kevin Lubick006a6f32018-10-19 14:34:34 -0400404
405 // private API
406 _flush: function() {},
407 _getRasterN32PremulSurface: function() {},
Kevin Lubick006a6f32018-10-19 14:34:34 -0400408 delete: function() {},
409 },
410
Kevin Lubickec4903d2019-01-14 08:36:08 -0500411 SkTextBlob: {
Kevin Lubickd3cfbca2019-03-15 15:36:29 -0400412 // public API (both C++ and JS bindings)
413 MakeFromRSXform: function() {},
Kevin Lubickec4903d2019-01-14 08:36:08 -0500414 MakeFromText: function() {},
Kevin Lubickd3cfbca2019-03-15 15:36:29 -0400415 MakeOnPath: function() {},
416 // private API (from C++ bindings)
417 _MakeFromRSXform: function() {},
Kevin Lubickec4903d2019-01-14 08:36:08 -0500418 _MakeFromText: function() {},
419 },
420
Kevin Lubickb5ae3b52018-11-03 07:51:19 -0400421 SkVertices: {
422 // public API (from C++ bindings)
Kevin Lubick12c0e502018-11-28 12:51:56 -0500423 bounds: function() {},
424 mode: function() {},
425 uniqueID: function() {},
426 vertexCount: function() {},
Kevin Lubickb5ae3b52018-11-03 07:51:19 -0400427
428 // private API
429 /** @return {CanvasKit.SkVertices} */
430 _applyBones: function() {},
431 },
432
Kevin Lubickd6ba7252019-06-03 14:38:05 -0400433 _SkVerticesBuilder: {
434 // public API (from C++ bindings)
435 boneIndices: function() {},
436 boneWeights: function() {},
437 colors: function() {},
438 detach: function() {},
439 indices: function() {},
440 positions: function() {},
441 texCoords: function() {},
442 },
443
Kevin Lubick369f6a52019-10-03 11:22:08 -0400444 TextStyle: function() {},
445
Kevin Lubick006a6f32018-10-19 14:34:34 -0400446 // Constants and Enums
447 gpu: {},
448 skottie: {},
Kevin Lubick006a6f32018-10-19 14:34:34 -0400449
Kevin Lubick61ef7b22018-11-27 13:26:59 -0500450 TRANSPARENT: {},
451 RED: {},
452 BLUE: {},
453 YELLOW: {},
454 CYAN: {},
455 BLACK: {},
Kevin Lubickea905ec2018-11-30 14:05:58 -0500456 WHITE: {},
457
Kevin Lubickda3d8ac2019-01-07 11:08:55 -0500458 MOVE_VERB: {},
459 LINE_VERB: {},
460 QUAD_VERB: {},
461 CONIC_VERB: {},
462 CUBIC_VERB: {},
463 CLOSE_VERB: {},
464
Kevin Lubick369f6a52019-10-03 11:22:08 -0400465 NoDecoration: {},
466 UnderlineDecoration: {},
467 OverlineDecoration: {},
468 LineThroughDecoration: {},
469
Kevin Lubick77d9b5c2019-10-29 10:48:26 -0400470 SaveLayerInitWithPrevious: {},
471 SaveLayerF16ColorType: {},
472
Kevin Lubick369f6a52019-10-03 11:22:08 -0400473 Affinity: {
474 Upstream: {},
475 Downstream: {},
476 },
477
Kevin Lubickea905ec2018-11-30 14:05:58 -0500478 AlphaType: {
479 Opaque: {},
480 Premul: {},
481 Unpremul: {},
482 },
Kevin Lubick61ef7b22018-11-27 13:26:59 -0500483
484 BlendMode: {
485 Clear: {},
486 Src: {},
487 Dst: {},
488 SrcOver: {},
489 DstOver: {},
490 SrcIn: {},
491 DstIn: {},
492 SrcOut: {},
493 DstOut: {},
494 SrcATop: {},
495 DstATop: {},
496 Xor: {},
497 Plus: {},
498 Modulate: {},
499 Screen: {},
500 Overlay: {},
501 Darken: {},
502 Lighten: {},
503 ColorDodge: {},
504 ColorBurn: {},
505 HardLight: {},
506 SoftLight: {},
507 Difference: {},
508 Exclusion: {},
509 Multiply: {},
510 Hue: {},
511 Saturation: {},
512 Color: {},
513 Luminosity: {},
514 },
515
516 BlurStyle: {
517 Normal: {},
518 Solid: {},
519 Outer: {},
520 Inner: {},
521 },
522
Kevin Lubickeb2f6b02018-11-29 15:07:02 -0500523 ClipOp: {
524 Difference: {},
525 Intersect: {},
526 },
527
Kevin Lubickea905ec2018-11-30 14:05:58 -0500528 ColorType: {
529 Alpha_8: {},
530 RGB_565: {},
531 ARGB_4444: {},
532 RGBA_8888: {},
533 RGB_888x: {},
534 BGRA_8888: {},
535 RGBA_1010102: {},
536 RGB_101010x: {},
537 Gray_8: {},
538 RGBA_F16: {},
539 RGBA_F32: {},
540 },
541
Kevin Lubick006a6f32018-10-19 14:34:34 -0400542 FillType: {
Kevin Lubick1a05fce2018-11-20 12:51:16 -0500543 Winding: {},
544 EvenOdd: {},
545 InverseWinding: {},
546 InverseEvenOdd: {},
Kevin Lubick006a6f32018-10-19 14:34:34 -0400547 },
548
Kevin Lubick0a1293c2018-12-03 12:31:04 -0500549 FilterQuality: {
550 None: {},
551 Low: {},
552 Medium: {},
553 High: {},
554 },
555
Kevin Lubickd3b1fe62019-10-21 10:50:26 -0400556 FontSlant: {
557 Upright: {},
558 Italic: {},
559 Oblique: {},
560 },
561
562 FontWeight: {
563 Invisible: {},
564 Thin: {},
565 ExtraLight: {},
566 Light: {},
567 Normal: {},
568 Medium: {},
569 SemiBold: {},
570 Bold: {},
571 ExtraBold: {},
572 Black: {},
573 ExtraBlack: {},
574 },
575
576 FontWidth: {
577 UltraCondensed: {},
578 ExtraCondensed: {},
579 Condensed: {},
580 SemiCondensed: {},
581 Normal: {},
582 SemiExpanded: {},
583 Expanded: {},
584 ExtraExpanded: {},
585 UltraExpanded: {},
586 },
587
Alexander Khovansky3e119332018-11-15 02:01:19 +0300588 ImageFormat: {
589 PNG: {},
590 JPEG: {},
591 },
592
Kevin Lubickb9db3902018-11-26 11:47:54 -0500593 PaintStyle: {
594 Fill: {},
595 Stroke: {},
596 StrokeAndFill: {},
597 },
598
Kevin Lubickeb2f6b02018-11-29 15:07:02 -0500599 PathOp: {
600 Difference: {},
601 Intersect: {},
602 Union: {},
603 XOR: {},
604 ReverseDifference: {},
605 },
606
Kevin Lubick37ab53e2019-11-11 10:06:08 -0500607 PointMode: {
608 Points: {},
609 Lines: {},
610 Polygon: {},
611 },
612
Kevin Lubick369f6a52019-10-03 11:22:08 -0400613 RectHeightStyle: {
614 Tight: {},
615 Max: {},
Kevin Lubick4a5f4f22019-11-20 08:27:10 -0500616 IncludeLineSpacingMiddle: {},
617 IncludeLineSpacingTop: {},
618 IncludeLineSpacingBottom: {},
Kevin Lubick369f6a52019-10-03 11:22:08 -0400619 },
620
621 RectWidthStyle: {
622 Tight: {},
623 Max: {},
624 },
625
Kevin Lubickb9db3902018-11-26 11:47:54 -0500626 StrokeCap: {
627 Butt: {},
628 Round: {},
629 Square: {},
630 },
631
632 StrokeJoin: {
633 Miter: {},
634 Round: {},
635 Bevel: {},
636 },
637
Kevin Lubick369f6a52019-10-03 11:22:08 -0400638 TextAlign: {
639 Left: {},
640 Right: {},
641 Center: {},
642 Justify: {},
643 Start: {},
644 End: {},
645 },
646
Kevin Lubickd3b1fe62019-10-21 10:50:26 -0400647 TextDirection: {
648 LTR: {},
649 RTL: {},
650 },
651
Kevin Lubickec4903d2019-01-14 08:36:08 -0500652 TextEncoding: {
653 UTF8: {},
654 UTF16: {},
655 UTF32: {},
656 GlyphID: {},
657 },
658
Kevin Lubickeb2f6b02018-11-29 15:07:02 -0500659 TileMode: {
660 Clamp: {},
661 Repeat: {},
662 Mirror: {},
Kevin Lubickd29edd72018-12-07 08:29:52 -0500663 Decal: {},
Kevin Lubickeb2f6b02018-11-29 15:07:02 -0500664 },
665
666 VertexMode: {
667 Triangles: {},
668 TrianglesStrip: {},
669 TriangleFan: {},
670 },
671
Kevin Lubick006a6f32018-10-19 14:34:34 -0400672 // Things Enscriptem adds for us
673
Kevin Lubick53965c92018-10-11 08:51:55 -0400674 /**
675 * @type {Float32Array}
676 */
Kevin Lubickb5ae3b52018-11-03 07:51:19 -0400677 HEAPF32: {},
Kevin Lubick53965c92018-10-11 08:51:55 -0400678 /**
Kevin Lubickfa5a1382019-10-09 10:46:14 -0400679 * @type {Float64Array}
680 */
681 HEAPF64: {},
682 /**
Kevin Lubick53965c92018-10-11 08:51:55 -0400683 * @type {Uint8Array}
684 */
685 HEAPU8: {},
Kevin Lubickb5ae3b52018-11-03 07:51:19 -0400686 /**
687 * @type {Uint16Array}
688 */
689 HEAPU16: {},
690 /**
Kevin Lubickf5ea37f2019-02-28 10:06:18 -0500691 * @type {Uint32Array}
692 */
693 HEAPU32: {},
Kevin Lubickfa5a1382019-10-09 10:46:14 -0400694 /**
695 * @type {Int8Array}
696 */
697 HEAP8: {},
698 /**
699 * @type {Int16Array}
700 */
701 HEAP16: {},
702 /**
703 * @type {Int32Array}
704 */
705 HEAP32: {},
706
Kevin Lubick006a6f32018-10-19 14:34:34 -0400707 _malloc: function() {},
708 _free: function() {},
709 onRuntimeInitialized: function() {},
710};
Kevin Lubick217056c2018-09-20 17:39:31 -0400711
Kevin Lubick006a6f32018-10-19 14:34:34 -0400712// Public API things that are newly declared in the JS should go here.
713// It's not enough to declare them above, because closure can still erase them
714// unless they go on the prototype.
Kevin Lubick369f6a52019-10-03 11:22:08 -0400715CanvasKit.Paragraph.prototype.getRectsForRange = function() {};
716
Kevin Lubick1a05fce2018-11-20 12:51:16 -0500717CanvasKit.SkPath.prototype.addArc = function() {};
Kevin Lubicke384df42019-08-26 15:48:09 -0400718CanvasKit.SkPath.prototype.addOval = function() {};
Kevin Lubick217056c2018-09-20 17:39:31 -0400719CanvasKit.SkPath.prototype.addPath = function() {};
Kevin Lubick37ab53e2019-11-11 10:06:08 -0500720CanvasKit.SkPath.prototype.addPoly = function() {};
Kevin Lubick1a05fce2018-11-20 12:51:16 -0500721CanvasKit.SkPath.prototype.addRect = function() {};
Kevin Lubickda3d8ac2019-01-07 11:08:55 -0500722CanvasKit.SkPath.prototype.addRoundRect = function() {};
Alexander Khovansky3e119332018-11-15 02:01:19 +0300723CanvasKit.SkPath.prototype.arc = function() {};
Kevin Lubick006a6f32018-10-19 14:34:34 -0400724CanvasKit.SkPath.prototype.arcTo = function() {};
Kevin Lubick217056c2018-09-20 17:39:31 -0400725CanvasKit.SkPath.prototype.close = function() {};
Kevin Lubick006a6f32018-10-19 14:34:34 -0400726CanvasKit.SkPath.prototype.conicTo = function() {};
727CanvasKit.SkPath.prototype.cubicTo = function() {};
Kevin Lubickb5ae3b52018-11-03 07:51:19 -0400728CanvasKit.SkPath.prototype.dash = function() {};
Kevin Lubick006a6f32018-10-19 14:34:34 -0400729CanvasKit.SkPath.prototype.lineTo = function() {};
730CanvasKit.SkPath.prototype.moveTo = function() {};
Kevin Lubicke384df42019-08-26 15:48:09 -0400731CanvasKit.SkPath.prototype.offset = function() {};
Kevin Lubick006a6f32018-10-19 14:34:34 -0400732CanvasKit.SkPath.prototype.op = function() {};
733CanvasKit.SkPath.prototype.quadTo = function() {};
Kevin Lubick79b71342019-11-01 14:36:52 -0400734CanvasKit.SkPath.prototype.rArcTo = function() {};
735CanvasKit.SkPath.prototype.rConicTo = function() {};
736CanvasKit.SkPath.prototype.rCubicTo = function() {};
737CanvasKit.SkPath.prototype.rLineTo = function() {};
738CanvasKit.SkPath.prototype.rMoveTo = function() {};
739CanvasKit.SkPath.prototype.rQuadTo = function() {};
Kevin Lubick006a6f32018-10-19 14:34:34 -0400740CanvasKit.SkPath.prototype.rect = function() {};
Kevin Lubick217056c2018-09-20 17:39:31 -0400741CanvasKit.SkPath.prototype.simplify = function() {};
Kevin Lubickb5ae3b52018-11-03 07:51:19 -0400742CanvasKit.SkPath.prototype.stroke = function() {};
Kevin Lubick217056c2018-09-20 17:39:31 -0400743CanvasKit.SkPath.prototype.transform = function() {};
Kevin Lubickb5ae3b52018-11-03 07:51:19 -0400744CanvasKit.SkPath.prototype.trim = function() {};
Kevin Lubick217056c2018-09-20 17:39:31 -0400745
Kevin Lubickcc13fd32019-04-05 13:00:01 -0400746CanvasKit.SkPicture.prototype.DEBUGONLY_saveAsFile = function() {};
747
Kevin Lubick5b90b842018-10-17 07:57:18 -0400748CanvasKit.SkSurface.prototype.dispose = function() {};
Kevin Lubick359a7e32019-03-19 09:34:37 -0400749CanvasKit.SkSurface.prototype.flush = function() {};
750CanvasKit.SkSurface.prototype.requestAnimationFrame = function() {};
Kevin Lubickcc13fd32019-04-05 13:00:01 -0400751CanvasKit.SkSurface.prototype.captureFrameAsSkPicture = function() {};
Kevin Lubick53965c92018-10-11 08:51:55 -0400752
Kevin Lubick12c0e502018-11-28 12:51:56 -0500753/** @return {CanvasKit.SkVertices} */
Kevin Lubickb5ae3b52018-11-03 07:51:19 -0400754CanvasKit.SkVertices.prototype.applyBones = function() {};
755
Alexander Khovansky3e119332018-11-15 02:01:19 +0300756CanvasKit.SkImage.prototype.encodeToData = function() {};
Kevin Lubicka064c282019-04-04 09:28:53 -0400757CanvasKit.SkImage.prototype.makeShader = function() {};
Alexander Khovansky3e119332018-11-15 02:01:19 +0300758
Kevin Lubickee91c072019-03-29 10:39:52 -0400759CanvasKit.SkCanvas.prototype.drawAtlas = function() {};
Kevin Lubick37ab53e2019-11-11 10:06:08 -0500760CanvasKit.SkCanvas.prototype.drawPoints = function() {};
Kevin Lubickec4903d2019-01-14 08:36:08 -0500761CanvasKit.SkCanvas.prototype.drawText = function() {};
Kevin Lubick52b9f372018-12-04 13:57:36 -0500762/** @return {Uint8Array} */
763CanvasKit.SkCanvas.prototype.readPixels = function() {};
764CanvasKit.SkCanvas.prototype.writePixels = function() {};
765
Kevin Lubickddd0a332018-12-12 10:35:13 -0500766CanvasKit.SkFontMgr.prototype.MakeTypefaceFromData = function() {};
767
Kevin Lubickd3cfbca2019-03-15 15:36:29 -0400768CanvasKit.SkFont.prototype.getWidths = function() {};
769
770CanvasKit.RSXFormBuilder.prototype.build = function() {};
771CanvasKit.RSXFormBuilder.prototype.delete = function() {};
772CanvasKit.RSXFormBuilder.prototype.push = function() {};
Kevin Lubickee91c072019-03-29 10:39:52 -0400773CanvasKit.RSXFormBuilder.prototype.set = function() {};
774
775CanvasKit.SkColorBuilder.prototype.build = function() {};
776CanvasKit.SkColorBuilder.prototype.delete = function() {};
777CanvasKit.SkColorBuilder.prototype.push = function() {};
778CanvasKit.SkColorBuilder.prototype.set = function() {};
Kevin Lubickd3cfbca2019-03-15 15:36:29 -0400779
Kevin Lubickb5ae3b52018-11-03 07:51:19 -0400780// Define StrokeOpts object
781var StrokeOpts = {};
782StrokeOpts.prototype.width;
783StrokeOpts.prototype.miter_limit;
784StrokeOpts.prototype.cap;
785StrokeOpts.prototype.join;
Kevin Lubick1646e7d2018-12-07 13:03:08 -0500786StrokeOpts.prototype.precision;
Kevin Lubickb5ae3b52018-11-03 07:51:19 -0400787
Kevin Lubickeb2f6b02018-11-29 15:07:02 -0500788// Define everything created in the canvas2d spec here
Kevin Lubickb9db3902018-11-26 11:47:54 -0500789var HTMLCanvas = {};
Kevin Lubick0a1293c2018-12-03 12:31:04 -0500790HTMLCanvas.prototype.decodeImage = function() {};
791HTMLCanvas.prototype.dispose = function() {};
Kevin Lubickb9db3902018-11-26 11:47:54 -0500792HTMLCanvas.prototype.getContext = function() {};
Kevin Lubick8e4a3312018-12-14 15:03:41 -0500793HTMLCanvas.prototype.loadFont = function() {};
Kevin Lubicka40f8322018-12-17 16:01:36 -0500794HTMLCanvas.prototype.makePath2D = function() {};
Kevin Lubickb9db3902018-11-26 11:47:54 -0500795HTMLCanvas.prototype.toDataURL = function() {};
Kevin Lubickb9db3902018-11-26 11:47:54 -0500796
797var CanvasRenderingContext2D = {};
798CanvasRenderingContext2D.prototype.addHitRegion = function() {};
799CanvasRenderingContext2D.prototype.arc = function() {};
800CanvasRenderingContext2D.prototype.arcTo = function() {};
801CanvasRenderingContext2D.prototype.beginPath = function() {};
802CanvasRenderingContext2D.prototype.bezierCurveTo = function() {};
803CanvasRenderingContext2D.prototype.clearHitRegions = function() {};
Kevin Lubick12c0e502018-11-28 12:51:56 -0500804CanvasRenderingContext2D.prototype.clearRect = function() {};
Kevin Lubickeb2f6b02018-11-29 15:07:02 -0500805CanvasRenderingContext2D.prototype.clip = function() {};
Kevin Lubickb9db3902018-11-26 11:47:54 -0500806CanvasRenderingContext2D.prototype.closePath = function() {};
Kevin Lubick52b9f372018-12-04 13:57:36 -0500807CanvasRenderingContext2D.prototype.createImageData = function() {};
Kevin Lubickeb2f6b02018-11-29 15:07:02 -0500808CanvasRenderingContext2D.prototype.createLinearGradient = function() {};
Kevin Lubickd29edd72018-12-07 08:29:52 -0500809CanvasRenderingContext2D.prototype.createPattern = function() {};
Kevin Lubickeb2f6b02018-11-29 15:07:02 -0500810CanvasRenderingContext2D.prototype.createRadialGradient = function() {};
Kevin Lubickb9db3902018-11-26 11:47:54 -0500811CanvasRenderingContext2D.prototype.drawFocusIfNeeded = function() {};
Kevin Lubick0a1293c2018-12-03 12:31:04 -0500812CanvasRenderingContext2D.prototype.drawImage = function() {};
Kevin Lubickb9db3902018-11-26 11:47:54 -0500813CanvasRenderingContext2D.prototype.ellipse = function() {};
Kevin Lubick61ef7b22018-11-27 13:26:59 -0500814CanvasRenderingContext2D.prototype.fill = function() {};
Kevin Lubick12c0e502018-11-28 12:51:56 -0500815CanvasRenderingContext2D.prototype.fillRect = function() {};
Kevin Lubickb9db3902018-11-26 11:47:54 -0500816CanvasRenderingContext2D.prototype.fillText = function() {};
Kevin Lubick52b9f372018-12-04 13:57:36 -0500817CanvasRenderingContext2D.prototype.getImageData = function() {};
Kevin Lubick12c0e502018-11-28 12:51:56 -0500818CanvasRenderingContext2D.prototype.getLineDash = function() {};
Kevin Lubick1646e7d2018-12-07 13:03:08 -0500819CanvasRenderingContext2D.prototype.isPointInPath = function() {};
820CanvasRenderingContext2D.prototype.isPointInStroke = function() {};
Kevin Lubickb9db3902018-11-26 11:47:54 -0500821CanvasRenderingContext2D.prototype.lineTo = function() {};
822CanvasRenderingContext2D.prototype.measureText = function() {};
823CanvasRenderingContext2D.prototype.moveTo = function() {};
Kevin Lubick52b9f372018-12-04 13:57:36 -0500824CanvasRenderingContext2D.prototype.putImageData = function() {};
Kevin Lubickb9db3902018-11-26 11:47:54 -0500825CanvasRenderingContext2D.prototype.quadraticCurveTo = function() {};
826CanvasRenderingContext2D.prototype.rect = function() {};
827CanvasRenderingContext2D.prototype.removeHitRegion = function() {};
828CanvasRenderingContext2D.prototype.resetTransform = function() {};
Kevin Lubick61ef7b22018-11-27 13:26:59 -0500829CanvasRenderingContext2D.prototype.restore = function() {};
Kevin Lubickb9db3902018-11-26 11:47:54 -0500830CanvasRenderingContext2D.prototype.rotate = function() {};
Kevin Lubick61ef7b22018-11-27 13:26:59 -0500831CanvasRenderingContext2D.prototype.save = function() {};
Kevin Lubickb9db3902018-11-26 11:47:54 -0500832CanvasRenderingContext2D.prototype.scale = function() {};
833CanvasRenderingContext2D.prototype.scrollPathIntoView = function() {};
Kevin Lubick12c0e502018-11-28 12:51:56 -0500834CanvasRenderingContext2D.prototype.setLineDash = function() {};
Kevin Lubickb9db3902018-11-26 11:47:54 -0500835CanvasRenderingContext2D.prototype.setTransform = function() {};
836CanvasRenderingContext2D.prototype.stroke = function() {};
Kevin Lubick12c0e502018-11-28 12:51:56 -0500837CanvasRenderingContext2D.prototype.strokeRect = function() {};
Kevin Lubickb9db3902018-11-26 11:47:54 -0500838CanvasRenderingContext2D.prototype.strokeText = function() {};
839CanvasRenderingContext2D.prototype.transform = function() {};
840CanvasRenderingContext2D.prototype.translate = function() {};
841
Kevin Lubicka40f8322018-12-17 16:01:36 -0500842var Path2D = {};
843Path2D.prototype.addPath = function() {};
844Path2D.prototype.arc = function() {};
845Path2D.prototype.arcTo = function() {};
846Path2D.prototype.bezierCurveTo = function() {};
847Path2D.prototype.closePath = function() {};
848Path2D.prototype.ellipse = function() {};
849Path2D.prototype.lineTo = function() {};
850Path2D.prototype.moveTo = function() {};
851Path2D.prototype.quadraticCurveTo = function() {};
852Path2D.prototype.rect = function() {};
853
Kevin Lubickeb2f6b02018-11-29 15:07:02 -0500854var LinearCanvasGradient = {};
855LinearCanvasGradient.prototype.addColorStop = function() {};
856var RadialCanvasGradient = {};
857RadialCanvasGradient.prototype.addColorStop = function() {};
Kevin Lubickd29edd72018-12-07 08:29:52 -0500858var CanvasPattern = {};
859CanvasPattern.prototype.setTransform = function() {};
Kevin Lubickeb2f6b02018-11-29 15:07:02 -0500860
Kevin Lubick52b9f372018-12-04 13:57:36 -0500861var ImageData = {
862 /**
863 * @type {Uint8ClampedArray}
864 */
865 data: {},
866 height: {},
867 width: {},
868};
869
Kevin Lubickd29edd72018-12-07 08:29:52 -0500870var DOMMatrix = {
871 a: {},
872 b: {},
873 c: {},
874 d: {},
875 e: {},
876 f: {},
877};
878
Kevin Lubick217056c2018-09-20 17:39:31 -0400879// 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 -0500880function loadWebAssemblyModule() {};