Commit Graph

31 Commits

Author SHA1 Message Date
Project Nayuki 64d7de69f9 - In the project (top-level) readme file, kept one language's code example and moved all others out to language-specific readme files.
- Added a readme file for each programming language implementation (port) if it didn't already have one, mostly by copying the project readme text, and then added/edited a couple of feature points.
2021-12-01 06:01:50 +00:00
Project Nayuki 72385fc19d Tweaked some of QrSegment.makeEci()'s integer literals to binary notations in most language ports. 2021-11-12 03:28:41 +00:00
Project Nayuki adc9d813bd Refactored TypeScript code to add assert() function to make it easier to read the intent and compare to other language ports. 2021-11-06 17:10:14 +00:00
Project Nayuki 446d87c2ba Improved some assertion error messages, corresponding to Rust's unreachable!(). 2021-11-06 16:59:04 +00:00
Project Nayuki a32252b558 Added value range assertions to QrCode.getPenaltyScore(), in all language ports. 2021-11-06 06:15:19 +00:00
Project Nayuki e5145d6854 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. 2021-11-06 05:42:47 +00:00
Project Nayuki 4dd3cf37f7 Made TypeScript code more robust by adding Readonly<> wrapper around appropriate array types in function parameters. 2021-10-14 15:30:31 +00:00
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. 2021-07-28 19:55:24 +00:00
Project Nayuki 6fb34fddc1 Slightly improved the visual appearance of web pages for TypeScript/JavaScript demos, also tweaked a bit of HTML code. 2021-07-28 18:31:33 +00:00
Project Nayuki f29c84a2e7 Added custom colors support to the TypeScript input demo web page and program. 2021-07-28 18:11:31 +00:00
Project Nayuki 201993945d In Java and TypeScript versions, added parameters for custom module colors when rendering to SVG. 2021-07-28 18:01:41 +00:00
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. 2021-07-28 17:55:59 +00:00
Project Nayuki 87db45ef9c Tweaked TypeScript code to correspond with other implementations for ease of auditing, without changing behavior. 2021-07-28 17:38:03 +00:00
Project Nayuki 764749bd8a Added spaces around multiplication operators in QrCode.getAlignmentPatternPositions() for all language versions, for consistency with other code. 2021-07-28 17:32:33 +00:00
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. 2021-07-28 17:09:18 +00:00
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. 2021-07-28 17:09:02 +00:00
Project Nayuki 1cc4617d57 In TypeScript version: moved QrCode.drawCanvas() out of the library and into demo programs, slightly adapted some code, updated documentation comments. 2021-07-28 17:06:31 +00:00
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. 2021-07-27 23:35:06 +00:00
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. 2021-07-27 23:34:00 +00:00
Project Nayuki 13a25580a3 Simplified QrCode.getPenalty() in all language versions except Rust, related to commit 1439e8e4a5. 2020-01-29 17:52:21 +00:00
Project Nayuki fd8720cd31 Simplified a bit of TypeScript code. 2020-01-27 00:41:13 +00:00
Project Nayuki 6e088f72d3 Added an assertion to QrCode.getNumRawDataModules() in all language versions. 2019-09-13 04:09:42 +00:00
Project Nayuki 1424d9f332 Simplified a bit of TypeScript and Rust code using for-each looping. 2019-08-10 02:36:56 +00:00
Project Nayuki f9c8183f64 Merged. 2019-07-30 19:04:05 +00:00
Project Nayuki a2704103bb Added new HTML+TypeScript demo program, corresponding to the command line demos of all other languages. 2019-07-30 19:03:10 +00:00
Project Nayuki 146105007c Simplified some new TypeScript demo code. 2019-07-30 18:12:56 +00:00
Project Nayuki cf612ec2dc Changed internal name of the HTML demo program. 2019-07-30 18:11:21 +00:00
Project Nayuki e9f7133692 Indented the HTML file fully. 2019-07-30 18:09:42 +00:00
Project Nayuki e20059b9ca Renamed demo HTML and TypeScript files. 2019-07-30 18:08:40 +00:00
Project Nayuki 588d1a6b87 Tweaked HTML application to add warning message if scripts aren't loaded. 2019-07-30 18:01:16 +00:00
Project Nayuki f759146df3 Deleted hand-written JavaScript code in favor of compiling from TypeScript, updated directories and readme. 2019-07-16 00:19:38 +00:00