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

Function getStyleMapper

src/visual/style.ts:42–50  ·  view source on GitHub ↗
(seriesModel: SeriesModel, stylePath: string)

Source from the content-addressed store, hash-verified

40} as const;
41
42function getStyleMapper(seriesModel: SeriesModel, stylePath: string) {
43 const styleMapper = seriesModel.visualStyleMapper
44 || defaultStyleMappers[stylePath as 'itemStyle' | 'lineStyle'];
45 if (!styleMapper) {
46 console.warn(`Unknown style type '${stylePath}'.`);
47 return defaultStyleMappers.itemStyle;
48 }
49 return styleMapper;
50}
51
52function getDefaultColorKey(seriesModel: SeriesModel, stylePath: string): 'stroke' | 'fill' {
53 // return defaultColorKey[stylePath] ||

Callers 1

resetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected