UNPKG

@progress/kendo-react-charts

Version:

React Chart renders a wide range of high-quality data visualizations. KendoReact Charts package

20 lines (19 loc) 807 B
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ import { canUseDOM as u } from "@progress/kendo-react-common"; const l = 1e3 / 60, T = (i) => { let o, s, t = []; const n = () => o, c = (e) => { o = i(o, e), u && (window.clearTimeout(s), s = window.setTimeout(() => t.forEach((r) => r()), l)); }, a = (e) => (t.push(e), () => t = t.filter((r) => r !== e)); return c({}), { getState: n, dispatch: c, subscribe: a }; }; export { l as THROTTLE_MS, T as createStore };