Commit Graph

29 Commits (cb4cecf5e3ab6d1197637e6a93598ab24d037c9f)

Author SHA1 Message Date
Project Nayuki cb4cecf5e3 Refactored TypeScript code to add assert() function to make it easier to read the intent and compare to other language ports.
3 years ago
Project Nayuki 68cddb816d Improved some assertion error messages, corresponding to Rust's unreachable!().
3 years ago
Project Nayuki c7ab2582aa Added value range assertions to QrCode.getPenaltyScore(), in all language ports.
3 years ago
Project Nayuki f0945bc682 Tweaked Python, Rust, TypeScript code to rename the constructor `mask` parameter to `msk` for consistency with Java and C++ language ports (related to commit 67c62461d3), and to avoid potential confusion with the object field named `mask`.
3 years ago
Project Nayuki c6cbb388a7 Made TypeScript code more robust by adding Readonly<> wrapper around appropriate array types in function parameters.
3 years ago
Project Nayuki 8f9c1be974 Added new public functions QrSegment.{isNumeric(),isAlphanumeric()} and privatized the regexes in {Java, TypeScript, Python}, because the regexes are awkward compared to a clean abstraction.
4 years ago
Project Nayuki 6fb34fddc1 Slightly improved the visual appearance of web pages for TypeScript/JavaScript demos, also tweaked a bit of HTML code.
4 years ago
Project Nayuki f29c84a2e7 Added custom colors support to the TypeScript input demo web page and program.
4 years ago
Project Nayuki 201993945d In Java and TypeScript versions, added parameters for custom module colors when rendering to SVG.
4 years ago
Project Nayuki d8f0074fab In TypeScript version, added parameters for custom module colors when rendering to canvas, changed some demo code to use non-black/white colors.
4 years ago
Project Nayuki 87db45ef9c Tweaked TypeScript code to correspond with other implementations for ease of auditing, without changing behavior.
4 years ago
Project Nayuki 764749bd8a Added spaces around multiplication operators in QrCode.getAlignmentPatternPositions() for all language versions, for consistency with other code.
4 years ago
Project Nayuki 2261248957 Removed the test worker program in every language and the Python batch tester, because this is not core functionality and is hard to explain.
4 years ago
Project Nayuki 3531fda14f In TypeScript version: moved QrCode.toSvgString() out of the library and into a demo program, slightly adapted some code, updated documentation comments.
4 years ago
Project Nayuki 1cc4617d57 In TypeScript version: moved QrCode.drawCanvas() out of the library and into demo programs, slightly adapted some code, updated documentation comments.
4 years ago
Project Nayuki 1fd0216dfe Changed the word "black" to "dark" in {comments, local variables,} in order to match the vocabulary in the QR Code specification document.
4 years ago
Project Nayuki 99e7d59383 Changed the word "white" to "light" in {comments, local variables, a private C function} in order to match the vocabulary in the QR Code specification document.
4 years ago
Project Nayuki 13a25580a3 Simplified QrCode.getPenalty() in all language versions except Rust, related to commit 1439e8e4a5.
5 years ago
Project Nayuki fd8720cd31 Simplified a bit of TypeScript code.
5 years ago
Project Nayuki 6e088f72d3 Added an assertion to QrCode.getNumRawDataModules() in all language versions.
5 years ago
Project Nayuki 1424d9f332 Simplified a bit of TypeScript and Rust code using for-each looping.
5 years ago
Project Nayuki f9c8183f64 Merged.
6 years ago
Project Nayuki a2704103bb Added new HTML+TypeScript demo program, corresponding to the command line demos of all other languages.
6 years ago
Project Nayuki 146105007c Simplified some new TypeScript demo code.
6 years ago
Project Nayuki cf612ec2dc Changed internal name of the HTML demo program.
6 years ago
Project Nayuki e9f7133692 Indented the HTML file fully.
6 years ago
Project Nayuki e20059b9ca Renamed demo HTML and TypeScript files.
6 years ago
Project Nayuki 588d1a6b87 Tweaked HTML application to add warning message if scripts aren't loaded.
6 years ago
Project Nayuki f759146df3 Deleted hand-written JavaScript code in favor of compiling from TypeScript, updated directories and readme.
6 years ago