1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.getCanvasContext = void 0;
|
4 | var ctx;
|
5 | /**
|
6 | * 获取 canvas context
|
7 | */
|
8 | function getCanvasContext() {
|
9 | if (!ctx) {
|
10 | ctx = document.createElement('canvas').getContext('2d');
|
11 | }
|
12 | return ctx;
|
13 | }
|
14 | exports.getCanvasContext = getCanvasContext;
|
15 | //# sourceMappingURL=context.js.map |
\ | No newline at end of file |