microboard-temp 0.4.44 → 0.4.45

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.
@@ -20970,7 +20970,7 @@ class Items {
20970
20970
  return this.index.list();
20971
20971
  }
20972
20972
  listGroupItems() {
20973
- return this.index.list().filter((item) => ("getChildrenIds" in item) && item.getChildrenIds());
20973
+ return this.index.list().filter((item) => ("index" in item) && item.index);
20974
20974
  }
20975
20975
  getById(id) {
20976
20976
  return this.index.getById(id);
@@ -20985,7 +20985,7 @@ class Items {
20985
20985
  return this.index.getEnclosedOrCrossed(left, top, right, bottom);
20986
20986
  }
20987
20987
  getGroupItemsEnclosedOrCrossed(left, top, right, bottom) {
20988
- return this.index.getEnclosedOrCrossed(left, top, right, bottom).filter((item) => item instanceof BaseItem && item.getChildrenIds());
20988
+ return this.index.getEnclosedOrCrossed(left, top, right, bottom).filter((item) => item instanceof BaseItem && item.index);
20989
20989
  }
20990
20990
  getUnderPoint(point3, tolerance = 5) {
20991
20991
  return this.index.getUnderPoint(point3, tolerance);
package/dist/cjs/index.js CHANGED
@@ -20970,7 +20970,7 @@ class Items {
20970
20970
  return this.index.list();
20971
20971
  }
20972
20972
  listGroupItems() {
20973
- return this.index.list().filter((item) => ("getChildrenIds" in item) && item.getChildrenIds());
20973
+ return this.index.list().filter((item) => ("index" in item) && item.index);
20974
20974
  }
20975
20975
  getById(id) {
20976
20976
  return this.index.getById(id);
@@ -20985,7 +20985,7 @@ class Items {
20985
20985
  return this.index.getEnclosedOrCrossed(left, top, right, bottom);
20986
20986
  }
20987
20987
  getGroupItemsEnclosedOrCrossed(left, top, right, bottom) {
20988
- return this.index.getEnclosedOrCrossed(left, top, right, bottom).filter((item) => item instanceof BaseItem && item.getChildrenIds());
20988
+ return this.index.getEnclosedOrCrossed(left, top, right, bottom).filter((item) => item instanceof BaseItem && item.index);
20989
20989
  }
20990
20990
  getUnderPoint(point3, tolerance = 5) {
20991
20991
  return this.index.getUnderPoint(point3, tolerance);
package/dist/cjs/node.js CHANGED
@@ -23442,7 +23442,7 @@ class Items {
23442
23442
  return this.index.list();
23443
23443
  }
23444
23444
  listGroupItems() {
23445
- return this.index.list().filter((item) => ("getChildrenIds" in item) && item.getChildrenIds());
23445
+ return this.index.list().filter((item) => ("index" in item) && item.index);
23446
23446
  }
23447
23447
  getById(id) {
23448
23448
  return this.index.getById(id);
@@ -23457,7 +23457,7 @@ class Items {
23457
23457
  return this.index.getEnclosedOrCrossed(left, top, right, bottom);
23458
23458
  }
23459
23459
  getGroupItemsEnclosedOrCrossed(left, top, right, bottom) {
23460
- return this.index.getEnclosedOrCrossed(left, top, right, bottom).filter((item) => item instanceof BaseItem && item.getChildrenIds());
23460
+ return this.index.getEnclosedOrCrossed(left, top, right, bottom).filter((item) => item instanceof BaseItem && item.index);
23461
23461
  }
23462
23462
  getUnderPoint(point3, tolerance = 5) {
23463
23463
  return this.index.getUnderPoint(point3, tolerance);
@@ -20820,7 +20820,7 @@ class Items {
20820
20820
  return this.index.list();
20821
20821
  }
20822
20822
  listGroupItems() {
20823
- return this.index.list().filter((item) => ("getChildrenIds" in item) && item.getChildrenIds());
20823
+ return this.index.list().filter((item) => ("index" in item) && item.index);
20824
20824
  }
20825
20825
  getById(id) {
20826
20826
  return this.index.getById(id);
@@ -20835,7 +20835,7 @@ class Items {
20835
20835
  return this.index.getEnclosedOrCrossed(left, top, right, bottom);
20836
20836
  }
20837
20837
  getGroupItemsEnclosedOrCrossed(left, top, right, bottom) {
20838
- return this.index.getEnclosedOrCrossed(left, top, right, bottom).filter((item) => item instanceof BaseItem && item.getChildrenIds());
20838
+ return this.index.getEnclosedOrCrossed(left, top, right, bottom).filter((item) => item instanceof BaseItem && item.index);
20839
20839
  }
20840
20840
  getUnderPoint(point3, tolerance = 5) {
20841
20841
  return this.index.getUnderPoint(point3, tolerance);
package/dist/esm/index.js CHANGED
@@ -20813,7 +20813,7 @@ class Items {
20813
20813
  return this.index.list();
20814
20814
  }
20815
20815
  listGroupItems() {
20816
- return this.index.list().filter((item) => ("getChildrenIds" in item) && item.getChildrenIds());
20816
+ return this.index.list().filter((item) => ("index" in item) && item.index);
20817
20817
  }
20818
20818
  getById(id) {
20819
20819
  return this.index.getById(id);
@@ -20828,7 +20828,7 @@ class Items {
20828
20828
  return this.index.getEnclosedOrCrossed(left, top, right, bottom);
20829
20829
  }
20830
20830
  getGroupItemsEnclosedOrCrossed(left, top, right, bottom) {
20831
- return this.index.getEnclosedOrCrossed(left, top, right, bottom).filter((item) => item instanceof BaseItem && item.getChildrenIds());
20831
+ return this.index.getEnclosedOrCrossed(left, top, right, bottom).filter((item) => item instanceof BaseItem && item.index);
20832
20832
  }
20833
20833
  getUnderPoint(point3, tolerance = 5) {
20834
20834
  return this.index.getUnderPoint(point3, tolerance);
package/dist/esm/node.js CHANGED
@@ -23280,7 +23280,7 @@ class Items {
23280
23280
  return this.index.list();
23281
23281
  }
23282
23282
  listGroupItems() {
23283
- return this.index.list().filter((item) => ("getChildrenIds" in item) && item.getChildrenIds());
23283
+ return this.index.list().filter((item) => ("index" in item) && item.index);
23284
23284
  }
23285
23285
  getById(id) {
23286
23286
  return this.index.getById(id);
@@ -23295,7 +23295,7 @@ class Items {
23295
23295
  return this.index.getEnclosedOrCrossed(left, top, right, bottom);
23296
23296
  }
23297
23297
  getGroupItemsEnclosedOrCrossed(left, top, right, bottom) {
23298
- return this.index.getEnclosedOrCrossed(left, top, right, bottom).filter((item) => item instanceof BaseItem && item.getChildrenIds());
23298
+ return this.index.getEnclosedOrCrossed(left, top, right, bottom).filter((item) => item instanceof BaseItem && item.index);
23299
23299
  }
23300
23300
  getUnderPoint(point3, tolerance = 5) {
23301
23301
  return this.index.getUnderPoint(point3, tolerance);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.4.44",
3
+ "version": "0.4.45",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",