microboard-temp 0.5.64 → 0.5.66

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.
@@ -7598,6 +7598,8 @@ class Transformation {
7598
7598
  this.applyScaleBy(op.x, op.y);
7599
7599
  } else if (op.method === "translateBy") {
7600
7600
  this.applyTranslateBy(op.x, op.y);
7601
+ } else if (op.method === "translateTo") {
7602
+ this.applyTranslateTo(op.x, op.y);
7601
7603
  }
7602
7604
  }
7603
7605
  applyScaleByRelativeTo(x, y, point) {
@@ -48224,7 +48226,7 @@ class Deck extends BaseItem {
48224
48226
  this.subject.publish(this);
48225
48227
  }
48226
48228
  getDeck() {
48227
- return (this.index?.list() || []).reverse();
48229
+ return this.index?.list() || [];
48228
48230
  }
48229
48231
  getTopCard() {
48230
48232
  const card = this.index?.list()[this.index?.list().length - 1];
@@ -48234,7 +48236,7 @@ class Deck extends BaseItem {
48234
48236
  }
48235
48237
  }
48236
48238
  getCards(count) {
48237
- const cards = this.index?.list().slice(0, count);
48239
+ const cards = this.index?.list().reverse().slice(0, count);
48238
48240
  if (cards) {
48239
48241
  this.removeChildItems(cards);
48240
48242
  return cards;
package/dist/cjs/index.js CHANGED
@@ -7598,6 +7598,8 @@ class Transformation {
7598
7598
  this.applyScaleBy(op.x, op.y);
7599
7599
  } else if (op.method === "translateBy") {
7600
7600
  this.applyTranslateBy(op.x, op.y);
7601
+ } else if (op.method === "translateTo") {
7602
+ this.applyTranslateTo(op.x, op.y);
7601
7603
  }
7602
7604
  }
7603
7605
  applyScaleByRelativeTo(x, y, point) {
@@ -48224,7 +48226,7 @@ class Deck extends BaseItem {
48224
48226
  this.subject.publish(this);
48225
48227
  }
48226
48228
  getDeck() {
48227
- return (this.index?.list() || []).reverse();
48229
+ return this.index?.list() || [];
48228
48230
  }
48229
48231
  getTopCard() {
48230
48232
  const card = this.index?.list()[this.index?.list().length - 1];
@@ -48234,7 +48236,7 @@ class Deck extends BaseItem {
48234
48236
  }
48235
48237
  }
48236
48238
  getCards(count) {
48237
- const cards = this.index?.list().slice(0, count);
48239
+ const cards = this.index?.list().reverse().slice(0, count);
48238
48240
  if (cards) {
48239
48241
  this.removeChildItems(cards);
48240
48242
  return cards;
package/dist/cjs/node.js CHANGED
@@ -8635,6 +8635,8 @@ class Transformation {
8635
8635
  this.applyScaleBy(op.x, op.y);
8636
8636
  } else if (op.method === "translateBy") {
8637
8637
  this.applyTranslateBy(op.x, op.y);
8638
+ } else if (op.method === "translateTo") {
8639
+ this.applyTranslateTo(op.x, op.y);
8638
8640
  }
8639
8641
  }
8640
8642
  applyScaleByRelativeTo(x, y, point) {
@@ -50697,7 +50699,7 @@ class Deck extends BaseItem {
50697
50699
  this.subject.publish(this);
50698
50700
  }
50699
50701
  getDeck() {
50700
- return (this.index?.list() || []).reverse();
50702
+ return this.index?.list() || [];
50701
50703
  }
50702
50704
  getTopCard() {
50703
50705
  const card = this.index?.list()[this.index?.list().length - 1];
@@ -50707,7 +50709,7 @@ class Deck extends BaseItem {
50707
50709
  }
50708
50710
  }
50709
50711
  getCards(count) {
50710
- const cards = this.index?.list().slice(0, count);
50712
+ const cards = this.index?.list().reverse().slice(0, count);
50711
50713
  if (cards) {
50712
50714
  this.removeChildItems(cards);
50713
50715
  return cards;
@@ -7435,6 +7435,8 @@ class Transformation {
7435
7435
  this.applyScaleBy(op.x, op.y);
7436
7436
  } else if (op.method === "translateBy") {
7437
7437
  this.applyTranslateBy(op.x, op.y);
7438
+ } else if (op.method === "translateTo") {
7439
+ this.applyTranslateTo(op.x, op.y);
7438
7440
  }
7439
7441
  }
7440
7442
  applyScaleByRelativeTo(x, y, point) {
@@ -48070,7 +48072,7 @@ class Deck extends BaseItem {
48070
48072
  this.subject.publish(this);
48071
48073
  }
48072
48074
  getDeck() {
48073
- return (this.index?.list() || []).reverse();
48075
+ return this.index?.list() || [];
48074
48076
  }
48075
48077
  getTopCard() {
48076
48078
  const card = this.index?.list()[this.index?.list().length - 1];
@@ -48080,7 +48082,7 @@ class Deck extends BaseItem {
48080
48082
  }
48081
48083
  }
48082
48084
  getCards(count) {
48083
- const cards = this.index?.list().slice(0, count);
48085
+ const cards = this.index?.list().reverse().slice(0, count);
48084
48086
  if (cards) {
48085
48087
  this.removeChildItems(cards);
48086
48088
  return cards;
package/dist/esm/index.js CHANGED
@@ -7428,6 +7428,8 @@ class Transformation {
7428
7428
  this.applyScaleBy(op.x, op.y);
7429
7429
  } else if (op.method === "translateBy") {
7430
7430
  this.applyTranslateBy(op.x, op.y);
7431
+ } else if (op.method === "translateTo") {
7432
+ this.applyTranslateTo(op.x, op.y);
7431
7433
  }
7432
7434
  }
7433
7435
  applyScaleByRelativeTo(x, y, point) {
@@ -48063,7 +48065,7 @@ class Deck extends BaseItem {
48063
48065
  this.subject.publish(this);
48064
48066
  }
48065
48067
  getDeck() {
48066
- return (this.index?.list() || []).reverse();
48068
+ return this.index?.list() || [];
48067
48069
  }
48068
48070
  getTopCard() {
48069
48071
  const card = this.index?.list()[this.index?.list().length - 1];
@@ -48073,7 +48075,7 @@ class Deck extends BaseItem {
48073
48075
  }
48074
48076
  }
48075
48077
  getCards(count) {
48076
- const cards = this.index?.list().slice(0, count);
48078
+ const cards = this.index?.list().reverse().slice(0, count);
48077
48079
  if (cards) {
48078
48080
  this.removeChildItems(cards);
48079
48081
  return cards;
package/dist/esm/node.js CHANGED
@@ -8212,6 +8212,8 @@ class Transformation {
8212
8212
  this.applyScaleBy(op.x, op.y);
8213
8213
  } else if (op.method === "translateBy") {
8214
8214
  this.applyTranslateBy(op.x, op.y);
8215
+ } else if (op.method === "translateTo") {
8216
+ this.applyTranslateTo(op.x, op.y);
8215
8217
  }
8216
8218
  }
8217
8219
  applyScaleByRelativeTo(x, y, point) {
@@ -50531,7 +50533,7 @@ class Deck extends BaseItem {
50531
50533
  this.subject.publish(this);
50532
50534
  }
50533
50535
  getDeck() {
50534
- return (this.index?.list() || []).reverse();
50536
+ return this.index?.list() || [];
50535
50537
  }
50536
50538
  getTopCard() {
50537
50539
  const card = this.index?.list()[this.index?.list().length - 1];
@@ -50541,7 +50543,7 @@ class Deck extends BaseItem {
50541
50543
  }
50542
50544
  }
50543
50545
  getCards(count) {
50544
- const cards = this.index?.list().slice(0, count);
50546
+ const cards = this.index?.list().reverse().slice(0, count);
50545
50547
  if (cards) {
50546
50548
  this.removeChildItems(cards);
50547
50549
  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.66",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",