()
| 191 | private readonly _destroyed = new Subject<void>(); |
| 192 | |
| 193 | constructor() { |
| 194 | const ngZone = inject(NgZone); |
| 195 | |
| 196 | this.dataStream.subscribe(data => { |
| 197 | this._data = data; |
| 198 | this._onRenderedDataChange(); |
| 199 | }); |
| 200 | this._viewport.renderedRangeStream.pipe(takeUntil(this._destroyed)).subscribe(range => { |
| 201 | this._renderedRange = range; |
| 202 | if (this.viewChange.observers.length) { |
| 203 | ngZone.run(() => this.viewChange.next(this._renderedRange)); |
| 204 | } |
| 205 | this._onRenderedDataChange(); |
| 206 | }); |
| 207 | this._viewport.attach(this); |
| 208 | } |
| 209 | |
| 210 | /** |
| 211 | * Measures the combined size (width for horizontal orientation, height for vertical) of all items |
nothing calls this directly
no test coverage detected