microboard-temp 0.5.64 → 0.5.65

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.
@@ -48224,7 +48224,7 @@ class Deck extends BaseItem {
48224
48224
  this.subject.publish(this);
48225
48225
  }
48226
48226
  getDeck() {
48227
- return (this.index?.list() || []).reverse();
48227
+ return this.index?.list() || [];
48228
48228
  }
48229
48229
  getTopCard() {
48230
48230
  const card = this.index?.list()[this.index?.list().length - 1];
@@ -48234,7 +48234,7 @@ class Deck extends BaseItem {
48234
48234
  }
48235
48235
  }
48236
48236
  getCards(count) {
48237
- const cards = this.index?.list().slice(0, count);
48237
+ const cards = this.index?.list().reverse().slice(0, count);
48238
48238
  if (cards) {
48239
48239
  this.removeChildItems(cards);
48240
48240
  return cards;
package/dist/cjs/index.js CHANGED
@@ -48224,7 +48224,7 @@ class Deck extends BaseItem {
48224
48224
  this.subject.publish(this);
48225
48225
  }
48226
48226
  getDeck() {
48227
- return (this.index?.list() || []).reverse();
48227
+ return this.index?.list() || [];
48228
48228
  }
48229
48229
  getTopCard() {
48230
48230
  const card = this.index?.list()[this.index?.list().length - 1];
@@ -48234,7 +48234,7 @@ class Deck extends BaseItem {
48234
48234
  }
48235
48235
  }
48236
48236
  getCards(count) {
48237
- const cards = this.index?.list().slice(0, count);
48237
+ const cards = this.index?.list().reverse().slice(0, count);
48238
48238
  if (cards) {
48239
48239
  this.removeChildItems(cards);
48240
48240
  return cards;
package/dist/cjs/node.js CHANGED
@@ -50697,7 +50697,7 @@ class Deck extends BaseItem {
50697
50697
  this.subject.publish(this);
50698
50698
  }
50699
50699
  getDeck() {
50700
- return (this.index?.list() || []).reverse();
50700
+ return this.index?.list() || [];
50701
50701
  }
50702
50702
  getTopCard() {
50703
50703
  const card = this.index?.list()[this.index?.list().length - 1];
@@ -50707,7 +50707,7 @@ class Deck extends BaseItem {
50707
50707
  }
50708
50708
  }
50709
50709
  getCards(count) {
50710
- const cards = this.index?.list().slice(0, count);
50710
+ const cards = this.index?.list().reverse().slice(0, count);
50711
50711
  if (cards) {
50712
50712
  this.removeChildItems(cards);
50713
50713
  return cards;
@@ -48070,7 +48070,7 @@ class Deck extends BaseItem {
48070
48070
  this.subject.publish(this);
48071
48071
  }
48072
48072
  getDeck() {
48073
- return (this.index?.list() || []).reverse();
48073
+ return this.index?.list() || [];
48074
48074
  }
48075
48075
  getTopCard() {
48076
48076
  const card = this.index?.list()[this.index?.list().length - 1];
@@ -48080,7 +48080,7 @@ class Deck extends BaseItem {
48080
48080
  }
48081
48081
  }
48082
48082
  getCards(count) {
48083
- const cards = this.index?.list().slice(0, count);
48083
+ const cards = this.index?.list().reverse().slice(0, count);
48084
48084
  if (cards) {
48085
48085
  this.removeChildItems(cards);
48086
48086
  return cards;
package/dist/esm/index.js CHANGED
@@ -48063,7 +48063,7 @@ class Deck extends BaseItem {
48063
48063
  this.subject.publish(this);
48064
48064
  }
48065
48065
  getDeck() {
48066
- return (this.index?.list() || []).reverse();
48066
+ return this.index?.list() || [];
48067
48067
  }
48068
48068
  getTopCard() {
48069
48069
  const card = this.index?.list()[this.index?.list().length - 1];
@@ -48073,7 +48073,7 @@ class Deck extends BaseItem {
48073
48073
  }
48074
48074
  }
48075
48075
  getCards(count) {
48076
- const cards = this.index?.list().slice(0, count);
48076
+ const cards = this.index?.list().reverse().slice(0, count);
48077
48077
  if (cards) {
48078
48078
  this.removeChildItems(cards);
48079
48079
  return cards;
package/dist/esm/node.js CHANGED
@@ -50531,7 +50531,7 @@ class Deck extends BaseItem {
50531
50531
  this.subject.publish(this);
50532
50532
  }
50533
50533
  getDeck() {
50534
- return (this.index?.list() || []).reverse();
50534
+ return this.index?.list() || [];
50535
50535
  }
50536
50536
  getTopCard() {
50537
50537
  const card = this.index?.list()[this.index?.list().length - 1];
@@ -50541,7 +50541,7 @@ class Deck extends BaseItem {
50541
50541
  }
50542
50542
  }
50543
50543
  getCards(count) {
50544
- const cards = this.index?.list().slice(0, count);
50544
+ const cards = this.index?.list().reverse().slice(0, count);
50545
50545
  if (cards) {
50546
50546
  this.removeChildItems(cards);
50547
50547
  return cards;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.5.64",
3
+ "version": "0.5.65",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",