puzzle-lib 1.6.0 → 1.8.1

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 (153) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +44 -38
  3. package/build/src/Braille/BrailleCharacter.d.ts +15 -15
  4. package/build/src/Braille/BrailleCharacter.js +39 -38
  5. package/build/src/Braille/BrailleCharacter.js.map +1 -1
  6. package/build/src/Braille/BrailleData.d.ts +6 -6
  7. package/build/src/Braille/BrailleData.js +65 -65
  8. package/build/src/Braille/BrailleData.js.map +1 -1
  9. package/build/src/Braille/BrailleDot.d.ts +9 -9
  10. package/build/src/Braille/BrailleDot.js +13 -13
  11. package/build/src/Braille/BrailleDot.js.map +1 -1
  12. package/build/src/Braille/BrailleEncoding.d.ts +54 -54
  13. package/build/src/Braille/BrailleEncoding.js +66 -65
  14. package/build/src/Braille/BrailleEncoding.js.map +1 -1
  15. package/build/src/Braille/BrailleStream.d.ts +18 -18
  16. package/build/src/Braille/BrailleStream.js +75 -75
  17. package/build/src/Braille/BrailleStream.js.map +1 -1
  18. package/build/src/Cipher/AutoKeyString.d.ts +4 -4
  19. package/build/src/Cipher/AutoKeyString.js +34 -34
  20. package/build/src/Cipher/AutoKeyString.js.map +1 -1
  21. package/build/src/Cipher/CaesarString.d.ts +8 -8
  22. package/build/src/Cipher/CaesarString.js +32 -31
  23. package/build/src/Cipher/CaesarString.js.map +1 -1
  24. package/build/src/Cipher/CaesarUtils.d.ts +13 -13
  25. package/build/src/Cipher/CaesarUtils.js +57 -57
  26. package/build/src/Cipher/CaesarUtils.js.map +1 -1
  27. package/build/src/Cipher/KeyedCipherStringBase.d.ts +12 -12
  28. package/build/src/Cipher/KeyedCipherStringBase.js +30 -28
  29. package/build/src/Cipher/KeyedCipherStringBase.js.map +1 -1
  30. package/build/src/Cipher/VigenereString.d.ts +4 -4
  31. package/build/src/Cipher/VigenereString.js +21 -21
  32. package/build/src/Cipher/VigenereString.js.map +1 -1
  33. package/build/src/Common/CharacterImage.d.ts +6 -6
  34. package/build/src/Common/CharacterImage.js +12 -10
  35. package/build/src/Common/CharacterImage.js.map +1 -1
  36. package/build/src/Common/EncodingCategory.d.ts +8 -8
  37. package/build/src/Common/EncodingCategory.js +12 -12
  38. package/build/src/Common/EncodingCategory.js.map +1 -1
  39. package/build/src/Common/EncodingCharacterBase.d.ts +23 -23
  40. package/build/src/Common/EncodingCharacterBase.js +54 -52
  41. package/build/src/Common/EncodingCharacterBase.js.map +1 -1
  42. package/build/src/Common/EncodingDataBase.d.ts +7 -7
  43. package/build/src/Common/EncodingDataBase.js +27 -29
  44. package/build/src/Common/EncodingDataBase.js.map +1 -1
  45. package/build/src/Common/EncodingEntry.d.ts +8 -8
  46. package/build/src/Common/EncodingEntry.js +17 -14
  47. package/build/src/Common/EncodingEntry.js.map +1 -1
  48. package/build/src/Common/EncodingLookupResult.d.ts +6 -6
  49. package/build/src/Common/EncodingLookupResult.js +11 -13
  50. package/build/src/Common/EncodingLookupResult.js.map +1 -1
  51. package/build/src/Common/Helpers.d.ts +4 -4
  52. package/build/src/Common/Helpers.js +16 -16
  53. package/build/src/Common/Helpers.js.map +1 -1
  54. package/build/src/Common/InlineSvg.d.ts +7 -7
  55. package/build/src/Common/InlineSvg.js +17 -14
  56. package/build/src/Common/InlineSvg.js.map +1 -1
  57. package/build/src/Conversion/CharacterAutoConvert.d.ts +10 -10
  58. package/build/src/Conversion/CharacterAutoConvert.js +88 -88
  59. package/build/src/Conversion/CharacterAutoConvert.js.map +1 -1
  60. package/build/src/Conversion/CharacterConversion.d.ts +8 -8
  61. package/build/src/Conversion/CharacterConversion.js +50 -50
  62. package/build/src/Conversion/CharacterConversion.js.map +1 -1
  63. package/build/src/Conversion/CharacterEncoding.d.ts +9 -9
  64. package/build/src/Conversion/CharacterEncoding.js +13 -13
  65. package/build/src/Conversion/CharacterEncoding.js.map +1 -1
  66. package/build/src/Conversion/CharacterTableEntry.d.ts +10 -10
  67. package/build/src/Conversion/CharacterTableEntry.js +25 -19
  68. package/build/src/Conversion/CharacterTableEntry.js.map +1 -1
  69. package/build/src/Conversion/SignificantFigures.d.ts +7 -7
  70. package/build/src/Conversion/SignificantFigures.js +50 -50
  71. package/build/src/Conversion/SignificantFigures.js.map +1 -1
  72. package/build/src/Conversion/StringAutoConvert.d.ts +6 -6
  73. package/build/src/Conversion/StringAutoConvert.js +46 -46
  74. package/build/src/Conversion/StringAutoConvert.js.map +1 -1
  75. package/build/src/Morse/MorseCharacter.d.ts +22 -22
  76. package/build/src/Morse/MorseCharacter.js +97 -96
  77. package/build/src/Morse/MorseCharacter.js.map +1 -1
  78. package/build/src/Morse/MorseData.d.ts +6 -6
  79. package/build/src/Morse/MorseData.js +70 -70
  80. package/build/src/Morse/MorseData.js.map +1 -1
  81. package/build/src/Morse/MorseEncoding.d.ts +59 -59
  82. package/build/src/Morse/MorseEncoding.js +94 -94
  83. package/build/src/Morse/MorseEncoding.js.map +1 -1
  84. package/build/src/Morse/MorseString.d.ts +10 -10
  85. package/build/src/Morse/MorseString.js +67 -66
  86. package/build/src/Morse/MorseString.js.map +1 -1
  87. package/build/src/Nato/NatoCharacter.d.ts +5 -5
  88. package/build/src/Nato/NatoCharacter.js +12 -10
  89. package/build/src/Nato/NatoCharacter.js.map +1 -1
  90. package/build/src/Nato/NatoData.d.ts +7 -7
  91. package/build/src/Nato/NatoData.js +49 -51
  92. package/build/src/Nato/NatoData.js.map +1 -1
  93. package/build/src/NavalFlags/NavalFlags.d.ts +7 -7
  94. package/build/src/NavalFlags/NavalFlags.js +75 -77
  95. package/build/src/NavalFlags/NavalFlags.js.map +1 -1
  96. package/build/src/Resistor/Resistor.d.ts +24 -24
  97. package/build/src/Resistor/Resistor.js +86 -86
  98. package/build/src/Resistor/Resistor.js.map +1 -1
  99. package/build/src/Resistor/ResistorColorEntry.d.ts +12 -12
  100. package/build/src/Resistor/ResistorColorEntry.js +36 -31
  101. package/build/src/Resistor/ResistorColorEntry.js.map +1 -1
  102. package/build/src/Semaphore/SemaphoreCharacter.d.ts +20 -20
  103. package/build/src/Semaphore/SemaphoreCharacter.js +75 -75
  104. package/build/src/Semaphore/SemaphoreCharacter.js.map +1 -1
  105. package/build/src/Semaphore/SemaphoreData.d.ts +6 -6
  106. package/build/src/Semaphore/SemaphoreData.js +53 -53
  107. package/build/src/Semaphore/SemaphoreData.js.map +1 -1
  108. package/build/src/Semaphore/SemaphoreDegrees.d.ts +5 -5
  109. package/build/src/Semaphore/SemaphoreDegrees.js +26 -26
  110. package/build/src/Semaphore/SemaphoreDegrees.js.map +1 -1
  111. package/build/src/Semaphore/SemaphoreDirection.d.ts +11 -11
  112. package/build/src/Semaphore/SemaphoreDirection.js +15 -15
  113. package/build/src/Semaphore/SemaphoreDirection.js.map +1 -1
  114. package/build/src/Semaphore/SemaphoreEncoding.d.ts +40 -40
  115. package/build/src/Semaphore/SemaphoreEncoding.js +48 -47
  116. package/build/src/Semaphore/SemaphoreEncoding.js.map +1 -1
  117. package/build/src/Semaphore/SemaphoreStream.d.ts +17 -17
  118. package/build/src/Semaphore/SemaphoreStream.js +73 -72
  119. package/build/src/Semaphore/SemaphoreStream.js.map +1 -1
  120. package/build/src/WordSearch/Point.d.ts +4 -4
  121. package/build/src/WordSearch/Point.js +2 -2
  122. package/build/src/WordSearch/Result.d.ts +6 -6
  123. package/build/src/WordSearch/Result.js +12 -10
  124. package/build/src/WordSearch/Result.js.map +1 -1
  125. package/build/src/WordSearch/WordSearchDirection.d.ts +6 -6
  126. package/build/src/WordSearch/WordSearchDirection.js +10 -10
  127. package/build/src/WordSearch/WordSearchDirection.js.map +1 -1
  128. package/build/src/WordSearch/WordSearchSolver.d.ts +27 -27
  129. package/build/src/WordSearch/WordSearchSolver.js +232 -222
  130. package/build/src/WordSearch/WordSearchSolver.js.map +1 -1
  131. package/build/src/index.d.ts +35 -35
  132. package/build/src/index.js +72 -72
  133. package/package.json +40 -40
  134. package/src/Braille/BrailleCharacter.ts +1 -1
  135. package/src/Braille/BrailleData.ts +16 -16
  136. package/src/Cipher/AutoKeyString.ts +1 -1
  137. package/src/Cipher/CaesarUtils.ts +1 -1
  138. package/src/Cipher/VigenereString.ts +1 -1
  139. package/src/Common/EncodingDataBase.ts +1 -1
  140. package/src/Conversion/CharacterAutoConvert.ts +1 -1
  141. package/src/Conversion/CharacterConversion.ts +5 -5
  142. package/src/Conversion/SignificantFigures.ts +1 -1
  143. package/src/Conversion/StringAutoConvert.ts +2 -2
  144. package/src/Morse/MorseData.ts +18 -18
  145. package/src/Morse/MorseString.ts +12 -12
  146. package/src/Nato/NatoData.ts +1 -1
  147. package/src/NavalFlags/LICENSE +6 -6
  148. package/src/NavalFlags/NavalFlags.ts +52 -52
  149. package/src/Resistor/Resistor.ts +9 -9
  150. package/src/Resistor/ResistorColorEntry.ts +1 -1
  151. package/src/Semaphore/SemaphoreCharacter.ts +5 -5
  152. package/src/Semaphore/SemaphoreData.ts +1 -1
  153. package/src/WordSearch/WordSearchSolver.ts +1 -1
@@ -15,7 +15,7 @@ export class NatoData {
15
15
  new NatoCharacter('G', 'Golf'),
16
16
  new NatoCharacter('H', 'Hotel'),
17
17
  new NatoCharacter('I', 'India'),
18
- new NatoCharacter('J', 'Juliet'),
18
+ new NatoCharacter('J', 'Juliett'),
19
19
  new NatoCharacter('K', 'Kilo'),
20
20
  new NatoCharacter('L', 'Lima'),
21
21
  new NatoCharacter('M', 'Mike'),
@@ -1,7 +1,7 @@
1
- The SVG images used in this directory are of simple geometry is ineligible for copyright
2
- and therefore in the public domain, because it consists entirely of information that is
3
- common property and contains no original authorship. With the exception of the image
4
- for 'U'/'Uniform', they were obtained from the Wikimedia Commons project at
5
- https://commons.wikimedia.org/wiki/Category:SVG_signal_flags on 2018-10-17. The SVG
6
- for Uniform is also ineligible for copyright and in the public domain, but did not come
1
+ The SVG images used in this directory are of simple geometry is ineligible for copyright
2
+ and therefore in the public domain, because it consists entirely of information that is
3
+ common property and contains no original authorship. With the exception of the image
4
+ for 'U'/'Uniform', they were obtained from the Wikimedia Commons project at
5
+ https://commons.wikimedia.org/wiki/Category:SVG_signal_flags on 2018-10-17. The SVG
6
+ for Uniform is also ineligible for copyright and in the public domain, but did not come
7
7
  from Wikimedia.
@@ -13,16 +13,16 @@ export class NavalFlags {
13
13
  <rect x="18" y="18" width="72" height="144" fill="#fff"/>
14
14
  <path d="M 18,18 H 162 L 126,90 L 162,162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`,
15
15
  180,
16
- 180
17
- )
16
+ 180,
17
+ ),
18
18
  ),
