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