microboard-temp 0.13.81 → 0.13.82

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.
@@ -76275,7 +76275,7 @@ class Board {
76275
76275
  const groupsMap = new Map;
76276
76276
  arrayed.forEach((item) => {
76277
76277
  const itemCenter = item.getMbr().getCenter();
76278
- const groupItem = this.items.getGroupItemsInView().filter((groupItem2) => groupItem2.handleNesting(item)).reduce((acc, groupItem2) => {
76278
+ const groupItem = this.items.getGroupItemsInView().filter((groupItem2) => groupItem2 !== item).filter((groupItem2) => groupItem2.handleNesting(item)).reduce((acc, groupItem2) => {
76279
76279
  if (!acc || groupItem2.getDistanceToPoint(itemCenter) > acc.getDistanceToPoint(itemCenter)) {
76280
76280
  acc = groupItem2;
76281
76281
  }
package/dist/cjs/index.js CHANGED
@@ -76275,7 +76275,7 @@ class Board {
76275
76275
  const groupsMap = new Map;
76276
76276
  arrayed.forEach((item) => {
76277
76277
  const itemCenter = item.getMbr().getCenter();
76278
- const groupItem = this.items.getGroupItemsInView().filter((groupItem2) => groupItem2.handleNesting(item)).reduce((acc, groupItem2) => {
76278
+ const groupItem = this.items.getGroupItemsInView().filter((groupItem2) => groupItem2 !== item).filter((groupItem2) => groupItem2.handleNesting(item)).reduce((acc, groupItem2) => {
76279
76279
  if (!acc || groupItem2.getDistanceToPoint(itemCenter) > acc.getDistanceToPoint(itemCenter)) {
76280
76280
  acc = groupItem2;
76281
76281
  }
package/dist/cjs/node.js CHANGED
@@ -78750,7 +78750,7 @@ class Board {
78750
78750
  const groupsMap = new Map;
78751
78751
  arrayed.forEach((item) => {
78752
78752
  const itemCenter = item.getMbr().getCenter();
78753
- const groupItem = this.items.getGroupItemsInView().filter((groupItem2) => groupItem2.handleNesting(item)).reduce((acc, groupItem2) => {
78753
+ const groupItem = this.items.getGroupItemsInView().filter((groupItem2) => groupItem2 !== item).filter((groupItem2) => groupItem2.handleNesting(item)).reduce((acc, groupItem2) => {
78754
78754
  if (!acc || groupItem2.getDistanceToPoint(itemCenter) > acc.getDistanceToPoint(itemCenter)) {
78755
78755
  acc = groupItem2;
78756
78756
  }
@@ -76019,7 +76019,7 @@ class Board {
76019
76019
  const groupsMap = new Map;
76020
76020
  arrayed.forEach((item) => {
76021
76021
  const itemCenter = item.getMbr().getCenter();
76022
- const groupItem = this.items.getGroupItemsInView().filter((groupItem2) => groupItem2.handleNesting(item)).reduce((acc, groupItem2) => {
76022
+ const groupItem = this.items.getGroupItemsInView().filter((groupItem2) => groupItem2 !== item).filter((groupItem2) => groupItem2.handleNesting(item)).reduce((acc, groupItem2) => {
76023
76023
  if (!acc || groupItem2.getDistanceToPoint(itemCenter) > acc.getDistanceToPoint(itemCenter)) {
76024
76024
  acc = groupItem2;
76025
76025
  }
package/dist/esm/index.js CHANGED
@@ -76012,7 +76012,7 @@ class Board {
76012
76012
  const groupsMap = new Map;
76013
76013
  arrayed.forEach((item) => {
76014
76014
  const itemCenter = item.getMbr().getCenter();
76015
- const groupItem = this.items.getGroupItemsInView().filter((groupItem2) => groupItem2.handleNesting(item)).reduce((acc, groupItem2) => {
76015
+ const groupItem = this.items.getGroupItemsInView().filter((groupItem2) => groupItem2 !== item).filter((groupItem2) => groupItem2.handleNesting(item)).reduce((acc, groupItem2) => {
76016
76016
  if (!acc || groupItem2.getDistanceToPoint(itemCenter) > acc.getDistanceToPoint(itemCenter)) {
76017
76017
  acc = groupItem2;
76018
76018
  }
package/dist/esm/node.js CHANGED
@@ -78476,7 +78476,7 @@ class Board {
78476
78476
  const groupsMap = new Map;
78477
78477
  arrayed.forEach((item) => {
78478
78478
  const itemCenter = item.getMbr().getCenter();
78479
- const groupItem = this.items.getGroupItemsInView().filter((groupItem2) => groupItem2.handleNesting(item)).reduce((acc, groupItem2) => {
78479
+ const groupItem = this.items.getGroupItemsInView().filter((groupItem2) => groupItem2 !== item).filter((groupItem2) => groupItem2.handleNesting(item)).reduce((acc, groupItem2) => {
78480
78480
  if (!acc || groupItem2.getDistanceToPoint(itemCenter) > acc.getDistanceToPoint(itemCenter)) {
78481
78481
  acc = groupItem2;
78482
78482
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.13.81",
3
+ "version": "0.13.82",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",