@h-rig/cli 0.0.6-alpha.85 → 0.0.6-alpha.86
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/bin/rig.js +9 -1018
- package/dist/src/app-opentui/bootstrap.js +9 -1018
- package/dist/src/app-opentui/index.js +7 -1024
- package/dist/src/app-opentui/react/App.js +2 -969
- package/dist/src/app-opentui/react/Backdrop.js +2 -9
- package/dist/src/app-opentui/react/ChromeHost.js +0 -1039
- package/dist/src/app-opentui/react/launch.js +2 -969
- package/dist/src/app-opentui/render/constants.d.ts +0 -1
- package/dist/src/app-opentui/render/constants.js +0 -2
- package/dist/src/app-opentui/render/graphics.js +2 -9
- package/dist/src/app-opentui/runtime.js +8 -1025
- package/package.json +8 -8
- package/dist/src/app-opentui/render/image-visual-layer-worker.d.ts +0 -1
- package/dist/src/app-opentui/render/image-visual-layer-worker.js +0 -1084
- package/dist/src/app-opentui/render/image-visual-layer.d.ts +0 -109
- package/dist/src/app-opentui/render/image-visual-layer.js +0 -1068
- package/dist/src/app-opentui/terminal-capabilities.d.ts +0 -7
- package/dist/src/app-opentui/terminal-capabilities.js +0 -15
|
@@ -621,27 +621,20 @@ function writeCell(layer, x, y, char, fg, bg) {
|
|
|
621
621
|
function drawFullCell(layer, x, y, bg) {
|
|
622
622
|
writeCell(layer, x, y, " ", TRANSPARENT, bg);
|
|
623
623
|
}
|
|
624
|
-
function
|
|
625
|
-
writeCell(layer, x, y, char, fg, BACKDROP);
|
|
626
|
-
}
|
|
627
|
-
function drawRoundedFill(layer, left, top, right, bottom, dividerY) {
|
|
624
|
+
function drawPanelFill(layer, left, top, right, bottom, dividerY) {
|
|
628
625
|
const bgForY = (y) => y < dividerY ? PANEL_HEADER_BG : PANEL_BG;
|
|
629
626
|
for (let y = top;y <= bottom; y += 1) {
|
|
630
627
|
const bg = bgForY(y);
|
|
631
628
|
for (let x = left;x <= right; x += 1)
|
|
632
629
|
drawFullCell(layer, x, y, bg);
|
|
633
630
|
}
|
|
634
|
-
drawCornerCut(layer, left, top, "\u2597", PANEL_HEADER_BG);
|
|
635
|
-
drawCornerCut(layer, right, top, "\u2596", PANEL_HEADER_BG);
|
|
636
|
-
drawCornerCut(layer, left, bottom, "\u259D", PANEL_BG);
|
|
637
|
-
drawCornerCut(layer, right, bottom, "\u2598", PANEL_BG);
|
|
638
631
|
}
|
|
639
632
|
function drawAdTerminalPanel(layer, layout, panel) {
|
|
640
633
|
const rect = panelCellRect(layout, panel);
|
|
641
634
|
if (!rect)
|
|
642
635
|
return;
|
|
643
636
|
const { left, top, width, right, bottom, headerHeight, dividerY } = rect;
|
|
644
|
-
|
|
637
|
+
drawPanelFill(layer, left, top, right, bottom, dividerY);
|
|
645
638
|
if (dividerY > top && dividerY < bottom) {
|
|
646
639
|
for (let x = left + 2;x < right - 1; x += 1) {
|
|
647
640
|
writeCell(layer, x, dividerY, "\u2500", PANEL_LINE_DIM, PANEL_BG);
|