- Updated all component headers and documentation
- Changed navbar and footer branding
- Updated homepage hero badge
- Modified page title in index.html
- Simplified footer text to 'Built with ❤️'
- Consistent V2 capitalization across all references
8 lines
400 B
JavaScript
8 lines
400 B
JavaScript
export const defaultTimestep = (1 / 60) * 1000;
|
|
const getCurrentTime = typeof performance !== "undefined"
|
|
? () => performance.now()
|
|
: () => Date.now();
|
|
export const onNextFrame = typeof window !== "undefined"
|
|
? (callback) => window.requestAnimationFrame(callback)
|
|
: (callback) => setTimeout(() => callback(getCurrentTime()), defaultTimestep);
|
|
//# sourceMappingURL=on-next-frame.js.map
|