UNPKG

roko-date-picker

Version:
14 lines (13 loc) 658 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.screenSize = exports.verticalScale = exports.scale = void 0; const layout_1 = require("../layout"); //Guideline sizes are based on standard ~5" screen mobile device const guidelineBaseWidth = 350; const guidelineBaseHeight = 680; const screenSize = Math.sqrt(layout_1.layout.width * layout_1.layout.height) / 100; exports.screenSize = screenSize; const scale = (size) => (layout_1.layout.width / guidelineBaseWidth) * size; exports.scale = scale; const verticalScale = (size) => (layout_1.layout.height / guidelineBaseHeight) * size; exports.verticalScale = verticalScale;