puzzle-lib 2.0.0-beta.1 → 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}/conversion.js +63 -27
- 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 +3 -3
- 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/{WordSearch/wordSearch.d.ts → word-search/word-search.d.ts} +3 -3
- package/build/src/{WordSearch/wordSearch.js → word-search/word-search.js} +13 -17
- 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 +57 -1
- package/src/conversion/index.ts +15 -0
- package/src/morse/index.ts +14 -0
- package/src/{Morse → morse}/morse.ts +4 -4
- 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} +26 -26
- 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.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.js.map +0 -1
- package/build/src/index.d.ts +0 -29
- package/build/src/index.js +0 -101
- 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 -86
- /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
|
@@ -1,218 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.lookupSemaphoreEncoding = lookupSemaphoreEncoding;
|
|
4
|
-
exports.addSemaphoreDirection = addSemaphoreDirection;
|
|
5
|
-
exports.removeSemaphoreDirection = removeSemaphoreDirection;
|
|
6
|
-
exports.hasSemaphoreDirection = hasSemaphoreDirection;
|
|
7
|
-
exports.directionsToEncoding = directionsToEncoding;
|
|
8
|
-
exports.degreesToSemaphoreDirection = degreesToSemaphoreDirection;
|
|
9
|
-
exports.semaphoreDirectionToDegrees = semaphoreDirectionToDegrees;
|
|
10
|
-
exports.getEncodingDegrees = getEncodingDegrees;
|
|
11
|
-
exports.decodeSemaphoreStream = decodeSemaphoreStream;
|
|
12
|
-
const EncodingCategory_1 = require("../Common/EncodingCategory");
|
|
13
|
-
const EncodingEntry_1 = require("../Common/EncodingEntry");
|
|
14
|
-
const EncodingLookupResult_1 = require("../Common/EncodingLookupResult");
|
|
15
|
-
const SemaphoreDirection_1 = require("./SemaphoreDirection");
|
|
16
|
-
const SemaphoreEncoding_1 = require("./SemaphoreEncoding");
|
|
17
|
-
// Build the lookup table once
|
|
18
|
-
const SEMAPHORE_ENTRIES = [];
|
|
19
|
-
function addEntry(encoding, category, display) {
|
|
20
|
-
SEMAPHORE_ENTRIES.push(new EncodingEntry_1.EncodingEntry(encoding, category, display));
|
|
21
|
-
}
|
|
22
|
-
// Letters
|
|
23
|
-
addEntry(SemaphoreEncoding_1.SemaphoreEncoding.LetterA, EncodingCategory_1.EncodingCategory.Letter, 'A');
|
|
24
|
-
addEntry(SemaphoreEncoding_1.SemaphoreEncoding.LetterB, EncodingCategory_1.EncodingCategory.Letter, 'B');
|
|
25
|
-
addEntry(SemaphoreEncoding_1.SemaphoreEncoding.LetterC, EncodingCategory_1.EncodingCategory.Letter, 'C');
|
|
26
|
-
addEntry(SemaphoreEncoding_1.SemaphoreEncoding.LetterD, EncodingCategory_1.EncodingCategory.Letter, 'D');
|
|
27
|
-
addEntry(SemaphoreEncoding_1.SemaphoreEncoding.LetterE, EncodingCategory_1.EncodingCategory.Letter, 'E');
|
|
28
|
-
addEntry(SemaphoreEncoding_1.SemaphoreEncoding.LetterF, EncodingCategory_1.EncodingCategory.Letter, 'F');
|
|
29
|
-
addEntry(SemaphoreEncoding_1.SemaphoreEncoding.LetterG, EncodingCategory_1.EncodingCategory.Letter, 'G');
|
|
30
|
-
addEntry(SemaphoreEncoding_1.SemaphoreEncoding.LetterH, EncodingCategory_1.EncodingCategory.Letter, 'H');
|
|
31
|
-
addEntry(SemaphoreEncoding_1.SemaphoreEncoding.LetterI, EncodingCategory_1.EncodingCategory.Letter, 'I');
|
|
32
|
-
addEntry(SemaphoreEncoding_1.SemaphoreEncoding.LetterJ, EncodingCategory_1.EncodingCategory.Letter, 'J');
|
|
33
|
-
addEntry(SemaphoreEncoding_1.SemaphoreEncoding.LetterK, EncodingCategory_1.EncodingCategory.Letter, 'K');
|
|
34
|
-
addEntry(SemaphoreEncoding_1.SemaphoreEncoding.LetterL, EncodingCategory_1.EncodingCategory.Letter, 'L');
|
|
35
|
-
addEntry(SemaphoreEncoding_1.SemaphoreEncoding.LetterM, EncodingCategory_1.EncodingCategory.Letter, 'M');
|
|
36
|
-
addEntry(SemaphoreEncoding_1.SemaphoreEncoding.LetterN, EncodingCategory_1.EncodingCategory.Letter, 'N');
|
|
37
|
-
addEntry(SemaphoreEncoding_1.SemaphoreEncoding.LetterO, EncodingCategory_1.EncodingCategory.Letter, 'O');
|
|
38
|
-
addEntry(SemaphoreEncoding_1.SemaphoreEncoding.LetterP, EncodingCategory_1.EncodingCategory.Letter, 'P');
|
|
39
|
-
addEntry(SemaphoreEncoding_1.SemaphoreEncoding.LetterQ, EncodingCategory_1.EncodingCategory.Letter, 'Q');
|
|
40
|
-
addEntry(SemaphoreEncoding_1.SemaphoreEncoding.LetterR, EncodingCategory_1.EncodingCategory.Letter, 'R');
|
|
41
|
-
addEntry(SemaphoreEncoding_1.SemaphoreEncoding.LetterS, EncodingCategory_1.EncodingCategory.Letter, 'S');
|
|
42
|
-
addEntry(SemaphoreEncoding_1.SemaphoreEncoding.LetterT, EncodingCategory_1.EncodingCategory.Letter, 'T');
|
|
43
|
-
addEntry(SemaphoreEncoding_1.SemaphoreEncoding.LetterU, EncodingCategory_1.EncodingCategory.Letter, 'U');
|
|
44
|
-
addEntry(SemaphoreEncoding_1.SemaphoreEncoding.LetterV, EncodingCategory_1.EncodingCategory.Letter, 'V');
|
|
45
|
-
addEntry(SemaphoreEncoding_1.SemaphoreEncoding.LetterW, EncodingCategory_1.EncodingCategory.Letter, 'W');
|
|
46
|
-
addEntry(SemaphoreEncoding_1.SemaphoreEncoding.LetterX, EncodingCategory_1.EncodingCategory.Letter, 'X');
|
|
47
|
-
addEntry(SemaphoreEncoding_1.SemaphoreEncoding.LetterY, EncodingCategory_1.EncodingCategory.Letter, 'Y');
|
|
48
|
-
addEntry(SemaphoreEncoding_1.SemaphoreEncoding.LetterZ, EncodingCategory_1.EncodingCategory.Letter, 'Z');
|
|
49
|
-
// Numbers
|
|
50
|
-
addEntry(SemaphoreEncoding_1.SemaphoreEncoding.Number1, EncodingCategory_1.EncodingCategory.Number, '1');
|
|
51
|
-
addEntry(SemaphoreEncoding_1.SemaphoreEncoding.Number2, EncodingCategory_1.EncodingCategory.Number, '2');
|
|
52
|
-
addEntry(SemaphoreEncoding_1.SemaphoreEncoding.Number3, EncodingCategory_1.EncodingCategory.Number, '3');
|
|
53
|
-
addEntry(SemaphoreEncoding_1.SemaphoreEncoding.Number4, EncodingCategory_1.EncodingCategory.Number, '4');
|
|
54
|
-
addEntry(SemaphoreEncoding_1.SemaphoreEncoding.Number5, EncodingCategory_1.EncodingCategory.Number, '5');
|
|
55
|
-
addEntry(SemaphoreEncoding_1.SemaphoreEncoding.Number6, EncodingCategory_1.EncodingCategory.Number, '6');
|
|
56
|
-
addEntry(SemaphoreEncoding_1.SemaphoreEncoding.Number7, EncodingCategory_1.EncodingCategory.Number, '7');
|
|
57
|
-
addEntry(SemaphoreEncoding_1.SemaphoreEncoding.Number8, EncodingCategory_1.EncodingCategory.Number, '8');
|
|
58
|
-
addEntry(SemaphoreEncoding_1.SemaphoreEncoding.Number9, EncodingCategory_1.EncodingCategory.Number, '9');
|
|
59
|
-
addEntry(SemaphoreEncoding_1.SemaphoreEncoding.Number0, EncodingCategory_1.EncodingCategory.Number, '0');
|
|
60
|
-
// Formatting
|
|
61
|
-
addEntry(SemaphoreEncoding_1.SemaphoreEncoding.FormattingNumber, EncodingCategory_1.EncodingCategory.Formatting, '#');
|
|
62
|
-
/**
|
|
63
|
-
* Looks up a semaphore encoding in the data table.
|
|
64
|
-
*/
|
|
65
|
-
function lookupSemaphoreEncoding(encoding, category = EncodingCategory_1.EncodingCategory.All) {
|
|
66
|
-
const result = new EncodingLookupResult_1.EncodingLookupResult();
|
|
67
|
-
for (const entry of SEMAPHORE_ENTRIES) {
|
|
68
|
-
if ((entry.category & category) !== 0) {
|
|
69
|
-
if (entry.encoding === encoding) {
|
|
70
|
-
result.exact.push(entry);
|
|
71
|
-
}
|
|
72
|
-
else if ((entry.encoding & encoding) === encoding) {
|
|
73
|
-
result.partial.push(entry);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
return result;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Counts the number of direction flags set in an encoding.
|
|
81
|
-
*/
|
|
82
|
-
function countDirections(encoding) {
|
|
83
|
-
let count = 0;
|
|
84
|
-
let bits = encoding;
|
|
85
|
-
while (bits) {
|
|
86
|
-
count += bits & 1;
|
|
87
|
-
bits >>= 1;
|
|
88
|
-
}
|
|
89
|
-
return count;
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Adds a direction flag to an encoding, returns a new encoding.
|
|
93
|
-
* Semaphore positions use at most two directions. If adding the
|
|
94
|
-
* direction would exceed two, the oldest (lowest) flag is removed.
|
|
95
|
-
*/
|
|
96
|
-
function addSemaphoreDirection(encoding, direction) {
|
|
97
|
-
let result = (encoding | direction);
|
|
98
|
-
while (countDirections(result) > 2) {
|
|
99
|
-
// Remove the lowest set bit
|
|
100
|
-
result = (result & (result - 1));
|
|
101
|
-
}
|
|
102
|
-
return result;
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* Removes a direction flag from an encoding, returns a new encoding.
|
|
106
|
-
*/
|
|
107
|
-
function removeSemaphoreDirection(encoding, direction) {
|
|
108
|
-
return (encoding & ~direction);
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Checks if a direction flag is set in an encoding.
|
|
112
|
-
*/
|
|
113
|
-
function hasSemaphoreDirection(encoding, direction) {
|
|
114
|
-
return (encoding & direction) === direction;
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* Converts an array of SemaphoreDirection values to a SemaphoreEncoding.
|
|
118
|
-
* Only the last two directions are used, matching semaphore's two-flag limit.
|
|
119
|
-
*/
|
|
120
|
-
function directionsToEncoding(directions) {
|
|
121
|
-
const capped = directions.slice(-2);
|
|
122
|
-
let result = SemaphoreEncoding_1.SemaphoreEncoding.None;
|
|
123
|
-
for (const dir of capped) {
|
|
124
|
-
result = (result | dir);
|
|
125
|
-
}
|
|
126
|
-
return result;
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* Converts degrees (must be a multiple of 45, >= 0) to a SemaphoreDirection.
|
|
130
|
-
*/
|
|
131
|
-
function degreesToSemaphoreDirection(degrees) {
|
|
132
|
-
if (degrees >= 360) {
|
|
133
|
-
degrees = degrees % 360;
|
|
134
|
-
}
|
|
135
|
-
if (degrees % 45 !== 0 || degrees < 0) {
|
|
136
|
-
throw new Error('Invalid degrees');
|
|
137
|
-
}
|
|
138
|
-
const position = degrees / 45;
|
|
139
|
-
return SemaphoreDirection_1.SemaphoreDirection.North << position;
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* Converts a SemaphoreDirection to degrees.
|
|
143
|
-
* Returns undefined if the direction is not a single valid flag.
|
|
144
|
-
*/
|
|
145
|
-
function semaphoreDirectionToDegrees(direction) {
|
|
146
|
-
let position = SemaphoreDirection_1.SemaphoreDirection.North;
|
|
147
|
-
let counter = 0;
|
|
148
|
-
while (counter < 9 && position !== direction) {
|
|
149
|
-
position = position << 1;
|
|
150
|
-
counter++;
|
|
151
|
-
}
|
|
152
|
-
if (position !== direction) {
|
|
153
|
-
return undefined;
|
|
154
|
-
}
|
|
155
|
-
return counter * 45;
|
|
156
|
-
}
|
|
157
|
-
const ALL_DIRECTIONS = [
|
|
158
|
-
SemaphoreDirection_1.SemaphoreDirection.North,
|
|
159
|
-
SemaphoreDirection_1.SemaphoreDirection.NorthEast,
|
|
160
|
-
SemaphoreDirection_1.SemaphoreDirection.East,
|
|
161
|
-
SemaphoreDirection_1.SemaphoreDirection.SouthEast,
|
|
162
|
-
SemaphoreDirection_1.SemaphoreDirection.South,
|
|
163
|
-
SemaphoreDirection_1.SemaphoreDirection.SouthWest,
|
|
164
|
-
SemaphoreDirection_1.SemaphoreDirection.West,
|
|
165
|
-
SemaphoreDirection_1.SemaphoreDirection.NorthWest,
|
|
166
|
-
];
|
|
167
|
-
/**
|
|
168
|
-
* Extracts the degrees of the two active directions in an encoding.
|
|
169
|
-
* Directions are returned in clockwise order starting from North.
|
|
170
|
-
* Returns [first, second] where either may be undefined if fewer than
|
|
171
|
-
* two directions are set.
|
|
172
|
-
*/
|
|
173
|
-
function getEncodingDegrees(encoding) {
|
|
174
|
-
let first;
|
|
175
|
-
let second;
|
|
176
|
-
for (const dir of ALL_DIRECTIONS) {
|
|
177
|
-
if (hasSemaphoreDirection(encoding, dir)) {
|
|
178
|
-
const deg = semaphoreDirectionToDegrees(dir);
|
|
179
|
-
if (deg !== undefined) {
|
|
180
|
-
if (first === undefined) {
|
|
181
|
-
first = deg;
|
|
182
|
-
}
|
|
183
|
-
else {
|
|
184
|
-
second = deg;
|
|
185
|
-
break;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
return [first, second];
|
|
191
|
-
}
|
|
192
|
-
/**
|
|
193
|
-
* Decodes an array of semaphore encodings to a string, handling number mode.
|
|
194
|
-
*/
|
|
195
|
-
function decodeSemaphoreStream(encodings) {
|
|
196
|
-
let result = '';
|
|
197
|
-
let numberMode = false;
|
|
198
|
-
for (const ch of encodings) {
|
|
199
|
-
if (ch === SemaphoreEncoding_1.SemaphoreEncoding.None) {
|
|
200
|
-
numberMode = false;
|
|
201
|
-
result += ' ';
|
|
202
|
-
}
|
|
203
|
-
else if (ch === SemaphoreEncoding_1.SemaphoreEncoding.FormattingNumber) {
|
|
204
|
-
numberMode = true;
|
|
205
|
-
result += '#';
|
|
206
|
-
}
|
|
207
|
-
else {
|
|
208
|
-
const category = EncodingCategory_1.EncodingCategory.Punctuation |
|
|
209
|
-
(numberMode ? EncodingCategory_1.EncodingCategory.Number : EncodingCategory_1.EncodingCategory.Letter);
|
|
210
|
-
const lookup = lookupSemaphoreEncoding(ch, category);
|
|
211
|
-
if (lookup.exact.length > 0) {
|
|
212
|
-
result += lookup.exact[0].toString();
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
return result;
|
|
217
|
-
}
|
|
218
|
-
//# sourceMappingURL=semaphore.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"semaphore.js","sourceRoot":"","sources":["../../../src/Semaphore/semaphore.ts"],"names":[],"mappings":";;AA+DA,0DAiBC;AAoBD,sDAUC;AAKD,4DAKC;AAKD,sDAKC;AAMD,oDASC;AAKD,kEAaC;AAMD,kEAeC;AAmBD,gDAmBC;AAKD,sDAwBC;AA3PD,iEAA4D;AAC5D,2DAAsD;AACtD,yEAAoE;AACpE,6DAAwD;AACxD,2DAAsD;AAEtD,8BAA8B;AAC9B,MAAM,iBAAiB,GAA4C,EAAE,CAAC;AAEtE,SAAS,QAAQ,CACf,QAA2B,EAC3B,QAA0B,EAC1B,OAAe;IAEf,iBAAiB,CAAC,IAAI,CAAC,IAAI,6BAAa,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;AACzE,CAAC;AAED,UAAU;AACV,QAAQ,CAAC,qCAAiB,CAAC,OAAO,EAAE,mCAAgB,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAClE,QAAQ,CAAC,qCAAiB,CAAC,OAAO,EAAE,mCAAgB,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAClE,QAAQ,CAAC,qCAAiB,CAAC,OAAO,EAAE,mCAAgB,CAAC,MAAM,EAAE,GAAG,CAAC,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AC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Point.js","sourceRoot":"","sources":["../../../src/WordSearch/Point.ts"],"names":[],"mappings":""}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Result = void 0;
|
|
4
|
-
class Result {
|
|
5
|
-
word;
|
|
6
|
-
points;
|
|
7
|
-
constructor(word, wordPoints) {
|
|
8
|
-
this.word = word;
|
|
9
|
-
this.points = Array.from(wordPoints);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.Result = Result;
|
|
13
|
-
//# sourceMappingURL=Result.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Result.js","sourceRoot":"","sources":["../../../src/WordSearch/Result.ts"],"names":[],"mappings":";;;AAEA,MAAa,MAAM;IACjB,IAAI,CAAS;IACb,MAAM,CAAU;IAChB,YAAY,IAAY,EAAE,UAAmB;QAC3C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACvC,CAAC;CACF;AAPD,wBAOC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WordSearchDirection.js","sourceRoot":"","sources":["../../../src/WordSearch/WordSearchDirection.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC7B,6DAAQ,CAAA;IACR,qEAAY,CAAA;IACZ,qEAAY,CAAA;IACZ,2FAAuB,CAAA;AACzB,CAAC,EALW,mBAAmB,mCAAnB,mBAAmB,QAK9B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wordSearch.js","sourceRoot":"","sources":["../../../src/WordSearch/wordSearch.ts"],"names":[],"mappings":";;AA4BA,kDAOC;AAED,8BA2CC;AAhFD,yCAA0C;AAG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,CAAC;YACjC,MAAM;QACR,CAAC;QAED,MAAM,CAAC,GAAU,EAAC,CAAC,EAAE,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,YAAY,CAAC,CAAC,EAAC,CAAC;QACxD,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAErB,IAAI,eAAe,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;YAClD,MAAM,SAAS,GAAG,IAAI,eAAM,CAAC,aAAa,EAAE,YAAY,CAAC,CAAC;YAC1D,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC1B,CAAC;QACD,MAAM,IAAI,GAAU;YAClB,CAAC,EAAE,YAAY,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC;YAChC,CAAC,EAAE,YAAY,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC;SACjC,CAAC;QACF,YAAY,GAAG,IAAI,CAAC;IACtB,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,SAAS,UAAU,CAAC,KAAY,EAAE,MAAkB;IAClD,IAAI,KAAK,CAAC,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;QAC5C,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,KAAK,CAAC,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;QACrD,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
package/build/src/index.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export { decodeBrailleStream, getBrailleDot, lookupBrailleEncoding, toggleBrailleDot, } from './Braille/braille';
|
|
2
|
-
export { BrailleDot } from './Braille/BrailleDot';
|
|
3
|
-
export { BrailleEncoding } from './Braille/BrailleEncoding';
|
|
4
|
-
export { autokeyDecrypt, autokeyEncrypt, caesarRotate, caesarRotations, isAlpha, rotateLetter, vigenereDecrypt, vigenereEncrypt, } from './Cipher/cipher';
|
|
5
|
-
export { CharacterImage } from './Common/CharacterImage';
|
|
6
|
-
export { EncodingCategory } from './Common/EncodingCategory';
|
|
7
|
-
export { EncodingEntry } from './Common/EncodingEntry';
|
|
8
|
-
export { EncodingLookupResult } from './Common/EncodingLookupResult';
|
|
9
|
-
export { InlineSvg } from './Common/InlineSvg';
|
|
10
|
-
export { convertCharacter, convertString, determineCharacterEncoding, determineStringEncoding, } from './Conversion/conversion';
|
|
11
|
-
export { getAsciiTable, getOrdinalTable, toAscii, toOrdinal, } from './Conversion/characterConversion';
|
|
12
|
-
export { CharacterEncoding } from './Conversion/CharacterEncoding';
|
|
13
|
-
export { CharacterTableEntry } from './Conversion/CharacterTableEntry';
|
|
14
|
-
export { sigFigCeil, sigFigFloor, sigFigRound, } from './Conversion/significantFigures';
|
|
15
|
-
export { decodeMorse, invertAndReverseMorse, invertMorse, lookupMorseEncoding, morseEncodingToString, MORSE_CHARACTER_DIVIDER, MORSE_DASH, MORSE_DOT, MORSE_WORD_DIVIDER, parseMorseString, reverseMorse, } from './Morse/morse';
|
|
16
|
-
export { MorseEncoding } from './Morse/MorseEncoding';
|
|
17
|
-
export { NatoCharacter } from './Nato/NatoCharacter';
|
|
18
|
-
export { lookupNatoPhonetic, NATO_ALPHABET } from './Nato/nato';
|
|
19
|
-
export { getNavalFlag, NAVAL_FLAGS } from './NavalFlags/navalFlags';
|
|
20
|
-
export { getResistorDisplayValue, getResistorValue, hasResistorTolerance, hasResistorValue, INVALID_RESISTOR, RESISTOR_COLOR_TABLE, } from './Resistor/resistor';
|
|
21
|
-
export type { ResistorColor } from './Resistor/resistor';
|
|
22
|
-
export { addSemaphoreDirection, decodeSemaphoreStream, degreesToSemaphoreDirection, directionsToEncoding, getEncodingDegrees, hasSemaphoreDirection, lookupSemaphoreEncoding, removeSemaphoreDirection, semaphoreDirectionToDegrees, } from './Semaphore/semaphore';
|
|
23
|
-
export { SemaphoreDirection } from './Semaphore/SemaphoreDirection';
|
|
24
|
-
export { SemaphoreEncoding } from './Semaphore/SemaphoreEncoding';
|
|
25
|
-
export { Point as WordSearchPoint } from './WordSearch/Point';
|
|
26
|
-
export { Result as WordSearchResult } from './WordSearch/Result';
|
|
27
|
-
export { WordSearchDirection } from './WordSearch/WordSearchDirection';
|
|
28
|
-
export { findWords, parseWordSearchGrid } from './WordSearch/wordSearch';
|
|
29
|
-
export type { WordSearchOptions } from './WordSearch/wordSearch';
|
package/build/src/index.js
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getResistorDisplayValue = exports.NAVAL_FLAGS = exports.getNavalFlag = exports.NATO_ALPHABET = exports.lookupNatoPhonetic = exports.NatoCharacter = exports.MorseEncoding = exports.reverseMorse = exports.parseMorseString = exports.MORSE_WORD_DIVIDER = exports.MORSE_DOT = exports.MORSE_DASH = exports.MORSE_CHARACTER_DIVIDER = exports.morseEncodingToString = exports.lookupMorseEncoding = exports.invertMorse = exports.invertAndReverseMorse = exports.decodeMorse = exports.sigFigRound = exports.sigFigFloor = exports.sigFigCeil = exports.CharacterTableEntry = exports.CharacterEncoding = exports.toOrdinal = exports.toAscii = exports.getOrdinalTable = exports.getAsciiTable = exports.determineStringEncoding = exports.determineCharacterEncoding = exports.convertString = exports.convertCharacter = exports.InlineSvg = exports.EncodingLookupResult = exports.EncodingEntry = exports.EncodingCategory = exports.CharacterImage = exports.vigenereEncrypt = exports.vigenereDecrypt = exports.rotateLetter = exports.isAlpha = exports.caesarRotations = exports.caesarRotate = exports.autokeyEncrypt = exports.autokeyDecrypt = exports.BrailleEncoding = exports.BrailleDot = exports.toggleBrailleDot = exports.lookupBrailleEncoding = exports.getBrailleDot = exports.decodeBrailleStream = void 0;
|
|
4
|
-
exports.parseWordSearchGrid = exports.findWords = exports.WordSearchDirection = exports.WordSearchResult = exports.SemaphoreEncoding = exports.SemaphoreDirection = exports.semaphoreDirectionToDegrees = exports.removeSemaphoreDirection = exports.lookupSemaphoreEncoding = exports.hasSemaphoreDirection = exports.getEncodingDegrees = exports.directionsToEncoding = exports.degreesToSemaphoreDirection = exports.decodeSemaphoreStream = exports.addSemaphoreDirection = exports.RESISTOR_COLOR_TABLE = exports.INVALID_RESISTOR = exports.hasResistorValue = exports.hasResistorTolerance = exports.getResistorValue = void 0;
|
|
5
|
-
var braille_1 = require("./Braille/braille");
|
|
6
|
-
Object.defineProperty(exports, "decodeBrailleStream", { enumerable: true, get: function () { return braille_1.decodeBrailleStream; } });
|
|
7
|
-
Object.defineProperty(exports, "getBrailleDot", { enumerable: true, get: function () { return braille_1.getBrailleDot; } });
|
|
8
|
-
Object.defineProperty(exports, "lookupBrailleEncoding", { enumerable: true, get: function () { return braille_1.lookupBrailleEncoding; } });
|
|
9
|
-
Object.defineProperty(exports, "toggleBrailleDot", { enumerable: true, get: function () { return braille_1.toggleBrailleDot; } });
|
|
10
|
-
var BrailleDot_1 = require("./Braille/BrailleDot");
|
|
11
|
-
Object.defineProperty(exports, "BrailleDot", { enumerable: true, get: function () { return BrailleDot_1.BrailleDot; } });
|
|
12
|
-
var BrailleEncoding_1 = require("./Braille/BrailleEncoding");
|
|
13
|
-
Object.defineProperty(exports, "BrailleEncoding", { enumerable: true, get: function () { return BrailleEncoding_1.BrailleEncoding; } });
|
|
14
|
-
var cipher_1 = require("./Cipher/cipher");
|
|
15
|
-
Object.defineProperty(exports, "autokeyDecrypt", { enumerable: true, get: function () { return cipher_1.autokeyDecrypt; } });
|
|
16
|
-
Object.defineProperty(exports, "autokeyEncrypt", { enumerable: true, get: function () { return cipher_1.autokeyEncrypt; } });
|
|
17
|
-
Object.defineProperty(exports, "caesarRotate", { enumerable: true, get: function () { return cipher_1.caesarRotate; } });
|
|
18
|
-
Object.defineProperty(exports, "caesarRotations", { enumerable: true, get: function () { return cipher_1.caesarRotations; } });
|
|
19
|
-
Object.defineProperty(exports, "isAlpha", { enumerable: true, get: function () { return cipher_1.isAlpha; } });
|
|
20
|
-
Object.defineProperty(exports, "rotateLetter", { enumerable: true, get: function () { return cipher_1.rotateLetter; } });
|
|
21
|
-
Object.defineProperty(exports, "vigenereDecrypt", { enumerable: true, get: function () { return cipher_1.vigenereDecrypt; } });
|
|
22
|
-
Object.defineProperty(exports, "vigenereEncrypt", { enumerable: true, get: function () { return cipher_1.vigenereEncrypt; } });
|
|
23
|
-
var CharacterImage_1 = require("./Common/CharacterImage");
|
|
24
|
-
Object.defineProperty(exports, "CharacterImage", { enumerable: true, get: function () { return CharacterImage_1.CharacterImage; } });
|
|
25
|
-
var EncodingCategory_1 = require("./Common/EncodingCategory");
|
|
26
|
-
Object.defineProperty(exports, "EncodingCategory", { enumerable: true, get: function () { return EncodingCategory_1.EncodingCategory; } });
|
|
27
|
-
var EncodingEntry_1 = require("./Common/EncodingEntry");
|
|
28
|
-
Object.defineProperty(exports, "EncodingEntry", { enumerable: true, get: function () { return EncodingEntry_1.EncodingEntry; } });
|
|
29
|
-
var EncodingLookupResult_1 = require("./Common/EncodingLookupResult");
|
|
30
|
-
Object.defineProperty(exports, "EncodingLookupResult", { enumerable: true, get: function () { return EncodingLookupResult_1.EncodingLookupResult; } });
|
|
31
|
-
var InlineSvg_1 = require("./Common/InlineSvg");
|
|
32
|
-
Object.defineProperty(exports, "InlineSvg", { enumerable: true, get: function () { return InlineSvg_1.InlineSvg; } });
|
|
33
|
-
var conversion_1 = require("./Conversion/conversion");
|
|
34
|
-
Object.defineProperty(exports, "convertCharacter", { enumerable: true, get: function () { return conversion_1.convertCharacter; } });
|
|
35
|
-
Object.defineProperty(exports, "convertString", { enumerable: true, get: function () { return conversion_1.convertString; } });
|
|
36
|
-
Object.defineProperty(exports, "determineCharacterEncoding", { enumerable: true, get: function () { return conversion_1.determineCharacterEncoding; } });
|
|
37
|
-
Object.defineProperty(exports, "determineStringEncoding", { enumerable: true, get: function () { return conversion_1.determineStringEncoding; } });
|
|
38
|
-
var characterConversion_1 = require("./Conversion/characterConversion");
|
|
39
|
-
Object.defineProperty(exports, "getAsciiTable", { enumerable: true, get: function () { return characterConversion_1.getAsciiTable; } });
|
|
40
|
-
Object.defineProperty(exports, "getOrdinalTable", { enumerable: true, get: function () { return characterConversion_1.getOrdinalTable; } });
|
|
41
|
-
Object.defineProperty(exports, "toAscii", { enumerable: true, get: function () { return characterConversion_1.toAscii; } });
|
|
42
|
-
Object.defineProperty(exports, "toOrdinal", { enumerable: true, get: function () { return characterConversion_1.toOrdinal; } });
|
|
43
|
-
var CharacterEncoding_1 = require("./Conversion/CharacterEncoding");
|
|
44
|
-
Object.defineProperty(exports, "CharacterEncoding", { enumerable: true, get: function () { return CharacterEncoding_1.CharacterEncoding; } });
|
|
45
|
-
var CharacterTableEntry_1 = require("./Conversion/CharacterTableEntry");
|
|
46
|
-
Object.defineProperty(exports, "CharacterTableEntry", { enumerable: true, get: function () { return CharacterTableEntry_1.CharacterTableEntry; } });
|
|
47
|
-
var significantFigures_1 = require("./Conversion/significantFigures");
|
|
48
|
-
Object.defineProperty(exports, "sigFigCeil", { enumerable: true, get: function () { return significantFigures_1.sigFigCeil; } });
|
|
49
|
-
Object.defineProperty(exports, "sigFigFloor", { enumerable: true, get: function () { return significantFigures_1.sigFigFloor; } });
|
|
50
|
-
Object.defineProperty(exports, "sigFigRound", { enumerable: true, get: function () { return significantFigures_1.sigFigRound; } });
|
|
51
|
-
var morse_1 = require("./Morse/morse");
|
|
52
|
-
Object.defineProperty(exports, "decodeMorse", { enumerable: true, get: function () { return morse_1.decodeMorse; } });
|
|
53
|
-
Object.defineProperty(exports, "invertAndReverseMorse", { enumerable: true, get: function () { return morse_1.invertAndReverseMorse; } });
|
|
54
|
-
Object.defineProperty(exports, "invertMorse", { enumerable: true, get: function () { return morse_1.invertMorse; } });
|
|
55
|
-
Object.defineProperty(exports, "lookupMorseEncoding", { enumerable: true, get: function () { return morse_1.lookupMorseEncoding; } });
|
|
56
|
-
Object.defineProperty(exports, "morseEncodingToString", { enumerable: true, get: function () { return morse_1.morseEncodingToString; } });
|
|
57
|
-
Object.defineProperty(exports, "MORSE_CHARACTER_DIVIDER", { enumerable: true, get: function () { return morse_1.MORSE_CHARACTER_DIVIDER; } });
|
|
58
|
-
Object.defineProperty(exports, "MORSE_DASH", { enumerable: true, get: function () { return morse_1.MORSE_DASH; } });
|
|
59
|
-
Object.defineProperty(exports, "MORSE_DOT", { enumerable: true, get: function () { return morse_1.MORSE_DOT; } });
|
|
60
|
-
Object.defineProperty(exports, "MORSE_WORD_DIVIDER", { enumerable: true, get: function () { return morse_1.MORSE_WORD_DIVIDER; } });
|
|
61
|
-
Object.defineProperty(exports, "parseMorseString", { enumerable: true, get: function () { return morse_1.parseMorseString; } });
|
|
62
|
-
Object.defineProperty(exports, "reverseMorse", { enumerable: true, get: function () { return morse_1.reverseMorse; } });
|
|
63
|
-
var MorseEncoding_1 = require("./Morse/MorseEncoding");
|
|
64
|
-
Object.defineProperty(exports, "MorseEncoding", { enumerable: true, get: function () { return MorseEncoding_1.MorseEncoding; } });
|
|
65
|
-
var NatoCharacter_1 = require("./Nato/NatoCharacter");
|
|
66
|
-
Object.defineProperty(exports, "NatoCharacter", { enumerable: true, get: function () { return NatoCharacter_1.NatoCharacter; } });
|
|
67
|
-
var nato_1 = require("./Nato/nato");
|
|
68
|
-
Object.defineProperty(exports, "lookupNatoPhonetic", { enumerable: true, get: function () { return nato_1.lookupNatoPhonetic; } });
|
|
69
|
-
Object.defineProperty(exports, "NATO_ALPHABET", { enumerable: true, get: function () { return nato_1.NATO_ALPHABET; } });
|
|
70
|
-
var navalFlags_1 = require("./NavalFlags/navalFlags");
|
|
71
|
-
Object.defineProperty(exports, "getNavalFlag", { enumerable: true, get: function () { return navalFlags_1.getNavalFlag; } });
|
|
72
|
-
Object.defineProperty(exports, "NAVAL_FLAGS", { enumerable: true, get: function () { return navalFlags_1.NAVAL_FLAGS; } });
|
|
73
|
-
var resistor_1 = require("./Resistor/resistor");
|
|
74
|
-
Object.defineProperty(exports, "getResistorDisplayValue", { enumerable: true, get: function () { return resistor_1.getResistorDisplayValue; } });
|
|
75
|
-
Object.defineProperty(exports, "getResistorValue", { enumerable: true, get: function () { return resistor_1.getResistorValue; } });
|
|
76
|
-
Object.defineProperty(exports, "hasResistorTolerance", { enumerable: true, get: function () { return resistor_1.hasResistorTolerance; } });
|
|
77
|
-
Object.defineProperty(exports, "hasResistorValue", { enumerable: true, get: function () { return resistor_1.hasResistorValue; } });
|
|
78
|
-
Object.defineProperty(exports, "INVALID_RESISTOR", { enumerable: true, get: function () { return resistor_1.INVALID_RESISTOR; } });
|
|
79
|
-
Object.defineProperty(exports, "RESISTOR_COLOR_TABLE", { enumerable: true, get: function () { return resistor_1.RESISTOR_COLOR_TABLE; } });
|
|
80
|
-
var semaphore_1 = require("./Semaphore/semaphore");
|
|
81
|
-
Object.defineProperty(exports, "addSemaphoreDirection", { enumerable: true, get: function () { return semaphore_1.addSemaphoreDirection; } });
|
|
82
|
-
Object.defineProperty(exports, "decodeSemaphoreStream", { enumerable: true, get: function () { return semaphore_1.decodeSemaphoreStream; } });
|
|
83
|
-
Object.defineProperty(exports, "degreesToSemaphoreDirection", { enumerable: true, get: function () { return semaphore_1.degreesToSemaphoreDirection; } });
|
|
84
|
-
Object.defineProperty(exports, "directionsToEncoding", { enumerable: true, get: function () { return semaphore_1.directionsToEncoding; } });
|
|
85
|
-
Object.defineProperty(exports, "getEncodingDegrees", { enumerable: true, get: function () { return semaphore_1.getEncodingDegrees; } });
|
|
86
|
-
Object.defineProperty(exports, "hasSemaphoreDirection", { enumerable: true, get: function () { return semaphore_1.hasSemaphoreDirection; } });
|
|
87
|
-
Object.defineProperty(exports, "lookupSemaphoreEncoding", { enumerable: true, get: function () { return semaphore_1.lookupSemaphoreEncoding; } });
|
|
88
|
-
Object.defineProperty(exports, "removeSemaphoreDirection", { enumerable: true, get: function () { return semaphore_1.removeSemaphoreDirection; } });
|
|
89
|
-
Object.defineProperty(exports, "semaphoreDirectionToDegrees", { enumerable: true, get: function () { return semaphore_1.semaphoreDirectionToDegrees; } });
|
|
90
|
-
var SemaphoreDirection_1 = require("./Semaphore/SemaphoreDirection");
|
|
91
|
-
Object.defineProperty(exports, "SemaphoreDirection", { enumerable: true, get: function () { return SemaphoreDirection_1.SemaphoreDirection; } });
|
|
92
|
-
var SemaphoreEncoding_1 = require("./Semaphore/SemaphoreEncoding");
|
|
93
|
-
Object.defineProperty(exports, "SemaphoreEncoding", { enumerable: true, get: function () { return SemaphoreEncoding_1.SemaphoreEncoding; } });
|
|
94
|
-
var Result_1 = require("./WordSearch/Result");
|
|
95
|
-
Object.defineProperty(exports, "WordSearchResult", { enumerable: true, get: function () { return Result_1.Result; } });
|
|
96
|
-
var WordSearchDirection_1 = require("./WordSearch/WordSearchDirection");
|
|
97
|
-
Object.defineProperty(exports, "WordSearchDirection", { enumerable: true, get: function () { return WordSearchDirection_1.WordSearchDirection; } });
|
|
98
|
-
var wordSearch_1 = require("./WordSearch/wordSearch");
|
|
99
|
-
Object.defineProperty(exports, "findWords", { enumerable: true, get: function () { return wordSearch_1.findWords; } });
|
|
100
|
-
Object.defineProperty(exports, "parseWordSearchGrid", { enumerable: true, get: function () { return wordSearch_1.parseWordSearchGrid; } });
|
|
101
|
-
//# sourceMappingURL=index.js.map
|
package/build/src/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;AAAA,6CAK2B;AAJzB,8GAAA,mBAAmB,OAAA;AACnB,wGAAA,aAAa,OAAA;AACb,gHAAA,qBAAqB,OAAA;AACrB,2GAAA,gBAAgB,OAAA;AAElB,mDAAgD;AAAxC,wGAAA,UAAU,OAAA;AAClB,6DAA0D;AAAlD,kHAAA,eAAe,OAAA;AACvB,0CASyB;AARvB,wGAAA,cA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AA;AAAE,qGAAA,aAAa,OAAA;AACzC,sDAAkE;AAA1D,0GAAA,YAAY,OAAA;AAAE,yGAAA,WAAW,OAAA;AACjC,gDAO6B;AAN3B,mHAAA,uBAAuB,OAAA;AACvB,4GAAA,gBAAgB,OAAA;AAChB,gHAAA,oBAAoB,OAAA;AACpB,4GAAA,gBAAgB,OAAA;AAChB,4GAAA,gBAAgB,OAAA;AAChB,gHAAA,oBAAoB,OAAA;AAGtB,mDAU+B;AAT7B,kHAAA,qBAAqB,OAAA;AACrB,kHAAA,qBAAqB,OAAA;AACrB,wHAAA,2BAA2B,OAAA;AAC3B,iHAAA,oBAAoB,OAAA;AACpB,+GAAA,kBAAkB,OAAA;AAClB,kHAAA,qBAAqB,OAAA;AACrB,oHAAA,uBAAuB,OAAA;AACvB,qHAAA,wBAAwB,OAAA;AACxB,wHAAA,2BAA2B,OAAA;AAE7B,qEAAkE;AAA1D,wHAAA,kBAAkB,OAAA;AAC1B,mEAAgE;AAAxD,sHAAA,iBAAiB,OAAA;AAEzB,8CAA+D;AAAvD,0GAAA,MAAM,OAAoB;AAClC,wEAAqE;AAA7D,0HAAA,mBAAmB,OAAA;AAC3B,sDAAuE;AAA/D,uGAAA,SAAS,OAAA;AAAE,iHAAA,mBAAmB,OAAA"}
|
package/src/WordSearch/Point.ts
DELETED
package/src/WordSearch/Result.ts
DELETED
package/src/index.ts
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
export {
|
|
2
|
-
decodeBrailleStream,
|
|
3
|
-
getBrailleDot,
|
|
4
|
-
lookupBrailleEncoding,
|
|
5
|
-
toggleBrailleDot,
|
|
6
|
-
} from './Braille/braille';
|
|
7
|
-
export {BrailleDot} from './Braille/BrailleDot';
|
|
8
|
-
export {BrailleEncoding} from './Braille/BrailleEncoding';
|
|
9
|
-
export {
|
|
10
|
-
autokeyDecrypt,
|
|
11
|
-
autokeyEncrypt,
|
|
12
|
-
caesarRotate,
|
|
13
|
-
caesarRotations,
|
|
14
|
-
isAlpha,
|
|
15
|
-
rotateLetter,
|
|
16
|
-
vigenereDecrypt,
|
|
17
|
-
vigenereEncrypt,
|
|
18
|
-
} from './Cipher/cipher';
|
|
19
|
-
export {CharacterImage} from './Common/CharacterImage';
|
|
20
|
-
export {EncodingCategory} from './Common/EncodingCategory';
|
|
21
|
-
export {EncodingEntry} from './Common/EncodingEntry';
|
|
22
|
-
export {EncodingLookupResult} from './Common/EncodingLookupResult';
|
|
23
|
-
export {InlineSvg} from './Common/InlineSvg';
|
|
24
|
-
export {
|
|
25
|
-
convertCharacter,
|
|
26
|
-
convertString,
|
|
27
|
-
determineCharacterEncoding,
|
|
28
|
-
determineStringEncoding,
|
|
29
|
-
} from './Conversion/conversion';
|
|
30
|
-
export {
|
|
31
|
-
getAsciiTable,
|
|
32
|
-
getOrdinalTable,
|
|
33
|
-
toAscii,
|
|
34
|
-
toOrdinal,
|
|
35
|
-
} from './Conversion/characterConversion';
|
|
36
|
-
export {CharacterEncoding} from './Conversion/CharacterEncoding';
|
|
37
|
-
export {CharacterTableEntry} from './Conversion/CharacterTableEntry';
|
|
38
|
-
export {
|
|
39
|
-
sigFigCeil,
|
|
40
|
-
sigFigFloor,
|
|
41
|
-
sigFigRound,
|
|
42
|
-
} from './Conversion/significantFigures';
|
|
43
|
-
export {
|
|
44
|
-
decodeMorse,
|
|
45
|
-
invertAndReverseMorse,
|
|
46
|
-
invertMorse,
|
|
47
|
-
lookupMorseEncoding,
|
|
48
|
-
morseEncodingToString,
|
|
49
|
-
MORSE_CHARACTER_DIVIDER,
|
|
50
|
-
MORSE_DASH,
|
|
51
|
-
MORSE_DOT,
|
|
52
|
-
MORSE_WORD_DIVIDER,
|
|
53
|
-
parseMorseString,
|
|
54
|
-
reverseMorse,
|
|
55
|
-
} from './Morse/morse';
|
|
56
|
-
export {MorseEncoding} from './Morse/MorseEncoding';
|
|
57
|
-
export {NatoCharacter} from './Nato/NatoCharacter';
|
|
58
|
-
export {lookupNatoPhonetic, NATO_ALPHABET} from './Nato/nato';
|
|
59
|
-
export {getNavalFlag, NAVAL_FLAGS} from './NavalFlags/navalFlags';
|
|
60
|
-
export {
|
|
61
|
-
getResistorDisplayValue,
|
|
62
|
-
getResistorValue,
|
|
63
|
-
hasResistorTolerance,
|
|
64
|
-
hasResistorValue,
|
|
65
|
-
INVALID_RESISTOR,
|
|
66
|
-
RESISTOR_COLOR_TABLE,
|
|
67
|
-
} from './Resistor/resistor';
|
|
68
|
-
export type {ResistorColor} from './Resistor/resistor';
|
|
69
|
-
export {
|
|
70
|
-
addSemaphoreDirection,
|
|
71
|
-
decodeSemaphoreStream,
|
|
72
|
-
degreesToSemaphoreDirection,
|
|
73
|
-
directionsToEncoding,
|
|
74
|
-
getEncodingDegrees,
|
|
75
|
-
hasSemaphoreDirection,
|
|
76
|
-
lookupSemaphoreEncoding,
|
|
77
|
-
removeSemaphoreDirection,
|
|
78
|
-
semaphoreDirectionToDegrees,
|
|
79
|
-
} from './Semaphore/semaphore';
|
|
80
|
-
export {SemaphoreDirection} from './Semaphore/SemaphoreDirection';
|
|
81
|
-
export {SemaphoreEncoding} from './Semaphore/SemaphoreEncoding';
|
|
82
|
-
export {Point as WordSearchPoint} from './WordSearch/Point';
|
|
83
|
-
export {Result as WordSearchResult} from './WordSearch/Result';
|
|
84
|
-
export {WordSearchDirection} from './WordSearch/WordSearchDirection';
|
|
85
|
-
export {findWords, parseWordSearchGrid} from './WordSearch/wordSearch';
|
|
86
|
-
export type {WordSearchOptions} from './WordSearch/wordSearch';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/build/src/{Conversion/CharacterTableEntry.d.ts → conversion/character-table-entry.d.ts}
RENAMED
|
File without changes
|
/package/build/src/{Conversion/significantFigures.d.ts → conversion/significant-figures.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|