microboard-temp 0.5.44 → 0.5.45
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 +5 -1
- package/dist/cjs/index.js +5 -1
- package/dist/cjs/node.js +5 -1
- package/dist/esm/browser.js +5 -1
- package/dist/esm/index.js +5 -1
- package/dist/esm/node.js +5 -1
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -47986,7 +47986,11 @@ class Card extends BaseItem {
|
|
|
47986
47986
|
}
|
|
47987
47987
|
ctx.translate(centerX, centerY);
|
|
47988
47988
|
ctx.rotate(this.transformation.getRotation() * Math.PI / 180);
|
|
47989
|
-
|
|
47989
|
+
if (width2 > height3 && this.dimensions.width < this.dimensions.height) {
|
|
47990
|
+
ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
|
|
47991
|
+
} else {
|
|
47992
|
+
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
|
|
47993
|
+
}
|
|
47990
47994
|
ctx.restore();
|
|
47991
47995
|
}
|
|
47992
47996
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -47986,7 +47986,11 @@ class Card extends BaseItem {
|
|
|
47986
47986
|
}
|
|
47987
47987
|
ctx.translate(centerX, centerY);
|
|
47988
47988
|
ctx.rotate(this.transformation.getRotation() * Math.PI / 180);
|
|
47989
|
-
|
|
47989
|
+
if (width2 > height3 && this.dimensions.width < this.dimensions.height) {
|
|
47990
|
+
ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
|
|
47991
|
+
} else {
|
|
47992
|
+
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
|
|
47993
|
+
}
|
|
47990
47994
|
ctx.restore();
|
|
47991
47995
|
}
|
|
47992
47996
|
}
|
package/dist/cjs/node.js
CHANGED
|
@@ -50459,7 +50459,11 @@ class Card extends BaseItem {
|
|
|
50459
50459
|
}
|
|
50460
50460
|
ctx.translate(centerX, centerY);
|
|
50461
50461
|
ctx.rotate(this.transformation.getRotation() * Math.PI / 180);
|
|
50462
|
-
|
|
50462
|
+
if (width2 > height3 && this.dimensions.width < this.dimensions.height) {
|
|
50463
|
+
ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
|
|
50464
|
+
} else {
|
|
50465
|
+
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
|
|
50466
|
+
}
|
|
50463
50467
|
ctx.restore();
|
|
50464
50468
|
}
|
|
50465
50469
|
}
|
package/dist/esm/browser.js
CHANGED
|
@@ -47832,7 +47832,11 @@ class Card extends BaseItem {
|
|
|
47832
47832
|
}
|
|
47833
47833
|
ctx.translate(centerX, centerY);
|
|
47834
47834
|
ctx.rotate(this.transformation.getRotation() * Math.PI / 180);
|
|
47835
|
-
|
|
47835
|
+
if (width2 > height3 && this.dimensions.width < this.dimensions.height) {
|
|
47836
|
+
ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
|
|
47837
|
+
} else {
|
|
47838
|
+
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
|
|
47839
|
+
}
|
|
47836
47840
|
ctx.restore();
|
|
47837
47841
|
}
|
|
47838
47842
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -47825,7 +47825,11 @@ class Card extends BaseItem {
|
|
|
47825
47825
|
}
|
|
47826
47826
|
ctx.translate(centerX, centerY);
|
|
47827
47827
|
ctx.rotate(this.transformation.getRotation() * Math.PI / 180);
|
|
47828
|
-
|
|
47828
|
+
if (width2 > height3 && this.dimensions.width < this.dimensions.height) {
|
|
47829
|
+
ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
|
|
47830
|
+
} else {
|
|
47831
|
+
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
|
|
47832
|
+
}
|
|
47829
47833
|
ctx.restore();
|
|
47830
47834
|
}
|
|
47831
47835
|
}
|
package/dist/esm/node.js
CHANGED
|
@@ -50293,7 +50293,11 @@ class Card extends BaseItem {
|
|
|
50293
50293
|
}
|
|
50294
50294
|
ctx.translate(centerX, centerY);
|
|
50295
50295
|
ctx.rotate(this.transformation.getRotation() * Math.PI / 180);
|
|
50296
|
-
|
|
50296
|
+
if (width2 > height3 && this.dimensions.width < this.dimensions.height) {
|
|
50297
|
+
ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
|
|
50298
|
+
} else {
|
|
50299
|
+
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
|
|
50300
|
+
}
|
|
50297
50301
|
ctx.restore();
|
|
50298
50302
|
}
|
|
50299
50303
|
}
|