You've already forked wakapi-readme-stats
30 lines
816 B
JavaScript
30 lines
816 B
JavaScript
(function (global, factory) {
|
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
(global = global || self, factory(global.vega = {}));
|
|
}(this, (function (exports) { 'use strict';
|
|
|
|
function domCanvas(w, h) {
|
|
if (typeof document !== 'undefined' && document.createElement) {
|
|
var c = document.createElement('canvas');
|
|
if (c && c.getContext) {
|
|
c.width = w;
|
|
c.height = h;
|
|
return c;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
function domImage() {
|
|
return typeof Image !== 'undefined' ? Image : null;
|
|
}
|
|
|
|
exports.canvas = domCanvas;
|
|
exports.domCanvas = domCanvas;
|
|
exports.image = domImage;
|
|
|
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
|
})));
|