microboard-temp 0.5.41 → 0.5.43
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 -7
- package/dist/cjs/index.js +5 -7
- package/dist/cjs/node.js +5 -7
- package/dist/esm/browser.js +5 -7
- package/dist/esm/index.js +5 -7
- package/dist/esm/node.js +5 -7
- package/dist/types/Settings.d.ts +1 -0
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -7071,7 +7071,8 @@ var conf = {
|
|
|
7071
7071
|
DECK_HORIZONTAL_OFFSET: 2,
|
|
7072
7072
|
DECK_VERTICAL_OFFSET: 2,
|
|
7073
7073
|
CARD_DIMENSIONS: { width: 250, height: 400 },
|
|
7074
|
-
DEFAULT_GAME_ITEM_DIMENSIONS: { width: 200, height: 200 }
|
|
7074
|
+
DEFAULT_GAME_ITEM_DIMENSIONS: { width: 200, height: 200 },
|
|
7075
|
+
MAX_CARD_SIZE: 500
|
|
7075
7076
|
};
|
|
7076
7077
|
initDefaultI18N();
|
|
7077
7078
|
|
|
@@ -21649,7 +21650,8 @@ class BaseItem extends Mbr {
|
|
|
21649
21650
|
linkTo: this.linkTo.serialize(),
|
|
21650
21651
|
transformation: this.transformation.serialize(),
|
|
21651
21652
|
itemType: this.defaultItemData?.itemType || this.itemType,
|
|
21652
|
-
children: this.index?.list().map((child) => child.getId())
|
|
21653
|
+
children: this.index?.list().map((child) => child.getId()),
|
|
21654
|
+
resizeEnabled: this.resizeEnabled
|
|
21653
21655
|
};
|
|
21654
21656
|
Object.keys(this.defaultItemData || {}).forEach((key) => {
|
|
21655
21657
|
const value = this[key];
|
|
@@ -47984,11 +47986,7 @@ class Card extends BaseItem {
|
|
|
47984
47986
|
}
|
|
47985
47987
|
ctx.translate(centerX, centerY);
|
|
47986
47988
|
ctx.rotate(this.transformation.getRotation() * Math.PI / 180);
|
|
47987
|
-
|
|
47988
|
-
ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
|
|
47989
|
-
} else {
|
|
47990
|
-
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
|
|
47991
|
-
}
|
|
47989
|
+
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
|
|
47992
47990
|
ctx.restore();
|
|
47993
47991
|
}
|
|
47994
47992
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -7071,7 +7071,8 @@ var conf = {
|
|
|
7071
7071
|
DECK_HORIZONTAL_OFFSET: 2,
|
|
7072
7072
|
DECK_VERTICAL_OFFSET: 2,
|
|
7073
7073
|
CARD_DIMENSIONS: { width: 250, height: 400 },
|
|
7074
|
-
DEFAULT_GAME_ITEM_DIMENSIONS: { width: 200, height: 200 }
|
|
7074
|
+
DEFAULT_GAME_ITEM_DIMENSIONS: { width: 200, height: 200 },
|
|
7075
|
+
MAX_CARD_SIZE: 500
|
|
7075
7076
|
};
|
|
7076
7077
|
initDefaultI18N();
|
|
7077
7078
|
|
|
@@ -21649,7 +21650,8 @@ class BaseItem extends Mbr {
|
|
|
21649
21650
|
linkTo: this.linkTo.serialize(),
|
|
21650
21651
|
transformation: this.transformation.serialize(),
|
|
21651
21652
|
itemType: this.defaultItemData?.itemType || this.itemType,
|
|
21652
|
-
children: this.index?.list().map((child) => child.getId())
|
|
21653
|
+
children: this.index?.list().map((child) => child.getId()),
|
|
21654
|
+
resizeEnabled: this.resizeEnabled
|
|
21653
21655
|
};
|
|
21654
21656
|
Object.keys(this.defaultItemData || {}).forEach((key) => {
|
|
21655
21657
|
const value = this[key];
|
|
@@ -47984,11 +47986,7 @@ class Card extends BaseItem {
|
|
|
47984
47986
|
}
|
|
47985
47987
|
ctx.translate(centerX, centerY);
|
|
47986
47988
|
ctx.rotate(this.transformation.getRotation() * Math.PI / 180);
|
|
47987
|
-
|
|
47988
|
-
ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
|
|
47989
|
-
} else {
|
|
47990
|
-
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
|
|
47991
|
-
}
|
|
47989
|
+
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
|
|
47992
47990
|
ctx.restore();
|
|
47993
47991
|
}
|
|
47994
47992
|
}
|
package/dist/cjs/node.js
CHANGED
|
@@ -8108,7 +8108,8 @@ var conf = {
|
|
|
8108
8108
|
DECK_HORIZONTAL_OFFSET: 2,
|
|
8109
8109
|
DECK_VERTICAL_OFFSET: 2,
|
|
8110
8110
|
CARD_DIMENSIONS: { width: 250, height: 400 },
|
|
8111
|
-
DEFAULT_GAME_ITEM_DIMENSIONS: { width: 200, height: 200 }
|
|
8111
|
+
DEFAULT_GAME_ITEM_DIMENSIONS: { width: 200, height: 200 },
|
|
8112
|
+
MAX_CARD_SIZE: 500
|
|
8112
8113
|
};
|
|
8113
8114
|
initDefaultI18N();
|
|
8114
8115
|
|
|
@@ -24121,7 +24122,8 @@ class BaseItem extends Mbr {
|
|
|
24121
24122
|
linkTo: this.linkTo.serialize(),
|
|
24122
24123
|
transformation: this.transformation.serialize(),
|
|
24123
24124
|
itemType: this.defaultItemData?.itemType || this.itemType,
|
|
24124
|
-
children: this.index?.list().map((child) => child.getId())
|
|
24125
|
+
children: this.index?.list().map((child) => child.getId()),
|
|
24126
|
+
resizeEnabled: this.resizeEnabled
|
|
24125
24127
|
};
|
|
24126
24128
|
Object.keys(this.defaultItemData || {}).forEach((key) => {
|
|
24127
24129
|
const value = this[key];
|
|
@@ -50457,11 +50459,7 @@ class Card extends BaseItem {
|
|
|
50457
50459
|
}
|
|
50458
50460
|
ctx.translate(centerX, centerY);
|
|
50459
50461
|
ctx.rotate(this.transformation.getRotation() * Math.PI / 180);
|
|
50460
|
-
|
|
50461
|
-
ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
|
|
50462
|
-
} else {
|
|
50463
|
-
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
|
|
50464
|
-
}
|
|
50462
|
+
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
|
|
50465
50463
|
ctx.restore();
|
|
50466
50464
|
}
|
|
50467
50465
|
}
|
package/dist/esm/browser.js
CHANGED
|
@@ -6908,7 +6908,8 @@ var conf = {
|
|
|
6908
6908
|
DECK_HORIZONTAL_OFFSET: 2,
|
|
6909
6909
|
DECK_VERTICAL_OFFSET: 2,
|
|
6910
6910
|
CARD_DIMENSIONS: { width: 250, height: 400 },
|
|
6911
|
-
DEFAULT_GAME_ITEM_DIMENSIONS: { width: 200, height: 200 }
|
|
6911
|
+
DEFAULT_GAME_ITEM_DIMENSIONS: { width: 200, height: 200 },
|
|
6912
|
+
MAX_CARD_SIZE: 500
|
|
6912
6913
|
};
|
|
6913
6914
|
initDefaultI18N();
|
|
6914
6915
|
|
|
@@ -21495,7 +21496,8 @@ class BaseItem extends Mbr {
|
|
|
21495
21496
|
linkTo: this.linkTo.serialize(),
|
|
21496
21497
|
transformation: this.transformation.serialize(),
|
|
21497
21498
|
itemType: this.defaultItemData?.itemType || this.itemType,
|
|
21498
|
-
children: this.index?.list().map((child) => child.getId())
|
|
21499
|
+
children: this.index?.list().map((child) => child.getId()),
|
|
21500
|
+
resizeEnabled: this.resizeEnabled
|
|
21499
21501
|
};
|
|
21500
21502
|
Object.keys(this.defaultItemData || {}).forEach((key) => {
|
|
21501
21503
|
const value = this[key];
|
|
@@ -47830,11 +47832,7 @@ class Card extends BaseItem {
|
|
|
47830
47832
|
}
|
|
47831
47833
|
ctx.translate(centerX, centerY);
|
|
47832
47834
|
ctx.rotate(this.transformation.getRotation() * Math.PI / 180);
|
|
47833
|
-
|
|
47834
|
-
ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
|
|
47835
|
-
} else {
|
|
47836
|
-
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
|
|
47837
|
-
}
|
|
47835
|
+
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
|
|
47838
47836
|
ctx.restore();
|
|
47839
47837
|
}
|
|
47840
47838
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -6901,7 +6901,8 @@ var conf = {
|
|
|
6901
6901
|
DECK_HORIZONTAL_OFFSET: 2,
|
|
6902
6902
|
DECK_VERTICAL_OFFSET: 2,
|
|
6903
6903
|
CARD_DIMENSIONS: { width: 250, height: 400 },
|
|
6904
|
-
DEFAULT_GAME_ITEM_DIMENSIONS: { width: 200, height: 200 }
|
|
6904
|
+
DEFAULT_GAME_ITEM_DIMENSIONS: { width: 200, height: 200 },
|
|
6905
|
+
MAX_CARD_SIZE: 500
|
|
6905
6906
|
};
|
|
6906
6907
|
initDefaultI18N();
|
|
6907
6908
|
|
|
@@ -21488,7 +21489,8 @@ class BaseItem extends Mbr {
|
|
|
21488
21489
|
linkTo: this.linkTo.serialize(),
|
|
21489
21490
|
transformation: this.transformation.serialize(),
|
|
21490
21491
|
itemType: this.defaultItemData?.itemType || this.itemType,
|
|
21491
|
-
children: this.index?.list().map((child) => child.getId())
|
|
21492
|
+
children: this.index?.list().map((child) => child.getId()),
|
|
21493
|
+
resizeEnabled: this.resizeEnabled
|
|
21492
21494
|
};
|
|
21493
21495
|
Object.keys(this.defaultItemData || {}).forEach((key) => {
|
|
21494
21496
|
const value = this[key];
|
|
@@ -47823,11 +47825,7 @@ class Card extends BaseItem {
|
|
|
47823
47825
|
}
|
|
47824
47826
|
ctx.translate(centerX, centerY);
|
|
47825
47827
|
ctx.rotate(this.transformation.getRotation() * Math.PI / 180);
|
|
47826
|
-
|
|
47827
|
-
ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
|
|
47828
|
-
} else {
|
|
47829
|
-
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
|
|
47830
|
-
}
|
|
47828
|
+
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
|
|
47831
47829
|
ctx.restore();
|
|
47832
47830
|
}
|
|
47833
47831
|
}
|
package/dist/esm/node.js
CHANGED
|
@@ -7685,7 +7685,8 @@ var conf = {
|
|
|
7685
7685
|
DECK_HORIZONTAL_OFFSET: 2,
|
|
7686
7686
|
DECK_VERTICAL_OFFSET: 2,
|
|
7687
7687
|
CARD_DIMENSIONS: { width: 250, height: 400 },
|
|
7688
|
-
DEFAULT_GAME_ITEM_DIMENSIONS: { width: 200, height: 200 }
|
|
7688
|
+
DEFAULT_GAME_ITEM_DIMENSIONS: { width: 200, height: 200 },
|
|
7689
|
+
MAX_CARD_SIZE: 500
|
|
7689
7690
|
};
|
|
7690
7691
|
initDefaultI18N();
|
|
7691
7692
|
|
|
@@ -23955,7 +23956,8 @@ class BaseItem extends Mbr {
|
|
|
23955
23956
|
linkTo: this.linkTo.serialize(),
|
|
23956
23957
|
transformation: this.transformation.serialize(),
|
|
23957
23958
|
itemType: this.defaultItemData?.itemType || this.itemType,
|
|
23958
|
-
children: this.index?.list().map((child) => child.getId())
|
|
23959
|
+
children: this.index?.list().map((child) => child.getId()),
|
|
23960
|
+
resizeEnabled: this.resizeEnabled
|
|
23959
23961
|
};
|
|
23960
23962
|
Object.keys(this.defaultItemData || {}).forEach((key) => {
|
|
23961
23963
|
const value = this[key];
|
|
@@ -50291,11 +50293,7 @@ class Card extends BaseItem {
|
|
|
50291
50293
|
}
|
|
50292
50294
|
ctx.translate(centerX, centerY);
|
|
50293
50295
|
ctx.rotate(this.transformation.getRotation() * Math.PI / 180);
|
|
50294
|
-
|
|
50295
|
-
ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
|
|
50296
|
-
} else {
|
|
50297
|
-
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
|
|
50298
|
-
}
|
|
50296
|
+
ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
|
|
50299
50297
|
ctx.restore();
|
|
50300
50298
|
}
|
|
50301
50299
|
}
|
package/dist/types/Settings.d.ts
CHANGED