microboard-temp 0.4.46 → 0.4.47

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.
@@ -46498,8 +46498,11 @@ class Select extends Tool {
46498
46498
  this.board.selection.add(underPointer);
46499
46499
  if ("index" in underPointer && underPointer.index) {
46500
46500
  const { left, right, top, bottom } = underPointer.getMbr();
46501
- const itemsInFrame = this.board.items.getEnclosedOrCrossed(left, top, right, bottom).filter((item) => underPointer.getChildrenIds().includes(item.getId()));
46502
- this.board.selection.add(itemsInFrame);
46501
+ const childrenIds = underPointer.getChildrenIds();
46502
+ if (childrenIds) {
46503
+ const itemsInFrame = this.board.items.getEnclosedOrCrossed(left, top, right, bottom).filter((item) => childrenIds.includes(item.getId()));
46504
+ this.board.selection.add(itemsInFrame);
46505
+ }
46503
46506
  }
46504
46507
  this.board.selection.setContext("EditUnderPointer");
46505
46508
  } else {
package/dist/cjs/index.js CHANGED
@@ -46498,8 +46498,11 @@ class Select extends Tool {
46498
46498
  this.board.selection.add(underPointer);
46499
46499
  if ("index" in underPointer && underPointer.index) {
46500
46500
  const { left, right, top, bottom } = underPointer.getMbr();
46501
- const itemsInFrame = this.board.items.getEnclosedOrCrossed(left, top, right, bottom).filter((item) => underPointer.getChildrenIds().includes(item.getId()));
46502
- this.board.selection.add(itemsInFrame);
46501
+ const childrenIds = underPointer.getChildrenIds();
46502
+ if (childrenIds) {
46503
+ const itemsInFrame = this.board.items.getEnclosedOrCrossed(left, top, right, bottom).filter((item) => childrenIds.includes(item.getId()));
46504
+ this.board.selection.add(itemsInFrame);
46505
+ }
46503
46506
  }
46504
46507
  this.board.selection.setContext("EditUnderPointer");
46505
46508
  } else {
package/dist/cjs/node.js CHANGED
@@ -48971,8 +48971,11 @@ class Select extends Tool {
48971
48971
  this.board.selection.add(underPointer);
48972
48972
  if ("index" in underPointer && underPointer.index) {
48973
48973
  const { left, right, top, bottom } = underPointer.getMbr();
48974
- const itemsInFrame = this.board.items.getEnclosedOrCrossed(left, top, right, bottom).filter((item) => underPointer.getChildrenIds().includes(item.getId()));
48975
- this.board.selection.add(itemsInFrame);
48974
+ const childrenIds = underPointer.getChildrenIds();
48975
+ if (childrenIds) {
48976
+ const itemsInFrame = this.board.items.getEnclosedOrCrossed(left, top, right, bottom).filter((item) => childrenIds.includes(item.getId()));
48977
+ this.board.selection.add(itemsInFrame);
48978
+ }
48976
48979
  }
48977
48980
  this.board.selection.setContext("EditUnderPointer");
48978
48981
  } else {
@@ -46348,8 +46348,11 @@ class Select extends Tool {
46348
46348
  this.board.selection.add(underPointer);
46349
46349
  if ("index" in underPointer && underPointer.index) {
46350
46350
  const { left, right, top, bottom } = underPointer.getMbr();
46351
- const itemsInFrame = this.board.items.getEnclosedOrCrossed(left, top, right, bottom).filter((item) => underPointer.getChildrenIds().includes(item.getId()));
46352
- this.board.selection.add(itemsInFrame);
46351
+ const childrenIds = underPointer.getChildrenIds();
46352
+ if (childrenIds) {
46353
+ const itemsInFrame = this.board.items.getEnclosedOrCrossed(left, top, right, bottom).filter((item) => childrenIds.includes(item.getId()));
46354
+ this.board.selection.add(itemsInFrame);
46355
+ }
46353
46356
  }
46354
46357
  this.board.selection.setContext("EditUnderPointer");
46355
46358
  } else {
package/dist/esm/index.js CHANGED
@@ -46341,8 +46341,11 @@ class Select extends Tool {
46341
46341
  this.board.selection.add(underPointer);
46342
46342
  if ("index" in underPointer && underPointer.index) {
46343
46343
  const { left, right, top, bottom } = underPointer.getMbr();
46344
- const itemsInFrame = this.board.items.getEnclosedOrCrossed(left, top, right, bottom).filter((item) => underPointer.getChildrenIds().includes(item.getId()));
46345
- this.board.selection.add(itemsInFrame);
46344
+ const childrenIds = underPointer.getChildrenIds();
46345
+ if (childrenIds) {
46346
+ const itemsInFrame = this.board.items.getEnclosedOrCrossed(left, top, right, bottom).filter((item) => childrenIds.includes(item.getId()));
46347
+ this.board.selection.add(itemsInFrame);
46348
+ }
46346
46349
  }
46347
46350
  this.board.selection.setContext("EditUnderPointer");
46348
46351
  } else {
package/dist/esm/node.js CHANGED
@@ -48809,8 +48809,11 @@ class Select extends Tool {
48809
48809
  this.board.selection.add(underPointer);
48810
48810
  if ("index" in underPointer && underPointer.index) {
48811
48811
  const { left, right, top, bottom } = underPointer.getMbr();
48812
- const itemsInFrame = this.board.items.getEnclosedOrCrossed(left, top, right, bottom).filter((item) => underPointer.getChildrenIds().includes(item.getId()));
48813
- this.board.selection.add(itemsInFrame);
48812
+ const childrenIds = underPointer.getChildrenIds();
48813
+ if (childrenIds) {
48814
+ const itemsInFrame = this.board.items.getEnclosedOrCrossed(left, top, right, bottom).filter((item) => childrenIds.includes(item.getId()));
48815
+ this.board.selection.add(itemsInFrame);
48816
+ }
48814
48817
  }
48815
48818
  this.board.selection.setContext("EditUnderPointer");
48816
48819
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.4.46",
3
+ "version": "0.4.47",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",