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

Function textValue

docs/app/js/sanddance-app.js:122881–122884  ·  view source on GitHub ↗
(item, line1)

Source from the content-addressed store, hash-verified

122879 return ((0, _vegaUtil.isArray)(tl3) ? tl3.length - 1 : 0) * lineHeight(item);
122880}
122881function textValue(item, line1) {
122882 const text5 = line1 == null ? "" : (line1 + "").trim();
122883 return item.limit > 0 && text5.length ? truncate(item, text5) : text5;
122884}
122885function widthGetter(item) {
122886 if (textMetrics.width === measureWidth) {
122887 // we are using canvas

Callers 5

estimateWidthFunction · 0.70
measureWidthFunction · 0.70
drawFunction · 0.70
textFunction · 0.70
processFunction · 0.70

Calls 1

truncateFunction · 0.70

Tested by

no test coverage detected