Renamed a constructor parameter in JavaScript and TypeScript code.

pull/39/merge
Project Nayuki 6 years ago
parent eab76f20d6
commit ae7b5296f2

@ -32,7 +32,7 @@
* - Function encodeSegments(list<QrSegment> segs, QrCode.Ecc ecl,
* int minVersion=1, int maxVersion=40, mask=-1, boostEcl=true) -> QrCode
* - Constants int MIN_VERSION, MAX_VERSION
* - Constructor QrCode(list<int> datacodewords, int mask, int version, QrCode.Ecc ecl)
* - Constructor QrCode(list<int> dataCodewords, int mask, int version, QrCode.Ecc ecl)
* - Fields int version, size, mask
* - Field QrCode.Ecc errorCorrectionLevel
* - Method getModule(int x, int y) -> bool
@ -68,7 +68,7 @@ var qrcodegen = new function() {
* and mask number. mask = -1 is for automatic choice, or 0 to 7 for fixed choice. This is a cumbersome low-level constructor
* that should not be invoked directly by the user. To go one level up, see the QrCode.encodeSegments() function.
*/
this.QrCode = function(datacodewords, mask, version, errCorLvl) {
this.QrCode = function(dataCodewords, mask, version, errCorLvl) {
/*---- Constructor (low level) ----*/
@ -92,7 +92,7 @@ var qrcodegen = new function() {
// Handle grid fields, draw function patterns, draw all codewords
drawFunctionPatterns();
var allCodewords = addEccAndInterleave(datacodewords);
var allCodewords = addEccAndInterleave(dataCodewords);
drawCodewords(allCodewords);
// Handle masking

@ -147,7 +147,7 @@ namespace qrcodegen {
/*-- Constructor (low level) and fields --*/
public constructor(
datacodewords: Array<byte>,
dataCodewords: Array<byte>,
// The mask pattern used in this QR Code symbol, in the range 0 to 7 (i.e. unsigned 3-bit integer).
// Note that even if the constructor was called with automatic masking requested
@ -178,7 +178,7 @@ namespace qrcodegen {
// Handle grid fields, draw function patterns, draw all codewords
this.drawFunctionPatterns();
let allCodewords: Array<byte> = this.addEccAndInterleave(datacodewords);
let allCodewords: Array<byte> = this.addEccAndInterleave(dataCodewords);
this.drawCodewords(allCodewords);
// Handle masking

Loading…
Cancel
Save