microboard-temp 0.4.49 → 0.4.51

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.
@@ -20747,10 +20747,6 @@ class SpatialIndex {
20747
20747
  if ("index" in item && item.index) {
20748
20748
  item.removeChildItems(item.index.list());
20749
20749
  }
20750
- if (item.parent !== "Board") {
20751
- const parentFrame = this.items.getById(item.parent);
20752
- parentFrame?.removeChildItems(item);
20753
- }
20754
20750
  this.itemsArray.splice(this.itemsArray.indexOf(item), 1);
20755
20751
  this.itemsIndex.remove(item);
20756
20752
  this.Mbr = new Mbr;
@@ -21475,7 +21471,7 @@ class BaseItem extends Mbr {
21475
21471
  childIds.forEach((childId) => {
21476
21472
  const foundItem = this.index?.getById(childId);
21477
21473
  if (this.parent !== childId && this.getId() !== childId) {
21478
- if (!this.index?.getById(childId) && foundItem) {
21474
+ if (!this.board.index.getById(childId) && foundItem) {
21479
21475
  foundItem.parent = "Board";
21480
21476
  this.index?.remove(foundItem);
21481
21477
  this.board.items.index.insert(foundItem);
package/dist/cjs/index.js CHANGED
@@ -20747,10 +20747,6 @@ class SpatialIndex {
20747
20747
  if ("index" in item && item.index) {
20748
20748
  item.removeChildItems(item.index.list());
20749
20749
  }
20750
- if (item.parent !== "Board") {
20751
- const parentFrame = this.items.getById(item.parent);
20752
- parentFrame?.removeChildItems(item);
20753
- }
20754
20750
  this.itemsArray.splice(this.itemsArray.indexOf(item), 1);
20755
20751
  this.itemsIndex.remove(item);
20756
20752
  this.Mbr = new Mbr;
@@ -21475,7 +21471,7 @@ class BaseItem extends Mbr {
21475
21471
  childIds.forEach((childId) => {
21476
21472
  const foundItem = this.index?.getById(childId);
21477
21473
  if (this.parent !== childId && this.getId() !== childId) {
21478
- if (!this.index?.getById(childId) && foundItem) {
21474
+ if (!this.board.index.getById(childId) && foundItem) {
21479
21475
  foundItem.parent = "Board";
21480
21476
  this.index?.remove(foundItem);
21481
21477
  this.board.items.index.insert(foundItem);
package/dist/cjs/node.js CHANGED
@@ -23219,10 +23219,6 @@ class SpatialIndex {
23219
23219
  if ("index" in item && item.index) {
23220
23220
  item.removeChildItems(item.index.list());
23221
23221
  }
23222
- if (item.parent !== "Board") {
23223
- const parentFrame = this.items.getById(item.parent);
23224
- parentFrame?.removeChildItems(item);
23225
- }
23226
23222
  this.itemsArray.splice(this.itemsArray.indexOf(item), 1);
23227
23223
  this.itemsIndex.remove(item);
23228
23224
  this.Mbr = new Mbr;
@@ -23947,7 +23943,7 @@ class BaseItem extends Mbr {
23947
23943
  childIds.forEach((childId) => {
23948
23944
  const foundItem = this.index?.getById(childId);
23949
23945
  if (this.parent !== childId && this.getId() !== childId) {
23950
- if (!this.index?.getById(childId) && foundItem) {
23946
+ if (!this.board.index.getById(childId) && foundItem) {
23951
23947
  foundItem.parent = "Board";
23952
23948
  this.index?.remove(foundItem);
23953
23949
  this.board.items.index.insert(foundItem);
@@ -20597,10 +20597,6 @@ class SpatialIndex {
20597
20597
  if ("index" in item && item.index) {
20598
20598
  item.removeChildItems(item.index.list());
20599
20599
  }
20600
- if (item.parent !== "Board") {
20601
- const parentFrame = this.items.getById(item.parent);
20602
- parentFrame?.removeChildItems(item);
20603
- }
20604
20600
  this.itemsArray.splice(this.itemsArray.indexOf(item), 1);
20605
20601
  this.itemsIndex.remove(item);
20606
20602
  this.Mbr = new Mbr;
@@ -21325,7 +21321,7 @@ class BaseItem extends Mbr {
21325
21321
  childIds.forEach((childId) => {
21326
21322
  const foundItem = this.index?.getById(childId);
21327
21323
  if (this.parent !== childId && this.getId() !== childId) {
21328
- if (!this.index?.getById(childId) && foundItem) {
21324
+ if (!this.board.index.getById(childId) && foundItem) {
21329
21325
  foundItem.parent = "Board";
21330
21326
  this.index?.remove(foundItem);
21331
21327
  this.board.items.index.insert(foundItem);
package/dist/esm/index.js CHANGED
@@ -20590,10 +20590,6 @@ class SpatialIndex {
20590
20590
  if ("index" in item && item.index) {
20591
20591
  item.removeChildItems(item.index.list());
20592
20592
  }
20593
- if (item.parent !== "Board") {
20594
- const parentFrame = this.items.getById(item.parent);
20595
- parentFrame?.removeChildItems(item);
20596
- }
20597
20593
  this.itemsArray.splice(this.itemsArray.indexOf(item), 1);
20598
20594
  this.itemsIndex.remove(item);
20599
20595
  this.Mbr = new Mbr;
@@ -21318,7 +21314,7 @@ class BaseItem extends Mbr {
21318
21314
  childIds.forEach((childId) => {
21319
21315
  const foundItem = this.index?.getById(childId);
21320
21316
  if (this.parent !== childId && this.getId() !== childId) {
21321
- if (!this.index?.getById(childId) && foundItem) {
21317
+ if (!this.board.index.getById(childId) && foundItem) {
21322
21318
  foundItem.parent = "Board";
21323
21319
  this.index?.remove(foundItem);
21324
21320
  this.board.items.index.insert(foundItem);
package/dist/esm/node.js CHANGED
@@ -23057,10 +23057,6 @@ class SpatialIndex {
23057
23057
  if ("index" in item && item.index) {
23058
23058
  item.removeChildItems(item.index.list());
23059
23059
  }
23060
- if (item.parent !== "Board") {
23061
- const parentFrame = this.items.getById(item.parent);
23062
- parentFrame?.removeChildItems(item);
23063
- }
23064
23060
  this.itemsArray.splice(this.itemsArray.indexOf(item), 1);
23065
23061
  this.itemsIndex.remove(item);
23066
23062
  this.Mbr = new Mbr;
@@ -23785,7 +23781,7 @@ class BaseItem extends Mbr {
23785
23781
  childIds.forEach((childId) => {
23786
23782
  const foundItem = this.index?.getById(childId);
23787
23783
  if (this.parent !== childId && this.getId() !== childId) {
23788
- if (!this.index?.getById(childId) && foundItem) {
23784
+ if (!this.board.index.getById(childId) && foundItem) {
23789
23785
  foundItem.parent = "Board";
23790
23786
  this.index?.remove(foundItem);
23791
23787
  this.board.items.index.insert(foundItem);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.4.49",
3
+ "version": "0.4.51",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",