"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "getHeightAsNumber", {
    enumerable: true,
    get: function() {
        return getHeightAsNumber;
    }
});
const DEFAULT_HEIGHT = 320;
const getHeightAsNumber = (height)=>{
    if (!height) return DEFAULT_HEIGHT;
    if (typeof height === 'number') return height;
    const rootFontSize = parseFloat(getComputedStyle(document.documentElement).fontSize);
    if (height.endsWith('rem')) {
        const remValue = parseFloat(height);
        return remValue * rootFontSize;
    }
    if (height.endsWith('px')) {
        return parseFloat(height);
    }
    return DEFAULT_HEIGHT;
};