19
19
  new CharacterImage(
20
20
  'B',
21
21
  new InlineSvg(
22
22
  '<path d="M 18,18 H 162 L 126,90 L 162,162 H 18 z" fill="#f00" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>',
23
23
  180,
24
- 180
25
- )
24
+ 180,
25
+ ),
26
26
  ),
27
27
  new CharacterImage(
28
28
  'C',
@@ -32,8 +32,8 @@ export class NavalFlags {
32
32
  <rect x="18" y="75.6" width="144" height="28.8" fill="#f00"/>
33
33
  <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`,
34
34
  180,
35
- 180
36
- )
35
+ 180,
36
+ ),
37
37
  ),
38
38
  new CharacterImage(
39
39
  'D',
@@ -42,8 +42,8 @@ export class NavalFlags {
42
42
  <rect x="18" y="54" width="144" height="72" fill="#000094"/>
43
43
  <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`,
44
44
  180,
45
- 180
46
- )
45
+ 180,
46
+ ),
47
47
  ),
48
48
  new CharacterImage(
49
49
  'E',
@@ -52,8 +52,8 @@ export class NavalFlags {
52
52
  <rect x="18" y="90" width="144" height="72" fill="#f00"/>
53
53
  <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`,
54
54
  180,
55
- 180
56
- )
55
+ 180,
56
+ ),
57
57
  ),
58
58
  new CharacterImage(
59
59
  'F',
@@ -62,8 +62,8 @@ export class NavalFlags {
62
62
  <path d="M 90,18 l 72,72 l -72,72 l -72,-72 z" fill="#f00"/>
63
63
  <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`,
64
64
  180,
65
- 180
66
- )
65
+ 180,
66
+ ),
67
67
  ),
