microboard-temp 0.4.35 → 0.4.37

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.
@@ -38676,6 +38676,7 @@ class Frame extends BaseItem {
38676
38676
  this.path.setBorderOpacity(this.borderOpacity);
38677
38677
  }
38678
38678
  apply(op) {
38679
+ super.apply(op);
38679
38680
  switch (op.class) {
38680
38681
  case "Frame":
38681
38682
  if (op.method === "setBackgroundColor") {
@@ -50454,12 +50455,12 @@ class BoardSelection {
50454
50455
  if (val.nested) {
50455
50456
  const isRemoveChildFromFrame = Object.values(selectedMap).some((val2) => val2.nested && val2.nested.getId() !== parentFrameId);
50456
50457
  if (isParentFrame && isRemoveChildFromFrame) {
50457
- parentFrame.emitRemoveChild([val.item]);
50458
+ parentFrame?.removeChildItems([val.item]);
50458
50459
  }
50459
50460
  val.nested.addChildItems([val.item]);
50460
50461
  } else if (val.item.parent !== "Board") {
50461
50462
  if (isParentFrame) {
50462
- parentFrame.emitRemoveChild([val.item]);
50463
+ parentFrame?.removeChildItems([val.item]);
50463
50464
  } else {
50464
50465
  console.warn(`Didnt find frame with id ${val.item.parent}`);
50465
50466
  }
@@ -52150,7 +52151,7 @@ class SpatialIndex {
52150
52151
  }
52151
52152
  if (item.parent !== "Board") {
52152
52153
  const parentFrame = this.items.getById(item.parent);
52153
- parentFrame?.emitRemoveChild(item);
52154
+ parentFrame?.removeChildItems(item);
52154
52155
  }
52155
52156
  if (item instanceof Frame) {
52156
52157
  this.framesArray.splice(this.framesArray.indexOf(item), 1);
package/dist/cjs/index.js CHANGED
@@ -38676,6 +38676,7 @@ class Frame extends BaseItem {
38676
38676
  this.path.setBorderOpacity(this.borderOpacity);
38677
38677
  }
38678
38678
  apply(op) {
38679
+ super.apply(op);
38679
38680
  switch (op.class) {
38680
38681
  case "Frame":
38681
38682
  if (op.method === "setBackgroundColor") {
@@ -50454,12 +50455,12 @@ class BoardSelection {
50454
50455
  if (val.nested) {
50455
50456
  const isRemoveChildFromFrame = Object.values(selectedMap).some((val2) => val2.nested && val2.nested.getId() !== parentFrameId);
50456
50457
  if (isParentFrame && isRemoveChildFromFrame) {
50457
- parentFrame.emitRemoveChild([val.item]);
50458
+ parentFrame?.removeChildItems([val.item]);
50458
50459
  }
50459
50460
  val.nested.addChildItems([val.item]);
50460
50461
  } else if (val.item.parent !== "Board") {
50461
50462
  if (isParentFrame) {
50462
- parentFrame.emitRemoveChild([val.item]);
50463
+ parentFrame?.removeChildItems([val.item]);
50463
50464
  } else {
50464
50465
  console.warn(`Didnt find frame with id ${val.item.parent}`);
50465
50466
  }
@@ -52150,7 +52151,7 @@ class SpatialIndex {
52150
52151
  }
52151
52152
  if (item.parent !== "Board") {
52152
52153
  const parentFrame = this.items.getById(item.parent);
52153
- parentFrame?.emitRemoveChild(item);
52154
+ parentFrame?.removeChildItems(item);
52154
52155
  }
52155
52156
  if (item instanceof Frame) {
52156
52157
  this.framesArray.splice(this.framesArray.indexOf(item), 1);
package/dist/cjs/node.js CHANGED
@@ -41216,6 +41216,7 @@ class Frame extends BaseItem {
41216
41216
  this.path.setBorderOpacity(this.borderOpacity);
41217
41217
  }
41218
41218
  apply(op) {
41219
+ super.apply(op);
41219
41220
  switch (op.class) {
41220
41221
  case "Frame":
41221
41222
  if (op.method === "setBackgroundColor") {
@@ -52994,12 +52995,12 @@ class BoardSelection {
52994
52995
  if (val.nested) {
52995
52996
  const isRemoveChildFromFrame = Object.values(selectedMap).some((val2) => val2.nested && val2.nested.getId() !== parentFrameId);
52996
52997
  if (isParentFrame && isRemoveChildFromFrame) {
52997
- parentFrame.emitRemoveChild([val.item]);
52998
+ parentFrame?.removeChildItems([val.item]);
52998
52999
  }
52999
53000
  val.nested.addChildItems([val.item]);
53000
53001
  } else if (val.item.parent !== "Board") {
53001
53002
  if (isParentFrame) {
53002
- parentFrame.emitRemoveChild([val.item]);
53003
+ parentFrame?.removeChildItems([val.item]);
53003
53004
  } else {
53004
53005
  console.warn(`Didnt find frame with id ${val.item.parent}`);
53005
53006
  }
@@ -54623,7 +54624,7 @@ class SpatialIndex {
54623
54624
  }
54624
54625
  if (item.parent !== "Board") {
54625
54626
  const parentFrame = this.items.getById(item.parent);
54626
- parentFrame?.emitRemoveChild(item);
54627
+ parentFrame?.removeChildItems(item);
54627
54628
  }
54628
54629
  if (item instanceof Frame) {
54629
54630
  this.framesArray.splice(this.framesArray.indexOf(item), 1);
@@ -38526,6 +38526,7 @@ class Frame extends BaseItem {
38526
38526
  this.path.setBorderOpacity(this.borderOpacity);
38527
38527
  }
38528
38528
  apply(op) {
38529
+ super.apply(op);
38529
38530
  switch (op.class) {
38530
38531
  case "Frame":
38531
38532
  if (op.method === "setBackgroundColor") {
@@ -50304,12 +50305,12 @@ class BoardSelection {
50304
50305
  if (val.nested) {
50305
50306
  const isRemoveChildFromFrame = Object.values(selectedMap).some((val2) => val2.nested && val2.nested.getId() !== parentFrameId);
50306
50307
  if (isParentFrame && isRemoveChildFromFrame) {
50307
- parentFrame.emitRemoveChild([val.item]);
50308
+ parentFrame?.removeChildItems([val.item]);
50308
50309
  }
50309
50310
  val.nested.addChildItems([val.item]);
50310
50311
  } else if (val.item.parent !== "Board") {
50311
50312
  if (isParentFrame) {
50312
- parentFrame.emitRemoveChild([val.item]);
50313
+ parentFrame?.removeChildItems([val.item]);
50313
50314
  } else {
50314
50315
  console.warn(`Didnt find frame with id ${val.item.parent}`);
50315
50316
  }
@@ -52000,7 +52001,7 @@ class SpatialIndex {
52000
52001
  }
52001
52002
  if (item.parent !== "Board") {
52002
52003
  const parentFrame = this.items.getById(item.parent);
52003
- parentFrame?.emitRemoveChild(item);
52004
+ parentFrame?.removeChildItems(item);
52004
52005
  }
52005
52006
  if (item instanceof Frame) {
52006
52007
  this.framesArray.splice(this.framesArray.indexOf(item), 1);
package/dist/esm/index.js CHANGED
@@ -38519,6 +38519,7 @@ class Frame extends BaseItem {
38519
38519
  this.path.setBorderOpacity(this.borderOpacity);
38520
38520
  }
38521
38521
  apply(op) {
38522
+ super.apply(op);
38522
38523
  switch (op.class) {
38523
38524
  case "Frame":
38524
38525
  if (op.method === "setBackgroundColor") {
@@ -50297,12 +50298,12 @@ class BoardSelection {
50297
50298
  if (val.nested) {
50298
50299
  const isRemoveChildFromFrame = Object.values(selectedMap).some((val2) => val2.nested && val2.nested.getId() !== parentFrameId);
50299
50300
  if (isParentFrame && isRemoveChildFromFrame) {
50300
- parentFrame.emitRemoveChild([val.item]);
50301
+ parentFrame?.removeChildItems([val.item]);
50301
50302
  }
50302
50303
  val.nested.addChildItems([val.item]);
50303
50304
  } else if (val.item.parent !== "Board") {
50304
50305
  if (isParentFrame) {
50305
- parentFrame.emitRemoveChild([val.item]);
50306
+ parentFrame?.removeChildItems([val.item]);
50306
50307
  } else {
50307
50308
  console.warn(`Didnt find frame with id ${val.item.parent}`);
50308
50309
  }
@@ -51993,7 +51994,7 @@ class SpatialIndex {
51993
51994
  }
51994
51995
  if (item.parent !== "Board") {
51995
51996
  const parentFrame = this.items.getById(item.parent);
51996
- parentFrame?.emitRemoveChild(item);
51997
+ parentFrame?.removeChildItems(item);
51997
51998
  }
51998
51999
  if (item instanceof Frame) {
51999
52000
  this.framesArray.splice(this.framesArray.indexOf(item), 1);
package/dist/esm/node.js CHANGED
@@ -41054,6 +41054,7 @@ class Frame extends BaseItem {
41054
41054
  this.path.setBorderOpacity(this.borderOpacity);
41055
41055
  }
41056
41056
  apply(op) {
41057
+ super.apply(op);
41057
41058
  switch (op.class) {
41058
41059
  case "Frame":
41059
41060
  if (op.method === "setBackgroundColor") {
@@ -52832,12 +52833,12 @@ class BoardSelection {
52832
52833
  if (val.nested) {
52833
52834
  const isRemoveChildFromFrame = Object.values(selectedMap).some((val2) => val2.nested && val2.nested.getId() !== parentFrameId);
52834
52835
  if (isParentFrame && isRemoveChildFromFrame) {
52835
- parentFrame.emitRemoveChild([val.item]);
52836
+ parentFrame?.removeChildItems([val.item]);
52836
52837
  }
52837
52838
  val.nested.addChildItems([val.item]);
52838
52839
  } else if (val.item.parent !== "Board") {
52839
52840
  if (isParentFrame) {
52840
- parentFrame.emitRemoveChild([val.item]);
52841
+ parentFrame?.removeChildItems([val.item]);
52841
52842
  } else {
52842
52843
  console.warn(`Didnt find frame with id ${val.item.parent}`);
52843
52844
  }
@@ -54461,7 +54462,7 @@ class SpatialIndex {
54461
54462
  }
54462
54463
  if (item.parent !== "Board") {
54463
54464
  const parentFrame = this.items.getById(item.parent);
54464
- parentFrame?.emitRemoveChild(item);
54465
+ parentFrame?.removeChildItems(item);
54465
54466
  }
54466
54467
  if (item instanceof Frame) {
54467
54468
  this.framesArray.splice(this.framesArray.indexOf(item), 1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.4.35",
3
+ "version": "0.4.37",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",