(
textStyle: TooltipOption['textStyle'],
encodedContent: string,
topGap: number
)
| 422 | } |
| 423 | |
| 424 | function wrapBlockHTML( |
| 425 | textStyle: TooltipOption['textStyle'], |
| 426 | encodedContent: string, |
| 427 | topGap: number |
| 428 | ): string { |
| 429 | const clearfix = '<div style="clear:both"></div>'; |
| 430 | const marginCSS = `margin: ${topGap}px 0 0`; |
| 431 | const tooltipLineHeight = getTooltipLineHeight(textStyle); |
| 432 | return `<div style="${marginCSS};${tooltipLineHeight};">` |
| 433 | + encodedContent + clearfix |
| 434 | + '</div>'; |
| 435 | } |
| 436 | |
| 437 | function wrapInlineNameHTML( |
| 438 | name: string, |
no test coverage detected