forked from montagejs/collections
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtree-log.js
40 lines (34 loc) · 758 Bytes
/
tree-log.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
"use strict";
module.exports = TreeLog;
function TreeLog() {
}
TreeLog.ascii = {
intersection: "+",
through: "-",
branchUp: "+",
branchDown: "+",
fromBelow: ".",
fromAbove: "'",
fromBoth: "+",
strafe: "|"
};
TreeLog.unicodeRound = {
intersection: "\u254b",
through: "\u2501",
branchUp: "\u253b",
branchDown: "\u2533",
fromBelow: "\u256d", // round corner
fromAbove: "\u2570", // round corner
fromBoth: "\u2523",
strafe: "\u2503"
};
TreeLog.unicodeSharp = {
intersection: "\u254b",
through: "\u2501",
branchUp: "\u253b",
branchDown: "\u2533",
fromBelow: "\u250f", // sharp corner
fromAbove: "\u2517", // sharp corner
fromBoth: "\u2523",
strafe: "\u2503"
};