"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getTextWidth = void 0;
const getTextWidth = (str, fontSize, maxLength) => {
    const length = str.length;
    const width = (Math.min(length, maxLength) * fontSize) / 2;
    // console.log(`(Math.min(${length}, ${maxLength}) * ${fontSize}) / 2`, width)
    return width;
};
exports.getTextWidth = getTextWidth;
//# sourceMappingURL=getPlainTextWidth.js.map