UNPKG

@aurigma/design-atoms

Version:

Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.

12 lines 344 B
export const StandardIntervalCheckLoop = { start({ checkFunction, onChange, delayMs = 500 }) { return setInterval(() => { if (checkFunction()) onChange(); }, 500); }, stop(checkId) { clearInterval(checkId); } }; //# sourceMappingURL=StandardIntervalCheckLoop.js.map