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

Function lineArray

docs/app/js/sanddance-app.js:122871–122873  ·  view source on GitHub ↗
(_)

Source from the content-addressed store, hash-verified

122869 return item.lineHeight != null ? item.lineHeight : fontSize(item) + 2;
122870}
122871function lineArray(_) {
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}

Callers 1

textLinesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected