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

Function resolveItem

docs/app/js/sanddance-app.js:123234–123247  ·  view source on GitHub ↗
(item, event, el, origin)

Source from the content-addressed store, hash-verified

123232 ];
123233}
123234function resolveItem(item, event, el, origin) {
123235 var mark = item && item.mark, mdef, p;
123236 if (mark && (mdef = Marks[mark.marktype]).tip) {
123237 p = point(event, el);
123238 p[0] -= origin[0];
123239 p[1] -= origin[1];
123240 while(item = item.mark.group){
123241 p[0] -= item.x || 0;
123242 p[1] -= item.y || 0;
123243 }
123244 item = mdef.tip(mark.items, p);
123245 }
123246 return item;
123247}
123248/**
123249 * Create a new Handler instance.
123250 * @param {object} [customLoader] - Optional loader instance for

Callers 1

handleTooltipFunction · 0.70

Calls 1

pointFunction · 0.70

Tested by

no test coverage detected