Files
lan-manager/web/node_modules/@antv/g-base/lib/util/offscreen.js
openclaw 0a5f6a8047 Initial commit: Lan-manager project code
- Go backend (server/)
- Frontend (web/, server/static/)
- Database and deployment files
- Scripts and docs

Co-Authored-By: 狸花猫/Claude-Qwen3.6-Plus 🐾
2026-04-20 00:52:58 +08:00

16 lines
545 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getOffScreenContext = void 0;
// 全局设置一个唯一离屏的 ctx用于计算 isPointInPath
var offScreenCtx = null;
function getOffScreenContext() {
if (!offScreenCtx) {
var canvas = document.createElement('canvas');
canvas.width = 1;
canvas.height = 1;
offScreenCtx = canvas.getContext('2d');
}
return offScreenCtx;
}
exports.getOffScreenContext = getOffScreenContext;
//# sourceMappingURL=offscreen.js.map