microboard-temp 0.5.55 → 0.5.56
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
CHANGED
|
@@ -48230,6 +48230,13 @@ class Deck extends BaseItem {
|
|
|
48230
48230
|
return card;
|
|
48231
48231
|
}
|
|
48232
48232
|
}
|
|
48233
|
+
getCards(count) {
|
|
48234
|
+
const cards = this.index?.list().slice(0, count);
|
|
48235
|
+
if (cards) {
|
|
48236
|
+
this.removeChildItems(cards);
|
|
48237
|
+
return cards;
|
|
48238
|
+
}
|
|
48239
|
+
}
|
|
48233
48240
|
getBottomCard() {
|
|
48234
48241
|
const card = this.index?.list()[0];
|
|
48235
48242
|
if (card) {
|
package/dist/cjs/index.js
CHANGED
|
@@ -48230,6 +48230,13 @@ class Deck extends BaseItem {
|
|
|
48230
48230
|
return card;
|
|
48231
48231
|
}
|
|
48232
48232
|
}
|
|
48233
|
+
getCards(count) {
|
|
48234
|
+
const cards = this.index?.list().slice(0, count);
|
|
48235
|
+
if (cards) {
|
|
48236
|
+
this.removeChildItems(cards);
|
|
48237
|
+
return cards;
|
|
48238
|
+
}
|
|
48239
|
+
}
|
|
48233
48240
|
getBottomCard() {
|
|
48234
48241
|
const card = this.index?.list()[0];
|
|
48235
48242
|
if (card) {
|
package/dist/cjs/node.js
CHANGED
|
@@ -50703,6 +50703,13 @@ class Deck extends BaseItem {
|
|
|
50703
50703
|
return card;
|
|
50704
50704
|
}
|
|
50705
50705
|
}
|
|
50706
|
+
getCards(count) {
|
|
50707
|
+
const cards = this.index?.list().slice(0, count);
|
|
50708
|
+
if (cards) {
|
|
50709
|
+
this.removeChildItems(cards);
|
|
50710
|
+
return cards;
|
|
50711
|
+
}
|
|
50712
|
+
}
|
|
50706
50713
|
getBottomCard() {
|
|
50707
50714
|
const card = this.index?.list()[0];
|
|
50708
50715
|
if (card) {
|
package/dist/esm/browser.js
CHANGED
|
@@ -48076,6 +48076,13 @@ class Deck extends BaseItem {
|
|
|
48076
48076
|
return card;
|
|
48077
48077
|
}
|
|
48078
48078
|
}
|
|
48079
|
+
getCards(count) {
|
|
48080
|
+
const cards = this.index?.list().slice(0, count);
|
|
48081
|
+
if (cards) {
|
|
48082
|
+
this.removeChildItems(cards);
|
|
48083
|
+
return cards;
|
|
48084
|
+
}
|
|
48085
|
+
}
|
|
48079
48086
|
getBottomCard() {
|
|
48080
48087
|
const card = this.index?.list()[0];
|
|
48081
48088
|
if (card) {
|
package/dist/esm/index.js
CHANGED
|
@@ -48069,6 +48069,13 @@ class Deck extends BaseItem {
|
|
|
48069
48069
|
return card;
|
|
48070
48070
|
}
|
|
48071
48071
|
}
|
|
48072
|
+
getCards(count) {
|
|
48073
|
+
const cards = this.index?.list().slice(0, count);
|
|
48074
|
+
if (cards) {
|
|
48075
|
+
this.removeChildItems(cards);
|
|
48076
|
+
return cards;
|
|
48077
|
+
}
|
|
48078
|
+
}
|
|
48072
48079
|
getBottomCard() {
|
|
48073
48080
|
const card = this.index?.list()[0];
|
|
48074
48081
|
if (card) {
|
package/dist/esm/node.js
CHANGED
|
@@ -50537,6 +50537,13 @@ class Deck extends BaseItem {
|
|
|
50537
50537
|
return card;
|
|
50538
50538
|
}
|
|
50539
50539
|
}
|
|
50540
|
+
getCards(count) {
|
|
50541
|
+
const cards = this.index?.list().slice(0, count);
|
|
50542
|
+
if (cards) {
|
|
50543
|
+
this.removeChildItems(cards);
|
|
50544
|
+
return cards;
|
|
50545
|
+
}
|
|
50546
|
+
}
|
|
50540
50547
|
getBottomCard() {
|
|
50541
50548
|
const card = this.index?.list()[0];
|
|
50542
50549
|
if (card) {
|
|
@@ -23,6 +23,7 @@ export declare class Deck extends BaseItem {
|
|
|
23
23
|
applyRemoveChildren(childIds: string[]): void;
|
|
24
24
|
getDeck(): Card[];
|
|
25
25
|
getTopCard(): Card | undefined;
|
|
26
|
+
getCards(count: number): Card[] | undefined;
|
|
26
27
|
getBottomCard(): Card | undefined;
|
|
27
28
|
getRandomCard(): Card | undefined;
|
|
28
29
|
shuffleDeck(): void;
|