MCPcopy Create free account
hub / github.com/apache/echarts / wrapBlockHTML

Function wrapBlockHTML

src/component/tooltip/tooltipMarkup.ts:424–435  ·  view source on GitHub ↗
(
    textStyle: TooltipOption['textStyle'],
    encodedContent: string,
    topGap: number
)

Source from the content-addressed store, hash-verified

422}
423
424function 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
437function wrapInlineNameHTML(
438 name: string,

Callers 2

buildSectionFunction · 0.85
buildNameValueFunction · 0.85

Calls 1

getTooltipLineHeightFunction · 0.85

Tested by

no test coverage detected