MCPcopy Index your code
hub / github.com/microsoft/SandDance / textLines

Function textLines

docs/app/js/sanddance-app.js:122874–122876  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

122872 return (0, _vegaUtil.isArray)(_) ? _.length > 1 ? _ : _[0] : _;
122873}
122874function textLines(item) {
122875 return lineArray(item.lineBreak && item.text && !(0, _vegaUtil.isArray)(item.text) ? item.text.split(item.lineBreak) : item.text);
122876}
122877function multiLineOffset(item) {
122878 const tl3 = textLines(item);
122879 return ((0, _vegaUtil.isArray)(tl3) ? tl3.length - 1 : 0) * lineHeight(item);

Callers 5

multiLineOffsetFunction · 0.70
boundFunction · 0.70
drawFunction · 0.70
textFunction · 0.70
processFunction · 0.70

Calls 1

lineArrayFunction · 0.70

Tested by

no test coverage detected