68
68
  new CharacterImage(
69
69
  'G',
@@ -72,8 +72,8 @@ export class NavalFlags {
72
72
  <path stroke="#FC0" stroke-width="24" d="m30,18v144m48,0V18m48,0v144"/>
73
73
  <path d="M18,18H162V162H18z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`,
74
74
  180,
75
- 180
76
- )
75
+ 180,
76
+ ),
77
77
  ),
78
78
  new CharacterImage(
79
79
  'H',
@@ -82,8 +82,8 @@ export class NavalFlags {
82
82
  <rect x="18" y="18" width="72" height="144" fill="#fff"/>
83
83
  <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`,
84
84
  180,
85
- 180
86
- )
85
+ 180,
86
+ ),
87
87
  ),
88
88
  new CharacterImage(
89
89
  'I',
@@ -92,8 +92,8 @@ export class NavalFlags {
92
92
  <circle cx="90" cy="90" r="36" fill="#000"/>
93
93
  <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`,
94
94
  180,
95
- 180
96
- )
95
+ 180,
96
+ ),
97
97
  ),
98
98
  new CharacterImage(
99
99
  'J',
@@ -102,8 +102,8 @@ export class NavalFlags {
102
102
  <rect x="18" y="66" width="144" height="48" fill="#fff"/>
103
103
  <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`,
104
104
  180,
105
- 180
106
- )
105
+ 180,
106
+ ),
107
107
  ),
108
108
  new CharacterImage(
109
109
  'K',
@@ -112,8 +112,8 @@ export class NavalFlags {
112
112
  <rect x="18" y="18" width="72" height="144" fill="#fc0"/>
113
113
  <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`,
114
114
  180,
115
- 180
116
- )
115
+ 180,
116
+ ),
117
117
  ),
