feat: migrate Circle component

This commit is contained in:
chenjiahan
2020-07-12 15:11:43 +08:00
parent 8c4c51fea1
commit 94ae79d953
12 changed files with 777 additions and 10 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
* requestAnimationFrame polyfill
*/
import { isServer } from '..';
import { inBrowser } from '..';
let prev = Date.now();
@@ -16,7 +16,7 @@ function fallback(fn: FrameRequestCallback): number {
}
/* istanbul ignore next */
const root = (isServer ? global : window) as Window;
const root = (inBrowser ? window : global) as Window;
/* istanbul ignore next */
const iRaf = root.requestAnimationFrame || fallback;