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

Function visitMark

docs/app/js/sanddance-app.js:124836–124841  ·  view source on GitHub ↗
(mark, box, filter)

Source from the content-addressed store, hash-verified

124834 return hits;
124835}
124836function visitMark(mark, box, filter) {
124837 // process if bounds intersect and if
124838 // (1) mark is a group mark (so we must recurse), or
124839 // (2) mark is interactive and passes filter
124840 return mark.bounds && box.intersects(mark.bounds) && (mark.marktype === "group" || mark.interactive !== false && (!filter || filter(mark)));
124841}
124842function intersectGroup(group9, box, filter, hits) {
124843 // test intersect against group
124844 // skip groups by default unless filter says otherwise

Callers 1

intersectMarkFunction · 0.70

Calls 1

filterFunction · 0.70

Tested by

no test coverage detected