MCPcopy Create free account
hub / github.com/HtmlUnit/htmlunit / breakText

Function breakText

src/test/resources/libraries/html2canvas/html2canvas.js:4462–4464  ·  view source on GitHub ↗
(value, styles)

Source from the content-addressed store, hash-verified

4460 return breakWords(value, styles);
4461 };
4462 var breakText = function (value, styles) {
4463 return styles.letterSpacing !== 0 ? segmentGraphemes(value) : segmentWords(value, styles);
4464 };
4465 // https://drafts.csswg.org/css-text/#word-separator
4466 var wordSeparators = [0x0020, 0x00a0, 0x1361, 0x10100, 0x10101, 0x1039, 0x1091];
4467 var breakWords = function (str, styles) {

Callers 1

parseTextBoundsFunction · 0.85

Calls 2

segmentGraphemesFunction · 0.85
segmentWordsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…