MCPcopy
hub / github.com/apache/echarts / wrapVar

Function wrapVar

src/util/format.ts:112–114  ·  view source on GitHub ↗
(varName: string, seriesIdx?: number)

Source from the content-addressed store, hash-verified

110const TPL_VAR_ALIAS = ['a', 'b', 'c', 'd', 'e', 'f', 'g'];
111
112const wrapVar = function (varName: string, seriesIdx?: number): string {
113 return '{' + varName + (seriesIdx == null ? '' : seriesIdx) + '}';
114};
115
116export interface TplFormatterParam extends Dictionary<any> {
117 // Param name list for mapping `a`, `b`, `c`, `d`, `e`

Callers 1

formatTplFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…