microboard-temp 0.5.24 → 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 +6 -2
- package/dist/cjs/index.js +6 -2
- package/dist/cjs/node.js +6 -2
- package/dist/esm/browser.js +6 -2
- package/dist/esm/index.js +6 -2
- package/dist/esm/node.js +6 -2
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -7630,7 +7630,7 @@ class Transformation {
|
|
|
7630
7630
|
this.rotate = degree;
|
|
7631
7631
|
}
|
|
7632
7632
|
applyRotateBy(degree) {
|
|
7633
|
-
this.
|
|
7633
|
+
this.applyRotateTo(this.rotate + degree);
|
|
7634
7634
|
}
|
|
7635
7635
|
applyLocked(locked) {
|
|
7636
7636
|
this.isLocked = locked;
|
|
@@ -47890,7 +47890,11 @@ class Card extends BaseItem {
|
|
|
47890
47890
|
}
|
|
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, -height3 / 2, -width2 / 2, height3, width2);
|
|
47895
|
+
} else {
|
|
47896
|
+
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
|
|
47897
|
+
}
|
|
47894
47898
|
ctx.restore();
|
|
47895
47899
|
}
|
|
47896
47900
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -7630,7 +7630,7 @@ class Transformation {
|
|
|
7630
7630
|
this.rotate = degree;
|
|
7631
7631
|
}
|
|
7632
7632
|
applyRotateBy(degree) {
|
|
7633
|
-
this.
|
|
7633
|
+
this.applyRotateTo(this.rotate + degree);
|
|
7634
7634
|
}
|
|
7635
7635
|
applyLocked(locked) {
|
|
7636
7636
|
this.isLocked = locked;
|
|
@@ -47890,7 +47890,11 @@ class Card extends BaseItem {
|
|
|
47890
47890
|
}
|
|
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, -height3 / 2, -width2 / 2, height3, width2);
|
|
47895
|
+
} else {
|
|
47896
|
+
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
|
|
47897
|
+
}
|
|
47894
47898
|
ctx.restore();
|
|
47895
47899
|
}
|
|
47896
47900
|
}
|
package/dist/cjs/node.js
CHANGED
|
@@ -8667,7 +8667,7 @@ class Transformation {
|
|
|
8667
8667
|
this.rotate = degree;
|
|
8668
8668
|
}
|
|
8669
8669
|
applyRotateBy(degree) {
|
|
8670
|
-
this.
|
|
8670
|
+
this.applyRotateTo(this.rotate + degree);
|
|
8671
8671
|
}
|
|
8672
8672
|
applyLocked(locked) {
|
|
8673
8673
|
this.isLocked = locked;
|
|
@@ -50363,7 +50363,11 @@ class Card extends BaseItem {
|
|
|
50363
50363
|
}
|
|
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, -height3 / 2, -width2 / 2, height3, width2);
|
|
50368
|
+
} else {
|
|
50369
|
+
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
|
|
50370
|
+
}
|
|
50367
50371
|
ctx.restore();
|
|
50368
50372
|
}
|
|
50369
50373
|
}
|
package/dist/esm/browser.js
CHANGED
|
@@ -7467,7 +7467,7 @@ class Transformation {
|
|
|
7467
7467
|
this.rotate = degree;
|
|
7468
7468
|
}
|
|
7469
7469
|
applyRotateBy(degree) {
|
|
7470
|
-
this.
|
|
7470
|
+
this.applyRotateTo(this.rotate + degree);
|
|
7471
7471
|
}
|
|
7472
7472
|
applyLocked(locked) {
|
|
7473
7473
|
this.isLocked = locked;
|
|
@@ -47736,7 +47736,11 @@ class Card extends BaseItem {
|
|
|
47736
47736
|
}
|
|
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, -height3 / 2, -width2 / 2, height3, width2);
|
|
47741
|
+
} else {
|
|
47742
|
+
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
|
|
47743
|
+
}
|
|
47740
47744
|
ctx.restore();
|
|
47741
47745
|
}
|
|
47742
47746
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -7460,7 +7460,7 @@ class Transformation {
|
|
|
7460
7460
|
this.rotate = degree;
|
|
7461
7461
|
}
|
|
7462
7462
|
applyRotateBy(degree) {
|
|
7463
|
-
this.
|
|
7463
|
+
this.applyRotateTo(this.rotate + degree);
|
|
7464
7464
|
}
|
|
7465
7465
|
applyLocked(locked) {
|
|
7466
7466
|
this.isLocked = locked;
|
|
@@ -47729,7 +47729,11 @@ class Card extends BaseItem {
|
|
|
47729
47729
|
}
|
|
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, -height3 / 2, -width2 / 2, height3, width2);
|
|
47734
|
+
} else {
|
|
47735
|
+
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
|
|
47736
|
+
}
|
|
47733
47737
|
ctx.restore();
|
|
47734
47738
|
}
|
|
47735
47739
|
}
|
package/dist/esm/node.js
CHANGED
|
@@ -8244,7 +8244,7 @@ class Transformation {
|
|
|
8244
8244
|
this.rotate = degree;
|
|
8245
8245
|
}
|
|
8246
8246
|
applyRotateBy(degree) {
|
|
8247
|
-
this.
|
|
8247
|
+
this.applyRotateTo(this.rotate + degree);
|
|
8248
8248
|
}
|
|
8249
8249
|
applyLocked(locked) {
|
|
8250
8250
|
this.isLocked = locked;
|
|
@@ -50197,7 +50197,11 @@ class Card extends BaseItem {
|
|
|
50197
50197
|
}
|
|
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, -height3 / 2, -width2 / 2, height3, width2);
|
|
50202
|
+
} else {
|
|
50203
|
+
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
|
|
50204
|
+
}
|
|
50201
50205
|
ctx.restore();
|
|
50202
50206
|
}
|
|
50203
50207
|
}
|