remotion
Version:
Render videos in React
16 lines (15 loc) • 414 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getLoop = exports.setLoop = void 0;
let currentLoop = null;
const setLoop = (newLoop) => {
if (typeof newLoop !== 'number') {
throw new Error('--loop flag must be a number.');
}
currentLoop = newLoop;
};
exports.setLoop = setLoop;
const getLoop = () => {
return currentLoop;
};
exports.getLoop = getLoop;