MCPcopy Create free account
hub / github.com/microsoft/SandDance / channelCaption

Function channelCaption

docs/app/js/sanddance-app.js:123991–123994  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

123989 }
123990}
123991function channelCaption(props) {
123992 props = props.map((p)=>p + (p === "fill" || p === "stroke" ? " color" : ""));
123993 return props.length < 2 ? props[0] : props.slice(0, -1).join(", ") + " and " + (0, _vegaUtil.peek)(props);
123994}
123995function capitalize(s) {
123996 return s.length ? s[0].toUpperCase() + s.slice(1) : s;
123997}

Callers 1

legendCaptionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected