microboard-ui-temp 0.1.119 → 0.1.120

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.
package/dist/index.js CHANGED
@@ -275527,6 +275527,7 @@ class Card extends BaseItem {
275527
275527
  }
275528
275528
  ctx.translate(centerX, centerY);
275529
275529
  ctx.rotate(this.transformation.getRotation() * Math.PI / 180);
275530
+ ctx.translate(-width2 / 2, -height3 / 2);
275530
275531
  if (this.dimensions.width < this.dimensions.height) {
275531
275532
  if (width2 > height3) {
275532
275533
  ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
@@ -275534,7 +275535,11 @@ class Card extends BaseItem {
275534
275535
  ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
275535
275536
  }
275536
275537
  } else {
275537
- ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
275538
+ if (width2 > height3) {
275539
+ ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
275540
+ } else {
275541
+ ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
275542
+ }
275538
275543
  }
275539
275544
  ctx.restore();
275540
275545
  }
package/dist/spa.js CHANGED
@@ -275527,6 +275527,7 @@ class Card extends BaseItem {
275527
275527
  }
275528
275528
  ctx.translate(centerX, centerY);
275529
275529
  ctx.rotate(this.transformation.getRotation() * Math.PI / 180);
275530
+ ctx.translate(-width2 / 2, -height3 / 2);
275530
275531
  if (this.dimensions.width < this.dimensions.height) {
275531
275532
  if (width2 > height3) {
275532
275533
  ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
@@ -275534,7 +275535,11 @@ class Card extends BaseItem {
275534
275535
  ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
275535
275536
  }
275536
275537
  } else {
275537
- ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
275538
+ if (width2 > height3) {
275539
+ ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
275540
+ } else {
275541
+ ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
275542
+ }
275538
275543
  }
275539
275544
  ctx.restore();
275540
275545
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-ui-temp",
3
- "version": "0.1.119",
3
+ "version": "0.1.120",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "type": "module",
@@ -66,7 +66,7 @@
66
66
  "i18next-browser-languagedetector": "^8.2.0",
67
67
  "js-cookie": "^3.0.5",
68
68
  "jwt-decode": "^4.0.0",
69
- "microboard-temp": "^0.5.47",
69
+ "microboard-temp": "^0.5.48",
70
70
  "nanoid": "^5.1.5",
71
71
  "prop-types": "^15.8.1",
72
72
  "react-hot-toast": "2.4.1",