microboard-temp 0.5.47 → 0.5.49

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.
@@ -47993,7 +47993,11 @@ class Card extends BaseItem {
47993
47993
  ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
47994
47994
  }
47995
47995
  } else {
47996
- ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
47996
+ if (width2 > height3) {
47997
+ ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
47998
+ } else {
47999
+ ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
48000
+ }
47997
48001
  }
47998
48002
  ctx.restore();
47999
48003
  }
package/dist/cjs/index.js CHANGED
@@ -47993,7 +47993,11 @@ class Card extends BaseItem {
47993
47993
  ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
47994
47994
  }
47995
47995
  } else {
47996
- ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
47996
+ if (width2 > height3) {
47997
+ ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
47998
+ } else {
47999
+ ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
48000
+ }
47997
48001
  }
47998
48002
  ctx.restore();
47999
48003
  }
package/dist/cjs/node.js CHANGED
@@ -50466,7 +50466,11 @@ class Card extends BaseItem {
50466
50466
  ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
50467
50467
  }
50468
50468
  } else {
50469
- ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
50469
+ if (width2 > height3) {
50470
+ ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
50471
+ } else {
50472
+ ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
50473
+ }
50470
50474
  }
50471
50475
  ctx.restore();
50472
50476
  }
@@ -47839,7 +47839,11 @@ class Card extends BaseItem {
47839
47839
  ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
47840
47840
  }
47841
47841
  } else {
47842
- ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
47842
+ if (width2 > height3) {
47843
+ ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
47844
+ } else {
47845
+ ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
47846
+ }
47843
47847
  }
47844
47848
  ctx.restore();
47845
47849
  }
package/dist/esm/index.js CHANGED
@@ -47832,7 +47832,11 @@ class Card extends BaseItem {
47832
47832
  ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
47833
47833
  }
47834
47834
  } else {
47835
- ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
47835
+ if (width2 > height3) {
47836
+ ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
47837
+ } else {
47838
+ ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
47839
+ }
47836
47840
  }
47837
47841
  ctx.restore();
47838
47842
  }
package/dist/esm/node.js CHANGED
@@ -50300,7 +50300,11 @@ class Card extends BaseItem {
50300
50300
  ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
50301
50301
  }
50302
50302
  } else {
50303
- ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
50303
+ if (width2 > height3) {
50304
+ ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
50305
+ } else {
50306
+ ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
50307
+ }
50304
50308
  }
50305
50309
  ctx.restore();
50306
50310
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.5.47",
3
+ "version": "0.5.49",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",