@antv/g2plot
Version:
An interactive and responsive charting library
15 lines • 369 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.getCanvasContext = void 0;
var ctx;
/**
* 获取 canvas context
*/
function getCanvasContext() {
if (!ctx) {
ctx = document.createElement('canvas').getContext('2d');
}
return ctx;
}
exports.getCanvasContext = getCanvasContext;
//# sourceMappingURL=context.js.map
;