canvasframework 0.5.13 → 0.5.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -354,15 +354,18 @@ class QRCodeReader extends Component {
354
354
 
355
355
  // Fond semi-transparent autour
356
356
  ctx.fillStyle = 'rgba(0, 0, 0, 0.7)';
357
-
357
+
358
358
  // Haut
359
- ctx.fillRect(this.x, this.y, this.width, centerY - halfSize);
359
+ ctx.fillRect(this.x, this.y, this.width, centerY - this.y - halfSize);
360
+
360
361
  // Bas
361
- ctx.fillRect(this.x, centerY + halfSize, this.width, this.height - (centerY + halfSize));
362
+ ctx.fillRect(this.x, centerY + halfSize, this.width, this.y + this.height - (centerY + halfSize));
363
+
362
364
  // Gauche
363
- ctx.fillRect(this.x, centerY - halfSize, centerX - halfSize, frameSize);
365
+ ctx.fillRect(this.x, centerY - halfSize, centerX - this.x - halfSize, frameSize);
366
+
364
367
  // Droite
365
- ctx.fillRect(centerX + halfSize, centerY - halfSize, centerX - halfSize, frameSize);
368
+ ctx.fillRect(centerX + halfSize, centerY - halfSize, this.x + this.width - (centerX + halfSize), frameSize);
366
369
 
367
370
  // Cadre de scan
368
371
  ctx.strokeStyle = this.scannerFrameColor;
@@ -371,7 +374,7 @@ class QRCodeReader extends Component {
371
374
 
372
375
  // Coins décoratifs
373
376
  const cornerSize = 20;
374
-
377
+
375
378
  // Coin haut gauche
376
379
  ctx.beginPath();
377
380
  ctx.moveTo(centerX - halfSize, centerY - halfSize + cornerSize);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "canvasframework",
3
- "version": "0.5.13",
3
+ "version": "0.5.14",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/beyons/CanvasFramework.git"