* Create a new Handler instance. * @param {object} [customLoader] - Optional loader instance for * href URL sanitization. If not specified, a standard loader * instance will be generated. * @param {function} [customTooltip] - Optional tooltip handler * function for custom tooltip display.
(customLoader, customTooltip)
| 123254 | * function for custom tooltip display. |
| 123255 | * @constructor |
| 123256 | */ function Handler(customLoader, customTooltip) { |
| 123257 | this._active = null; |
| 123258 | this._handlers = {}; |
| 123259 | this._loader = customLoader || (0, _vegaLoader.loader)(); |
| 123260 | this._tooltip = customTooltip || defaultTooltip; |
| 123261 | } // The default tooltip display handler. |
| 123262 | // Sets the HTML title attribute on the visualization container. |
| 123263 | function defaultTooltip(handler, event, item, value6) { |
| 123264 | handler.element().setAttribute("title", value6 || ""); |
nothing calls this directly
no outgoing calls
no test coverage detected