microboard-temp 0.5.29 → 0.5.30
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 +3 -3
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/node.js +3 -3
- package/dist/esm/browser.js +3 -3
- package/dist/esm/index.js +3 -3
- package/dist/esm/node.js +3 -3
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -48158,8 +48158,8 @@ class Deck extends BaseItem {
|
|
|
48158
48158
|
const itemsMbr = items[0]?.getMbr().combine(items.slice(1).map((item) => item.getMbr()));
|
|
48159
48159
|
this.left = translateX;
|
|
48160
48160
|
this.top = translateY;
|
|
48161
|
-
this.right = translateX + (itemsMbr?.getWidth() || conf.CARD_DIMENSIONS.width + conf.DECK_HORIZONTAL_OFFSET * ((this.children.length || 1) - 1));
|
|
48162
|
-
this.bottom = translateY + (itemsMbr?.getHeight() || conf.CARD_DIMENSIONS.height
|
|
48161
|
+
this.right = translateX + (itemsMbr?.getWidth() || conf.CARD_DIMENSIONS.width + (this.isPerpendicular ? 0 : conf.DECK_HORIZONTAL_OFFSET * ((this.children.length || 1) - 1)));
|
|
48162
|
+
this.bottom = translateY + (itemsMbr?.getHeight() || conf.CARD_DIMENSIONS.height + (this.isPerpendicular ? conf.DECK_VERTICAL_OFFSET * ((this.children.length || 1) - 1) : 0));
|
|
48163
48163
|
this.path = new Path(this.getMbr().getLines(), true, "#FFFFFF");
|
|
48164
48164
|
}
|
|
48165
48165
|
deserialize(data) {
|
|
@@ -48226,7 +48226,7 @@ class Deck extends BaseItem {
|
|
|
48226
48226
|
return;
|
|
48227
48227
|
const tempContext = { ...context, ctx: tempCtx };
|
|
48228
48228
|
cards.forEach((_, index2) => {
|
|
48229
|
-
topCard.render(tempContext, index2 * conf.DECK_HORIZONTAL_OFFSET, index2 * conf.DECK_VERTICAL_OFFSET);
|
|
48229
|
+
topCard.render(tempContext, this.isPerpendicular ? 0 : index2 * conf.DECK_HORIZONTAL_OFFSET, this.isPerpendicular ? index2 * conf.DECK_VERTICAL_OFFSET : 0);
|
|
48230
48230
|
});
|
|
48231
48231
|
this.cachedCanvas = tempCanvas;
|
|
48232
48232
|
this.isCacheDirty = false;
|
package/dist/cjs/index.js
CHANGED
|
@@ -48158,8 +48158,8 @@ class Deck extends BaseItem {
|
|
|
48158
48158
|
const itemsMbr = items[0]?.getMbr().combine(items.slice(1).map((item) => item.getMbr()));
|
|
48159
48159
|
this.left = translateX;
|
|
48160
48160
|
this.top = translateY;
|
|
48161
|
-
this.right = translateX + (itemsMbr?.getWidth() || conf.CARD_DIMENSIONS.width + conf.DECK_HORIZONTAL_OFFSET * ((this.children.length || 1) - 1));
|
|
48162
|
-
this.bottom = translateY + (itemsMbr?.getHeight() || conf.CARD_DIMENSIONS.height
|
|
48161
|
+
this.right = translateX + (itemsMbr?.getWidth() || conf.CARD_DIMENSIONS.width + (this.isPerpendicular ? 0 : conf.DECK_HORIZONTAL_OFFSET * ((this.children.length || 1) - 1)));
|
|
48162
|
+
this.bottom = translateY + (itemsMbr?.getHeight() || conf.CARD_DIMENSIONS.height + (this.isPerpendicular ? conf.DECK_VERTICAL_OFFSET * ((this.children.length || 1) - 1) : 0));
|
|
48163
48163
|
this.path = new Path(this.getMbr().getLines(), true, "#FFFFFF");
|
|
48164
48164
|
}
|
|
48165
48165
|
deserialize(data) {
|
|
@@ -48226,7 +48226,7 @@ class Deck extends BaseItem {
|
|
|
48226
48226
|
return;
|
|
48227
48227
|
const tempContext = { ...context, ctx: tempCtx };
|
|
48228
48228
|
cards.forEach((_, index2) => {
|
|
48229
|
-
topCard.render(tempContext, index2 * conf.DECK_HORIZONTAL_OFFSET, index2 * conf.DECK_VERTICAL_OFFSET);
|
|
48229
|
+
topCard.render(tempContext, this.isPerpendicular ? 0 : index2 * conf.DECK_HORIZONTAL_OFFSET, this.isPerpendicular ? index2 * conf.DECK_VERTICAL_OFFSET : 0);
|
|
48230
48230
|
});
|
|
48231
48231
|
this.cachedCanvas = tempCanvas;
|
|
48232
48232
|
this.isCacheDirty = false;
|
package/dist/cjs/node.js
CHANGED
|
@@ -50631,8 +50631,8 @@ class Deck extends BaseItem {
|
|
|
50631
50631
|
const itemsMbr = items[0]?.getMbr().combine(items.slice(1).map((item) => item.getMbr()));
|
|
50632
50632
|
this.left = translateX;
|
|
50633
50633
|
this.top = translateY;
|
|
50634
|
-
this.right = translateX + (itemsMbr?.getWidth() || conf.CARD_DIMENSIONS.width + conf.DECK_HORIZONTAL_OFFSET * ((this.children.length || 1) - 1));
|
|
50635
|
-
this.bottom = translateY + (itemsMbr?.getHeight() || conf.CARD_DIMENSIONS.height
|
|
50634
|
+
this.right = translateX + (itemsMbr?.getWidth() || conf.CARD_DIMENSIONS.width + (this.isPerpendicular ? 0 : conf.DECK_HORIZONTAL_OFFSET * ((this.children.length || 1) - 1)));
|
|
50635
|
+
this.bottom = translateY + (itemsMbr?.getHeight() || conf.CARD_DIMENSIONS.height + (this.isPerpendicular ? conf.DECK_VERTICAL_OFFSET * ((this.children.length || 1) - 1) : 0));
|
|
50636
50636
|
this.path = new Path(this.getMbr().getLines(), true, "#FFFFFF");
|
|
50637
50637
|
}
|
|
50638
50638
|
deserialize(data) {
|
|
@@ -50699,7 +50699,7 @@ class Deck extends BaseItem {
|
|
|
50699
50699
|
return;
|
|
50700
50700
|
const tempContext = { ...context, ctx: tempCtx };
|
|
50701
50701
|
cards.forEach((_, index2) => {
|
|
50702
|
-
topCard.render(tempContext, index2 * conf.DECK_HORIZONTAL_OFFSET, index2 * conf.DECK_VERTICAL_OFFSET);
|
|
50702
|
+
topCard.render(tempContext, this.isPerpendicular ? 0 : index2 * conf.DECK_HORIZONTAL_OFFSET, this.isPerpendicular ? index2 * conf.DECK_VERTICAL_OFFSET : 0);
|
|
50703
50703
|
});
|
|
50704
50704
|
this.cachedCanvas = tempCanvas;
|
|
50705
50705
|
this.isCacheDirty = false;
|
package/dist/esm/browser.js
CHANGED
|
@@ -48004,8 +48004,8 @@ class Deck extends BaseItem {
|
|
|
48004
48004
|
const itemsMbr = items[0]?.getMbr().combine(items.slice(1).map((item) => item.getMbr()));
|
|
48005
48005
|
this.left = translateX;
|
|
48006
48006
|
this.top = translateY;
|
|
48007
|
-
this.right = translateX + (itemsMbr?.getWidth() || conf.CARD_DIMENSIONS.width + conf.DECK_HORIZONTAL_OFFSET * ((this.children.length || 1) - 1));
|
|
48008
|
-
this.bottom = translateY + (itemsMbr?.getHeight() || conf.CARD_DIMENSIONS.height
|
|
48007
|
+
this.right = translateX + (itemsMbr?.getWidth() || conf.CARD_DIMENSIONS.width + (this.isPerpendicular ? 0 : conf.DECK_HORIZONTAL_OFFSET * ((this.children.length || 1) - 1)));
|
|
48008
|
+
this.bottom = translateY + (itemsMbr?.getHeight() || conf.CARD_DIMENSIONS.height + (this.isPerpendicular ? conf.DECK_VERTICAL_OFFSET * ((this.children.length || 1) - 1) : 0));
|
|
48009
48009
|
this.path = new Path(this.getMbr().getLines(), true, "#FFFFFF");
|
|
48010
48010
|
}
|
|
48011
48011
|
deserialize(data) {
|
|
@@ -48072,7 +48072,7 @@ class Deck extends BaseItem {
|
|
|
48072
48072
|
return;
|
|
48073
48073
|
const tempContext = { ...context, ctx: tempCtx };
|
|
48074
48074
|
cards.forEach((_, index2) => {
|
|
48075
|
-
topCard.render(tempContext, index2 * conf.DECK_HORIZONTAL_OFFSET, index2 * conf.DECK_VERTICAL_OFFSET);
|
|
48075
|
+
topCard.render(tempContext, this.isPerpendicular ? 0 : index2 * conf.DECK_HORIZONTAL_OFFSET, this.isPerpendicular ? index2 * conf.DECK_VERTICAL_OFFSET : 0);
|
|
48076
48076
|
});
|
|
48077
48077
|
this.cachedCanvas = tempCanvas;
|
|
48078
48078
|
this.isCacheDirty = false;
|
package/dist/esm/index.js
CHANGED
|
@@ -47997,8 +47997,8 @@ class Deck extends BaseItem {
|
|
|
47997
47997
|
const itemsMbr = items[0]?.getMbr().combine(items.slice(1).map((item) => item.getMbr()));
|
|
47998
47998
|
this.left = translateX;
|
|
47999
47999
|
this.top = translateY;
|
|
48000
|
-
this.right = translateX + (itemsMbr?.getWidth() || conf.CARD_DIMENSIONS.width + conf.DECK_HORIZONTAL_OFFSET * ((this.children.length || 1) - 1));
|
|
48001
|
-
this.bottom = translateY + (itemsMbr?.getHeight() || conf.CARD_DIMENSIONS.height
|
|
48000
|
+
this.right = translateX + (itemsMbr?.getWidth() || conf.CARD_DIMENSIONS.width + (this.isPerpendicular ? 0 : conf.DECK_HORIZONTAL_OFFSET * ((this.children.length || 1) - 1)));
|
|
48001
|
+
this.bottom = translateY + (itemsMbr?.getHeight() || conf.CARD_DIMENSIONS.height + (this.isPerpendicular ? conf.DECK_VERTICAL_OFFSET * ((this.children.length || 1) - 1) : 0));
|
|
48002
48002
|
this.path = new Path(this.getMbr().getLines(), true, "#FFFFFF");
|
|
48003
48003
|
}
|
|
48004
48004
|
deserialize(data) {
|
|
@@ -48065,7 +48065,7 @@ class Deck extends BaseItem {
|
|
|
48065
48065
|
return;
|
|
48066
48066
|
const tempContext = { ...context, ctx: tempCtx };
|
|
48067
48067
|
cards.forEach((_, index2) => {
|
|
48068
|
-
topCard.render(tempContext, index2 * conf.DECK_HORIZONTAL_OFFSET, index2 * conf.DECK_VERTICAL_OFFSET);
|
|
48068
|
+
topCard.render(tempContext, this.isPerpendicular ? 0 : index2 * conf.DECK_HORIZONTAL_OFFSET, this.isPerpendicular ? index2 * conf.DECK_VERTICAL_OFFSET : 0);
|
|
48069
48069
|
});
|
|
48070
48070
|
this.cachedCanvas = tempCanvas;
|
|
48071
48071
|
this.isCacheDirty = false;
|
package/dist/esm/node.js
CHANGED
|
@@ -50465,8 +50465,8 @@ class Deck extends BaseItem {
|
|
|
50465
50465
|
const itemsMbr = items[0]?.getMbr().combine(items.slice(1).map((item) => item.getMbr()));
|
|
50466
50466
|
this.left = translateX;
|
|
50467
50467
|
this.top = translateY;
|
|
50468
|
-
this.right = translateX + (itemsMbr?.getWidth() || conf.CARD_DIMENSIONS.width + conf.DECK_HORIZONTAL_OFFSET * ((this.children.length || 1) - 1));
|
|
50469
|
-
this.bottom = translateY + (itemsMbr?.getHeight() || conf.CARD_DIMENSIONS.height
|
|
50468
|
+
this.right = translateX + (itemsMbr?.getWidth() || conf.CARD_DIMENSIONS.width + (this.isPerpendicular ? 0 : conf.DECK_HORIZONTAL_OFFSET * ((this.children.length || 1) - 1)));
|
|
50469
|
+
this.bottom = translateY + (itemsMbr?.getHeight() || conf.CARD_DIMENSIONS.height + (this.isPerpendicular ? conf.DECK_VERTICAL_OFFSET * ((this.children.length || 1) - 1) : 0));
|
|
50470
50470
|
this.path = new Path(this.getMbr().getLines(), true, "#FFFFFF");
|
|
50471
50471
|
}
|
|
50472
50472
|
deserialize(data) {
|
|
@@ -50533,7 +50533,7 @@ class Deck extends BaseItem {
|
|
|
50533
50533
|
return;
|
|
50534
50534
|
const tempContext = { ...context, ctx: tempCtx };
|
|
50535
50535
|
cards.forEach((_, index2) => {
|
|
50536
|
-
topCard.render(tempContext, index2 * conf.DECK_HORIZONTAL_OFFSET, index2 * conf.DECK_VERTICAL_OFFSET);
|
|
50536
|
+
topCard.render(tempContext, this.isPerpendicular ? 0 : index2 * conf.DECK_HORIZONTAL_OFFSET, this.isPerpendicular ? index2 * conf.DECK_VERTICAL_OFFSET : 0);
|
|
50537
50537
|
});
|
|
50538
50538
|
this.cachedCanvas = tempCanvas;
|
|
50539
50539
|
this.isCacheDirty = false;
|