getBorderCharacters.js 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. "use strict";
  2. /* eslint-disable sort-keys-fix/sort-keys-fix */
  3. Object.defineProperty(exports, "__esModule", { value: true });
  4. exports.getBorderCharacters = void 0;
  5. const getBorderCharacters = (name) => {
  6. if (name === 'honeywell') {
  7. return {
  8. topBody: '═',
  9. topJoin: '╤',
  10. topLeft: '╔',
  11. topRight: '╗',
  12. bottomBody: '═',
  13. bottomJoin: '╧',
  14. bottomLeft: '╚',
  15. bottomRight: '╝',
  16. bodyLeft: '║',
  17. bodyRight: '║',
  18. bodyJoin: '│',
  19. headerJoin: '┬',
  20. joinBody: '─',
  21. joinLeft: '╟',
  22. joinRight: '╢',
  23. joinJoin: '┼',
  24. joinMiddleDown: '┬',
  25. joinMiddleUp: '┴',
  26. joinMiddleLeft: '┤',
  27. joinMiddleRight: '├',
  28. };
  29. }
  30. if (name === 'norc') {
  31. return {
  32. topBody: '─',
  33. topJoin: '┬',
  34. topLeft: '┌',
  35. topRight: '┐',
  36. bottomBody: '─',
  37. bottomJoin: '┴',
  38. bottomLeft: '└',
  39. bottomRight: '┘',
  40. bodyLeft: '│',
  41. bodyRight: '│',
  42. bodyJoin: '│',
  43. headerJoin: '┬',
  44. joinBody: '─',
  45. joinLeft: '├',
  46. joinRight: '┤',
  47. joinJoin: '┼',
  48. joinMiddleDown: '┬',
  49. joinMiddleUp: '┴',
  50. joinMiddleLeft: '┤',
  51. joinMiddleRight: '├',
  52. };
  53. }
  54. if (name === 'ramac') {
  55. return {
  56. topBody: '-',
  57. topJoin: '+',
  58. topLeft: '+',
  59. topRight: '+',
  60. bottomBody: '-',
  61. bottomJoin: '+',
  62. bottomLeft: '+',
  63. bottomRight: '+',
  64. bodyLeft: '|',
  65. bodyRight: '|',
  66. bodyJoin: '|',
  67. headerJoin: '+',
  68. joinBody: '-',
  69. joinLeft: '|',
  70. joinRight: '|',
  71. joinJoin: '|',
  72. joinMiddleDown: '+',
  73. joinMiddleUp: '+',
  74. joinMiddleLeft: '+',
  75. joinMiddleRight: '+',
  76. };
  77. }
  78. if (name === 'void') {
  79. return {
  80. topBody: '',
  81. topJoin: '',
  82. topLeft: '',
  83. topRight: '',
  84. bottomBody: '',
  85. bottomJoin: '',
  86. bottomLeft: '',
  87. bottomRight: '',
  88. bodyLeft: '',
  89. bodyRight: '',
  90. bodyJoin: '',
  91. headerJoin: '',
  92. joinBody: '',
  93. joinLeft: '',
  94. joinRight: '',
  95. joinJoin: '',
  96. joinMiddleDown: '',
  97. joinMiddleUp: '',
  98. joinMiddleLeft: '',
  99. joinMiddleRight: '',
  100. };
  101. }
  102. throw new Error('Unknown border template "' + name + '".');
  103. };
  104. exports.getBorderCharacters = getBorderCharacters;
  105. //# sourceMappingURL=getBorderCharacters.js.map