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

Function ariaGuide

docs/app/js/sanddance-app.js:123965–123972  ·  view source on GitHub ↗
(mark, opt)

Source from the content-addressed store, hash-verified

123963 return bundle(recurse1 ? GRAPHICS_OBJECT : GRAPHICS_SYMBOL, `${type21} mark container`, mark.description);
123964}
123965function ariaGuide(mark, opt) {
123966 try {
123967 const item = mark.items[0], caption = opt.caption || (()=>"");
123968 return bundle(opt.role || GRAPHICS_SYMBOL, opt.desc, item.description || caption(item));
123969 } catch (err) {
123970 return null;
123971 }
123972}
123973function titleCaption(item) {
123974 return (0, _vegaUtil.array)(item.text).join(" ");
123975}

Callers 1

ariaMarkAttributesFunction · 0.70

Calls 1

bundleFunction · 0.70

Tested by

no test coverage detected