Files
ETB/ETB-FrontEnd/node_modules/@mui/x-charts/esm/internals/getWordsByLines.js
Iliyan Angelov 306b20e24a Frontend start
2025-09-14 00:54:48 +03:00

14 lines
345 B
JavaScript

import _extends from "@babel/runtime/helpers/esm/extends";
import { getStringSize } from "./domUtils.js";
export function getWordsByLines({
style,
needsComputation,
text
}) {
return text.split('\n').map(subText => _extends({
text: subText
}, needsComputation ? getStringSize(subText, style) : {
width: 0,
height: 0
}));
}