118
118
  new CharacterImage(
119
119
  'L',
@@ -121,8 +121,8 @@ export class NavalFlags {
121
121
  `<rect x="16" y="16" width="148" height="148" rx="2"/>
122
122
  <path fill="#FC0" d="m20,20h70v140h70V90H20"/>`,
123
123
  180,
124
- 180
125
- )
124
+ 180,
125
+ ),
126
126
  ),
127
127
  new CharacterImage(
128
128
  'M',
@@ -134,8 +134,8 @@ export class NavalFlags {
134
134
  <path d="M 18,18 L 162,162 M 162,18 L 18,162" clip-path="url(#c)" stroke="#fff" stroke-width="28.8"/>
135
135
  <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`,
136
136
  180,
137
- 180
138
- )
137
+ 180,
138
+ ),
139
139
  ),
140
140
  new CharacterImage(
141
141
  'N',
@@ -144,8 +144,8 @@ export class NavalFlags {
144
144
  <path d="M 18,18 H 54 V 162 H 90 V 18 H 126 V 162 H 162 V 126 H 18 V 90 H 162 V 54 H 18 z" fill="#000094"/>
145
145
  <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`,
146
146
  180,
147
- 180
148
- )
147
+ 180,
148
+ ),
149
149
  ),
150
150
  new CharacterImage(
151
151
  'O',
@@ -154,8 +154,8 @@ export class NavalFlags {
154
154
  <path d="M 18,18 H 162 V 162 z" fill="#f00"/>
155
155
  <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`,
156
156
  180,
157
- 180
158
- )
157
+ 180,
158
+ ),
159
159
  ),
160
160
  new CharacterImage(
161
161
  'P',
@@ -164,8 +164,8 @@ export class NavalFlags {
164
164
  <rect x="54" y="54" width="72" height="72" fill="#fff"/>
165
165
  <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`,
166
166
  180,
167
- 180
168
- )
167
+ 180,
168
+ ),
169
169
  ),
170
170
  new CharacterImage(
171
171
  'Q',
@@ -173,8 +173,8 @@ export class NavalFlags {
173
173
  `<rect x="18" y="18" width="144" height="144" fill="#fc0"/>
174
174
  <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`,
175
175
  180,
176
- 180
177
- )
176
+ 180,
177
+ ),
178
178
  ),
179
179
  new CharacterImage(
180
180
  'R',
@@ -183,8 +183,8 @@ export class NavalFlags {
183
183
  <path d="M 90,18 V 162 M 18,90 H 162" stroke="#fc0" stroke-width="36"/>
184
184
  <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`,
185
185
  180,
186
- 180
187
- )
186
+ 180,
187
+ ),
188
188
  ),
189
189
  new CharacterImage(
190
190
  'S',
@@ -193,8 +193,8 @@ export class NavalFlags {
193
193
  <rect x="54" y="54" width="72" height="72" fill="#000094"/>
194
194
  <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`,
195
195
  180,
196
- 180
197
- )
196
+ 180,
197
+ ),
198
198
  ),
