This commit is contained in:
Ling53666
2025-08-18 09:11:51 +08:00
commit 02554225da
2516 changed files with 133155 additions and 0 deletions

View File

@ -0,0 +1,15 @@
var getLineWidthFlex = function getLineWidthFlex(textPosition, text) {
if (!text) {
return [1, 0];
}
if (textPosition === 'left') {
return [1, 5];
}
if (textPosition === 'right') {
return [5, 1];
}
return [1, 1];
};
export default {
getLineWidthFlex: getLineWidthFlex
};