minimal adjustments
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / table / dist / getBorderCharacters.js.flow
1 /* eslint-disable sort-keys-fix/sort-keys-fix */
2
3 /**
4  * @typedef border
5  * @property {string} topBody
6  * @property {string} topJoin
7  * @property {string} topLeft
8  * @property {string} topRight
9  * @property {string} bottomBody
10  * @property {string} bottomJoin
11  * @property {string} bottomLeft
12  * @property {string} bottomRight
13  * @property {string} bodyLeft
14  * @property {string} bodyRight
15  * @property {string} bodyJoin
16  * @property {string} joinBody
17  * @property {string} joinLeft
18  * @property {string} joinRight
19  * @property {string} joinJoin
20  */
21
22 /**
23  * @param {string} name
24  * @returns {border}
25  */
26 export default (name) => {
27   if (name === 'honeywell') {
28     return {
29       topBody: '═',
30       topJoin: '╤',
31       topLeft: '╔',
32       topRight: '╗',
33
34       bottomBody: '═',
35       bottomJoin: '╧',
36       bottomLeft: '╚',
37       bottomRight: '╝',
38
39       bodyLeft: '║',
40       bodyRight: '║',
41       bodyJoin: '│',
42
43       joinBody: '─',
44       joinLeft: '╟',
45       joinRight: '╢',
46       joinJoin: '┼',
47     };
48   }
49
50   if (name === 'norc') {
51     return {
52       topBody: '─',
53       topJoin: '┬',
54       topLeft: '┌',
55       topRight: '┐',
56
57       bottomBody: '─',
58       bottomJoin: '┴',
59       bottomLeft: '└',
60       bottomRight: '┘',
61
62       bodyLeft: '│',
63       bodyRight: '│',
64       bodyJoin: '│',
65
66       joinBody: '─',
67       joinLeft: '├',
68       joinRight: '┤',
69       joinJoin: '┼',
70     };
71   }
72
73   if (name === 'ramac') {
74     return {
75       topBody: '-',
76       topJoin: '+',
77       topLeft: '+',
78       topRight: '+',
79
80       bottomBody: '-',
81       bottomJoin: '+',
82       bottomLeft: '+',
83       bottomRight: '+',
84
85       bodyLeft: '|',
86       bodyRight: '|',
87       bodyJoin: '|',
88
89       joinBody: '-',
90       joinLeft: '|',
91       joinRight: '|',
92       joinJoin: '|',
93     };
94   }
95
96   if (name === 'void') {
97     return {
98       topBody: '',
99       topJoin: '',
100       topLeft: '',
101       topRight: '',
102
103       bottomBody: '',
104       bottomJoin: '',
105       bottomLeft: '',
106       bottomRight: '',
107
108       bodyLeft: '',
109       bodyRight: '',
110       bodyJoin: '',
111
112       joinBody: '',
113       joinLeft: '',
114       joinRight: '',
115       joinJoin: '',
116     };
117   }
118
119   throw new Error('Unknown border template "' + name + '".');
120 };