"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.unitPxToRPX = void 0;
var config_1 = require("../../config/config");
var unit = function (number) {
    if (number === void 0) { number = 0; }
    var parseNumber = unit.ratio * Number(number);
    return parseNumber ? parseNumber : number;
};
function unitPxToRPX(number) {
    if (number === void 0) { number = 0; }
    var parseNumber = Number(number) / unit.ratio;
    return parseNumber ? parseNumber : number;
}
exports.unitPxToRPX = unitPxToRPX;
unit.ratio = config_1.default.system.screenWidth / 750;
exports.default = unit;