microboard-temp 0.5.45 → 0.5.46
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 +11 -3
- package/dist/cjs/index.js +11 -3
- package/dist/cjs/node.js +11 -3
- package/dist/esm/browser.js +11 -3
- package/dist/esm/index.js +11 -3
- package/dist/esm/node.js +11 -3
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -47986,10 +47986,18 @@ class Card extends BaseItem {
|
|
|
47986
47986
|
}
|
|
47987
47987
|
ctx.translate(centerX, centerY);
|
|
47988
47988
|
ctx.rotate(this.transformation.getRotation() * Math.PI / 180);
|
|
47989
|
-
if (
|
|
47990
|
-
|
|
47989
|
+
if (this.dimensions.width < this.dimensions.height) {
|
|
47990
|
+
if (width2 > height3) {
|
|
47991
|
+
ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
|
|
47992
|
+
} else {
|
|
47993
|
+
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
|
|
47994
|
+
}
|
|
47991
47995
|
} else {
|
|
47992
|
-
|
|
47996
|
+
if (width2 > height3) {
|
|
47997
|
+
ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
|
|
47998
|
+
} else {
|
|
47999
|
+
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, height3, width2);
|
|
48000
|
+
}
|
|
47993
48001
|
}
|
|
47994
48002
|
ctx.restore();
|
|
47995
48003
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -47986,10 +47986,18 @@ class Card extends BaseItem {
|
|
|
47986
47986
|
}
|
|
47987
47987
|
ctx.translate(centerX, centerY);
|
|
47988
47988
|
ctx.rotate(this.transformation.getRotation() * Math.PI / 180);
|
|
47989
|
-
if (
|
|
47990
|
-
|
|
47989
|
+
if (this.dimensions.width < this.dimensions.height) {
|
|
47990
|
+
if (width2 > height3) {
|
|
47991
|
+
ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
|
|
47992
|
+
} else {
|
|
47993
|
+
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
|
|
47994
|
+
}
|
|
47991
47995
|
} else {
|
|
47992
|
-
|
|
47996
|
+
if (width2 > height3) {
|
|
47997
|
+
ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
|
|
47998
|
+
} else {
|
|
47999
|
+
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, height3, width2);
|
|
48000
|
+
}
|
|
47993
48001
|
}
|
|
47994
48002
|
ctx.restore();
|
|
47995
48003
|
}
|
package/dist/cjs/node.js
CHANGED
|
@@ -50459,10 +50459,18 @@ class Card extends BaseItem {
|
|
|
50459
50459
|
}
|
|
50460
50460
|
ctx.translate(centerX, centerY);
|
|
50461
50461
|
ctx.rotate(this.transformation.getRotation() * Math.PI / 180);
|
|
50462
|
-
if (
|
|
50463
|
-
|
|
50462
|
+
if (this.dimensions.width < this.dimensions.height) {
|
|
50463
|
+
if (width2 > height3) {
|
|
50464
|
+
ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
|
|
50465
|
+
} else {
|
|
50466
|
+
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
|
|
50467
|
+
}
|
|
50464
50468
|
} else {
|
|
50465
|
-
|
|
50469
|
+
if (width2 > height3) {
|
|
50470
|
+
ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
|
|
50471
|
+
} else {
|
|
50472
|
+
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, height3, width2);
|
|
50473
|
+
}
|
|
50466
50474
|
}
|
|
50467
50475
|
ctx.restore();
|
|
50468
50476
|
}
|
package/dist/esm/browser.js
CHANGED
|
@@ -47832,10 +47832,18 @@ class Card extends BaseItem {
|
|
|
47832
47832
|
}
|
|
47833
47833
|
ctx.translate(centerX, centerY);
|
|
47834
47834
|
ctx.rotate(this.transformation.getRotation() * Math.PI / 180);
|
|
47835
|
-
if (
|
|
47836
|
-
|
|
47835
|
+
if (this.dimensions.width < this.dimensions.height) {
|
|
47836
|
+
if (width2 > height3) {
|
|
47837
|
+
ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
|
|
47838
|
+
} else {
|
|
47839
|
+
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
|
|
47840
|
+
}
|
|
47837
47841
|
} else {
|
|
47838
|
-
|
|
47842
|
+
if (width2 > height3) {
|
|
47843
|
+
ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
|
|
47844
|
+
} else {
|
|
47845
|
+
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, height3, width2);
|
|
47846
|
+
}
|
|
47839
47847
|
}
|
|
47840
47848
|
ctx.restore();
|
|
47841
47849
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -47825,10 +47825,18 @@ class Card extends BaseItem {
|
|
|
47825
47825
|
}
|
|
47826
47826
|
ctx.translate(centerX, centerY);
|
|
47827
47827
|
ctx.rotate(this.transformation.getRotation() * Math.PI / 180);
|
|
47828
|
-
if (
|
|
47829
|
-
|
|
47828
|
+
if (this.dimensions.width < this.dimensions.height) {
|
|
47829
|
+
if (width2 > height3) {
|
|
47830
|
+
ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
|
|
47831
|
+
} else {
|
|
47832
|
+
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
|
|
47833
|
+
}
|
|
47830
47834
|
} else {
|
|
47831
|
-
|
|
47835
|
+
if (width2 > height3) {
|
|
47836
|
+
ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
|
|
47837
|
+
} else {
|
|
47838
|
+
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, height3, width2);
|
|
47839
|
+
}
|
|
47832
47840
|
}
|
|
47833
47841
|
ctx.restore();
|
|
47834
47842
|
}
|
package/dist/esm/node.js
CHANGED
|
@@ -50293,10 +50293,18 @@ class Card extends BaseItem {
|
|
|
50293
50293
|
}
|
|
50294
50294
|
ctx.translate(centerX, centerY);
|
|
50295
50295
|
ctx.rotate(this.transformation.getRotation() * Math.PI / 180);
|
|
50296
|
-
if (
|
|
50297
|
-
|
|
50296
|
+
if (this.dimensions.width < this.dimensions.height) {
|
|
50297
|
+
if (width2 > height3) {
|
|
50298
|
+
ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
|
|
50299
|
+
} else {
|
|
50300
|
+
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
|
|
50301
|
+
}
|
|
50298
50302
|
} else {
|
|
50299
|
-
|
|
50303
|
+
if (width2 > height3) {
|
|
50304
|
+
ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
|
|
50305
|
+
} else {
|
|
50306
|
+
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, height3, width2);
|
|
50307
|
+
}
|
|
50300
50308
|
}
|
|
50301
50309
|
ctx.restore();
|
|
50302
50310
|
}
|