()
| 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); |
no test coverage detected