|
|
@ -60,10 +60,21 @@ var qrcodegen = new function() {
|
|
|
|
/*---- QR Code symbol class ----*/
|
|
|
|
/*---- QR Code symbol class ----*/
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* A class that represents an immutable square grid of black and white cells for a QR Code symbol,
|
|
|
|
* A class that represents a QR Code symbol, which is a type of two-dimension barcode.
|
|
|
|
* and provides static functions to create a QR Code from user-supplied textual or binary data.
|
|
|
|
* Invented by Denso Wave and described in the ISO/IEC 18004 standard.
|
|
|
|
* This class covers the QR Code Model 2 specification, supporting all versions (sizes)
|
|
|
|
* Instances of this class represent an immutable square grid of black and white cells.
|
|
|
|
|
|
|
|
* The class provides static factory functions to create a QR Code from text or binary data.
|
|
|
|
|
|
|
|
* The class covers the QR Code Model 2 specification, supporting all versions (sizes)
|
|
|
|
* from 1 to 40, all 4 error correction levels, and 4 character encoding modes.
|
|
|
|
* from 1 to 40, all 4 error correction levels, and 4 character encoding modes.
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* Ways to create a QR Code object:
|
|
|
|
|
|
|
|
* - High level: Take the payload data and call QrCode.encodeText() or QrCode.encodeBinary().
|
|
|
|
|
|
|
|
* - Mid level: Custom-make the list of segments and call QrCode.encodeSegments().
|
|
|
|
|
|
|
|
* - Low level: Custom-make the array of data codeword bytes (including
|
|
|
|
|
|
|
|
* segment headers and final padding, excluding error correction codewords),
|
|
|
|
|
|
|
|
* supply the appropriate version number, and call the QrCode() constructor.
|
|
|
|
|
|
|
|
* (Note that all ways require supplying the desired error correction level.)
|
|
|
|
|
|
|
|
*
|
|
|
|
* This constructor creates a new QR Code with the given version number, error correction level, binary data array,
|
|
|
|
* This constructor creates a new QR Code with the given version number, error correction level, binary data array,
|
|
|
|
* and mask number. mask = -1 is for automatic choice, or 0 to 7 for fixed choice. This is a cumbersome low-level constructor
|
|
|
|
* 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.
|
|
|
|
* that should not be invoked directly by the user. To go one level up, see the QrCode.encodeSegments() function.
|
|
|
|