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