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

Function getRole

docs/app/js/sanddance-app.js:148057–148060  ·  view source on GitHub ↗
(spec)

Source from the content-addressed store, hash-verified

148055 return (0, _vegaUtil.isObject)(value11) && value11.signal ? value11.signal : (0, _vegaUtil.stringValue)(value11);
148056}
148057function getRole(spec) {
148058 const role = spec.role || "";
148059 return !role.indexOf("axis") || !role.indexOf("legend") || !role.indexOf("title") ? role : spec.type === GroupMark ? ScopeRole : role || MarkRole;
148060}
148061function definition(spec) {
148062 return {
148063 marktype: spec.type,

Callers 2

definitionFunction · 0.70
parseMarkFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected