MCPcopy
hub / github.com/apache/echarts / _showOrMove

Method _showOrMove

src/component/tooltip/TooltipView.ts:517–531  ·  view source on GitHub ↗
(
        tooltipModel: Model<TooltipOption>,
        cb: () => void
    )

Source from the content-addressed store, hash-verified

515 }
516
517 private _showOrMove(
518 tooltipModel: Model<TooltipOption>,
519 cb: () => void
520 ) {
521 // showDelay is used in this case: tooltip.enterable is set
522 // as true. User intent to move mouse into tooltip and click
523 // something. `showDelay` makes it easier to enter the content
524 // but tooltip do not move immediately.
525 const delay = tooltipModel.get('showDelay');
526 cb = bind(cb, this);
527 clearTimeout(this._showTimout);
528 delay > 0
529 ? (this._showTimout = setTimeout(cb, delay) as any)
530 : cb();
531 }
532
533 private _showAxisTooltip(
534 dataByCoordSys: DataByCoordSys[],

Callers 3

_showAxisTooltipMethod · 0.95

Calls 2

cbFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected