UNPKG

ng-zorro-antd

Version:

An enterprise-class UI components based on Ant Design and Angular

1 lines • 1.03 kB
{"version":3,"file":"ng-zorro-antd-core-polyfill.mjs","names":[],"sources":["../../components/core/polyfill/request-animation.ts"],"sourcesContent":["/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n\n// Note: This falls back to `setTimeout` if `requestAnimationFrame` is\n// unintentionally called on the server, but ideally, we should never attempt\n// to call `requestAnimationFrame` on the server — all invocations should be\n// wrapped with isBrowser.\nexport const requestAnimationFrame =\n typeof globalThis.requestAnimationFrame === 'function' ? globalThis.requestAnimationFrame : globalThis.setTimeout;\n\nexport const cancelAnimationFrame =\n typeof globalThis.requestAnimationFrame === 'function' ? globalThis.cancelAnimationFrame : globalThis.clearTimeout;\n"],"mappings":"AASA,MAAa,wBACX,OAAO,WAAW,0BAA0B,aAAa,WAAW,wBAAwB,WAAW;AAEzG,MAAa,uBACX,OAAO,WAAW,0BAA0B,aAAa,WAAW,uBAAuB,WAAW"}