puzzle-lib 2.0.0-alpha.2 → 2.0.0-beta.2
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.
- package/README.md +62 -9
- package/build/src/{Braille → braille}/braille.d.ts +4 -4
- package/build/src/braille/braille.js +121 -0
- package/build/src/braille/braille.js.map +1 -0
- package/build/src/{Braille/BrailleDot.js → braille/dot.js} +3 -6
- package/build/src/braille/dot.js.map +1 -0
- package/build/src/{Braille/BrailleEncoding.js → braille/encoding.js} +4 -7
- package/build/src/braille/encoding.js.map +1 -0
- package/build/src/braille/index.d.ts +3 -0
- package/build/src/braille/index.js +4 -0
- package/build/src/braille/index.js.map +1 -0
- package/build/src/{Cipher → cipher}/cipher.js +10 -20
- package/build/src/cipher/cipher.js.map +1 -0
- package/build/src/cipher/index.d.ts +1 -0
- package/build/src/cipher/index.js +2 -0
- package/build/src/cipher/index.js.map +1 -0
- package/build/src/{Common/CharacterImage.d.ts → common/character-image.d.ts} +1 -1
- package/build/src/common/character-image.js +9 -0
- package/build/src/common/character-image.js.map +1 -0
- package/build/src/{Common/EncodingCategory.js → common/encoding-category.js} +3 -6
- package/build/src/common/encoding-category.js.map +1 -0
- package/build/src/{Common/EncodingEntry.d.ts → common/encoding-entry.d.ts} +1 -1
- package/build/src/{Common/EncodingEntry.js → common/encoding-entry.js} +2 -6
- package/build/src/common/encoding-entry.js.map +1 -0
- package/build/src/{Common/EncodingLookupResult.d.ts → common/encoding-lookup-result.d.ts} +1 -1
- package/build/src/common/encoding-lookup-result.js +8 -0
- package/build/src/common/encoding-lookup-result.js.map +1 -0
- package/build/src/common/index.d.ts +5 -0
- package/build/src/common/index.js +6 -0
- package/build/src/common/index.js.map +1 -0
- package/build/src/{Common/InlineSvg.js → common/inline-svg.js} +2 -6
- package/build/src/common/inline-svg.js.map +1 -0
- package/build/src/{Conversion/characterConversion.d.ts → conversion/character-conversion.d.ts} +1 -1
- package/build/src/{Conversion/characterConversion.js → conversion/character-conversion.js} +7 -13
- package/build/src/conversion/character-conversion.js.map +1 -0
- package/build/src/{Conversion/CharacterEncoding.d.ts → conversion/character-encoding.d.ts} +2 -1
- package/build/src/{Conversion/CharacterEncoding.js → conversion/character-encoding.js} +4 -6
- package/build/src/conversion/character-encoding.js.map +1 -0
- package/build/src/{Conversion/CharacterTableEntry.js → conversion/character-table-entry.js} +2 -6
- package/build/src/conversion/character-table-entry.js.map +1 -0
- package/build/src/{Conversion → conversion}/conversion.d.ts +3 -1
- package/build/src/conversion/conversion.js +183 -0
- package/build/src/conversion/conversion.js.map +1 -0
- package/build/src/conversion/index.d.ts +5 -0
- package/build/src/conversion/index.js +6 -0
- package/build/src/conversion/index.js.map +1 -0
- package/build/src/{Conversion/significantFigures.js → conversion/significant-figures.js} +4 -9
- package/build/src/conversion/significant-figures.js.map +1 -0
- package/build/src/{Morse/MorseEncoding.js → morse/encoding.js} +3 -6
- package/build/src/morse/encoding.js.map +1 -0
- package/build/src/morse/index.d.ts +2 -0
- package/build/src/morse/index.js +3 -0
- package/build/src/morse/index.js.map +1 -0
- package/build/src/{Morse → morse}/morse.d.ts +5 -5
- package/build/src/morse/morse.js +222 -0
- package/build/src/morse/morse.js.map +1 -0
- package/build/src/nato/character.js +9 -0
- package/build/src/nato/character.js.map +1 -0
- package/build/src/nato/index.d.ts +2 -0
- package/build/src/nato/index.js +3 -0
- package/build/src/nato/index.js.map +1 -0
- package/build/src/{Nato → nato}/nato.d.ts +1 -1
- package/build/src/nato/nato.js +33 -0
- package/build/src/nato/nato.js.map +1 -0
- package/build/src/naval-flags/index.d.ts +1 -0
- package/build/src/naval-flags/index.js +2 -0
- package/build/src/naval-flags/index.js.map +1 -0
- package/build/src/{NavalFlags/navalFlags.d.ts → naval-flags/naval-flags.d.ts} +1 -1
- package/build/src/{NavalFlags/navalFlags.js → naval-flags/naval-flags.js} +32 -36
- package/build/src/naval-flags/naval-flags.js.map +1 -0
- package/build/src/ngrams/bigrams.d.ts +2 -0
- package/build/src/ngrams/bigrams.js +684 -0
- package/build/src/ngrams/bigrams.js.map +1 -0
- package/build/src/ngrams/index.d.ts +1 -0
- package/build/src/ngrams/index.js +2 -0
- package/build/src/ngrams/index.js.map +1 -0
- package/build/src/ngrams/ngrams.d.ts +13 -0
- package/build/src/ngrams/ngrams.js +71 -0
- package/build/src/ngrams/ngrams.js.map +1 -0
- package/build/src/ngrams/trigrams.d.ts +2 -0
- package/build/src/ngrams/trigrams.js +17583 -0
- package/build/src/ngrams/trigrams.js.map +1 -0
- package/build/src/ngrams/unigrams.d.ts +2 -0
- package/build/src/ngrams/unigrams.js +34 -0
- package/build/src/ngrams/unigrams.js.map +1 -0
- package/build/src/phone/index.d.ts +2 -0
- package/build/src/phone/index.js +2 -0
- package/build/src/phone/index.js.map +1 -0
- package/build/src/phone/phone-mapping.d.ts +10 -0
- package/build/src/phone/phone-mapping.js +27 -0
- package/build/src/phone/phone-mapping.js.map +1 -0
- package/build/src/phone/phone.d.ts +27 -0
- package/build/src/phone/phone.js +62 -0
- package/build/src/phone/phone.js.map +1 -0
- package/build/src/pigpen/encoding.d.ts +29 -0
- package/build/src/pigpen/encoding.js +36 -0
- package/build/src/pigpen/encoding.js.map +1 -0
- package/build/src/pigpen/index.d.ts +3 -0
- package/build/src/pigpen/index.js +4 -0
- package/build/src/pigpen/index.js.map +1 -0
- package/build/src/pigpen/pigpen.d.ts +35 -0
- package/build/src/pigpen/pigpen.js +137 -0
- package/build/src/pigpen/pigpen.js.map +1 -0
- package/build/src/pigpen/segment.d.ts +12 -0
- package/build/src/pigpen/segment.js +14 -0
- package/build/src/pigpen/segment.js.map +1 -0
- package/build/src/resistor/index.d.ts +2 -0
- package/build/src/resistor/index.js +2 -0
- package/build/src/resistor/index.js.map +1 -0
- package/build/src/{Resistor → resistor}/resistor.js +7 -14
- package/build/src/resistor/resistor.js.map +1 -0
- package/build/src/{Semaphore/SemaphoreDirection.js → semaphore/direction.js} +3 -6
- package/build/src/semaphore/direction.js.map +1 -0
- package/build/src/{Semaphore/SemaphoreEncoding.js → semaphore/encoding.js} +4 -7
- package/build/src/semaphore/encoding.js.map +1 -0
- package/build/src/semaphore/index.d.ts +3 -0
- package/build/src/semaphore/index.js +4 -0
- package/build/src/semaphore/index.js.map +1 -0
- package/build/src/{Semaphore → semaphore}/semaphore.d.ts +4 -4
- package/build/src/semaphore/semaphore.js +207 -0
- package/build/src/semaphore/semaphore.js.map +1 -0
- package/build/src/{WordSearch/WordSearchDirection.js → word-search/direction.js} +3 -6
- package/build/src/word-search/direction.js.map +1 -0
- package/build/src/word-search/index.d.ts +5 -0
- package/build/src/word-search/index.js +4 -0
- package/build/src/word-search/index.js.map +1 -0
- package/build/src/word-search/point.d.ts +4 -0
- package/build/src/word-search/point.js +2 -0
- package/build/src/word-search/point.js.map +1 -0
- package/build/src/word-search/result.d.ts +6 -0
- package/build/src/word-search/result.js +9 -0
- package/build/src/word-search/result.js.map +1 -0
- package/build/src/word-search/word-search.d.ts +10 -0
- package/build/src/{WordSearch/wordSearch.js → word-search/word-search.js} +28 -55
- package/build/src/word-search/word-search.js.map +1 -0
- package/package.json +57 -3
- package/src/{Braille → braille}/braille.ts +5 -5
- package/src/{Braille/BrailleEncoding.ts → braille/encoding.ts} +1 -1
- package/src/braille/index.ts +8 -0
- package/src/{Cipher → cipher}/cipher.ts +1 -1
- package/src/cipher/index.ts +10 -0
- package/src/{Common/CharacterImage.ts → common/character-image.ts} +1 -1
- package/src/{Common/EncodingEntry.ts → common/encoding-entry.ts} +1 -1
- package/src/{Common/EncodingLookupResult.ts → common/encoding-lookup-result.ts} +1 -1
- package/src/common/index.ts +5 -0
- package/src/{Conversion/characterConversion.ts → conversion/character-conversion.ts} +1 -1
- package/src/{Conversion/CharacterEncoding.ts → conversion/character-encoding.ts} +1 -0
- package/src/{Conversion → conversion}/conversion.ts +77 -2
- package/src/conversion/index.ts +15 -0
- package/src/morse/index.ts +14 -0
- package/src/{Morse → morse}/morse.ts +6 -6
- package/src/nato/index.ts +2 -0
- package/src/{Nato → nato}/nato.ts +1 -1
- package/src/naval-flags/index.ts +1 -0
- package/src/{NavalFlags/navalFlags.ts → naval-flags/naval-flags.ts} +2 -2
- package/src/ngrams/bigrams.ts +684 -0
- package/src/ngrams/index.ts +1 -0
- package/src/ngrams/ngrams.ts +73 -0
- package/src/ngrams/trigrams.ts +17584 -0
- package/src/ngrams/unigrams.ts +34 -0
- package/src/phone/index.ts +2 -0
- package/src/phone/phone-mapping.ts +27 -0
- package/src/phone/phone.ts +77 -0
- package/src/pigpen/encoding.ts +66 -0
- package/src/pigpen/index.ts +11 -0
- package/src/pigpen/pigpen.ts +168 -0
- package/src/pigpen/segment.ts +12 -0
- package/src/resistor/index.ts +9 -0
- package/src/{Semaphore/SemaphoreEncoding.ts → semaphore/encoding.ts} +1 -1
- package/src/semaphore/index.ts +13 -0
- package/src/{Semaphore → semaphore}/semaphore.ts +5 -5
- package/src/trie-prefix-tree.d.ts +1 -3
- package/src/word-search/index.ts +5 -0
- package/src/word-search/point.ts +4 -0
- package/src/word-search/result.ts +10 -0
- package/src/{WordSearch/wordSearch.ts → word-search/word-search.ts} +44 -70
- package/build/src/Braille/BrailleDot.js.map +0 -1
- package/build/src/Braille/BrailleEncoding.js.map +0 -1
- package/build/src/Braille/braille.js +0 -127
- package/build/src/Braille/braille.js.map +0 -1
- package/build/src/Cipher/cipher.js.map +0 -1
- package/build/src/Common/CharacterImage.js +0 -13
- package/build/src/Common/CharacterImage.js.map +0 -1
- package/build/src/Common/EncodingCategory.js.map +0 -1
- package/build/src/Common/EncodingEntry.js.map +0 -1
- package/build/src/Common/EncodingLookupResult.js +0 -12
- package/build/src/Common/EncodingLookupResult.js.map +0 -1
- package/build/src/Common/InlineSvg.js.map +0 -1
- package/build/src/Conversion/CharacterEncoding.js.map +0 -1
- package/build/src/Conversion/CharacterTableEntry.js.map +0 -1
- package/build/src/Conversion/characterConversion.js.map +0 -1
- package/build/src/Conversion/conversion.js +0 -130
- package/build/src/Conversion/conversion.js.map +0 -1
- package/build/src/Conversion/significantFigures.js.map +0 -1
- package/build/src/Morse/MorseEncoding.js.map +0 -1
- package/build/src/Morse/morse.js +0 -232
- package/build/src/Morse/morse.js.map +0 -1
- package/build/src/Nato/NatoCharacter.js +0 -13
- package/build/src/Nato/NatoCharacter.js.map +0 -1
- package/build/src/Nato/nato.js +0 -37
- package/build/src/Nato/nato.js.map +0 -1
- package/build/src/NavalFlags/navalFlags.js.map +0 -1
- package/build/src/Resistor/resistor.js.map +0 -1
- package/build/src/Semaphore/SemaphoreDirection.js.map +0 -1
- package/build/src/Semaphore/SemaphoreEncoding.js.map +0 -1
- package/build/src/Semaphore/semaphore.js +0 -218
- package/build/src/Semaphore/semaphore.js.map +0 -1
- package/build/src/WordSearch/Point.d.ts +0 -4
- package/build/src/WordSearch/Point.js +0 -3
- package/build/src/WordSearch/Point.js.map +0 -1
- package/build/src/WordSearch/Result.d.ts +0 -6
- package/build/src/WordSearch/Result.js +0 -13
- package/build/src/WordSearch/Result.js.map +0 -1
- package/build/src/WordSearch/WordSearchDirection.js.map +0 -1
- package/build/src/WordSearch/wordSearch.d.ts +0 -16
- package/build/src/WordSearch/wordSearch.js.map +0 -1
- package/build/src/index.d.ts +0 -29
- package/build/src/index.js +0 -102
- package/build/src/index.js.map +0 -1
- package/src/WordSearch/Point.ts +0 -4
- package/src/WordSearch/Result.ts +0 -10
- package/src/index.ts +0 -90
- /package/build/src/{Braille/BrailleDot.d.ts → braille/dot.d.ts} +0 -0
- /package/build/src/{Braille/BrailleEncoding.d.ts → braille/encoding.d.ts} +0 -0
- /package/build/src/{Cipher → cipher}/cipher.d.ts +0 -0
- /package/build/src/{Common/EncodingCategory.d.ts → common/encoding-category.d.ts} +0 -0
- /package/build/src/{Common/InlineSvg.d.ts → common/inline-svg.d.ts} +0 -0
- /package/build/src/{Conversion/CharacterTableEntry.d.ts → conversion/character-table-entry.d.ts} +0 -0
- /package/build/src/{Conversion/significantFigures.d.ts → conversion/significant-figures.d.ts} +0 -0
- /package/build/src/{Morse/MorseEncoding.d.ts → morse/encoding.d.ts} +0 -0
- /package/build/src/{Nato/NatoCharacter.d.ts → nato/character.d.ts} +0 -0
- /package/build/src/{Resistor → resistor}/resistor.d.ts +0 -0
- /package/build/src/{Semaphore/SemaphoreDirection.d.ts → semaphore/direction.d.ts} +0 -0
- /package/build/src/{Semaphore/SemaphoreEncoding.d.ts → semaphore/encoding.d.ts} +0 -0
- /package/build/src/{WordSearch/WordSearchDirection.d.ts → word-search/direction.d.ts} +0 -0
- /package/src/{Braille/BrailleDot.ts → braille/dot.ts} +0 -0
- /package/src/{Common/EncodingCategory.ts → common/encoding-category.ts} +0 -0
- /package/src/{Common/InlineSvg.ts → common/inline-svg.ts} +0 -0
- /package/src/{Conversion/CharacterTableEntry.ts → conversion/character-table-entry.ts} +0 -0
- /package/src/{Conversion/significantFigures.ts → conversion/significant-figures.ts} +0 -0
- /package/src/{Morse/MorseEncoding.ts → morse/encoding.ts} +0 -0
- /package/src/{Nato/NatoCharacter.ts → nato/character.ts} +0 -0
- /package/src/{NavalFlags → naval-flags}/LICENSE +0 -0
- /package/src/{Resistor → resistor}/resistor.ts +0 -0
- /package/src/{Semaphore/SemaphoreDirection.ts → semaphore/direction.ts} +0 -0
- /package/src/{WordSearch/WordSearchDirection.ts → word-search/direction.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"character.js","sourceRoot":"","sources":["../../../src/nato/character.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/nato/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kBAAkB,EAAE,aAAa,EAAC,MAAM,WAAW,CAAC;AAC5D,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { NatoCharacter } from './character.js';
|
|
2
|
+
export const NATO_ALPHABET = [
|
|
3
|
+
new NatoCharacter('A', 'Alfa'),
|
|
4
|
+
new NatoCharacter('B', 'Bravo'),
|
|
5
|
+
new NatoCharacter('C', 'Charlie'),
|
|
6
|
+
new NatoCharacter('D', 'Delta'),
|
|
7
|
+
new NatoCharacter('E', 'Echo'),
|
|
8
|
+
new NatoCharacter('F', 'Foxtrot'),
|
|
9
|
+
new NatoCharacter('G', 'Golf'),
|
|
10
|
+
new NatoCharacter('H', 'Hotel'),
|
|
11
|
+
new NatoCharacter('I', 'India'),
|
|
12
|
+
new NatoCharacter('J', 'Juliett'),
|
|
13
|
+
new NatoCharacter('K', 'Kilo'),
|
|
14
|
+
new NatoCharacter('L', 'Lima'),
|
|
15
|
+
new NatoCharacter('M', 'Mike'),
|
|
16
|
+
new NatoCharacter('N', 'November'),
|
|
17
|
+
new NatoCharacter('O', 'Oscar'),
|
|
18
|
+
new NatoCharacter('P', 'Papa'),
|
|
19
|
+
new NatoCharacter('Q', 'Quebec'),
|
|
20
|
+
new NatoCharacter('R', 'Romeo'),
|
|
21
|
+
new NatoCharacter('S', 'Sierra'),
|
|
22
|
+
new NatoCharacter('T', 'Tango'),
|
|
23
|
+
new NatoCharacter('U', 'Uniform'),
|
|
24
|
+
new NatoCharacter('V', 'Victor'),
|
|
25
|
+
new NatoCharacter('W', 'Whiskey'),
|
|
26
|
+
new NatoCharacter('X', 'X-ray'),
|
|
27
|
+
new NatoCharacter('Y', 'Yankee'),
|
|
28
|
+
new NatoCharacter('Z', 'Zulu'),
|
|
29
|
+
];
|
|
30
|
+
export function lookupNatoPhonetic(character) {
|
|
31
|
+
return NATO_ALPHABET.find(ch => ch.character.toUpperCase() === character.toUpperCase());
|
|
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,CAAC,GAAG,EAAE,SAAS,CAAC;IACjC,IAAI,aAAa,CAAC,GAAG,EAAE,QAAQ,CAAC;IAChC,IAAI,aAAa,CAAC,GAAG,EAAE,SAAS,CAAC;IACjC,IAAI,aAAa,CAAC,GAAG,EAAE,OAAO,CAAC;IAC/B,IAAI,aAAa,CAAC,GAAG,EAAE,QAAQ,CAAC;IAChC,IAAI,aAAa,CAAC,GAAG,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,MAAM,UAAU,kBAAkB,CAChC,SAAiB;IAEjB,OAAO,aAAa,CAAC,IAAI,CACvB,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,SAAS,CAAC,WAAW,EAAE,KAAK,SAAS,CAAC,WAAW,EAAE,CAC7D,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { getNavalFlag, NAVAL_FLAGS } from './naval-flags.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/naval-flags/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAE,WAAW,EAAC,MAAM,kBAAkB,CAAC"}
|
|
@@ -1,99 +1,95 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const CharacterImage_1 = require("../Common/CharacterImage");
|
|
6
|
-
const InlineSvg_1 = require("../Common/InlineSvg");
|
|
7
|
-
exports.NAVAL_FLAGS = [
|
|
8
|
-
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
|
+
import { CharacterImage } from '../common/character-image.js';
|
|
2
|
+
import { InlineSvg } from '../common/inline-svg.js';
|
|
3
|
+
export const NAVAL_FLAGS = [
|
|
4
|
+
new CharacterImage('A', new InlineSvg(`<path d="M 18,18 H 162 L 126,90 L 162,162 H 18 z" fill="#000094"/>
|
|
9
5
|
<rect x="18" y="18" width="72" height="144" fill="#fff"/>
|
|
10
6
|
<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)),
|
|
11
|
-
new
|
|
12
|
-
new
|
|
7
|
+
new CharacterImage('B', new 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)),
|
|
8
|
+
new CharacterImage('C', new InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#000094"/>
|
|
13
9
|
<rect x="18" y="46.8" width="144" height="86.4" fill="#fff"/>
|
|
14
10
|
<rect x="18" y="75.6" width="144" height="28.8" fill="#f00"/>
|
|
15
11
|
<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)),
|
|
16
|
-
new
|
|
12
|
+
new CharacterImage('D', new InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#fc0"/>
|
|
17
13
|
<rect x="18" y="54" width="144" height="72" fill="#000094"/>
|
|
18
14
|
<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)),
|
|
19
|
-
new
|
|
15
|
+
new CharacterImage('E', new InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#000094"/>
|
|
20
16
|
<rect x="18" y="90" width="144" height="72" fill="#f00"/>
|
|
21
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)),
|
|
22
|
-
new
|
|
18
|
+
new CharacterImage('F', new InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#fff"/>
|
|
23
19
|
<path d="M 90,18 l 72,72 l -72,72 l -72,-72 z" fill="#f00"/>
|
|
24
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)),
|
|
25
|
-
new
|
|
21
|
+
new CharacterImage('G', new InlineSvg(`<path fill="#000094" d="m18,18h144v144H18"/>
|
|
26
22
|
<path stroke="#FC0" stroke-width="24" d="m30,18v144m48,0V18m48,0v144"/>
|
|
27
23
|
<path d="M18,18H162V162H18z" fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round"/>`, 180, 180)),
|
|
28
|
-
new
|
|
24
|
+
new CharacterImage('H', new InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#f00"/>
|
|
29
25
|
<rect x="18" y="18" width="72" height="144" fill="#fff"/>
|
|
30
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)),
|
|
31
|
-
new
|
|
27
|
+
new CharacterImage('I', new InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#fc0"/>
|
|
32
28
|
<circle cx="90" cy="90" r="36" fill="#000"/>
|
|
33
29
|
<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)),
|
|
34
|
-
new
|
|
30
|
+
new CharacterImage('J', new InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#000094"/>
|
|
35
31
|
<rect x="18" y="66" width="144" height="48" fill="#fff"/>
|
|
36
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)),
|
|
37
|
-
new
|
|
33
|
+
new CharacterImage('K', new InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#000094"/>
|
|
38
34
|
<rect x="18" y="18" width="72" height="144" fill="#fc0"/>
|
|
39
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)),
|
|
40
|
-
new
|
|
36
|
+
new CharacterImage('L', new InlineSvg(`<rect x="16" y="16" width="148" height="148" rx="2"/>
|
|
41
37
|
<path fill="#FC0" d="m20,20h70v140h70V90H20"/>`, 180, 180)),
|
|
42
|
-
new
|
|
38
|
+
new CharacterImage('M', new InlineSvg(`<clipPath id="c">
|
|
43
39
|
<path d="M 18,18 H 162 V 162 H 18 z"/>
|
|
44
40
|
</clipPath>
|
|
45
41
|
<rect x="18" y="18" width="144" height="144" fill="#000094"/>
|
|
46
42
|
<path d="M 18,18 L 162,162 M 162,18 L 18,162" clip-path="url(#c)" stroke="#fff" stroke-width="28.8"/>
|
|
47
43
|
<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)),
|
|
48
|
-
new
|
|
44
|
+
new CharacterImage('N', new InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#fff"/>
|
|
49
45
|
<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"/>
|
|
50
46
|
<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)),
|
|
51
|
-
new
|
|
47
|
+
new CharacterImage('O', new InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#fc0"/>
|
|
52
48
|
<path d="M 18,18 H 162 V 162 z" fill="#f00"/>
|
|
53
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)),
|
|
54
|
-
new
|
|
50
|
+
new CharacterImage('P', new InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#000094"/>
|
|
55
51
|
<rect x="54" y="54" width="72" height="72" fill="#fff"/>
|
|
56
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)),
|
|
57
|
-
new
|
|
53
|
+
new CharacterImage('Q', new InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#fc0"/>
|
|
58
54
|
<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
|
|
55
|
+
new CharacterImage('R', new InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#f00"/>
|
|
60
56
|
<path d="M 90,18 V 162 M 18,90 H 162" stroke="#fc0" stroke-width="36"/>
|
|
61
57
|
<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)),
|
|
62
|
-
new
|
|
58
|
+
new CharacterImage('S', new InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#fff"/>
|
|
63
59
|
<rect x="54" y="54" width="72" height="72" fill="#000094"/>
|
|
64
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)),
|
|
65
|
-
new
|
|
61
|
+
new CharacterImage('T', new InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#000094"/>
|
|
66
62
|
<rect x="18" y="18" width="96" height="144" fill="#fff"/>
|
|
67
63
|
<rect x="18" y="18" width="48" height="144" fill="#f00"/>
|
|
68
64
|
<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)),
|
|
69
|
-
new
|
|
65
|
+
new CharacterImage('U', new InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#ffffff"/>
|
|
70
66
|
<path d="M 18,18 H 90 V 90 H 18 z" fill="#ff0000"/>
|
|
71
67
|
<path d="M 162,91 H 91 V 162 H 162 z" fill="#ff0000"/>
|
|
72
68
|
<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)),
|
|
73
|
-
new
|
|
69
|
+
new CharacterImage('V', new InlineSvg(`<clipPath id="c">
|
|
74
70
|
<path d="M 18,18 H 162 V 162 H 18 z"/>
|
|
75
71
|
</clipPath>
|
|
76
72
|
<rect x="18" y="18" width="144" height="144" fill="#fff"/>
|
|
77
73
|
<path d="M 18,18 L 162,162 M 162,18 L 18,162" clip-path="url(#c)" stroke="#f00" stroke-width="28.8"/>
|
|
78
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)),
|
|
79
|
-
new
|
|
75
|
+
new CharacterImage('W', new InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#000094"/>
|
|
80
76
|
<rect x="42" y="42" width="96" height="96" fill="#fff"/>
|
|
81
77
|
<rect x="66" y="66" width="48" height="48" fill="#f00"/>
|
|
82
78
|
<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)),
|
|
83
|
-
new
|
|
79
|
+
new CharacterImage('X', new InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#fff"/>
|
|
84
80
|
<path d="M 90,18 V 162 M 18,90 H 162" stroke="#000094" stroke-width="36"/>
|
|
85
81
|
<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)),
|
|
86
|
-
new
|
|
82
|
+
new CharacterImage('Y', new InlineSvg(`<clipPath id="c"><path d="m18,18h144v144H18"/></clipPath>
|
|
87
83
|
<path fill="#FC0" d="m18,18h144v144H18"/>
|
|
88
84
|
<path stroke="#F00" stroke-dasharray="18.8" stroke-width="250" clip-path="url(#c)" d="m4,4 160,160"/>
|
|
89
85
|
<path fill="none" stroke="#000" stroke-width="3.75" stroke-linejoin="round" d="M18,18H162V162H18z"/>`, 180, 180)),
|
|
90
|
-
new
|
|
86
|
+
new CharacterImage('Z', new InlineSvg(`<rect x="18" y="18" width="144" height="144" fill="#fc0"/>
|
|
91
87
|
<path d="M 18,18 V 162 H 162 z" fill="#000"/>
|
|
92
88
|
<path d="M 162,18 V 162 H 18 z" fill="#000094"/>
|
|
93
89
|
<path d="M 90,90 L 162,162 H 18 z" fill="#f00"/>
|
|
94
90
|
<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)),
|
|
95
91
|
];
|
|
96
|
-
function getNavalFlag(character) {
|
|
97
|
-
return
|
|
92
|
+
export function getNavalFlag(character) {
|
|
93
|
+
return NAVAL_FLAGS.find(ch => ch.character.toUpperCase() === character.toUpperCase());
|
|
98
94
|
}
|
|
99
|
-
//# sourceMappingURL=
|
|
95
|
+
//# sourceMappingURL=naval-flags.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"naval-flags.js","sourceRoot":"","sources":["../../../src/naval-flags/naval-flags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAC,SAAS,EAAC,MAAM,yBAAyB,CAAC;AAElD,MAAM,CAAC,MAAM,WAAW,GAA8B;IACpD,IAAI,cAAc,CAChB,GAAG,EACH,IAAI,SAAS,CACX;;gIAE0H,EAC1H,GAAG,EACH,GAAG,CACJ,CACF;IACD,IAAI,cAAc,CAChB,GAAG,EACH,IAAI,SAAS,CACX,2HAA2H,EAC3H,GAAG,EACH,GAAG,CACJ,CACF;IACD,IAAI,cAAc,CAChB,GAAG,EACH,IAAI,SAAS,CACX;;;mHAG6G,EAC7G,GAAG,EACH,GAAG,CACJ,CACF;IACD,IAAI,cAAc,CAChB,GAAG,EACH,IAAI,SAAS,CACX;;mHAE6G,EAC7G,GAAG,EACH,GAAG,CACJ,CACF;IACD,IAAI,cAAc,CAChB,GAAG,EACH,IAAI,SAAS,CACX;;mHAE6G,EAC7G,GAAG,EACH,GAAG,CACJ,CACF;IACD,IAAI,cAAc,CAChB,GAAG,EACH,IAAI,SAAS,CACX;;mHAE6G,EAC7G,GAAG,EACH,GAAG,CACJ,CACF;IACD,IAAI,cAAc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