UNPKG

vega-canvas

Version:

Canvas and Image utilities.

3 lines (2 loc) 533 B
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).vega={})}(this,(function(e){"use strict";function n(e,n){if("undefined"!=typeof document&&document.createElement){const t=document.createElement("canvas");if(t&&t.getContext)return t.width=e,t.height=n,t}return null}e.canvas=n,e.domCanvas=n,e.image=()=>"undefined"!=typeof Image?Image:null})); //# sourceMappingURL=vega-canvas.min.js.map