- Go backend (server/)
- Frontend (web/, server/static/)
- Database and deployment files
- Scripts and docs
Co-Authored-By: 狸花猫/Claude-Qwen3.6-Plus 🐾
10 lines
369 B
JavaScript
10 lines
369 B
JavaScript
/* globals requestAnimationFrame, cancelAnimationFrame */
|
|
module.exports = {
|
|
next: typeof requestAnimationFrame === 'function'
|
|
? function (cb) { return requestAnimationFrame(cb) }
|
|
: function (cb) { return setTimeout(cb, 16) },
|
|
cancel: typeof cancelAnimationFrame === 'function'
|
|
? function (raf) { return cancelAnimationFrame(raf) }
|
|
: clearTimeout
|
|
}
|