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

Method _updateBridge

src/component/thumbnail/ThumbnailModel.ts:108–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106 }
107
108 private _updateBridge() {
109 const bridge = this._birdge = this._birdge || new ThumbnailBridgeImpl(this);
110
111 // Clear all, in case of option changed.
112 this._target = null;
113 this.ecModel.eachSeries(series => {
114 injectThumbnailBridge(series, null);
115 });
116
117 if (this.shouldShow()) {
118 const target = this.getTarget();
119 // If a component is targeted by more than one thumbnails, simply only the last one works.
120 injectThumbnailBridge(target.baseMapProvider, bridge);
121 }
122 }
123
124 shouldShow() {
125 return this.getShallow('show', true);

Callers 1

optionUpdatedMethod · 0.95

Calls 4

shouldShowMethod · 0.95
getTargetMethod · 0.95
injectThumbnailBridgeFunction · 0.90
eachSeriesMethod · 0.80

Tested by

no test coverage detected