diff --git a/Common_BitBuffer.js.html b/Common_BitBuffer.js.html
index d6b19d0..32f329d 100644
--- a/Common_BitBuffer.js.html
+++ b/Common_BitBuffer.js.html
@@ -145,13 +145,13 @@
Source: Common/BitBuffer.js
diff --git a/Common_EccLevel.js.html b/Common_EccLevel.js.html
index 1ebb251..68c8f3c 100644
--- a/Common_EccLevel.js.html
+++ b/Common_EccLevel.js.html
@@ -254,13 +254,13 @@ Source: Common/EccLevel.js
diff --git a/Common_GF256.js.html b/Common_GF256.js.html
index 72689ab..7f13032 100644
--- a/Common_GF256.js.html
+++ b/Common_GF256.js.html
@@ -154,13 +154,13 @@ Source: Common/GF256.js
diff --git a/Common_GenericGFPoly.js.html b/Common_GenericGFPoly.js.html
index 6035a63..8961aff 100644
--- a/Common_GenericGFPoly.js.html
+++ b/Common_GenericGFPoly.js.html
@@ -179,13 +179,13 @@ Source: Common/GenericGFPoly.js
diff --git a/Common_MaskPattern.js.html b/Common_MaskPattern.js.html
index a44f191..1d8a94e 100644
--- a/Common_MaskPattern.js.html
+++ b/Common_MaskPattern.js.html
@@ -390,13 +390,13 @@ Source: Common/MaskPattern.js
diff --git a/Common_Mode.js.html b/Common_Mode.js.html
index ff16f46..1867cd8 100644
--- a/Common_Mode.js.html
+++ b/Common_Mode.js.html
@@ -109,13 +109,13 @@ Source: Common/Mode.js
diff --git a/Common_PHPJS.js.html b/Common_PHPJS.js.html
index 314c462..4269725 100644
--- a/Common_PHPJS.js.html
+++ b/Common_PHPJS.js.html
@@ -192,13 +192,13 @@ Source: Common/PHPJS.js
diff --git a/Common_ReedSolomonEncoder.js.html b/Common_ReedSolomonEncoder.js.html
index 2f7c26e..82a1c69 100644
--- a/Common_ReedSolomonEncoder.js.html
+++ b/Common_ReedSolomonEncoder.js.html
@@ -190,13 +190,13 @@ Source: Common/ReedSolomonEncoder.js
diff --git a/Common_Version.js.html b/Common_Version.js.html
index 2d69b54..3b56f21 100644
--- a/Common_Version.js.html
+++ b/Common_Version.js.html
@@ -337,13 +337,13 @@ Source: Common/Version.js
diff --git a/Common_constants.js.html b/Common_constants.js.html
index 035128f..12df013 100644
--- a/Common_constants.js.html
+++ b/Common_constants.js.html
@@ -314,13 +314,13 @@ Source: Common/constants.js
diff --git a/Data_AlphaNum.js.html b/Data_AlphaNum.js.html
index 60f12d1..78a3abe 100644
--- a/Data_AlphaNum.js.html
+++ b/Data_AlphaNum.js.html
@@ -124,13 +124,13 @@ Source: Data/AlphaNum.js
diff --git a/Data_Byte.js.html b/Data_Byte.js.html
index e9f08b5..566acb8 100644
--- a/Data_Byte.js.html
+++ b/Data_Byte.js.html
@@ -96,13 +96,13 @@ Source: Data/Byte.js
diff --git a/Data_Numeric.js.html b/Data_Numeric.js.html
index 53e8304..2725fbd 100644
--- a/Data_Numeric.js.html
+++ b/Data_Numeric.js.html
@@ -142,13 +142,13 @@ Source: Data/Numeric.js
diff --git a/Data_QRData.js.html b/Data_QRData.js.html
index 3931aef..33baff0 100644
--- a/Data_QRData.js.html
+++ b/Data_QRData.js.html
@@ -284,13 +284,13 @@ Source: Data/QRData.js
diff --git a/Data_QRDataModeAbstract.js.html b/Data_QRDataModeAbstract.js.html
index dadaf0f..e900f47 100644
--- a/Data_QRDataModeAbstract.js.html
+++ b/Data_QRDataModeAbstract.js.html
@@ -116,13 +116,13 @@ Source: Data/QRDataModeAbstract.js
diff --git a/Data_QRDataModeInterface.js.html b/Data_QRDataModeInterface.js.html
index 4e378ef..c829934 100644
--- a/Data_QRDataModeInterface.js.html
+++ b/Data_QRDataModeInterface.js.html
@@ -90,13 +90,13 @@ Source: Data/QRDataModeInterface.js
diff --git a/Data_QRMatrix.js.html b/Data_QRMatrix.js.html
index b85a1d5..4e79c26 100644
--- a/Data_QRMatrix.js.html
+++ b/Data_QRMatrix.js.html
@@ -840,13 +840,13 @@ Source: Data/QRMatrix.js
diff --git a/Output_QRCanvas.js.html b/Output_QRCanvas.js.html
index 9713e73..0c99ff2 100644
--- a/Output_QRCanvas.js.html
+++ b/Output_QRCanvas.js.html
@@ -49,18 +49,17 @@ Source: Output/QRCanvas.js
/**
* @type {HTMLCanvasElement}
- * @private
+ * @protected
*/
- _canvas;
+ canvas;
/**
* @type {CanvasRenderingContext2D}
- * @private
+ * @protected
*/
- _context;
+ context;
/**
- * @todo: validate css value
* @inheritDoc
*/
static moduleValueIsValid($value){
@@ -125,7 +124,7 @@ Source: Output/QRCanvas.js
$mime = this.mimeType;
}
- return this._canvas.toDataURL($mime, this.options.canvasImageQuality)
+ return this.canvas.toDataURL($mime, this.options.canvasImageQuality)
}
/**
@@ -135,17 +134,17 @@ Source: Output/QRCanvas.js
* @throws {QRCodeOutputException}
*/
dump($file = null){
- this._canvas = (this.options.canvasElement || document.createElement('canvas'));
+ this.canvas = (this.options.canvasElement || document.createElement('canvas'));
// @todo: test if instance check also works with nodejs canvas modules etc.
- if(!this._canvas || !(this._canvas instanceof HTMLCanvasElement) || (typeof this._canvas.getContext !== 'function')){
+ if(!this.canvas || !(this.canvas instanceof HTMLCanvasElement) || (typeof this.canvas.getContext !== 'function')){
throw new QRCodeOutputException('invalid canvas element');
}
- this._drawImage();
+ this.drawImage();
if(this.options.returnAsDomElement){
- return this._canvas;
+ return this.canvas;
}
let base64DataURI = this.toBase64DataURI();
@@ -162,21 +161,21 @@ Source: Output/QRCanvas.js
/**
* @returns {void}
- * @private
+ * @protected
*/
- _drawImage(){
- this._canvas.width = this.length;
- this._canvas.height = this.length;
- this._context = this._canvas.getContext('2d', {alpha: this.options.imageTransparent})
+ drawImage(){
+ this.canvas.width = this.length;
+ this.canvas.height = this.length;
+ this.context = this.canvas.getContext('2d', {alpha: this.options.imageTransparent})
if(this.options.bgcolor && this.constructor.moduleValueIsValid(this.options.bgcolor)){
- this._context.fillStyle = this.options.bgcolor;
- this._context.fillRect(0, 0, this.length, this.length);
+ this.context.fillStyle = this.options.bgcolor;
+ this.context.fillRect(0, 0, this.length, this.length);
}
for(let $y = 0; $y < this.moduleCount; $y++){
for(let $x = 0; $x < this.moduleCount; $x++){
- this._module($x, $y, this.matrix.get($x, $y))
+ this.module($x, $y, this.matrix.get($x, $y))
}
}
@@ -184,20 +183,20 @@ Source: Output/QRCanvas.js
/**
* @returns {void}
- * @private
+ * @protected
*/
- _module($x, $y, $M_TYPE){
+ module($x, $y, $M_TYPE){
if(!this.options.drawLightModules && !this.matrix.check($x, $y)){
return;
}
- this._context.fillStyle = this.getModuleValue($M_TYPE);
+ this.context.fillStyle = this.getModuleValue($M_TYPE);
if(this.options.drawCircularModules && !this.matrix.checkTypeIn($x, $y, this.options.keepAsSquare)){
- this._context.beginPath();
+ this.context.beginPath();
- this._context.arc(
+ this.context.arc(
($x + 0.5) * this.scale,
($y + 0.5) * this.scale,
(this.options.circleRadius * this.scale),
@@ -205,12 +204,12 @@ Source: Output/QRCanvas.js
2 * Math.PI
)
- this._context.fill();
+ this.context.fill();
return;
}
- this._context.fillRect($x * this.scale, $y * this.scale, this.scale, this.scale);
+ this.context.fillRect($x * this.scale, $y * this.scale, this.scale, this.scale);
}
}
@@ -224,13 +223,13 @@ Source: Output/QRCanvas.js
diff --git a/Output_QRMarkupSVG.js.html b/Output_QRMarkupSVG.js.html
index b4705cf..6c7513c 100644
--- a/Output_QRMarkupSVG.js.html
+++ b/Output_QRMarkupSVG.js.html
@@ -86,7 +86,7 @@ Source: Output/QRMarkupSVG.js
}
/**
- * @inheritDoc
+ * @protected
*/
createMarkup($saveToFile){
let $svg = this.header();
@@ -113,6 +113,7 @@ Source: Output/QRMarkupSVG.js
* @see https://css-tricks.com/scale-svg/#article-header-id-3
*
* @returns {string}
+ * @protected
*/
getViewBox(){
let [$width, $height] = this.getOutputDimensions();
@@ -124,6 +125,7 @@ Source: Output/QRMarkupSVG.js
* returns the <svg> header with the given options parsed
*
* @returns {string}
+ * @protected
*/
header(){
@@ -143,6 +145,7 @@ Source: Output/QRMarkupSVG.js
* @see https://developer.mozilla.org/en-US/docs/Web/SVG/Element/path
*
* @returns {string}
+ * @protected
*/
paths(){
let $paths = this.collectModules(($x, $y, $M_TYPE) => this.module($x, $y, $M_TYPE));
@@ -201,6 +204,7 @@ Source: Output/QRMarkupSVG.js
* @param {number|int} $M_TYPE
*
* @returns {string}
+ * @protected
*/
module($x, $y, $M_TYPE){
@@ -240,13 +244,13 @@ Source: Output/QRMarkupSVG.js
diff --git a/Output_QROutputAbstract.js.html b/Output_QROutputAbstract.js.html
index 76cf666..240f502 100644
--- a/Output_QROutputAbstract.js.html
+++ b/Output_QROutputAbstract.js.html
@@ -350,13 +350,13 @@ Source: Output/QROutputAbstract.js
diff --git a/Output_QROutputInterface.js.html b/Output_QROutputInterface.js.html
index 07f7890..96ca857 100644
--- a/Output_QROutputInterface.js.html
+++ b/Output_QROutputInterface.js.html
@@ -75,13 +75,13 @@ Source: Output/QROutputInterface.js
diff --git a/Output_QRStringJSON.js.html b/Output_QRStringJSON.js.html
index 7ed74a5..4022bed 100644
--- a/Output_QRStringJSON.js.html
+++ b/Output_QRStringJSON.js.html
@@ -51,6 +51,7 @@ Source: Output/QRStringJSON.js
* the json schema
*
* @type {string}
+ * @protected
*/
schema = 'https://raw.githubusercontent.com/chillerlan/php-qrcode/main/src/Output/qrcode.schema.json';
@@ -153,13 +154,13 @@ Source: Output/QRStringJSON.js
diff --git a/Output_QRStringText.js.html b/Output_QRStringText.js.html
index b1df38d..9edf1b1 100644
--- a/Output_QRStringText.js.html
+++ b/Output_QRStringText.js.html
@@ -113,13 +113,13 @@ Source: Output/QRStringText.js
diff --git a/QRCode.js.html b/QRCode.js.html
index 70f5a55..24d9434 100644
--- a/QRCode.js.html
+++ b/QRCode.js.html
@@ -283,13 +283,13 @@ Source: QRCode.js
diff --git a/QRCodeException.js.html b/QRCodeException.js.html
index ac81dc8..bf7036d 100644
--- a/QRCodeException.js.html
+++ b/QRCodeException.js.html
@@ -46,13 +46,13 @@ Source: QRCodeException.js
diff --git a/QROptions.js.html b/QROptions.js.html
index 6270868..5cdc8f8 100644
--- a/QROptions.js.html
+++ b/QROptions.js.html
@@ -738,13 +738,13 @@ Source: QROptions.js
diff --git a/global.html b/global.html
index 5816831..88ffe4d 100644
--- a/global.html
+++ b/global.html
@@ -7345,7 +7345,7 @@ Returns:
- createMarkup()
+ (protected) createMarkup()
@@ -7613,6 +7613,108 @@ Returns:
+ (protected) drawImage() → {void}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+
+
+ -
+ Type
+
+ -
+
+void
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
dump() → {HTMLCanvasElement|string|*}
@@ -7661,7 +7763,7 @@