@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.
@@ -28,4 +28,3 @@ export declare const RAIL_YS_LOOP: readonly [0.18, 0.5, 0.82];
28
28
  export declare const RAIL_YS_CARRIER: readonly [0.24, 0.54, 0.82];
29
29
  export declare const RAIL_YS_DISPATCH: readonly [0.18, 0.58, 0.82];
30
30
  export declare const GLOW_FALLOFF_EXP_ASCII = 2.2;
31
- export declare const GLOW_FALLOFF_EXP_IMAGE = 2.4;
@@ -30,7 +30,6 @@ var RAIL_YS_LOOP = [0.18, 0.5, 0.82];
30
30
  var RAIL_YS_CARRIER = [0.24, 0.54, 0.82];
31
31
  var RAIL_YS_DISPATCH = [0.18, 0.58, 0.82];
32
32
  var GLOW_FALLOFF_EXP_ASCII = 2.2;
33
- var GLOW_FALLOFF_EXP_IMAGE = 2.4;
34
33
  export {
35
34
  RAIL_YS_LOOP,
36
35
  RAIL_YS_DISPATCH,
@@ -47,7 +46,6 @@ export {
47
46
  LANE_LEN_BASE,
48
47
  LANE_INTERP_STEPS,
49
48
  LANE_CURVE_RANGE,
50
- GLOW_FALLOFF_EXP_IMAGE,
51
49
  GLOW_FALLOFF_EXP_ASCII,
52
50
  DISPATCH_PACKETS_WIDE,
53
51
  DISPATCH_PACKETS_COMPACT,
@@ -597,27 +597,20 @@ function writeCell(layer, x, y, char, fg, bg) {
597
597
  function drawFullCell(layer, x, y, bg) {
598
598
  writeCell(layer, x, y, " ", TRANSPARENT, bg);
599
599
  }
600
- function drawCornerCut(layer, x, y, char, fg) {
601
- writeCell(layer, x, y, char, fg, BACKDROP);
602
- }
603
- function drawRoundedFill(layer, left, top, right, bottom, dividerY) {
600
+ function drawPanelFill(layer, left, top, right, bottom, dividerY) {
604
601
  const bgForY = (y) => y < dividerY ? PANEL_HEADER_BG : PANEL_BG;
605
602
  for (let y = top;y <= bottom; y += 1) {
606
603
  const bg = bgForY(y);
607
604
  for (let x = left;x <= right; x += 1)
608
605
  drawFullCell(layer, x, y, bg);
609
606
  }
610
- drawCornerCut(layer, left, top, "\u2597", PANEL_HEADER_BG);
611
- drawCornerCut(layer, right, top, "\u2596", PANEL_HEADER_BG);
612
- drawCornerCut(layer, left, bottom, "\u259D", PANEL_BG);
613
- drawCornerCut(layer, right, bottom, "\u2598", PANEL_BG);
614
607
  }
615
608
  function drawAdTerminalPanel(layer, layout, panel) {
616
609
  const rect = panelCellRect(layout, panel);
617
610
  if (!rect)
618
611
  return;
619
612
  const { left, top, width, right, bottom, headerHeight, dividerY } = rect;
620
- drawRoundedFill(layer, left, top, right, bottom, dividerY);
613
+ drawPanelFill(layer, left, top, right, bottom, dividerY);
621
614
  if (dividerY > top && dividerY < bottom) {
622
615
  for (let x = left + 2;x < right - 1; x += 1) {
623
616
  writeCell(layer, x, dividerY, "\u2500", PANEL_LINE_DIM, PANEL_BG);