@crazyhappyone/dsh-tui 0.1.0-alpha.13 → 0.1.0-alpha.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +6 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -71655,14 +71655,17 @@ function transcriptOverlay(tier, synchronizedFrameEnded) {
|
|
|
71655
71655
|
}
|
|
71656
71656
|
return cells === "" ? "" : `\x1B7${cells}\x1B8`;
|
|
71657
71657
|
}
|
|
71658
|
+
const railCol = next.geometry.rail?.col ?? next.geometry.columns;
|
|
71659
|
+
const guardCol = railCol > 1 ? railCol - 1 : railCol;
|
|
71658
71660
|
for (const change of diff2.changes) {
|
|
71659
71661
|
const nextWidth = change.line === void 0 ? 0 : change.line.backgroundColumns ?? change.line.displayWidth;
|
|
71660
|
-
const
|
|
71662
|
+
const targetColumns = Math.max(change.clearColumns, guardCol - change.col);
|
|
71663
|
+
const padColumns = targetColumns - nextWidth;
|
|
71661
71664
|
if (change.line !== void 0) {
|
|
71662
71665
|
cells += `\x1B[${String(change.row)};${String(change.col)}H` + paintPhysicalLine(change.line, tier);
|
|
71663
71666
|
}
|
|
71664
|
-
if (
|
|
71665
|
-
cells += `\x1B[${String(change.row)};${String(change.col + nextWidth)}H` + styled(" ".repeat(
|
|
71667
|
+
if (padColumns > 0) {
|
|
71668
|
+
cells += `\x1B[${String(change.row)};${String(change.col + nextWidth)}H` + styled(" ".repeat(padColumns), "bg", tier);
|
|
71666
71669
|
}
|
|
71667
71670
|
}
|
|
71668
71671
|
return cells === "" ? "" : `\x1B7${cells}\x1B8`;
|