()
| 434 | // ----------------------------------------------------------------------- |
| 435 | |
| 436 | destroy(): void { |
| 437 | this.teardownAdaptiveResize() |
| 438 | this.cleanupScrollObserver?.() |
| 439 | this.cleanupScrollObserver = undefined |
| 440 | this.cleanupListMount?.() |
| 441 | this.cleanupListMount = undefined |
| 442 | this.ensureListSlideMountedFn = undefined |
| 443 | this.mountedSlides.clear() |
| 444 | for (const handle of this.slideHandles.values()) { |
| 445 | handle.dispose() |
| 446 | } |
| 447 | this.slideHandles.clear() |
| 448 | this.disposeAllCharts() |
| 449 | for (const url of this.mediaUrlCache.values()) { |
| 450 | URL.revokeObjectURL(url) |
| 451 | } |
| 452 | this.mediaUrlCache.clear() |
| 453 | this.container.innerHTML = '' |
| 454 | this.presentation = null |
| 455 | this.activeRenderMode = null |
| 456 | } |
| 457 | |
| 458 | [Symbol.dispose](): void { |
| 459 | this.destroy() |
no test coverage detected