MCPcopy
hub / github.com/tdewolff/minify / wrapInlineValueHTML

Function wrapInlineValueHTML

_benchmarks/sample_echarts.js:22164–22172  ·  view source on GitHub ↗
(valueList, alignRight, valueCloseToMarker, style)

Source from the content-addressed store, hash-verified

22162 }
22163
22164 function wrapInlineValueHTML(valueList, alignRight, valueCloseToMarker, style) {
22165 // Do not too close to marker, considering there are multiple values separated by spaces.
22166 var paddingStr = valueCloseToMarker ? '10px' : '20px';
22167 var alignCSS = alignRight ? "float:right;margin-left:" + paddingStr : '';
22168 return "<span style=\"" + alignCSS + ";" + style + "\">" // Value has commas inside, so use ' ' as delimiter for multiple values.
22169 + map(valueList, function (value) {
22170 return encodeHTML(value);
22171 }).join('&nbsp;&nbsp;') + '</span>';
22172 }
22173
22174 function wrapInlineNameRichText(ctx, name, style) {
22175 return ctx.markupStyleCreator.wrapRichTextStyle(name, style);

Callers 1

sample_echarts.jsFile · 0.85

Calls 2

encodeHTMLFunction · 0.85
mapFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…