theta-client-react-native
Version:
This library provides a way to control RICOH THETA using.
42 lines (39 loc) • 1.11 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.OffDelayEnum = void 0;
exports.offDelayToSeconds = offDelayToSeconds;
/** Length of standby time before the camera automatically powers OFF. */
const OffDelayEnum = exports.OffDelayEnum = {
/** Do not turn power off. */
DISABLE: 'DISABLE',
/** Power off after 5 minutes.(300sec) */
OFF_DELAY_5M: 'OFF_DELAY_5M',
/** Power off after 10 minutes.(600sec) */
OFF_DELAY_10M: 'OFF_DELAY_10M',
/** Power off after 15 minutes.(900sec) */
OFF_DELAY_15M: 'OFF_DELAY_15M',
/** Power off after 30 minutes.(1,800sec) */
OFF_DELAY_30M: 'OFF_DELAY_30M'
};
/** type definition of OffDelayEnum */
/**
* Get time(seconds) from OffDelayEnum
* @param offDelay enum of OffDelay
* @returns time(seconds)
*/
function offDelayToSeconds(offDelay) {
if (typeof offDelay === 'number') {
return offDelay;
}
const table = {
DISABLE: 0,
OFF_DELAY_5M: 300,
OFF_DELAY_10M: 600,
OFF_DELAY_15M: 900,
OFF_DELAY_30M: 1800
};
return table[offDelay];
}
//# sourceMappingURL=option-off-delay.js.map