xref: /aosp_15_r20/external/skia/modules/canvaskit/preamble.js (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1// Adds compile-time JS functions to augment the CanvasKit interface.
2(function(CanvasKit) {
3
4
5// This intentionally dangles because we want all the
6// JS code to be in the same scope, but JS doesn't support
7// namespaces like C++ does. Thus, we simply include this
8// preamble.js file, all the source .js files and then postamble.js
9// to bundle everything in the same scope.