@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.
@@ -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 drawCornerCut(layer, x, y, char, fg) {
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
- drawRoundedFill(layer, left, top, right, bottom, dividerY);
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);