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

Function resetTooltipForRegion

src/component/helper/MapDraw.ts:803–819  ·  view source on GitHub ↗
(
    mapOrGeoModel: MapOrGeoModel,
    data: SeriesData | NullUndefined,
    el: Element,
    regionName: string,
    regionModel: RegionModel
)

Source from the content-addressed store, hash-verified

801}
802
803function resetTooltipForRegion(
804 mapOrGeoModel: MapOrGeoModel,
805 data: SeriesData | NullUndefined,
806 el: Element,
807 regionName: string,
808 regionModel: RegionModel
809): void {
810 if (!data) {
811 graphic.setTooltipConfig({
812 el: el,
813 componentModel: mapOrGeoModel,
814 itemName: regionName,
815 // @ts-ignore FIXME:TS fix the "compatible with each other"?
816 itemTooltipOption: regionModel.get('tooltip')
817 });
818 }
819}
820
821function resetStateTriggerForRegion(
822 mapOrGeoModel: MapOrGeoModel,

Callers 2

_buildGeoJSONMethod · 0.85
_buildSVGMethod · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…