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

Function handleTooltip

docs/app/js/sanddance-app.js:123372–123378  ·  view source on GitHub ↗

* Handle tooltip display in response to an item.tooltip value. * @param {Event} event - The event triggering tooltip display. * @param {Item} item - The scenegraph item. * @param {boolean} show - A boolean flag indicating whether * to show or hide a tooltip for the given item.

(event, item, show)

Source from the content-addressed store, hash-verified

123370 * @param {boolean} show - A boolean flag indicating whether
123371 * to show or hide a tooltip for the given item.
123372 */ handleTooltip (event, item, show) {
123373 if (item && item.tooltip != null) {
123374 item = resolveItem(item, event, this.canvas(), this._origin);
123375 const value7 = show && item && item.tooltip || null;
123376 this._tooltip.call(this._obj, this, event, item, value7);
123377 }
123378 },
123379 /**
123380 * Returns the size of a scenegraph item and its position relative
123381 * to the viewport.

Callers

nothing calls this directly

Calls 1

resolveItemFunction · 0.70

Tested by

no test coverage detected