microboard-temp 0.4.72 → 0.4.73

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.
@@ -47913,7 +47913,13 @@ class Deck extends BaseItem {
47913
47913
  this.index.getEnclosed = () => [];
47914
47914
  this.index.getEnclosedOrCrossed = () => [];
47915
47915
  if (cards) {
47916
- this.transformation.matrix = cards[0].transformation.matrix;
47916
+ this.transformation.apply({
47917
+ class: "Transformation",
47918
+ method: "translateTo",
47919
+ item: [this.id],
47920
+ x: cards[0].left,
47921
+ y: cards[0].top
47922
+ });
47917
47923
  this.applyAddChildren(cards.map((card) => card.getId()));
47918
47924
  }
47919
47925
  this.transformation.subject.subscribe(() => {
package/dist/cjs/index.js CHANGED
@@ -47913,7 +47913,13 @@ class Deck extends BaseItem {
47913
47913
  this.index.getEnclosed = () => [];
47914
47914
  this.index.getEnclosedOrCrossed = () => [];
47915
47915
  if (cards) {
47916
- this.transformation.matrix = cards[0].transformation.matrix;
47916
+ this.transformation.apply({
47917
+ class: "Transformation",
47918
+ method: "translateTo",
47919
+ item: [this.id],
47920
+ x: cards[0].left,
47921
+ y: cards[0].top
47922
+ });
47917
47923
  this.applyAddChildren(cards.map((card) => card.getId()));
47918
47924
  }
47919
47925
  this.transformation.subject.subscribe(() => {
package/dist/cjs/node.js CHANGED
@@ -50386,7 +50386,13 @@ class Deck extends BaseItem {
50386
50386
  this.index.getEnclosed = () => [];
50387
50387
  this.index.getEnclosedOrCrossed = () => [];
50388
50388
  if (cards) {
50389
- this.transformation.matrix = cards[0].transformation.matrix;
50389
+ this.transformation.apply({
50390
+ class: "Transformation",
50391
+ method: "translateTo",
50392
+ item: [this.id],
50393
+ x: cards[0].left,
50394
+ y: cards[0].top
50395
+ });
50390
50396
  this.applyAddChildren(cards.map((card) => card.getId()));
50391
50397
  }
50392
50398
  this.transformation.subject.subscribe(() => {
@@ -47762,7 +47762,13 @@ class Deck extends BaseItem {
47762
47762
  this.index.getEnclosed = () => [];
47763
47763
  this.index.getEnclosedOrCrossed = () => [];
47764
47764
  if (cards) {
47765
- this.transformation.matrix = cards[0].transformation.matrix;
47765
+ this.transformation.apply({
47766
+ class: "Transformation",
47767
+ method: "translateTo",
47768
+ item: [this.id],
47769
+ x: cards[0].left,
47770
+ y: cards[0].top
47771
+ });
47766
47772
  this.applyAddChildren(cards.map((card) => card.getId()));
47767
47773
  }
47768
47774
  this.transformation.subject.subscribe(() => {
package/dist/esm/index.js CHANGED
@@ -47755,7 +47755,13 @@ class Deck extends BaseItem {
47755
47755
  this.index.getEnclosed = () => [];
47756
47756
  this.index.getEnclosedOrCrossed = () => [];
47757
47757
  if (cards) {
47758
- this.transformation.matrix = cards[0].transformation.matrix;
47758
+ this.transformation.apply({
47759
+ class: "Transformation",
47760
+ method: "translateTo",
47761
+ item: [this.id],
47762
+ x: cards[0].left,
47763
+ y: cards[0].top
47764
+ });
47759
47765
  this.applyAddChildren(cards.map((card) => card.getId()));
47760
47766
  }
47761
47767
  this.transformation.subject.subscribe(() => {
package/dist/esm/node.js CHANGED
@@ -50223,7 +50223,13 @@ class Deck extends BaseItem {
50223
50223
  this.index.getEnclosed = () => [];
50224
50224
  this.index.getEnclosedOrCrossed = () => [];
50225
50225
  if (cards) {
50226
- this.transformation.matrix = cards[0].transformation.matrix;
50226
+ this.transformation.apply({
50227
+ class: "Transformation",
50228
+ method: "translateTo",
50229
+ item: [this.id],
50230
+ x: cards[0].left,
50231
+ y: cards[0].top
50232
+ });
50227
50233
  this.applyAddChildren(cards.map((card) => card.getId()));
50228
50234
  }
50229
50235
  this.transformation.subject.subscribe(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.4.72",
3
+ "version": "0.4.73",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",