data-structure-typed 1.32.2 → 1.33.0

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.
Files changed (252) hide show
  1. package/.eslintrc.json +58 -0
  2. package/.idea/data-structure-typed.iml +19 -0
  3. package/.idea/inspectionProfiles/Project_Default.xml +6 -0
  4. package/.idea/misc.xml +6 -0
  5. package/.idea/modules.xml +8 -0
  6. package/.idea/vcs.xml +6 -0
  7. package/.prettierrc +16 -0
  8. package/.travis.yml +17 -0
  9. package/CHANGELOG.md +1 -1
  10. package/README.md +366 -76
  11. package/coverage/coverage-final.json +4 -4
  12. package/docs/index.html +260 -9
  13. package/package.json +50 -18
  14. package/test/unit/data-structures/binary-tree/tree-multiset.test.ts +46 -1
  15. package/.eslintrc.js +0 -61
  16. package/.prettierrc.js +0 -16
  17. package/coverage/clover.xml +0 -3393
  18. package/coverage/lcov-report/base.css +0 -224
  19. package/coverage/lcov-report/block-navigation.js +0 -87
  20. package/coverage/lcov-report/favicon.png +0 -0
  21. package/coverage/lcov-report/index.html +0 -386
  22. package/coverage/lcov-report/prettify.css +0 -1
  23. package/coverage/lcov-report/prettify.js +0 -2
  24. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  25. package/coverage/lcov-report/sorter.js +0 -196
  26. package/coverage/lcov-report/src/data-structures/binary-tree/aa-tree.ts.html +0 -88
  27. package/coverage/lcov-report/src/data-structures/binary-tree/abstract-binary-tree.ts.html +0 -4978
  28. package/coverage/lcov-report/src/data-structures/binary-tree/avl-tree.ts.html +0 -1015
  29. package/coverage/lcov-report/src/data-structures/binary-tree/b-tree.ts.html +0 -88
  30. package/coverage/lcov-report/src/data-structures/binary-tree/binary-indexed-tree.ts.html +0 -313
  31. package/coverage/lcov-report/src/data-structures/binary-tree/binary-tree.ts.html +0 -226
  32. package/coverage/lcov-report/src/data-structures/binary-tree/bst.ts.html +0 -1696
  33. package/coverage/lcov-report/src/data-structures/binary-tree/index.html +0 -296
  34. package/coverage/lcov-report/src/data-structures/binary-tree/index.ts.html +0 -121
  35. package/coverage/lcov-report/src/data-structures/binary-tree/rb-tree.ts.html +0 -388
  36. package/coverage/lcov-report/src/data-structures/binary-tree/segment-tree.ts.html +0 -811
  37. package/coverage/lcov-report/src/data-structures/binary-tree/splay-tree.ts.html +0 -88
  38. package/coverage/lcov-report/src/data-structures/binary-tree/tree-multiset.ts.html +0 -2185
  39. package/coverage/lcov-report/src/data-structures/binary-tree/two-three-tree.ts.html +0 -88
  40. package/coverage/lcov-report/src/data-structures/graph/abstract-graph.ts.html +0 -3205
  41. package/coverage/lcov-report/src/data-structures/graph/directed-graph.ts.html +0 -1495
  42. package/coverage/lcov-report/src/data-structures/graph/index.html +0 -176
  43. package/coverage/lcov-report/src/data-structures/graph/index.ts.html +0 -97
  44. package/coverage/lcov-report/src/data-structures/graph/map-graph.ts.html +0 -472
  45. package/coverage/lcov-report/src/data-structures/graph/undirected-graph.ts.html +0 -907
  46. package/coverage/lcov-report/src/data-structures/hash/coordinate-map.ts.html +0 -286
  47. package/coverage/lcov-report/src/data-structures/hash/coordinate-set.ts.html +0 -253
  48. package/coverage/lcov-report/src/data-structures/hash/hash-table.ts.html +0 -88
  49. package/coverage/lcov-report/src/data-structures/hash/index.html +0 -206
  50. package/coverage/lcov-report/src/data-structures/hash/index.ts.html +0 -103
  51. package/coverage/lcov-report/src/data-structures/hash/pair.ts.html +0 -88
  52. package/coverage/lcov-report/src/data-structures/hash/tree-map.ts.html +0 -88
  53. package/coverage/lcov-report/src/data-structures/hash/tree-set.ts.html +0 -88
  54. package/coverage/lcov-report/src/data-structures/heap/heap.ts.html +0 -721
  55. package/coverage/lcov-report/src/data-structures/heap/index.html +0 -161
  56. package/coverage/lcov-report/src/data-structures/heap/index.ts.html +0 -94
  57. package/coverage/lcov-report/src/data-structures/heap/max-heap.ts.html +0 -178
  58. package/coverage/lcov-report/src/data-structures/heap/min-heap.ts.html +0 -181
  59. package/coverage/lcov-report/src/data-structures/index.html +0 -116
  60. package/coverage/lcov-report/src/data-structures/index.ts.html +0 -118
  61. package/coverage/lcov-report/src/data-structures/linked-list/doubly-linked-list.ts.html +0 -1804
  62. package/coverage/lcov-report/src/data-structures/linked-list/index.html +0 -161
  63. package/coverage/lcov-report/src/data-structures/linked-list/index.ts.html +0 -94
  64. package/coverage/lcov-report/src/data-structures/linked-list/singly-linked-list.ts.html +0 -1588
  65. package/coverage/lcov-report/src/data-structures/linked-list/skip-linked-list.ts.html +0 -88
  66. package/coverage/lcov-report/src/data-structures/matrix/index.html +0 -176
  67. package/coverage/lcov-report/src/data-structures/matrix/index.ts.html +0 -97
  68. package/coverage/lcov-report/src/data-structures/matrix/matrix.ts.html +0 -166
  69. package/coverage/lcov-report/src/data-structures/matrix/matrix2d.ts.html +0 -721
  70. package/coverage/lcov-report/src/data-structures/matrix/navigator.ts.html +0 -448
  71. package/coverage/lcov-report/src/data-structures/matrix/vector2d.ts.html +0 -1033
  72. package/coverage/lcov-report/src/data-structures/priority-queue/index.html +0 -161
  73. package/coverage/lcov-report/src/data-structures/priority-queue/index.ts.html +0 -94
  74. package/coverage/lcov-report/src/data-structures/priority-queue/max-priority-queue.ts.html +0 -253
  75. package/coverage/lcov-report/src/data-structures/priority-queue/min-priority-queue.ts.html +0 -256
  76. package/coverage/lcov-report/src/data-structures/priority-queue/priority-queue.ts.html +0 -1162
  77. package/coverage/lcov-report/src/data-structures/queue/deque.ts.html +0 -976
  78. package/coverage/lcov-report/src/data-structures/queue/index.html +0 -146
  79. package/coverage/lcov-report/src/data-structures/queue/index.ts.html +0 -91
  80. package/coverage/lcov-report/src/data-structures/queue/queue.ts.html +0 -658
  81. package/coverage/lcov-report/src/data-structures/stack/index.html +0 -131
  82. package/coverage/lcov-report/src/data-structures/stack/index.ts.html +0 -88
  83. package/coverage/lcov-report/src/data-structures/stack/stack.ts.html +0 -379
  84. package/coverage/lcov-report/src/data-structures/tree/index.html +0 -131
  85. package/coverage/lcov-report/src/data-structures/tree/index.ts.html +0 -88
  86. package/coverage/lcov-report/src/data-structures/tree/tree.ts.html +0 -292
  87. package/coverage/lcov-report/src/data-structures/trie/index.html +0 -131
  88. package/coverage/lcov-report/src/data-structures/trie/index.ts.html +0 -88
  89. package/coverage/lcov-report/src/data-structures/trie/trie.ts.html +0 -760
  90. package/coverage/lcov-report/src/index.html +0 -116
  91. package/coverage/lcov-report/src/index.ts.html +0 -97
  92. package/coverage/lcov-report/src/interfaces/index.html +0 -116
  93. package/coverage/lcov-report/src/interfaces/index.ts.html +0 -130
  94. package/coverage/lcov-report/src/types/data-structures/abstract-binary-tree.ts.html +0 -235
  95. package/coverage/lcov-report/src/types/data-structures/bst.ts.html +0 -124
  96. package/coverage/lcov-report/src/types/data-structures/directed-graph.ts.html +0 -109
  97. package/coverage/lcov-report/src/types/data-structures/index.html +0 -176
  98. package/coverage/lcov-report/src/types/data-structures/index.ts.html +0 -130
  99. package/coverage/lcov-report/src/types/data-structures/rb-tree.ts.html +0 -106
  100. package/coverage/lcov-report/src/types/index.html +0 -116
  101. package/coverage/lcov-report/src/types/index.ts.html +0 -94
  102. package/coverage/lcov-report/src/types/utils/index.html +0 -116
  103. package/coverage/lcov-report/src/types/utils/index.ts.html +0 -91
  104. package/coverage/lcov-report/src/utils/index.html +0 -131
  105. package/coverage/lcov-report/src/utils/index.ts.html +0 -88
  106. package/coverage/lcov-report/src/utils/utils.ts.html +0 -322
  107. package/coverage/lcov-report/test/utils/index.html +0 -146
  108. package/coverage/lcov-report/test/utils/index.ts.html +0 -91
  109. package/coverage/lcov-report/test/utils/magnitude.ts.html +0 -148
  110. package/coverage/lcov-report/test/utils/number.ts.html +0 -94
  111. package/coverage/lcov.info +0 -6676
  112. package/docs/assets/highlight.css +0 -127
  113. package/docs/assets/main.js +0 -58
  114. package/docs/assets/search.js +0 -1
  115. package/docs/assets/style.css +0 -1367
  116. package/docs/classes/AVLTree.html +0 -2182
  117. package/docs/classes/AVLTreeNode.html +0 -399
  118. package/docs/classes/AaTree.html +0 -202
  119. package/docs/classes/AbstractBinaryTree.html +0 -1836
  120. package/docs/classes/AbstractBinaryTreeNode.html +0 -441
  121. package/docs/classes/AbstractEdge.html +0 -345
  122. package/docs/classes/AbstractGraph.html +0 -1105
  123. package/docs/classes/AbstractVertex.html +0 -299
  124. package/docs/classes/ArrayDeque.html +0 -469
  125. package/docs/classes/BST.html +0 -2026
  126. package/docs/classes/BSTNode.html +0 -400
  127. package/docs/classes/BTree.html +0 -202
  128. package/docs/classes/BinaryIndexedTree.html +0 -371
  129. package/docs/classes/BinaryTree.html +0 -1867
  130. package/docs/classes/BinaryTreeNode.html +0 -399
  131. package/docs/classes/Character.html +0 -250
  132. package/docs/classes/CoordinateMap.html +0 -513
  133. package/docs/classes/CoordinateSet.html +0 -474
  134. package/docs/classes/Deque.html +0 -1005
  135. package/docs/classes/DirectedEdge.html +0 -404
  136. package/docs/classes/DirectedGraph.html +0 -1530
  137. package/docs/classes/DirectedVertex.html +0 -286
  138. package/docs/classes/DoublyLinkedList.html +0 -998
  139. package/docs/classes/DoublyLinkedListNode.html +0 -327
  140. package/docs/classes/HashTable.html +0 -202
  141. package/docs/classes/Heap.html +0 -647
  142. package/docs/classes/HeapItem.html +0 -296
  143. package/docs/classes/LinkedListQueue.html +0 -884
  144. package/docs/classes/MapEdge.html +0 -391
  145. package/docs/classes/MapGraph.html +0 -1583
  146. package/docs/classes/MapVertex.html +0 -356
  147. package/docs/classes/Matrix2D.html +0 -532
  148. package/docs/classes/MatrixNTI2D.html +0 -270
  149. package/docs/classes/MaxHeap.html +0 -671
  150. package/docs/classes/MaxPriorityQueue.html +0 -866
  151. package/docs/classes/MinHeap.html +0 -672
  152. package/docs/classes/MinPriorityQueue.html +0 -868
  153. package/docs/classes/Navigator.html +0 -343
  154. package/docs/classes/ObjectDeque.html +0 -527
  155. package/docs/classes/Pair.html +0 -202
  156. package/docs/classes/PriorityQueue.html +0 -790
  157. package/docs/classes/Queue.html +0 -521
  158. package/docs/classes/RBTree.html +0 -2024
  159. package/docs/classes/RBTreeNode.html +0 -431
  160. package/docs/classes/SegmentTree.html +0 -464
  161. package/docs/classes/SegmentTreeNode.html +0 -387
  162. package/docs/classes/SinglyLinkedList.html +0 -830
  163. package/docs/classes/SinglyLinkedListNode.html +0 -300
  164. package/docs/classes/SkipLinkedList.html +0 -202
  165. package/docs/classes/SplayTree.html +0 -202
  166. package/docs/classes/Stack.html +0 -398
  167. package/docs/classes/TreeMap.html +0 -202
  168. package/docs/classes/TreeMultiset.html +0 -2510
  169. package/docs/classes/TreeMultisetNode.html +0 -447
  170. package/docs/classes/TreeNode.html +0 -344
  171. package/docs/classes/TreeSet.html +0 -202
  172. package/docs/classes/Trie.html +0 -402
  173. package/docs/classes/TrieNode.html +0 -310
  174. package/docs/classes/TwoThreeTree.html +0 -202
  175. package/docs/classes/UndirectedEdge.html +0 -374
  176. package/docs/classes/UndirectedGraph.html +0 -1285
  177. package/docs/classes/UndirectedVertex.html +0 -284
  178. package/docs/classes/Vector2D.html +0 -835
  179. package/docs/enums/CP.html +0 -211
  180. package/docs/enums/FamilyPosition.html +0 -239
  181. package/docs/enums/LoopType.html +0 -212
  182. package/docs/enums/RBColor.html +0 -204
  183. package/docs/enums/TopologicalProperty.html +0 -211
  184. package/docs/functions/arrayRemove.html +0 -208
  185. package/docs/functions/isThunk.html +0 -186
  186. package/docs/functions/toThunk.html +0 -186
  187. package/docs/functions/trampoline.html +0 -186
  188. package/docs/functions/trampolineAsync.html +0 -186
  189. package/docs/functions/uuidV4.html +0 -181
  190. package/docs/interfaces/IAVLTree.html +0 -1245
  191. package/docs/interfaces/IAbstractBinaryTree.html +0 -1101
  192. package/docs/interfaces/IAbstractBinaryTreeNode.html +0 -335
  193. package/docs/interfaces/IAbstractGraph.html +0 -433
  194. package/docs/interfaces/IBST.html +0 -1245
  195. package/docs/interfaces/IDirectedGraph.html +0 -570
  196. package/docs/interfaces/IRBTree.html +0 -1247
  197. package/docs/interfaces/IUNDirectedGraph.html +0 -463
  198. package/docs/types/AVLTreeNodeNested.html +0 -182
  199. package/docs/types/AVLTreeOptions.html +0 -180
  200. package/docs/types/AbstractBinaryTreeNodeNested.html +0 -182
  201. package/docs/types/AbstractBinaryTreeNodeProperties.html +0 -182
  202. package/docs/types/AbstractBinaryTreeNodeProperty.html +0 -182
  203. package/docs/types/AbstractBinaryTreeOptions.html +0 -182
  204. package/docs/types/BSTComparator.html +0 -192
  205. package/docs/types/BSTNodeNested.html +0 -182
  206. package/docs/types/BSTOptions.html +0 -182
  207. package/docs/types/BinaryTreeDeletedResult.html +0 -189
  208. package/docs/types/BinaryTreeNodeId.html +0 -177
  209. package/docs/types/BinaryTreeNodeNested.html +0 -182
  210. package/docs/types/BinaryTreeNodePropertyName.html +0 -177
  211. package/docs/types/BinaryTreeOptions.html +0 -180
  212. package/docs/types/DFSOrderPattern.html +0 -177
  213. package/docs/types/DijkstraResult.html +0 -199
  214. package/docs/types/Direction.html +0 -177
  215. package/docs/types/DummyAny.html +0 -190
  216. package/docs/types/EdgeId.html +0 -177
  217. package/docs/types/HeapOptions.html +0 -198
  218. package/docs/types/IAVLTreeNode.html +0 -184
  219. package/docs/types/IBSTNode.html +0 -184
  220. package/docs/types/IBinaryTree.html +0 -182
  221. package/docs/types/IBinaryTreeNode.html +0 -184
  222. package/docs/types/IRBTreeNode.html +0 -184
  223. package/docs/types/ITreeMultiset.html +0 -182
  224. package/docs/types/ITreeMultisetNode.html +0 -184
  225. package/docs/types/KeyValueObject.html +0 -182
  226. package/docs/types/KeyValueObjectWithId.html +0 -184
  227. package/docs/types/MapGraphCoordinate.html +0 -177
  228. package/docs/types/NavigatorParams.html +0 -211
  229. package/docs/types/NodeOrPropertyName.html +0 -177
  230. package/docs/types/NonNumberNonObjectButDefined.html +0 -177
  231. package/docs/types/ObjectWithNonNumberId.html +0 -184
  232. package/docs/types/ObjectWithNumberId.html +0 -184
  233. package/docs/types/ObjectWithoutId.html +0 -177
  234. package/docs/types/PriorityQueueComparator.html +0 -197
  235. package/docs/types/PriorityQueueDFSOrderPattern.html +0 -177
  236. package/docs/types/PriorityQueueOptions.html +0 -191
  237. package/docs/types/RBTreeNodeNested.html +0 -182
  238. package/docs/types/RBTreeOptions.html +0 -180
  239. package/docs/types/RestrictValById.html +0 -177
  240. package/docs/types/SegmentTreeNodeVal.html +0 -177
  241. package/docs/types/SpecifyOptional.html +0 -184
  242. package/docs/types/Thunk.html +0 -185
  243. package/docs/types/ToThunkFn.html +0 -185
  244. package/docs/types/TopologicalStatus.html +0 -177
  245. package/docs/types/TreeMultisetNodeNested.html +0 -182
  246. package/docs/types/TreeMultisetOptions.html +0 -180
  247. package/docs/types/TrlAsyncFn.html +0 -190
  248. package/docs/types/TrlFn.html +0 -190
  249. package/docs/types/Turning.html +0 -177
  250. package/docs/types/VertexId.html +0 -177
  251. package/docs/variables/THUNK_SYMBOL.html +0 -177
  252. /package/{CODE-OF-CONDUCT.md → CODE_OF_CONDUCT.md} +0 -0