199
199
  new CharacterImage(
200
200
  'T',
@@ -204,8 +204,8 @@ export class NavalFlags {
204
204
  <rect x="18" y="18" width="48" height="144" fill="#f00"/>
205
205
  <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`,
206
206
  180,
207
- 180
208
- )
207
+ 180,
208
+ ),
209
209
  ),
210
210
  new CharacterImage(
211
211
  'U',
@@ -215,8 +215,8 @@ export class NavalFlags {
215
215
  <path d="M 162,91 H 91 V 162 H 162 z" fill="#ff0000"/>
216
216
  <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`,
217
217
  180,
218
- 180
219
- )
218
+ 180,
219
+ ),
220
220
  ),
221
221
  new CharacterImage(
222
222
  'V',
@@ -228,8 +228,8 @@ export class NavalFlags {
228
228
  <path d="M 18,18 L 162,162 M 162,18 L 18,162" clip-path="url(#c)" stroke="#f00" stroke-width="28.8"/>
229
229
  <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`,
230
230
  180,
231
- 180
232
- )
231
+ 180,
232
+ ),
233
233
  ),
234
234
  new CharacterImage(
235
235
  'W',
@@ -239,8 +239,8 @@ export class NavalFlags {
239
239
  <rect x="66" y="66" width="48" height="48" fill="#f00"/>
240
240
  <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`,
241
241
  180,
242
- 180
243
- )
242
+ 180,
243
+ ),
244
244
  ),
245
245
  new CharacterImage(
246
246
  'X',
@@ -249,8 +249,8 @@ export class NavalFlags {
249
249
  <path d="M 90,18 V 162 M 18,90 H 162" stroke="#000094" stroke-width="36"/>
250
250
  <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`,
251
251
  180,
252
- 180
253
- )
252
+ 180,
253
+ ),
254
254
  ),
255
255
  new CharacterImage(
256
256
  'Y',
@@ -260,8 +260,8 @@ export class NavalFlags {
260
260
  <path stroke="#F00" stroke-dasharray="18.8" stroke-width="250" clip-path="url(#c)" d="m4,4 160,160"/>
261
261
  <path fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round" d="M18,18H162V162H18z"/>`,
262
262
  180,
263
- 180
264
- )
263
+ 180,
264
+ ),
265
265
  ),
