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
@@ -1,67 +1,68 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MorseString = void 0;
4
- const Helpers_1 = require("../Common/Helpers");
5
- const MorseCharacter_1 = require("./MorseCharacter");
6
- // MorseString represents a string of multiple morse characters. It allows for a longer representation
7
- // to be converted to a single string and allows for sentence-level transforms such as reversing
8
- // the order of tokens.
9
- class MorseString {
10
- constructor(morse = '', characterDivider = MorseString.CHARACTER_DIVIDER, wordDivider = MorseString.WORD_DIVIDER) {
11
- // The dividers should be single characters which don't clash with the other string content
12
- Helpers_1.Helpers.assertMsg(characterDivider.length === 1, 'Divider must be a single character');
13
- Helpers_1.Helpers.assertMsg(wordDivider.length === 1, 'Divider must be a single character');
14
- Helpers_1.Helpers.assertMsg(characterDivider !== wordDivider, 'Dividers must be different from each other');
15
- Helpers_1.Helpers.assertMsg(characterDivider !== MorseCharacter_1.MorseCharacter.DASH, 'Character divider must not be a reserved value');
16
- Helpers_1.Helpers.assertMsg(characterDivider !== MorseCharacter_1.MorseCharacter.DOT, 'Character divider must not be a reserved value');
17
- Helpers_1.Helpers.assertMsg(characterDivider !== MorseCharacter_1.MorseCharacter.RESERVED_DIVIDER, 'Character divider must not be a reserved value');
18
- Helpers_1.Helpers.assertMsg(wordDivider !== MorseCharacter_1.MorseCharacter.DASH, 'Word divider must not be a reserved value');
19
- Helpers_1.Helpers.assertMsg(wordDivider !== MorseCharacter_1.MorseCharacter.DOT, 'Word divider must not be a reserved value');
20
- Helpers_1.Helpers.assertMsg(wordDivider !== MorseCharacter_1.MorseCharacter.RESERVED_DIVIDER, 'Word divider must not be a reserved value');
21
- const words = morse.split(wordDivider).filter(w => w.length > 0);
22
- // Discard any empty characters (caused by trailing separator)
23
- const wordCharacters = words.map(w => w.split(characterDivider).filter(wc => wc.length > 0));
24
- this._words = wordCharacters.map(subarray => subarray.map(wc => new MorseCharacter_1.MorseCharacter(wc)));
25
- }
26
- // reverse reverses the order of all tokens in the string (including separators), such as would be
27
- // the case if you were reading the data for a puzzle backwards.
28
- reverse() {
29
- for (let i = 0; i < this._words.length; i++) {
30
- for (const c of this._words[i]) {
31
- // Reverse the dots/dashes in each letter
32
- c.reverse();
33
- }
34
- // Reverse the letters in each word
35
- this._words[i] = this._words[i].reverse();
36
- }
37
- // Reverse the order of the words
38
- this._words = this._words.reverse();
39
- return this;
40
- }
41
- // invertDotsAndDashes switches all dots and dashes in the input, such as would be the case if
42
- // you had two ambiguous symbols for dot/dash and selected the wrong mapping.
43
- invertDotsAndDashes() {
44
- for (const word of this._words) {
45
- for (const c of word) {
46
- c.invertDotsAndDashes();
47
- }
48
- }
49
- return this;
50
- }
51
- toString() {
52
- let s = '';
53
- for (let i = 0; i < this._words.length; i++) {
54
- if (i > 0) {
55
- s += ' '; // This is a new word
56
- }
57
- for (const c of this._words[i]) {
58
- s += c.toString() || '?';
59
- }
60
- }
61
- return s;
62
- }
63
- }
64
- exports.MorseString = MorseString;
65
- MorseString.CHARACTER_DIVIDER = '/';
66
- MorseString.WORD_DIVIDER = ' ';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MorseString = void 0;
4
+ const Helpers_1 = require("../Common/Helpers");
5
+ const MorseCharacter_1 = require("./MorseCharacter");
6
+ // MorseString represents a string of multiple morse characters. It allows for a longer representation
7
+ // to be converted to a single string and allows for sentence-level transforms such as reversing
8
+ // the order of tokens.
9
+ class MorseString {
10
+ static CHARACTER_DIVIDER = '/';
11
+ static WORD_DIVIDER = ' ';
12
+ constructor(morse = '', characterDivider = MorseString.CHARACTER_DIVIDER, wordDivider = MorseString.WORD_DIVIDER) {
13
+ // The dividers should be single characters which don't clash with the other string content
14
+ Helpers_1.Helpers.assertMsg(characterDivider.length === 1, 'Divider must be a single character');
15
+ Helpers_1.Helpers.assertMsg(wordDivider.length === 1, 'Divider must be a single character');
16
+ Helpers_1.Helpers.assertMsg(characterDivider !== wordDivider, 'Dividers must be different from each other');
17
+ Helpers_1.Helpers.assertMsg(characterDivider !== MorseCharacter_1.MorseCharacter.DASH, 'Character divider must not be a reserved value');
18
+ Helpers_1.Helpers.assertMsg(characterDivider !== MorseCharacter_1.MorseCharacter.DOT, 'Character divider must not be a reserved value');
19
+ Helpers_1.Helpers.assertMsg(characterDivider !== MorseCharacter_1.MorseCharacter.RESERVED_DIVIDER, 'Character divider must not be a reserved value');
20
+ Helpers_1.Helpers.assertMsg(wordDivider !== MorseCharacter_1.MorseCharacter.DASH, 'Word divider must not be a reserved value');
21
+ Helpers_1.Helpers.assertMsg(wordDivider !== MorseCharacter_1.MorseCharacter.DOT, 'Word divider must not be a reserved value');
22
+ Helpers_1.Helpers.assertMsg(wordDivider !== MorseCharacter_1.MorseCharacter.RESERVED_DIVIDER, 'Word divider must not be a reserved value');
23
+ const words = morse.split(wordDivider).filter(w => w.length > 0);
24
+ // Discard any empty characters (caused by trailing separator)
25
+ const wordCharacters = words.map(w => w.split(characterDivider).filter(wc => wc.length > 0));
26
+ this._words = wordCharacters.map(subarray => subarray.map(wc => new MorseCharacter_1.MorseCharacter(wc)));
27
+ }
28
+ // reverse reverses the order of all tokens in the string (including separators), such as would be
29
+ // the case if you were reading the data for a puzzle backwards.
30
+ reverse() {
31
+ for (let i = 0; i < this._words.length; i++) {
32
+ for (const c of this._words[i]) {
33
+ // Reverse the dots/dashes in each letter
34
+ c.reverse();
35
+ }
36
+ // Reverse the letters in each word
37
+ this._words[i] = this._words[i].reverse();
38
+ }
39
+ // Reverse the order of the words
40
+ this._words = this._words.reverse();
41
+ return this;
42
+ }
43
+ // invertDotsAndDashes switches all dots and dashes in the input, such as would be the case if
44
+ // you had two ambiguous symbols for dot/dash and selected the wrong mapping.
45
+ invertDotsAndDashes() {
46
+ for (const word of this._words) {
47
+ for (const c of word) {
48
+ c.invertDotsAndDashes();
49
+ }
50
+ }
51
+ return this;
52
+ }
53
+ toString() {
54
+ let s = '';
55
+ for (let i = 0; i < this._words.length; i++) {
56
+ if (i > 0) {
57
+ s += ' '; // This is a new word
58
+ }
59
+ for (const c of this._words[i]) {
60
+ s += c.toString() || '?';
61
+ }
62
+ }
63
+ return s;
64
+ }
65
+ _words;
66
+ }
67
+ exports.MorseString = MorseString;
67
68
  //# sourceMappingURL=MorseString.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MorseString.js","sourceRoot":"","sources":["../../../src/Morse/MorseString.ts"],"names":[],"mappings":";;;AAAA,+CAA0C;AAC1C,qDAAgD;AAEhD,uGAAuG;AACvG,gGAAgG;AAChG,uBAAuB;AACvB,MAAa,WAAW;IAItB,YACE,KAAK,GAAG,EAAE,EACV,gBAAgB,GAAG,WAAW,CAAC,iBAAiB,EAChD,WAAW,GAAG,WAAW,CAAC,YAAY;QAEtC,2FAA2F;QAC3F,iBAAO,CAAC,SAAS,CACf,gBAAgB,CAAC,MAAM,KAAK,CAAC,EAC7B,oCAAoC,CACrC,CAAC;QACF,iBAAO,CAAC,SAAS,CACf,WAAW,CAAC,MAAM,KAAK,CAAC,E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CAAC;QACH,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,QAAQ;QACN,IAAI,CAAC,GAAG,EAAE,CAAC;QACX,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAC5C,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;gBACV,CAAC,IAAI,GAAG,CAAC,CAAC,qBAAqB;YACjC,CAAC;YACD,KAAK,MAAM,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC/B,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,IAAI,GAAG,CAAC;YAC3B,CAAC;QACH,CAAC;QACD,OAAO,CAAC,CAAC;IACX,CAAC;IAES,MAAM,CAAqB;;AAlGvC,kCAmGC"}
