(e3, t3, i3)
| 1303 | this._rowContainer.classList.add(S), this.renderRows(this._bufferService.buffer.y, this._bufferService.buffer.y); |
| 1304 | } |
| 1305 | handleSelectionChanged(e3, t3, i3) { |
| 1306 | if (this._selectionContainer.replaceChildren(), this._rowFactory.handleSelectionChanged(e3, t3, i3), this.renderRows(0, this._bufferService.rows - 1), !e3 || !t3) return; |
| 1307 | this._selectionRenderModel.update(this._terminal, e3, t3, i3); |
| 1308 | const s3 = this._selectionRenderModel.viewportStartRow, r2 = this._selectionRenderModel.viewportEndRow, n2 = this._selectionRenderModel.viewportCappedStartRow, o2 = this._selectionRenderModel.viewportCappedEndRow; |
| 1309 | if (n2 >= this._bufferService.rows || o2 < 0) return; |
| 1310 | const a2 = this._document.createDocumentFragment(); |
| 1311 | if (i3) { |
| 1312 | const i4 = e3[0] > t3[0]; |
| 1313 | a2.appendChild(this._createSelectionElement(n2, i4 ? t3[0] : e3[0], i4 ? e3[0] : t3[0], o2 - n2 + 1)); |
| 1314 | } else { |
| 1315 | const i4 = s3 === n2 ? e3[0] : 0, h2 = n2 === r2 ? t3[0] : this._bufferService.cols; |
| 1316 | a2.appendChild(this._createSelectionElement(n2, i4, h2)); |
| 1317 | const c2 = o2 - n2 - 1; |
| 1318 | if (a2.appendChild(this._createSelectionElement(n2 + 1, 0, this._bufferService.cols, c2)), n2 !== o2) { |
| 1319 | const e4 = r2 === o2 ? t3[0] : this._bufferService.cols; |
| 1320 | a2.appendChild(this._createSelectionElement(o2, 0, e4)); |
| 1321 | } |
| 1322 | } |
| 1323 | this._selectionContainer.appendChild(a2); |
| 1324 | } |
| 1325 | _createSelectionElement(e3, t3, i3, s3 = 1) { |
| 1326 | const r2 = this._document.createElement("div"), n2 = t3 * this.dimensions.css.cell.width; |
| 1327 | let o2 = this.dimensions.css.cell.width * (i3 - t3); |
no test coverage detected