- Go backend (server/)
- Frontend (web/, server/static/)
- Database and deployment files
- Scripts and docs
Co-Authored-By: 狸花猫/Claude-Qwen3.6-Plus 🐾
12 lines
386 B
JavaScript
12 lines
386 B
JavaScript
// 全局设置一个唯一离屏的 ctx,用于计算 isPointInPath
|
||
var offScreenCtx = null;
|
||
export function getOffScreenContext() {
|
||
if (!offScreenCtx) {
|
||
var canvas = document.createElement('canvas');
|
||
canvas.width = 1;
|
||
canvas.height = 1;
|
||
offScreenCtx = canvas.getContext('2d');
|
||
}
|
||
return offScreenCtx;
|
||
}
|
||
//# sourceMappingURL=offscreen.js.map
|