MCPcopy Create free account
hub / github.com/alignoth/alignoth / handleTooltip

Method handleTooltip

resources/vega.min.js:14223–14239  ·  view source on GitHub ↗
(t, e, n)

Source from the content-addressed store, hash-verified

14221 .catch(() => {});
14222 }
14223 handleTooltip(t, e, n) {
14224 if (e && null != e.tooltip) {
14225 e = (function (t, e, n, r) {
14226 var i,
14227 o,
14228 a = t && t.mark;
14229 if (a && (i = Hy[a.marktype]).tip) {
14230 for ((o = av(e, n))[0] -= r[0], o[1] -= r[1]; (t = t.mark.group); )
14231 ((o[0] -= t.x || 0), (o[1] -= t.y || 0));
14232 t = i.tip(a.items, o);
14233 }
14234 return t;
14235 })(e, t, this.canvas(), this._origin);
14236 const r = (n && e && e.tooltip) || null;
14237 this._tooltip.call(this._obj, this, t, e, r);
14238 }
14239 }
14240 getItemBoundingClientRect(t) {
14241 const e = this.canvas();
14242 if (!e) return;

Callers 2

fireMethod · 0.80
constructorMethod · 0.80

Calls 2

canvasMethod · 0.95
avFunction · 0.85

Tested by

no test coverage detected