(
tooltipModel: Model<TooltipOption>,
cb: () => void
)
| 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[], |
no test coverage detected