microboard-temp 0.4.98 → 0.4.99

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.
@@ -47982,13 +47982,6 @@ class Deck extends BaseItem {
47982
47982
  const foundItem = this.index?.getById(childId);
47983
47983
  if (this.parent !== childId && this.getId() !== childId) {
47984
47984
  if (foundItem) {
47985
- foundItem.transformation.apply({
47986
- class: "Transformation",
47987
- method: "translateTo",
47988
- item: [this.id],
47989
- x: this.left,
47990
- y: this.top - this.getHeight() / 2
47991
- });
47992
47985
  this.index?.remove(foundItem);
47993
47986
  foundItem.parent = "Board";
47994
47987
  foundItem.shouldUseRelativeAlignment = true;
@@ -54201,7 +54194,7 @@ class Board {
54201
54194
  itemData.transformation.translateX = translateX - minX + x;
54202
54195
  itemData.transformation.translateY = translateY - minY + y;
54203
54196
  }
54204
- if (itemData.itemType === "Frame") {
54197
+ if ("children" in itemData && itemData.children) {
54205
54198
  itemData.children = itemData.children.map((childId) => newItemIdMap[childId]);
54206
54199
  }
54207
54200
  newMap[newItemId] = itemData;
package/dist/cjs/index.js CHANGED
@@ -47982,13 +47982,6 @@ class Deck extends BaseItem {
47982
47982
  const foundItem = this.index?.getById(childId);
47983
47983
  if (this.parent !== childId && this.getId() !== childId) {
47984
47984
  if (foundItem) {
47985
- foundItem.transformation.apply({
47986
- class: "Transformation",
47987
- method: "translateTo",
47988
- item: [this.id],
47989
- x: this.left,
47990
- y: this.top - this.getHeight() / 2
47991
- });
47992
47985
  this.index?.remove(foundItem);
47993
47986
  foundItem.parent = "Board";
47994
47987
  foundItem.shouldUseRelativeAlignment = true;
@@ -54201,7 +54194,7 @@ class Board {
54201
54194
  itemData.transformation.translateX = translateX - minX + x;
54202
54195
  itemData.transformation.translateY = translateY - minY + y;
54203
54196
  }
54204
- if (itemData.itemType === "Frame") {
54197
+ if ("children" in itemData && itemData.children) {
54205
54198
  itemData.children = itemData.children.map((childId) => newItemIdMap[childId]);
54206
54199
  }
54207
54200
  newMap[newItemId] = itemData;
package/dist/cjs/node.js CHANGED
@@ -50455,13 +50455,6 @@ class Deck extends BaseItem {
50455
50455
  const foundItem = this.index?.getById(childId);
50456
50456
  if (this.parent !== childId && this.getId() !== childId) {
50457
50457
  if (foundItem) {
50458
- foundItem.transformation.apply({
50459
- class: "Transformation",
50460
- method: "translateTo",
50461
- item: [this.id],
50462
- x: this.left,
50463
- y: this.top - this.getHeight() / 2
50464
- });
50465
50458
  this.index?.remove(foundItem);
50466
50459
  foundItem.parent = "Board";
50467
50460
  foundItem.shouldUseRelativeAlignment = true;
@@ -56674,7 +56667,7 @@ class Board {
56674
56667
  itemData.transformation.translateX = translateX - minX + x;
56675
56668
  itemData.transformation.translateY = translateY - minY + y;
56676
56669
  }
56677
- if (itemData.itemType === "Frame") {
56670
+ if ("children" in itemData && itemData.children) {
56678
56671
  itemData.children = itemData.children.map((childId) => newItemIdMap[childId]);
56679
56672
  }
56680
56673
  newMap[newItemId] = itemData;
@@ -47831,13 +47831,6 @@ class Deck extends BaseItem {
47831
47831
  const foundItem = this.index?.getById(childId);
47832
47832
  if (this.parent !== childId && this.getId() !== childId) {
47833
47833
  if (foundItem) {
47834
- foundItem.transformation.apply({
47835
- class: "Transformation",
47836
- method: "translateTo",
47837
- item: [this.id],
47838
- x: this.left,
47839
- y: this.top - this.getHeight() / 2
47840
- });
47841
47834
  this.index?.remove(foundItem);
47842
47835
  foundItem.parent = "Board";
47843
47836
  foundItem.shouldUseRelativeAlignment = true;
@@ -54050,7 +54043,7 @@ class Board {
54050
54043
  itemData.transformation.translateX = translateX - minX + x;
54051
54044
  itemData.transformation.translateY = translateY - minY + y;
54052
54045
  }
54053
- if (itemData.itemType === "Frame") {
54046
+ if ("children" in itemData && itemData.children) {
54054
54047
  itemData.children = itemData.children.map((childId) => newItemIdMap[childId]);
54055
54048
  }
54056
54049
  newMap[newItemId] = itemData;
package/dist/esm/index.js CHANGED
@@ -47824,13 +47824,6 @@ class Deck extends BaseItem {
47824
47824
  const foundItem = this.index?.getById(childId);
47825
47825
  if (this.parent !== childId && this.getId() !== childId) {
47826
47826
  if (foundItem) {
47827
- foundItem.transformation.apply({
47828
- class: "Transformation",
47829
- method: "translateTo",
47830
- item: [this.id],
47831
- x: this.left,
47832
- y: this.top - this.getHeight() / 2
47833
- });
47834
47827
  this.index?.remove(foundItem);
47835
47828
  foundItem.parent = "Board";
47836
47829
  foundItem.shouldUseRelativeAlignment = true;
@@ -54043,7 +54036,7 @@ class Board {
54043
54036
  itemData.transformation.translateX = translateX - minX + x;
54044
54037
  itemData.transformation.translateY = translateY - minY + y;
54045
54038
  }
54046
- if (itemData.itemType === "Frame") {
54039
+ if ("children" in itemData && itemData.children) {
54047
54040
  itemData.children = itemData.children.map((childId) => newItemIdMap[childId]);
54048
54041
  }
54049
54042
  newMap[newItemId] = itemData;
package/dist/esm/node.js CHANGED
@@ -50292,13 +50292,6 @@ class Deck extends BaseItem {
50292
50292
  const foundItem = this.index?.getById(childId);
50293
50293
  if (this.parent !== childId && this.getId() !== childId) {
50294
50294
  if (foundItem) {
50295
- foundItem.transformation.apply({
50296
- class: "Transformation",
50297
- method: "translateTo",
50298
- item: [this.id],
50299
- x: this.left,
50300
- y: this.top - this.getHeight() / 2
50301
- });
50302
50295
  this.index?.remove(foundItem);
50303
50296
  foundItem.parent = "Board";
50304
50297
  foundItem.shouldUseRelativeAlignment = true;
@@ -56511,7 +56504,7 @@ class Board {
56511
56504
  itemData.transformation.translateX = translateX - minX + x;
56512
56505
  itemData.transformation.translateY = translateY - minY + y;
56513
56506
  }
56514
- if (itemData.itemType === "Frame") {
56507
+ if ("children" in itemData && itemData.children) {
56515
56508
  itemData.children = itemData.children.map((childId) => newItemIdMap[childId]);
56516
56509
  }
56517
56510
  newMap[newItemId] = itemData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.4.98",
3
+ "version": "0.4.99",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",