microboard-temp 0.13.90 → 0.13.92

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.
@@ -13264,7 +13264,7 @@ var init_BaseItem = __esm(() => {
13264
13264
  }
13265
13265
  handleNesting(item, options) {
13266
13266
  const isItem = "itemType" in item;
13267
- const itemMbr = isItem ? item.getMbr() : item;
13267
+ const itemMbr = isItem ? item.getWorldMbr() : item;
13268
13268
  if (item instanceof BaseItem && !item.canBeNested) {
13269
13269
  return false;
13270
13270
  }
@@ -13272,7 +13272,7 @@ var init_BaseItem = __esm(() => {
13272
13272
  return false;
13273
13273
  }
13274
13274
  const mbr = this.getMbr().copy();
13275
- if (item.isEnclosedOrCrossedBy(mbr)) {
13275
+ if (itemMbr.isEnclosedOrCrossedBy(mbr)) {
13276
13276
  if (mbr.isInside(itemMbr.getCenter())) {
13277
13277
  if (!options || !options.onlyForOut) {
13278
13278
  return true;
@@ -74868,6 +74868,15 @@ class BoardSelection {
74868
74868
  }
74869
74869
  });
74870
74870
  });
74871
+ selected.forEach((item) => {
74872
+ const entry = selectedMap[item.getId()];
74873
+ if (!entry.nested && item.parent !== "Board") {
74874
+ const currentParent = this.board.items.getById(item.parent);
74875
+ if (currentParent?.index && currentParent.handleNesting(item)) {
74876
+ entry.nested = currentParent;
74877
+ }
74878
+ }
74879
+ });
74871
74880
  Object.values(selectedMap).forEach((val) => {
74872
74881
  const parentGroup = this.board.items.getById(val.item.parent);
74873
74882
  const parentGroupId = parentGroup?.getId();
package/dist/cjs/index.js CHANGED
@@ -13264,7 +13264,7 @@ var init_BaseItem = __esm(() => {
13264
13264
  }
13265
13265
  handleNesting(item, options) {
13266
13266
  const isItem = "itemType" in item;
13267
- const itemMbr = isItem ? item.getMbr() : item;
13267
+ const itemMbr = isItem ? item.getWorldMbr() : item;
13268
13268
  if (item instanceof BaseItem && !item.canBeNested) {
13269
13269
  return false;
13270
13270
  }
@@ -13272,7 +13272,7 @@ var init_BaseItem = __esm(() => {
13272
13272
  return false;
13273
13273
  }
13274
13274
  const mbr = this.getMbr().copy();
13275
- if (item.isEnclosedOrCrossedBy(mbr)) {
13275
+ if (itemMbr.isEnclosedOrCrossedBy(mbr)) {
13276
13276
  if (mbr.isInside(itemMbr.getCenter())) {
13277
13277
  if (!options || !options.onlyForOut) {
13278
13278
  return true;
@@ -74868,6 +74868,15 @@ class BoardSelection {
74868
74868
  }
74869
74869
  });
74870
74870
  });
74871
+ selected.forEach((item) => {
74872
+ const entry = selectedMap[item.getId()];
74873
+ if (!entry.nested && item.parent !== "Board") {
74874
+ const currentParent = this.board.items.getById(item.parent);
74875
+ if (currentParent?.index && currentParent.handleNesting(item)) {
74876
+ entry.nested = currentParent;
74877
+ }
74878
+ }
74879
+ });
74871
74880
  Object.values(selectedMap).forEach((val) => {
74872
74881
  const parentGroup = this.board.items.getById(val.item.parent);
74873
74882
  const parentGroupId = parentGroup?.getId();
package/dist/cjs/node.js CHANGED
@@ -13284,7 +13284,7 @@ var init_BaseItem = __esm(() => {
13284
13284
  }
13285
13285
  handleNesting(item, options) {
13286
13286
  const isItem = "itemType" in item;
13287
- const itemMbr = isItem ? item.getMbr() : item;
13287
+ const itemMbr = isItem ? item.getWorldMbr() : item;
13288
13288
  if (item instanceof BaseItem && !item.canBeNested) {
13289
13289
  return false;
13290
13290
  }
@@ -13292,7 +13292,7 @@ var init_BaseItem = __esm(() => {
13292
13292
  return false;
13293
13293
  }
13294
13294
  const mbr = this.getMbr().copy();
13295
- if (item.isEnclosedOrCrossedBy(mbr)) {
13295
+ if (itemMbr.isEnclosedOrCrossedBy(mbr)) {
13296
13296
  if (mbr.isInside(itemMbr.getCenter())) {
13297
13297
  if (!options || !options.onlyForOut) {
13298
13298
  return true;
@@ -77343,6 +77343,15 @@ class BoardSelection {
77343
77343
  }
77344
77344
  });
77345
77345
  });
77346
+ selected.forEach((item) => {
77347
+ const entry = selectedMap[item.getId()];
77348
+ if (!entry.nested && item.parent !== "Board") {
77349
+ const currentParent = this.board.items.getById(item.parent);
77350
+ if (currentParent?.index && currentParent.handleNesting(item)) {
77351
+ entry.nested = currentParent;
77352
+ }
77353
+ }
77354
+ });
77346
77355
  Object.values(selectedMap).forEach((val) => {
77347
77356
  const parentGroup = this.board.items.getById(val.item.parent);
77348
77357
  const parentGroupId = parentGroup?.getId();
@@ -13236,7 +13236,7 @@ var init_BaseItem = __esm(() => {
13236
13236
  }
13237
13237
  handleNesting(item, options) {
13238
13238
  const isItem = "itemType" in item;
13239
- const itemMbr = isItem ? item.getMbr() : item;
13239
+ const itemMbr = isItem ? item.getWorldMbr() : item;
13240
13240
  if (item instanceof BaseItem && !item.canBeNested) {
13241
13241
  return false;
13242
13242
  }
@@ -13244,7 +13244,7 @@ var init_BaseItem = __esm(() => {
13244
13244
  return false;
13245
13245
  }
13246
13246
  const mbr = this.getMbr().copy();
13247
- if (item.isEnclosedOrCrossedBy(mbr)) {
13247
+ if (itemMbr.isEnclosedOrCrossedBy(mbr)) {
13248
13248
  if (mbr.isInside(itemMbr.getCenter())) {
13249
13249
  if (!options || !options.onlyForOut) {
13250
13250
  return true;
@@ -74612,6 +74612,15 @@ class BoardSelection {
74612
74612
  }
74613
74613
  });
74614
74614
  });
74615
+ selected.forEach((item) => {
74616
+ const entry = selectedMap[item.getId()];
74617
+ if (!entry.nested && item.parent !== "Board") {
74618
+ const currentParent = this.board.items.getById(item.parent);
74619
+ if (currentParent?.index && currentParent.handleNesting(item)) {
74620
+ entry.nested = currentParent;
74621
+ }
74622
+ }
74623
+ });
74615
74624
  Object.values(selectedMap).forEach((val) => {
74616
74625
  const parentGroup = this.board.items.getById(val.item.parent);
74617
74626
  const parentGroupId = parentGroup?.getId();
package/dist/esm/index.js CHANGED
@@ -13229,7 +13229,7 @@ var init_BaseItem = __esm(() => {
13229
13229
  }
13230
13230
  handleNesting(item, options) {
13231
13231
  const isItem = "itemType" in item;
13232
- const itemMbr = isItem ? item.getMbr() : item;
13232
+ const itemMbr = isItem ? item.getWorldMbr() : item;
13233
13233
  if (item instanceof BaseItem && !item.canBeNested) {
13234
13234
  return false;
13235
13235
  }
@@ -13237,7 +13237,7 @@ var init_BaseItem = __esm(() => {
13237
13237
  return false;
13238
13238
  }
13239
13239
  const mbr = this.getMbr().copy();
13240
- if (item.isEnclosedOrCrossedBy(mbr)) {
13240
+ if (itemMbr.isEnclosedOrCrossedBy(mbr)) {
13241
13241
  if (mbr.isInside(itemMbr.getCenter())) {
13242
13242
  if (!options || !options.onlyForOut) {
13243
13243
  return true;
@@ -74605,6 +74605,15 @@ class BoardSelection {
74605
74605
  }
74606
74606
  });
74607
74607
  });
74608
+ selected.forEach((item) => {
74609
+ const entry = selectedMap[item.getId()];
74610
+ if (!entry.nested && item.parent !== "Board") {
74611
+ const currentParent = this.board.items.getById(item.parent);
74612
+ if (currentParent?.index && currentParent.handleNesting(item)) {
74613
+ entry.nested = currentParent;
74614
+ }
74615
+ }
74616
+ });
74608
74617
  Object.values(selectedMap).forEach((val) => {
74609
74618
  const parentGroup = this.board.items.getById(val.item.parent);
74610
74619
  const parentGroupId = parentGroup?.getId();
package/dist/esm/node.js CHANGED
@@ -13251,7 +13251,7 @@ var init_BaseItem = __esm(() => {
13251
13251
  }
13252
13252
  handleNesting(item, options) {
13253
13253
  const isItem = "itemType" in item;
13254
- const itemMbr = isItem ? item.getMbr() : item;
13254
+ const itemMbr = isItem ? item.getWorldMbr() : item;
13255
13255
  if (item instanceof BaseItem && !item.canBeNested) {
13256
13256
  return false;
13257
13257
  }
@@ -13259,7 +13259,7 @@ var init_BaseItem = __esm(() => {
13259
13259
  return false;
13260
13260
  }
13261
13261
  const mbr = this.getMbr().copy();
13262
- if (item.isEnclosedOrCrossedBy(mbr)) {
13262
+ if (itemMbr.isEnclosedOrCrossedBy(mbr)) {
13263
13263
  if (mbr.isInside(itemMbr.getCenter())) {
13264
13264
  if (!options || !options.onlyForOut) {
13265
13265
  return true;
@@ -77069,6 +77069,15 @@ class BoardSelection {
77069
77069
  }
77070
77070
  });
77071
77071
  });
77072
+ selected.forEach((item) => {
77073
+ const entry = selectedMap[item.getId()];
77074
+ if (!entry.nested && item.parent !== "Board") {
77075
+ const currentParent = this.board.items.getById(item.parent);
77076
+ if (currentParent?.index && currentParent.handleNesting(item)) {
77077
+ entry.nested = currentParent;
77078
+ }
77079
+ }
77080
+ });
77072
77081
  Object.values(selectedMap).forEach((val) => {
77073
77082
  const parentGroup = this.board.items.getById(val.item.parent);
77074
77083
  const parentGroupId = parentGroup?.getId();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.13.90",
3
+ "version": "0.13.92",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",