* Get thumbnail data structure only if supported.
()
| 334 | * Get thumbnail data structure only if supported. |
| 335 | */ |
| 336 | private _getThumbnailInfo(): { |
| 337 | bridge: ThumbnailBridge |
| 338 | coordSys: View |
| 339 | } | NullUndefined { |
| 340 | const model = this._model; |
| 341 | const coordSys = model.coordinateSystem; |
| 342 | if (coordSys.type !== 'view') { |
| 343 | return; |
| 344 | } |
| 345 | const bridge = getThumbnailBridge(model); |
| 346 | if (!bridge) { |
| 347 | return; |
| 348 | } |
| 349 | return { |
| 350 | bridge, |
| 351 | coordSys: coordSys as View, |
| 352 | }; |
| 353 | } |
| 354 | |
| 355 | private _updateThumbnailWindow() { |
| 356 | const info = this._getThumbnailInfo(); |
no test coverage detected