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

Function wrapInlineNameHTML

src/component/tooltip/tooltipMarkup.ts:437–446  ·  view source on GitHub ↗
(
    name: string,
    leftHasMarker: boolean,
    style: string
)

Source from the content-addressed store, hash-verified

435}
436
437function wrapInlineNameHTML(
438 name: string,
439 leftHasMarker: boolean,
440 style: string
441): string {
442 const marginCss = leftHasMarker ? 'margin-left:2px' : '';
443 return `<span style="${style};${marginCss}">`
444 + encodeHTML(name)
445 + '</span>';
446}
447
448function wrapInlineValueHTML(
449 valueList: string | string[],

Callers 1

buildNameValueFunction · 0.85

Calls 1

encodeHTMLFunction · 0.85

Tested by

no test coverage detected