var ctx; /** * 获取 canvas context */ export function getCanvasContext() { if (!ctx) { ctx = document.createElement('canvas').getContext('2d'); } return ctx; } //# sourceMappingURL=context.js.map