UNPKG

casc-cesium

Version:

Vue 3.x components for CesiumJS.

17 lines (15 loc) 341 B
function throttle(fn, limit = 250) { let wait = false, result; return function() { if (wait === false) { wait = true; setTimeout(() => { wait = false; }, limit); result = fn.apply(this, arguments); } return result; }; } export { throttle as default }; //# sourceMappingURL=throttle.mjs.map