@@ -1,5 +1,5 @@
1
- export declare class NatoCharacter {
2
- readonly character: string;
3
- readonly word: string;
4
- constructor(character: string, word: string);
5
- }
1
+ export declare class NatoCharacter {
2
+ readonly character: string;
3
+ readonly word: string;
4
+ constructor(character: string, word: string);
5
+ }
@@ -1,11 +1,13 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NatoCharacter = void 0;
4
- class NatoCharacter {
5
- constructor(character, word) {
6
- this.character = character;
7
- this.word = word;
8
- }
9
- }
10
- exports.NatoCharacter = NatoCharacter;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NatoCharacter = void 0;
4
+ class NatoCharacter {
5
+ character;
6
+ word;
7
+ constructor(character, word) {
8
+ this.character = character;
9
+ this.word = word;
10
+ }
11
+ }
12
+ exports.NatoCharacter = NatoCharacter;
11
13
  //# sourceMappingURL=NatoCharacter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NatoCharacter.js","sourceRoot":"","sources":["../../../src/Nato/NatoCharacter.ts"],"names":[],"mappings":";;;AAAA,MAAa,aAAa;IAIxB,YAAY,SAAiB,EAAE,IAAY;QACzC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF;AARD,sCAQC"}
1
+ {"version":3,"file":"NatoCharacter.js","sourceRoot":"","sources":["../../../src/Nato/NatoCharacter.ts"],"names":[],"mappings":";;;AAAA,MAAa,aAAa;IACf,SAAS,CAAS;IAClB,IAAI,CAAS;IAEtB,YAAY,SAAiB,EAAE,IAAY;QACzC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF;AARD,sCAQC"}
@@ -1,7 +1,7 @@
1
- import { NatoCharacter } from './NatoCharacter';
2
- export declare class NatoData {
3
- static readonly instance: NatoData;
4
- private readonly _entries;
5
- get entries(): NatoCharacter[];
6
- lookup(letter: string): NatoCharacter | null;
7
- }
1
+ import { NatoCharacter } from './NatoCharacter';
2
+ export declare class NatoData {
3
+ static readonly instance: NatoData;
4
+ private readonly _entries;
5
+ get entries(): NatoCharacter[];
6
+ lookup(letter: string): NatoCharacter | null;
7
+ }
@@ -1,52 +1,50 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NatoData = void 0;
4
- const NatoCharacter_1 = require("./NatoCharacter");
5
- // There's no concept of a 'partial match' for a NATO letter, so there's no
6
- // reason to derive from EncodingDataBase.
7
- class NatoData {
8
- constructor() {
9
- this._entries = [
10
- new NatoCharacter_1.NatoCharacter('A', 'Alfa'),
11
- new NatoCharacter_1.NatoCharacter('B', 'Bravo'),
12
- new NatoCharacter_1.NatoCharacter('C', 'Charlie'),
13
- new NatoCharacter_1.NatoCharacter('D', 'Delta'),
14
- new NatoCharacter_1.NatoCharacter('E', 'Echo'),
15
- new NatoCharacter_1.NatoCharacter('F', 'Foxtrot'),
16
- new NatoCharacter_1.NatoCharacter('G', 'Golf'),
17
- new NatoCharacter_1.NatoCharacter('H', 'Hotel'),
18
- new NatoCharacter_1.NatoCharacter('I', 'India'),
19
- new NatoCharacter_1.NatoCharacter('J', 'Juliet'),
20
- new NatoCharacter_1.NatoCharacter('K', 'Kilo'),
21
- new NatoCharacter_1.NatoCharacter('L', 'Lima'),
22
- new NatoCharacter_1.NatoCharacter('M', 'Mike'),
23
- new NatoCharacter_1.NatoCharacter('N', 'November'),
24
- new NatoCharacter_1.NatoCharacter('O', 'Oscar'),
25
- new NatoCharacter_1.NatoCharacter('P', 'Papa'),
26
- new NatoCharacter_1.NatoCharacter('Q', 'Quebec'),
27
- new NatoCharacter_1.NatoCharacter('R', 'Romeo'),
28
- new NatoCharacter_1.NatoCharacter('S', 'Sierra'),
29
- new NatoCharacter_1.NatoCharacter('T', 'Tango'),
30
- new NatoCharacter_1.NatoCharacter('U', 'Uniform'),
31
- new NatoCharacter_1.NatoCharacter('V', 'Victor'),
32
- new NatoCharacter_1.NatoCharacter('W', 'Whiskey'),
33
- new NatoCharacter_1.NatoCharacter('X', 'X-ray'),
34
- new NatoCharacter_1.NatoCharacter('Y', 'Yankee'),
35
- new NatoCharacter_1.NatoCharacter('Z', 'Zulu'),
36
- ];
37
- }
38
- get entries() {
39
- return this._entries;
40
- }
41
- lookup(letter) {
42
- for (const ch of this._entries) {
43
- if (ch.character.toUpperCase() === letter.toUpperCase()) {
44
- return ch;
45
- }
46
- }
47
- return null;
48
- }
49
- }
50
- exports.NatoData = NatoData;
51
- NatoData.instance = new NatoData();
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NatoData = void 0;
4
+ const NatoCharacter_1 = require("./NatoCharacter");
5
+ // There's no concept of a 'partial match' for a NATO letter, so there's no
6
+ // reason to derive from EncodingDataBase.
7
+ class NatoData {
8
+ static instance = new NatoData();
9
+ _entries = [
10
+ new NatoCharacter_1.NatoCharacter('A', 'Alfa'),
11
+ new NatoCharacter_1.NatoCharacter('B', 'Bravo'),
12
+ new NatoCharacter_1.NatoCharacter('C', 'Charlie'),
13
+ new NatoCharacter_1.NatoCharacter('D', 'Delta'),
14
+ new NatoCharacter_1.NatoCharacter('E', 'Echo'),
15
+ new NatoCharacter_1.NatoCharacter('F', 'Foxtrot'),
16
+ new NatoCharacter_1.NatoCharacter('G', 'Golf'),
17
+ new NatoCharacter_1.NatoCharacter('H', 'Hotel'),
18
+ new NatoCharacter_1.NatoCharacter('I', 'India'),
19
+ new NatoCharacter_1.NatoCharacter('J', 'Juliett'),
20
+ new NatoCharacter_1.NatoCharacter('K', 'Kilo'),
21
+ new NatoCharacter_1.NatoCharacter('L', 'Lima'),
22
+ new NatoCharacter_1.NatoCharacter('M', 'Mike'),
23
+ new NatoCharacter_1.NatoCharacter('N', 'November'),
24
+ new NatoCharacter_1.NatoCharacter('O', 'Oscar'),
25
+ new NatoCharacter_1.NatoCharacter('P', 'Papa'),
26
+ new NatoCharacter_1.NatoCharacter('Q', 'Quebec'),
27
+ new NatoCharacter_1.NatoCharacter('R', 'Romeo'),
28
+ new NatoCharacter_1.NatoCharacter('S', 'Sierra'),
29
+ new NatoCharacter_1.NatoCharacter('T', 'Tango'),
30
+ new NatoCharacter_1.NatoCharacter('U', 'Uniform'),
31
+ new NatoCharacter_1.NatoCharacter('V', 'Victor'),
32
+ new NatoCharacter_1.NatoCharacter('W', 'Whiskey'),
33
+ new NatoCharacter_1.NatoCharacter('X', 'X-ray'),
34
+ new NatoCharacter_1.NatoCharacter('Y', 'Yankee'),
35
+ new NatoCharacter_1.NatoCharacter('Z', 'Zulu'),
36
+ ];
37
+ get entries() {
38
+ return this._entries;
39
+ }
40
+ lookup(letter) {
41
+ for (const ch of this._entries) {
42
+ if (ch.character.toUpperCase() === letter.toUpperCase()) {
43
+ return ch;
44
+ }
45
+ }
46
+ return null;
47
+ }
48
+ }
49
+ exports.NatoData = NatoData;
52
50
  //# sourceMappingURL=NatoData.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NatoData.js","sourceRoot":"","sources":["../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;AA3CH,4BA4CC"}
