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

Function fixLineStyle

src/component/helper/MapDraw.ts:112–118  ·  view source on GitHub ↗
(styleHost: { style: graphic.Path['style'] })

Source from the content-addressed store, hash-verified

110// Using fill in style if stroke not exits.
111// TODO Not sure yet. Perhaps a separate `lineStyle`?
112function fixLineStyle(styleHost: { style: graphic.Path['style'] }) {
113 const style = styleHost.style;
114 if (style) {
115 style.stroke = (style.stroke || style.fill);
116 style.fill = null;
117 }
118}
119
120class MapDraw {
121

Callers 1

createCompoundPathMethod · 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…