MCPcopy Index your code
hub / github.com/apache/echarts / normalize

Function normalize

src/chart/graph/edgeVisual.ts:27–32  ·  view source on GitHub ↗
(a: string | number | (string | number)[])

Source from the content-addressed store, hash-verified

25function normalize(a: string | string[]): string[];
26function normalize(a: number | number[]): number[];
27function normalize(a: string | number | (string | number)[]): (string | number)[] {
28 if (!(a instanceof Array)) {
29 a = [a, a];
30 }
31 return a;
32}
33
34export const graphEdgeVisualStageHandler = createSimpleOverallStageHandler(SERIES_TYPE_GRAPH, graphEdgeVisual);
35

Callers 2

graphEdgeVisualFunction · 0.70
updateMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…