@@ -1,7 +1,7 @@
1
- import { CharacterImage } from '../Common/CharacterImage';
2
- export declare class NavalFlags {
3
- static readonly instance: NavalFlags;
4
- private readonly _entries;
5
- get entries(): CharacterImage[];
6
- lookup(letter: string): CharacterImage | null;
7
- }
1
+ import { CharacterImage } from '../Common/CharacterImage';
2
+ export declare class NavalFlags {
3
+ static readonly instance: NavalFlags;
4
+ private readonly _entries;
5
+ get entries(): CharacterImage[];
6
+ lookup(letter: string): CharacterImage | null;
7
+ }
@@ -1,114 +1,112 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NavalFlags = void 0;
4
- const CharacterImage_1 = require("../Common/CharacterImage");
5
- const InlineSvg_1 = require("../Common/InlineSvg");
6
- class NavalFlags {
7
- constructor() {
8
- this._entries = [
9
- // tslint:disable:max-line-length (SVG images are messy)
10
- new CharacterImage_1.CharacterImage('A', new InlineSvg_1.InlineSvg(`<path d="M 18,18 H 162 L 126,90 L 162,162 H 18 z" fill="#000094"/>
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NavalFlags = void 0;
4
+ const CharacterImage_1 = require("../Common/CharacterImage");
5
+ const InlineSvg_1 = require("../Common/InlineSvg");
6
+ class NavalFlags {
7
+ static instance = new NavalFlags();
8
+ _entries = [
9
+ // tslint:disable:max-line-length (SVG images are messy)
10
+ new CharacterImage_1.CharacterImage('A', new InlineSvg_1.InlineSvg(`<path d="M 18,18 H 162 L 126,90 L 162,162 H 18 z" fill="#000094"/>
11
11
  <rect x="18" y="18" width="72" height="144" fill="#fff"/>
12
- <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"/>`, 180, 180)),
13
- new CharacterImage_1.CharacterImage('B', new InlineSvg_1.InlineSvg('<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"/>', 180, 180)),
14
- new CharacterImage_1.CharacterImage('C', new InlineSvg_1.InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#000094"/>
12
+ <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"/>`, 180, 180)),
13
+ new CharacterImage_1.CharacterImage('B', new InlineSvg_1.InlineSvg('<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"/>', 180, 180)),
14
+ new CharacterImage_1.CharacterImage('C', new InlineSvg_1.InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#000094"/>
15
15
  <rect x="18" y="46.8" width="144" height="86.4" fill="#fff"/>
16
16
  <rect x="18" y="75.6" width="144" height="28.8" fill="#f00"/>
17
- <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
18
- new CharacterImage_1.CharacterImage('D', new InlineSvg_1.InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#fc0"/>
17
+ <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
18
+ new CharacterImage_1.CharacterImage('D', new InlineSvg_1.InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#fc0"/>
19
19
  <rect x="18" y="54" width="144" height="72" fill="#000094"/>
20
- <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
21
- new CharacterImage_1.CharacterImage('E', new InlineSvg_1.InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#000094"/>
20
+ <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
21
+ new CharacterImage_1.CharacterImage('E', new InlineSvg_1.InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#000094"/>
22
22
  <rect x="18" y="90" width="144" height="72" fill="#f00"/>
23
- <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
24
- new CharacterImage_1.CharacterImage('F', new InlineSvg_1.InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#fff"/>
23
+ <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
24
+ new CharacterImage_1.CharacterImage('F', new InlineSvg_1.InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#fff"/>
25
25
  <path d="M 90,18 l 72,72 l -72,72 l -72,-72 z" fill="#f00"/>
26
- <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
27
- new CharacterImage_1.CharacterImage('G', new InlineSvg_1.InlineSvg(`<path fill="#000094" d="m18,18h144v144H18"/>
26
+ <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
27
+ new CharacterImage_1.CharacterImage('G', new InlineSvg_1.InlineSvg(`<path fill="#000094" d="m18,18h144v144H18"/>
28
28
  <path stroke="#FC0" stroke-width="24" d="m30,18v144m48,0V18m48,0v144"/>
29
- <path d="M18,18H162V162H18z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
30
- new CharacterImage_1.CharacterImage('H', new InlineSvg_1.InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#f00"/>
29
+ <path d="M18,18H162V162H18z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
30
+ new CharacterImage_1.CharacterImage('H', new InlineSvg_1.InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#f00"/>
31
31
  <rect x="18" y="18" width="72" height="144" fill="#fff"/>
32
- <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
33
- new CharacterImage_1.CharacterImage('I', new InlineSvg_1.InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#fc0"/>
32
+ <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
33
+ new CharacterImage_1.CharacterImage('I', new InlineSvg_1.InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#fc0"/>
34
34
  <circle cx="90" cy="90" r="36" fill="#000"/>
35
- <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
36
- new CharacterImage_1.CharacterImage('J', new InlineSvg_1.InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#000094"/>
35
+ <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
36
+ new CharacterImage_1.CharacterImage('J', new InlineSvg_1.InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#000094"/>
37
37
  <rect x="18" y="66" width="144" height="48" fill="#fff"/>
38
- <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
39
- new CharacterImage_1.CharacterImage('K', new InlineSvg_1.InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#000094"/>
38
+ <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
39
+ new CharacterImage_1.CharacterImage('K', new InlineSvg_1.InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#000094"/>
40
40
  <rect x="18" y="18" width="72" height="144" fill="#fc0"/>
41
- <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
42
- new CharacterImage_1.CharacterImage('L', new InlineSvg_1.InlineSvg(`<rect x="16" y="16" width="148" height="148" rx="2"/>
43
- <path fill="#FC0" d="m20,20h70v140h70V90H20"/>`, 180, 180)),
44
- new CharacterImage_1.CharacterImage('M', new InlineSvg_1.InlineSvg(`<clipPath id="c">
41
+ <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
42
+ new CharacterImage_1.CharacterImage('L', new InlineSvg_1.InlineSvg(`<rect x="16" y="16" width="148" height="148" rx="2"/>
43
+ <path fill="#FC0" d="m20,20h70v140h70V90H20"/>`, 180, 180)),
44
+ new CharacterImage_1.CharacterImage('M', new InlineSvg_1.InlineSvg(`<clipPath id="c">
45
45
  <path d="M 18,18 H 162 V 162 H 18 z"/>
46
46
  </clipPath>
47
47
  <rect x="18" y="18" width="144" height="144" fill="#000094"/>
48
48
  <path d="M 18,18 L 162,162 M 162,18 L 18,162" clip-path="url(#c)" stroke="#fff" stroke-width="28.8"/>
49
- <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
50
- new CharacterImage_1.CharacterImage('N', new InlineSvg_1.InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#fff"/>
49
+ <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
50
+ new CharacterImage_1.CharacterImage('N', new InlineSvg_1.InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#fff"/>
51
51
  <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"/>
52
- <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
53
- new CharacterImage_1.CharacterImage('O', new InlineSvg_1.InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#fc0"/>
52
+ <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
53
+ new CharacterImage_1.CharacterImage('O', new InlineSvg_1.InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#fc0"/>
54
54
  <path d="M 18,18 H 162 V 162 z" fill="#f00"/>
55
- <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
56
- new CharacterImage_1.CharacterImage('P', new InlineSvg_1.InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#000094"/>
55
+ <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
56
+ new CharacterImage_1.CharacterImage('P', new InlineSvg_1.InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#000094"/>
57
57
  <rect x="54" y="54" width="72" height="72" fill="#fff"/>
58
- <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
59
- new CharacterImage_1.CharacterImage('Q', new InlineSvg_1.InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#fc0"/>
60
- <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
61
- new CharacterImage_1.CharacterImage('R', new InlineSvg_1.InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#f00"/>
58
+ <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
59
+ new CharacterImage_1.CharacterImage('Q', new InlineSvg_1.InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#fc0"/>
60
+ <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
61
+ new CharacterImage_1.CharacterImage('R', new InlineSvg_1.InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#f00"/>
62
62
  <path d="M 90,18 V 162 M 18,90 H 162" stroke="#fc0" stroke-width="36"/>
63
- <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
64
- new CharacterImage_1.CharacterImage('S', new InlineSvg_1.InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#fff"/>
63
+ <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
64
+ new CharacterImage_1.CharacterImage('S', new InlineSvg_1.InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#fff"/>
65
65
  <rect x="54" y="54" width="72" height="72" fill="#000094"/>
66
- <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
67
- new CharacterImage_1.CharacterImage('T', new InlineSvg_1.InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#000094"/>
66
+ <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
67
+ new CharacterImage_1.CharacterImage('T', new InlineSvg_1.InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#000094"/>
68
68
  <rect x="18" y="18" width="96" height="144" fill="#fff"/>
69
69
  <rect x="18" y="18" width="48" height="144" fill="#f00"/>
70
- <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
71
- new CharacterImage_1.CharacterImage('U', new InlineSvg_1.InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#ffffff"/>
70
+ <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
71
+ new CharacterImage_1.CharacterImage('U', new InlineSvg_1.InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#ffffff"/>
72
72
  <path d="M 18,18 H 90 V 90 H 18 z" fill="#ff0000"/>
73
73
  <path d="M 162,91 H 91 V 162 H 162 z" fill="#ff0000"/>
74
- <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
75
- new CharacterImage_1.CharacterImage('V', new InlineSvg_1.InlineSvg(`<clipPath id="c">
74
+ <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
75
+ new CharacterImage_1.CharacterImage('V', new InlineSvg_1.InlineSvg(`<clipPath id="c">
76
76
  <path d="M 18,18 H 162 V 162 H 18 z"/>
77
77
  </clipPath>
78
78
  <rect x="18" y="18" width="144" height="144" fill="#fff"/>
79
79
  <path d="M 18,18 L 162,162 M 162,18 L 18,162" clip-path="url(#c)" stroke="#f00" stroke-width="28.8"/>
80
- <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
81
- new CharacterImage_1.CharacterImage('W', new InlineSvg_1.InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#000094"/>
80
+ <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
81
+ new CharacterImage_1.CharacterImage('W', new InlineSvg_1.InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#000094"/>
82
82
  <rect x="42" y="42" width="96" height="96" fill="#fff"/>
83
83
  <rect x="66" y="66" width="48" height="48" fill="#f00"/>
84
- <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
85
- new CharacterImage_1.CharacterImage('X', new InlineSvg_1.InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#fff"/>
84
+ <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
85
+ new CharacterImage_1.CharacterImage('X', new InlineSvg_1.InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#fff"/>
86
86
  <path d="M 90,18 V 162 M 18,90 H 162" stroke="#000094" stroke-width="36"/>
87
- <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
88
- new CharacterImage_1.CharacterImage('Y', new InlineSvg_1.InlineSvg(`<clipPath id="c"><path d="m18,18h144v144H18"/></clipPath>
87
+ <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
88
+ new CharacterImage_1.CharacterImage('Y', new InlineSvg_1.InlineSvg(`<clipPath id="c"><path d="m18,18h144v144H18"/></clipPath>
89
89
  <path fill="#FC0" d="m18,18h144v144H18"/>
90
90
  <path stroke="#F00" stroke-dasharray="18.8" stroke-width="250" clip-path="url(#c)" d="m4,4 160,160"/>
91
- <path fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round" d="M18,18H162V162H18z"/>`, 180, 180)),
92
- new CharacterImage_1.CharacterImage('Z', new InlineSvg_1.InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#fc0"/>
91
+ <path fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round" d="M18,18H162V162H18z"/>`, 180, 180)),
92
+ new CharacterImage_1.CharacterImage('Z', new InlineSvg_1.InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#fc0"/>
93
93
  <path d="M 18,18 V 162 H 162 z" fill="#000"/>
94
94
  <path d="M 162,18 V 162 H 18 z" fill="#000094"/>
95
95
  <path d="M 90,90 L 162,162 H 18 z" fill="#f00"/>
96
- <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
97
- // tslint:enable:max-line-length
98
- ];
99
- }
100
- get entries() {
101
- return this._entries;
102
- }
103
- lookup(letter) {
104
- for (const ch of this._entries) {
105
- if (ch.character.toUpperCase() === letter.toUpperCase()) {
106
- return ch;
107
- }
108
- }
109
- return null;
110
- }
111
- }
112
- exports.NavalFlags = NavalFlags;
113
- NavalFlags.instance = new NavalFlags();
96
+ <path d="M 18,18 H 162 V 162 H 18 z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
97
+ // tslint:enable:max-line-length
98
+ ];
99
+ get entries() {
100
+ return this._entries;
101
+ }
102
+ lookup(letter) {
103
+ for (const ch of this._entries) {
104
+ if (ch.character.toUpperCase() === letter.toUpperCase()) {
105
+ return ch;
106
+ }
107
+ }
108
+ return null;
109
+ }
110
+ }
111
+ exports.NavalFlags = NavalFlags;
114
112
  //# sourceMappingURL=NavalFlags.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavalFlags.js","sourceRoot":"","sources":["../../../src/NavalFlags/NavalFlags.ts"],"names":[],"mappings":";;;AAAA,6DAAwD;AACxD,mDAA8C;AAE9C,MAAa,UAAU;IAAvB;QAGmB,aAAQ,GAAqB;YAC5C,wDAAwD;YACxD,IAAI,+BAAc,CAChB,GAAG,EACH,IAAI,qBAAS,CACX;;gIAEwH,EACxH,GAAG,EACH,GAAG,CACJ,CACF;YACD,IAAI,+BAAc,CAChB,GAAG,EACH,IAAI,qBAAS,CACX,2HAA2H,EAC3H,GAAG,EACH,GAAG,CACJ,CACF;YACD,IAAI,+BAAc,CAChB,GAAG,EACH,IAAI,qBAAS,CACX;;;mHAG2G,EAC3G,GAAG,EACH,GAAG,CACJ,CACF;YACD,IAAI,+BAAc,CAChB,GAAG,EACH,IAAI,qBAAS,CACX;;mHAE2G,EAC3G,GAAG,EACH,GAAG,CACJ,CACF;YACD,IAAI,+BAAc,CAChB,GAAG,EACH,IAAI,qBAAS,CACX;;mHAE2G,EAC3G,GAAG,EACH,GAAG,CACJ,CACF;YACD,IAAI,+BAAc,CAChB,GAAG,EACH,IAAI,qBAA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