266
266
  new CharacterImage(
267
267
  'Z',
@@ -272,8 +272,8 @@ export class NavalFlags {
272
272
  <path d="M 90,90 L 162,162 H 18 z" fill="#f00"/>
273
273
  <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`,
274
274
  180,
275
- 180
276
- )
275
+ 180,
276
+ ),
277
277
  ),
278
278
  // tslint:enable:max-line-length
279
279
  ];
@@ -10,54 +10,54 @@ export class Resistor {
10
10
  'Yellow',
11
11
  '#FFFF00',
12
12
  10000,
13
- 4
13
+ 4,
14
14
  );
15
15
  static readonly GREEN = new ResistorColorEntry(
16
16
  'Green',
17
17
  '#008000',
18
18
  100000,
19
19
  5,
20
- 0.5
20
+ 0.5,
21
21
  );
22
22
  static readonly BLUE = new ResistorColorEntry(
23
23
  'Blue',
24
24
  '#0000FF',
25
25
  1000000,
26
26
  6,
27
- 0.25
27
+ 0.25,
28
28
  );
29
29
  static readonly VIOLET = new ResistorColorEntry(
30
30
  'Violet',
31
31
  '#800080',
32
32
  10000000,
33
33
  7,
34
- 0.1
34
+ 0.1,
35
35
  );
36
36
  static readonly GREY = new ResistorColorEntry(
37
37
  'Grey',
38
38
  '#808080',
39
39
  100000000,
40
- 8
40
+ 8,
41
41
  );
42
42
  static readonly WHITE = new ResistorColorEntry(
43
43
  'White',
44
44
  '#FFFFFF',
45
45
  1000000000,
46
- 9
46
+ 9,
47
47
  );
48
48
  static readonly GOLD = new ResistorColorEntry(
49
49
  'Gold',
50
50
  '#AB8D3F',
51
51
  0.1,
52
52
  undefined,
53
- 5
53
+ 5,
54
54
  );
55
55
  static readonly SILVER = new ResistorColorEntry(
56
56
  'Silver',
57
57
  '#C0C0C0',
58
58
  0.01,
59
59
  undefined,
60
- 10
60
+ 10,
61
61
  );
62
62
 
63
63
  static readonly colorTable: ResistorColorEntry[] = [
@@ -106,7 +106,7 @@ export class Resistor {
106
106
 
107
107
  return Resistor.applyMultiplier(
108
108
  value,
109
- colors[colors.length - 1].multiplier
109
+ colors[colors.length - 1].multiplier,
110
110
  );
111
111
  }
112
112
 
@@ -10,7 +10,7 @@ export class ResistorColorEntry {
10
10
  colorCode: string,
11
11
  multiplier: number,
12
12
  value?: number,
13
- toleranceInPercent?: number
13
+ toleranceInPercent?: number,
14
14
  ) {
15
15
  this.name = name;
16
16
  this.value = value;
@@ -9,7 +9,7 @@ import {SemaphoreEncoding} from './SemaphoreEncoding';
9
9
 
10
10
  export class SemaphoreCharacter extends EncodingCharacterBase<SemaphoreEncoding> {
11
11
  private static parseEncoding(
12
- encoding: SemaphoreDirection | SemaphoreEncoding
12
+ encoding: SemaphoreDirection | SemaphoreEncoding,
13
13
  ) {
14
14
  const directions: SemaphoreDirection[] = [];
15
15
 
@@ -27,7 +27,7 @@ export class SemaphoreCharacter extends EncodingCharacterBase<SemaphoreEncoding>
27
27
 
28
28
  constructor(
29
29
  encoding: SemaphoreEncoding = SemaphoreEncoding.None,
30
- category: EncodingCategory = EncodingCategory.All
30
+ category: EncodingCategory = EncodingCategory.All,
31
31
  ) {
32
32
  super(SemaphoreData.instance, category);
33
33
 
@@ -77,14 +77,14 @@ export class SemaphoreCharacter extends EncodingCharacterBase<SemaphoreEncoding>
77
77
  }
78
78
 
79
79
  getPotentialMatch(
80
- other: SemaphoreDirection
80
+ other: SemaphoreDirection,
81
81
  ): EncodingEntry<SemaphoreEncoding> | null {
82
82
  if (this.directions.length !== 1 || this.directions[0] === other) {
83
83
  return null;
84
84
  }
85
85
 
86
86
  const potentialMatch = this.getPotentialMatches().filter(
87
- value => (value.encoding & other) === other
87
+ value => (value.encoding & other) === other,
88
88
  )[0];
89
89
 
90
90
  return potentialMatch || null;
@@ -101,7 +101,7 @@ export class SemaphoreCharacter extends EncodingCharacterBase<SemaphoreEncoding>
101
101
  protected getEncoding() {
102
102
  return this._directions.reduce(
103
103
  (previousValue, currentValue) => (previousValue |= currentValue),
104
- SemaphoreEncoding.None
104
+ SemaphoreEncoding.None,
105
105
  );
106
106
  }
107
107
  }
@@ -52,7 +52,7 @@ export class SemaphoreData extends EncodingDataBase<SemaphoreEncoding> {
52
52
  this.addToList(
53
53
  SemaphoreEncoding.FormattingNumber,
54
54
  EncodingCategory.Formatting,
55
- '#'
55
+ '#',
56
56
  );
57
57
  }
58
58
  }
@@ -142,7 +142,7 @@ export class WordSearchSolver {
142
142
  private dfsCheck(
143
143
  start: Point,
144
144
  visited: Set<Point>,
145
- history: Point[]
145
+ history: Point[],
146
146
  ): Result[] {
147
147
  const results: Result[] = [];
148
148