@@ -1,224 +0,0 @@
1
- body, html {
2
- margin:0; padding: 0;
3
- height: 100%;
4
- }
5
- body {
6
- font-family: Helvetica Neue, Helvetica, Arial;
7
- font-size: 14px;
8
- color:#333;
9
- }
10
- .small { font-size: 12px; }
11
- *, *:after, *:before {
12
- -webkit-box-sizing:border-box;
13
- -moz-box-sizing:border-box;
14
- box-sizing:border-box;
15
- }
16
- h1 { font-size: 20px; margin: 0;}
17
- h2 { font-size: 14px; }
18
- pre {
19
- font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace;
20
- margin: 0;
21
- padding: 0;
22
- -moz-tab-size: 2;
23
- -o-tab-size: 2;
24
- tab-size: 2;
25
- }
26
- a { color:#0074D9; text-decoration:none; }
27
- a:hover { text-decoration:underline; }
28
- .strong { font-weight: bold; }
29
- .space-top1 { padding: 10px 0 0 0; }
30
- .pad2y { padding: 20px 0; }
31
- .pad1y { padding: 10px 0; }
32
- .pad2x { padding: 0 20px; }
33
- .pad2 { padding: 20px; }
34
- .pad1 { padding: 10px; }
35
- .space-left2 { padding-left:55px; }
36
- .space-right2 { padding-right:20px; }
37
- .center { text-align:center; }
38
- .clearfix { display:block; }
39
- .clearfix:after {
40
- content:'';
41
- display:block;
42
- height:0;
43
- clear:both;
44
- visibility:hidden;
45
- }
46
- .fl { float: left; }
47
- @media only screen and (max-width:640px) {
48
- .col3 { width:100%; max-width:100%; }
49
- .hide-mobile { display:none!important; }
50
- }
51
-
52
- .quiet {
53
- color: #7f7f7f;
54
- color: rgba(0,0,0,0.5);
55
- }
56
- .quiet a { opacity: 0.7; }
57
-
58
- .fraction {
59
- font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
60
- font-size: 10px;
61
- color: #555;
62
- background: #E8E8E8;
63
- padding: 4px 5px;
64
- border-radius: 3px;
65
- vertical-align: middle;
66
- }
67
-
68
- div.path a:link, div.path a:visited { color: #333; }
69
- table.coverage {
70
- border-collapse: collapse;
71
- margin: 10px 0 0 0;
72
- padding: 0;
73
- }
74
-
75
- table.coverage td {
76
- margin: 0;
77
- padding: 0;
78
- vertical-align: top;
79
- }
80
- table.coverage td.line-count {
81
- text-align: right;
82
- padding: 0 5px 0 20px;
83
- }
84
- table.coverage td.line-coverage {
85
- text-align: right;
86
- padding-right: 10px;
87
- min-width:20px;
88
- }
89
-
90
- table.coverage td span.cline-any {
91
- display: inline-block;
92
- padding: 0 5px;
93
- width: 100%;
94
- }
95
- .missing-if-branch {
96
- display: inline-block;
97
- margin-right: 5px;
98
- border-radius: 3px;
99
- position: relative;
100
- padding: 0 4px;
101
- background: #333;
102
- color: yellow;
103
- }
104
-
105
- .skip-if-branch {
106
- display: none;
107
- margin-right: 10px;
108
- position: relative;
109
- padding: 0 4px;
110
- background: #ccc;
111
- color: white;
112
- }
113
- .missing-if-branch .typ, .skip-if-branch .typ {
114
- color: inherit !important;
115
- }
116
- .coverage-summary {
117
- border-collapse: collapse;
118
- width: 100%;
119
- }
120
- .coverage-summary tr { border-bottom: 1px solid #bbb; }
121
- .keyline-all { border: 1px solid #ddd; }
122
- .coverage-summary td, .coverage-summary th { padding: 10px; }
123
- .coverage-summary tbody { border: 1px solid #bbb; }
124
- .coverage-summary td { border-right: 1px solid #bbb; }
125
- .coverage-summary td:last-child { border-right: none; }
126
- .coverage-summary th {
127
- text-align: left;
128
- font-weight: normal;
129
- white-space: nowrap;
130
- }
131
- .coverage-summary th.file { border-right: none !important; }
132
- .coverage-summary th.pct { }
133
- .coverage-summary th.pic,
134
- .coverage-summary th.abs,
135
- .coverage-summary td.pct,
136
- .coverage-summary td.abs { text-align: right; }
137
- .coverage-summary td.file { white-space: nowrap; }
138
- .coverage-summary td.pic { min-width: 120px !important; }
139
- .coverage-summary tfoot td { }
140
-
141
- .coverage-summary .sorter {
142
- height: 10px;
143
- width: 7px;
144
- display: inline-block;
145
- margin-left: 0.5em;
146
- background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent;
147
- }
148
- .coverage-summary .sorted .sorter {
149
- background-position: 0 -20px;
150
- }
151
- .coverage-summary .sorted-desc .sorter {
152
- background-position: 0 -10px;
153
- }
154
- .status-line { height: 10px; }
155
- /* yellow */
156
- .cbranch-no { background: yellow !important; color: #111; }
157
- /* dark red */
158
- .red.solid, .status-line.low, .low .cover-fill { background:#C21F39 }
159
- .low .chart { border:1px solid #C21F39 }
160
- .highlighted,
161
- .highlighted .cstat-no, .highlighted .fstat-no, .highlighted .cbranch-no{
162
- background: #C21F39 !important;
163
- }
164
- /* medium red */
165
- .cstat-no, .fstat-no, .cbranch-no, .cbranch-no { background:#F6C6CE }
166
- /* light red */
167
- .low, .cline-no { background:#FCE1E5 }
168
- /* light green */
169
- .high, .cline-yes { background:rgb(230,245,208) }
170
- /* medium green */
171
- .cstat-yes { background:rgb(161,215,106) }
172
- /* dark green */
173
- .status-line.high, .high .cover-fill { background:rgb(77,146,33) }
174
- .high .chart { border:1px solid rgb(77,146,33) }
175
- /* dark yellow (gold) */
176
- .status-line.medium, .medium .cover-fill { background: #f9cd0b; }
177
- .medium .chart { border:1px solid #f9cd0b; }
178
- /* light yellow */
179
- .medium { background: #fff4c2; }
180
-
181
- .cstat-skip { background: #ddd; color: #111; }
182
- .fstat-skip { background: #ddd; color: #111 !important; }
183
- .cbranch-skip { background: #ddd !important; color: #111; }
184
-
185
- span.cline-neutral { background: #eaeaea; }
186
-
187
- .coverage-summary td.empty {
188
- opacity: .5;
189
- padding-top: 4px;
190
- padding-bottom: 4px;
191
- line-height: 1;
192
- color: #888;
193
- }
194
-
195
- .cover-fill, .cover-empty {
196
- display:inline-block;
197
- height: 12px;
198
- }
199
- .chart {
200
- line-height: 0;
201
- }
202
- .cover-empty {
203
- background: white;
204
- }
205
- .cover-full {
206
- border-right: none !important;
207
- }
208
- pre.prettyprint {
209
- border: none !important;
210
- padding: 0 !important;
211
- margin: 0 !important;
212
- }
213
- .com { color: #999 !important; }
214
- .ignore-none { color: #999; font-weight: normal; }
215
-
216
- .wrapper {
217
- min-height: 100%;
218
- height: auto !important;
219
- height: 100%;
220
- margin: 0 auto -48px;
221
- }
222
- .footer, .push {
223
- height: 48px;
224
- }
@@ -1,87 +0,0 @@
1
- /* eslint-disable */
2
- var jumpToCode = (function init() {
3
- // Classes of code we would like to highlight in the file view
4
- var missingCoverageClasses = ['.cbranch-no', '.cstat-no', '.fstat-no'];
5
-
6
- // Elements to highlight in the file listing view
7
- var fileListingElements = ['td.pct.low'];
8
-
9
- // We don't want to select elements that are direct descendants of another match
10
- var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > `
11
-
12
- // Selecter that finds elements on the page to which we can jump
13
- var selector =
14
- fileListingElements.join(', ') +
15
- ', ' +
16
- notSelector +
17
- missingCoverageClasses.join(', ' + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b`
18
-
19
- // The NodeList of matching elements
20
- var missingCoverageElements = document.querySelectorAll(selector);
21
-
22
- var currentIndex;
23
-
24
- function toggleClass(index) {
25
- missingCoverageElements
26
- .item(currentIndex)
27
- .classList.remove('highlighted');
28
- missingCoverageElements.item(index).classList.add('highlighted');
29
- }
30
-
31
- function makeCurrent(index) {
32
- toggleClass(index);
33
- currentIndex = index;
34
- missingCoverageElements.item(index).scrollIntoView({
35
- behavior: 'smooth',
36
- block: 'center',
37
- inline: 'center'
38
- });
39
- }
40
-
41
- function goToPrevious() {
42
- var nextIndex = 0;
43
- if (typeof currentIndex !== 'number' || currentIndex === 0) {
44
- nextIndex = missingCoverageElements.length - 1;
45
- } else if (missingCoverageElements.length > 1) {
46
- nextIndex = currentIndex - 1;
47
- }
48
-
49
- makeCurrent(nextIndex);
50
- }
51
-
52
- function goToNext() {
53
- var nextIndex = 0;
54
-
55
- if (
56
- typeof currentIndex === 'number' &&
57
- currentIndex < missingCoverageElements.length - 1
58
- ) {
59
- nextIndex = currentIndex + 1;
60
- }
61
-
62
- makeCurrent(nextIndex);
63
- }
64
-
65
- return function jump(event) {
66
- if (
67
- document.getElementById('fileSearch') === document.activeElement &&
68
- document.activeElement != null
69
- ) {
70
- // if we're currently focused on the search input, we don't want to navigate
71
- return;
72
- }
73
-
74
- switch (event.which) {
75
- case 78: // n
76
- case 74: // j
77
- goToNext();
78
- break;
79
- case 66: // b
80
- case 75: // k
81
- case 80: // p
82
- goToPrevious();
83
- break;
84
- }
85
- };
86
- })();
87
- window.addEventListener('keydown', jumpToCode);
Binary file