microboard-temp 0.5.25 → 0.5.26
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/cjs/browser.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/node.js +1 -1
- package/dist/esm/browser.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/node.js +1 -1
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -47891,7 +47891,7 @@ class Card extends BaseItem {
|
|
|
47891
47891
|
ctx.translate(centerX, centerY);
|
|
47892
47892
|
ctx.rotate(this.transformation.getRotation() * Math.PI / 180);
|
|
47893
47893
|
if (width2 > height3) {
|
|
47894
|
-
ctx.drawImage(this.imageToRender, -
|
|
47894
|
+
ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
|
|
47895
47895
|
} else {
|
|
47896
47896
|
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
|
|
47897
47897
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -47891,7 +47891,7 @@ class Card extends BaseItem {
|
|
|
47891
47891
|
ctx.translate(centerX, centerY);
|
|
47892
47892
|
ctx.rotate(this.transformation.getRotation() * Math.PI / 180);
|
|
47893
47893
|
if (width2 > height3) {
|
|
47894
|
-
ctx.drawImage(this.imageToRender, -
|
|
47894
|
+
ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
|
|
47895
47895
|
} else {
|
|
47896
47896
|
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
|
|
47897
47897
|
}
|
package/dist/cjs/node.js
CHANGED
|
@@ -50364,7 +50364,7 @@ class Card extends BaseItem {
|
|
|
50364
50364
|
ctx.translate(centerX, centerY);
|
|
50365
50365
|
ctx.rotate(this.transformation.getRotation() * Math.PI / 180);
|
|
50366
50366
|
if (width2 > height3) {
|
|
50367
|
-
ctx.drawImage(this.imageToRender, -
|
|
50367
|
+
ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
|
|
50368
50368
|
} else {
|
|
50369
50369
|
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
|
|
50370
50370
|
}
|
package/dist/esm/browser.js
CHANGED
|
@@ -47737,7 +47737,7 @@ class Card extends BaseItem {
|
|
|
47737
47737
|
ctx.translate(centerX, centerY);
|
|
47738
47738
|
ctx.rotate(this.transformation.getRotation() * Math.PI / 180);
|
|
47739
47739
|
if (width2 > height3) {
|
|
47740
|
-
ctx.drawImage(this.imageToRender, -
|
|
47740
|
+
ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
|
|
47741
47741
|
} else {
|
|
47742
47742
|
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
|
|
47743
47743
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -47730,7 +47730,7 @@ class Card extends BaseItem {
|
|
|
47730
47730
|
ctx.translate(centerX, centerY);
|
|
47731
47731
|
ctx.rotate(this.transformation.getRotation() * Math.PI / 180);
|
|
47732
47732
|
if (width2 > height3) {
|
|
47733
|
-
ctx.drawImage(this.imageToRender, -
|
|
47733
|
+
ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
|
|
47734
47734
|
} else {
|
|
47735
47735
|
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
|
|
47736
47736
|
}
|
package/dist/esm/node.js
CHANGED
|
@@ -50198,7 +50198,7 @@ class Card extends BaseItem {
|
|
|
50198
50198
|
ctx.translate(centerX, centerY);
|
|
50199
50199
|
ctx.rotate(this.transformation.getRotation() * Math.PI / 180);
|
|
50200
50200
|
if (width2 > height3) {
|
|
50201
|
-
ctx.drawImage(this.imageToRender, -
|
|
50201
|
+
ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
|
|
50202
50202
|
} else {
|
|
50203
50203
|
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
|
|
50204
50204
|
}
|