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

Method render

src/component/geo/GeoView.ts:48–68  ·  view source on GitHub ↗
(
        geoModel: GeoModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload
    )

Source from the content-addressed store, hash-verified

46 }
47
48 render(
49 geoModel: GeoModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload
50 ): void {
51 this._model = geoModel;
52
53 if (!geoModel.get('show')) {
54 this._mapDraw && this._mapDraw.remove();
55 this._mapDraw = null;
56 return;
57 }
58
59 if (!this._mapDraw) {
60 this._mapDraw = new MapDraw(api);
61 }
62 const mapDraw = this._mapDraw;
63 mapDraw.draw(geoModel, ecModel, api, this, payload);
64 mapDraw.group.on('click', this._handleRegionClick, this);
65 mapDraw.group.silent = geoModel.get('silent');
66 this.group.add(mapDraw.group);
67 this.updateSelectStatus(geoModel, ecModel, api);
68 }
69
70 /**
71 * @implements RoamHostView['__updateOnOwnRoam']

Callers

nothing calls this directly

Calls 5

updateSelectStatusMethod · 0.95
removeMethod · 0.65
drawMethod · 0.65
getMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected