microboard-ui-temp 0.1.83 → 0.1.85

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
@@ -216468,7 +216468,7 @@ class Transformation {
216468
216468
  this.rotate = degree;
216469
216469
  }
216470
216470
  applyRotateBy(degree) {
216471
- this.rotateTo(this.rotate + degree);
216471
+ this.applyRotateTo(this.rotate + degree);
216472
216472
  }
216473
216473
  applyLocked(locked) {
216474
216474
  this.isLocked = locked;
@@ -255920,7 +255920,11 @@ class Card extends BaseItem {
255920
255920
  }
255921
255921
  ctx.translate(centerX, centerY);
255922
255922
  ctx.rotate(this.transformation.getRotation() * Math.PI / 180);
255923
- ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
255923
+ if (width2 > height3) {
255924
+ ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
255925
+ } else {
255926
+ ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
255927
+ }
255924
255928
  ctx.restore();
255925
255929
  }
255926
255930
  }
package/dist/spa.js CHANGED
@@ -216468,7 +216468,7 @@ class Transformation {
216468
216468
  this.rotate = degree;
216469
216469
  }
216470
216470
  applyRotateBy(degree) {
216471
- this.rotateTo(this.rotate + degree);
216471
+ this.applyRotateTo(this.rotate + degree);
216472
216472
  }
216473
216473
  applyLocked(locked) {
216474
216474
  this.isLocked = locked;
@@ -255920,7 +255920,11 @@ class Card extends BaseItem {
255920
255920
  }
255921
255921
  ctx.translate(centerX, centerY);
255922
255922
  ctx.rotate(this.transformation.getRotation() * Math.PI / 180);
255923
- ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
255923
+ if (width2 > height3) {
255924
+ ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
255925
+ } else {
255926
+ ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
255927
+ }
255924
255928
  ctx.restore();
255925
255929
  }
255926
255930
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-ui-temp",
3
- "version": "0.1.83",
3
+ "version": "0.1.85",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "type": "module",
@@ -60,7 +60,7 @@
60
60
  "i18next-browser-languagedetector": "^8.2.0",
61
61
  "js-cookie": "^3.0.5",
62
62
  "jwt-decode": "^4.0.0",
63
- "microboard-temp": "^0.5.24",
63
+ "microboard-temp": "^0.5.26",
64
64
  "nanoid": "^5.1.5",
65
65
  "prop-types": "^15.8.1",
66
66
  "react-hot-toast": "2.4.1",