digital-clock-react
Version:
This NPM package presents a digital-clock component for ReactJS applications, it offers intuitive and visually appealing clock feature with easy integration capabilities.
46 lines (44 loc) • 969 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.TRAPEZOIDS = exports.DAYS_ARRAY = exports.CLOCK_SIZES = exports.ACTIVE_LINES_BY_NUMBER = void 0;
const DAYS_ARRAY = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
exports.DAYS_ARRAY = DAYS_ARRAY;
const TRAPEZOIDS = [1, 2, 3, 4, 5, 6, 7];
/*
* +--d1--+
* | |
* d2 d3
* | |
* +--d4--+
* | |
* d5 d6
* | |
* +--d7--+
*/
exports.TRAPEZOIDS = TRAPEZOIDS;
const ACTIVE_LINES_BY_NUMBER = {
0: [1, 2, 3, 5, 6, 7],
1: [3, 6],
2: [1, 3, 4, 5, 7],
3: [1, 3, 4, 6, 7],
4: [2, 3, 4, 6],
5: [1, 2, 4, 6, 7],
6: [1, 2, 4, 5, 6, 7],
7: [1, 3, 6],
8: [1, 2, 3, 4, 5, 6, 7],
9: [1, 2, 3, 4, 6, 7]
};
exports.ACTIVE_LINES_BY_NUMBER = ACTIVE_LINES_BY_NUMBER;
const CLOCK_SIZES = {
small: {
width: "200px",
height: "80px"
},
medium: {
width: "250px",
height: "110px"
}
};
exports.CLOCK_SIZES = CLOCK_SIZES;