@remotion/studio
Version:
APIs for interacting with the Remotion Studio
13 lines (12 loc) • 402 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.draggerStyle = exports.getDecimalPlaces = void 0;
const getDecimalPlaces = (num) => {
const str = String(num);
const decimalIndex = str.indexOf('.');
return decimalIndex === -1 ? 0 : str.length - decimalIndex - 1;
};
exports.getDecimalPlaces = getDecimalPlaces;
exports.draggerStyle = {
width: 80,
};