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

Function preFetchFromExtra

src/chart/custom/CustomView.ts:883–891  ·  view source on GitHub ↗
(extra: ZRStyleProps, itemStyle: ItemStyleProps)

Source from the content-addressed store, hash-verified

881 }
882
883 function preFetchFromExtra(extra: ZRStyleProps, itemStyle: ItemStyleProps): void {
884 // A trick to retrieve those props firstly, which are used to
885 // apply auto inside fill/stroke in `convertToEC4StyleForCustomSerise`.
886 // (It's not reasonable but only for a degree of compat)
887 if (extra) {
888 (extra as any).textFill && ((itemStyle as any).textFill = (extra as any).textFill);
889 (extra as any).textPosition && ((itemStyle as any).textPosition = (extra as any).textPosition);
890 }
891 }
892
893 /**
894 * @public

Callers 2

styleFunction · 0.85
styleEmphasisFunction · 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…