microboard-temp 0.4.42 → 0.4.43

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.
@@ -20877,6 +20877,7 @@ class SpatialIndex {
20877
20877
  }
20878
20878
  });
20879
20879
  });
20880
+ console.log([...items, ...children]);
20880
20881
  return [...items, ...children];
20881
20882
  }
20882
20883
  getEnclosedOrCrossed(left, top, right, bottom) {
@@ -20891,6 +20892,7 @@ class SpatialIndex {
20891
20892
  }
20892
20893
  });
20893
20894
  });
20895
+ console.log([...items, ...children]);
20894
20896
  return [...items, ...children];
20895
20897
  }
20896
20898
  getUnderPoint(point3, tolerance = 5) {
@@ -20904,6 +20906,7 @@ class SpatialIndex {
20904
20906
  }
20905
20907
  });
20906
20908
  });
20909
+ console.log([...items, ...children]);
20907
20910
  return [...items, ...children];
20908
20911
  }
20909
20912
  getRectsEnclosedOrCrossed(left, top, right, bottom) {
@@ -20918,6 +20921,7 @@ class SpatialIndex {
20918
20921
  }
20919
20922
  });
20920
20923
  });
20924
+ console.log([...items, ...children]);
20921
20925
  return [...items, ...children];
20922
20926
  }
20923
20927
  getItemsEnclosedOrCrossed(left, top, right, bottom) {
@@ -20937,9 +20941,11 @@ class SpatialIndex {
20937
20941
  distance: point3.getDistance(item.getMbr().getCenter())
20938
20942
  })).filter(({ distance }) => distance <= maxDistance);
20939
20943
  withDistance.sort((a, b) => a.distance - b.distance);
20944
+ console.log(withDistance.slice(0, maxItems).map(({ item }) => item));
20940
20945
  return withDistance.slice(0, maxItems).map(({ item }) => item);
20941
20946
  }
20942
20947
  list() {
20948
+ console.log("list", this.getItemsWithIncludedChildren(this.itemsArray).concat());
20943
20949
  return this.getItemsWithIncludedChildren(this.itemsArray).concat();
20944
20950
  }
20945
20951
  getZIndex(item) {
@@ -21310,6 +21316,7 @@ class SimpleSpatialIndex {
21310
21316
  items.push(item);
21311
21317
  }
21312
21318
  });
21319
+ console.log("simple", items);
21313
21320
  return items;
21314
21321
  }
21315
21322
  getEnclosedOrCrossed(left, top, right, bottom) {
@@ -21320,6 +21327,7 @@ class SimpleSpatialIndex {
21320
21327
  items.push(item);
21321
21328
  }
21322
21329
  });
21330
+ console.log("simple", items);
21323
21331
  return items;
21324
21332
  }
21325
21333
  getUnderPoint(point3, tolerace = 5) {
@@ -21329,12 +21337,14 @@ class SimpleSpatialIndex {
21329
21337
  items.push(item);
21330
21338
  }
21331
21339
  });
21340
+ console.log("simple", items);
21332
21341
  return items;
21333
21342
  }
21334
21343
  getMbr() {
21335
21344
  return this.Mbr;
21336
21345
  }
21337
21346
  list() {
21347
+ console.log("simple list", this.itemsArray.concat());
21338
21348
  return this.itemsArray.concat();
21339
21349
  }
21340
21350
  getZIndex(item) {
package/dist/cjs/index.js CHANGED
@@ -20877,6 +20877,7 @@ class SpatialIndex {
20877
20877
  }
20878
20878
  });
20879
20879
  });
20880
+ console.log([...items, ...children]);
20880
20881
  return [...items, ...children];
20881
20882
  }
20882
20883
  getEnclosedOrCrossed(left, top, right, bottom) {
@@ -20891,6 +20892,7 @@ class SpatialIndex {
20891
20892
  }
20892
20893
  });
20893
20894
  });
20895
+ console.log([...items, ...children]);
20894
20896
  return [...items, ...children];
20895
20897
  }
20896
20898
  getUnderPoint(point3, tolerance = 5) {
@@ -20904,6 +20906,7 @@ class SpatialIndex {
20904
20906
  }
20905
20907
  });
20906
20908
  });
20909
+ console.log([...items, ...children]);
20907
20910
  return [...items, ...children];
20908
20911
  }
20909
20912
  getRectsEnclosedOrCrossed(left, top, right, bottom) {
@@ -20918,6 +20921,7 @@ class SpatialIndex {
20918
20921
  }
20919
20922
  });
20920
20923
  });
20924
+ console.log([...items, ...children]);
20921
20925
  return [...items, ...children];
20922
20926
  }
20923
20927
  getItemsEnclosedOrCrossed(left, top, right, bottom) {
@@ -20937,9 +20941,11 @@ class SpatialIndex {
20937
20941
  distance: point3.getDistance(item.getMbr().getCenter())
20938
20942
  })).filter(({ distance }) => distance <= maxDistance);
20939
20943
  withDistance.sort((a, b) => a.distance - b.distance);
20944
+ console.log(withDistance.slice(0, maxItems).map(({ item }) => item));
20940
20945
  return withDistance.slice(0, maxItems).map(({ item }) => item);
20941
20946
  }
20942
20947
  list() {
20948
+ console.log("list", this.getItemsWithIncludedChildren(this.itemsArray).concat());
20943
20949
  return this.getItemsWithIncludedChildren(this.itemsArray).concat();
20944
20950
  }
20945
20951
  getZIndex(item) {
@@ -21310,6 +21316,7 @@ class SimpleSpatialIndex {
21310
21316
  items.push(item);
21311
21317
  }
21312
21318
  });
21319
+ console.log("simple", items);
21313
21320
  return items;
21314
21321
  }
21315
21322
  getEnclosedOrCrossed(left, top, right, bottom) {
@@ -21320,6 +21327,7 @@ class SimpleSpatialIndex {
21320
21327
  items.push(item);
21321
21328
  }
21322
21329
  });
21330
+ console.log("simple", items);
21323
21331
  return items;
21324
21332
  }
21325
21333
  getUnderPoint(point3, tolerace = 5) {
@@ -21329,12 +21337,14 @@ class SimpleSpatialIndex {
21329
21337
  items.push(item);
21330
21338
  }
21331
21339
  });
21340
+ console.log("simple", items);
21332
21341
  return items;
21333
21342
  }
21334
21343
  getMbr() {
21335
21344
  return this.Mbr;
21336
21345
  }
21337
21346
  list() {
21347
+ console.log("simple list", this.itemsArray.concat());
21338
21348
  return this.itemsArray.concat();
21339
21349
  }
21340
21350
  getZIndex(item) {
package/dist/cjs/node.js CHANGED
@@ -23349,6 +23349,7 @@ class SpatialIndex {
23349
23349
  }
23350
23350
  });
23351
23351
  });
23352
+ console.log([...items, ...children]);
23352
23353
  return [...items, ...children];
23353
23354
  }
23354
23355
  getEnclosedOrCrossed(left, top, right, bottom) {
@@ -23363,6 +23364,7 @@ class SpatialIndex {
23363
23364
  }
23364
23365
  });
23365
23366
  });
23367
+ console.log([...items, ...children]);
23366
23368
  return [...items, ...children];
23367
23369
  }
23368
23370
  getUnderPoint(point3, tolerance = 5) {
@@ -23376,6 +23378,7 @@ class SpatialIndex {
23376
23378
  }
23377
23379
  });
23378
23380
  });
23381
+ console.log([...items, ...children]);
23379
23382
  return [...items, ...children];
23380
23383
  }
23381
23384
  getRectsEnclosedOrCrossed(left, top, right, bottom) {
@@ -23390,6 +23393,7 @@ class SpatialIndex {
23390
23393
  }
23391
23394
  });
23392
23395
  });
23396
+ console.log([...items, ...children]);
23393
23397
  return [...items, ...children];
23394
23398
  }
23395
23399
  getItemsEnclosedOrCrossed(left, top, right, bottom) {
@@ -23409,9 +23413,11 @@ class SpatialIndex {
23409
23413
  distance: point3.getDistance(item.getMbr().getCenter())
23410
23414
  })).filter(({ distance }) => distance <= maxDistance);
23411
23415
  withDistance.sort((a, b) => a.distance - b.distance);
23416
+ console.log(withDistance.slice(0, maxItems).map(({ item }) => item));
23412
23417
  return withDistance.slice(0, maxItems).map(({ item }) => item);
23413
23418
  }
23414
23419
  list() {
23420
+ console.log("list", this.getItemsWithIncludedChildren(this.itemsArray).concat());
23415
23421
  return this.getItemsWithIncludedChildren(this.itemsArray).concat();
23416
23422
  }
23417
23423
  getZIndex(item) {
@@ -23782,6 +23788,7 @@ class SimpleSpatialIndex {
23782
23788
  items.push(item);
23783
23789
  }
23784
23790
  });
23791
+ console.log("simple", items);
23785
23792
  return items;
23786
23793
  }
23787
23794
  getEnclosedOrCrossed(left, top, right, bottom) {
@@ -23792,6 +23799,7 @@ class SimpleSpatialIndex {
23792
23799
  items.push(item);
23793
23800
  }
23794
23801
  });
23802
+ console.log("simple", items);
23795
23803
  return items;
23796
23804
  }
23797
23805
  getUnderPoint(point3, tolerace = 5) {
@@ -23801,12 +23809,14 @@ class SimpleSpatialIndex {
23801
23809
  items.push(item);
23802
23810
  }
23803
23811
  });
23812
+ console.log("simple", items);
23804
23813
  return items;
23805
23814
  }
23806
23815
  getMbr() {
23807
23816
  return this.Mbr;
23808
23817
  }
23809
23818
  list() {
23819
+ console.log("simple list", this.itemsArray.concat());
23810
23820
  return this.itemsArray.concat();
23811
23821
  }
23812
23822
  getZIndex(item) {
@@ -20727,6 +20727,7 @@ class SpatialIndex {
20727
20727
  }
20728
20728
  });
20729
20729
  });
20730
+ console.log([...items, ...children]);
20730
20731
  return [...items, ...children];
20731
20732
  }
20732
20733
  getEnclosedOrCrossed(left, top, right, bottom) {
@@ -20741,6 +20742,7 @@ class SpatialIndex {
20741
20742
  }
20742
20743
  });
20743
20744
  });
20745
+ console.log([...items, ...children]);
20744
20746
  return [...items, ...children];
20745
20747
  }
20746
20748
  getUnderPoint(point3, tolerance = 5) {
@@ -20754,6 +20756,7 @@ class SpatialIndex {
20754
20756
  }
20755
20757
  });
20756
20758
  });
20759
+ console.log([...items, ...children]);
20757
20760
  return [...items, ...children];
20758
20761
  }
20759
20762
  getRectsEnclosedOrCrossed(left, top, right, bottom) {
@@ -20768,6 +20771,7 @@ class SpatialIndex {
20768
20771
  }
20769
20772
  });
20770
20773
  });
20774
+ console.log([...items, ...children]);
20771
20775
  return [...items, ...children];
20772
20776
  }
20773
20777
  getItemsEnclosedOrCrossed(left, top, right, bottom) {
@@ -20787,9 +20791,11 @@ class SpatialIndex {
20787
20791
  distance: point3.getDistance(item.getMbr().getCenter())
20788
20792
  })).filter(({ distance }) => distance <= maxDistance);
20789
20793
  withDistance.sort((a, b) => a.distance - b.distance);
20794
+ console.log(withDistance.slice(0, maxItems).map(({ item }) => item));
20790
20795
  return withDistance.slice(0, maxItems).map(({ item }) => item);
20791
20796
  }
20792
20797
  list() {
20798
+ console.log("list", this.getItemsWithIncludedChildren(this.itemsArray).concat());
20793
20799
  return this.getItemsWithIncludedChildren(this.itemsArray).concat();
20794
20800
  }
20795
20801
  getZIndex(item) {
@@ -21160,6 +21166,7 @@ class SimpleSpatialIndex {
21160
21166
  items.push(item);
21161
21167
  }
21162
21168
  });
21169
+ console.log("simple", items);
21163
21170
  return items;
21164
21171
  }
21165
21172
  getEnclosedOrCrossed(left, top, right, bottom) {
@@ -21170,6 +21177,7 @@ class SimpleSpatialIndex {
21170
21177
  items.push(item);
21171
21178
  }
21172
21179
  });
21180
+ console.log("simple", items);
21173
21181
  return items;
21174
21182
  }
21175
21183
  getUnderPoint(point3, tolerace = 5) {
@@ -21179,12 +21187,14 @@ class SimpleSpatialIndex {
21179
21187
  items.push(item);
21180
21188
  }
21181
21189
  });
21190
+ console.log("simple", items);
21182
21191
  return items;
21183
21192
  }
21184
21193
  getMbr() {
21185
21194
  return this.Mbr;
21186
21195
  }
21187
21196
  list() {
21197
+ console.log("simple list", this.itemsArray.concat());
21188
21198
  return this.itemsArray.concat();
21189
21199
  }
21190
21200
  getZIndex(item) {
package/dist/esm/index.js CHANGED
@@ -20720,6 +20720,7 @@ class SpatialIndex {
20720
20720
  }
20721
20721
  });
20722
20722
  });
20723
+ console.log([...items, ...children]);
20723
20724
  return [...items, ...children];
20724
20725
  }
20725
20726
  getEnclosedOrCrossed(left, top, right, bottom) {
@@ -20734,6 +20735,7 @@ class SpatialIndex {
20734
20735
  }
20735
20736
  });
20736
20737
  });
20738
+ console.log([...items, ...children]);
20737
20739
  return [...items, ...children];
20738
20740
  }
20739
20741
  getUnderPoint(point3, tolerance = 5) {
@@ -20747,6 +20749,7 @@ class SpatialIndex {
20747
20749
  }
20748
20750
  });
20749
20751
  });
20752
+ console.log([...items, ...children]);
20750
20753
  return [...items, ...children];
20751
20754
  }
20752
20755
  getRectsEnclosedOrCrossed(left, top, right, bottom) {
@@ -20761,6 +20764,7 @@ class SpatialIndex {
20761
20764
  }
20762
20765
  });
20763
20766
  });
20767
+ console.log([...items, ...children]);
20764
20768
  return [...items, ...children];
20765
20769
  }
20766
20770
  getItemsEnclosedOrCrossed(left, top, right, bottom) {
@@ -20780,9 +20784,11 @@ class SpatialIndex {
20780
20784
  distance: point3.getDistance(item.getMbr().getCenter())
20781
20785
  })).filter(({ distance }) => distance <= maxDistance);
20782
20786
  withDistance.sort((a, b) => a.distance - b.distance);
20787
+ console.log(withDistance.slice(0, maxItems).map(({ item }) => item));
20783
20788
  return withDistance.slice(0, maxItems).map(({ item }) => item);
20784
20789
  }
20785
20790
  list() {
20791
+ console.log("list", this.getItemsWithIncludedChildren(this.itemsArray).concat());
20786
20792
  return this.getItemsWithIncludedChildren(this.itemsArray).concat();
20787
20793
  }
20788
20794
  getZIndex(item) {
@@ -21153,6 +21159,7 @@ class SimpleSpatialIndex {
21153
21159
  items.push(item);
21154
21160
  }
21155
21161
  });
21162
+ console.log("simple", items);
21156
21163
  return items;
21157
21164
  }
21158
21165
  getEnclosedOrCrossed(left, top, right, bottom) {
@@ -21163,6 +21170,7 @@ class SimpleSpatialIndex {
21163
21170
  items.push(item);
21164
21171
  }
21165
21172
  });
21173
+ console.log("simple", items);
21166
21174
  return items;
21167
21175
  }
21168
21176
  getUnderPoint(point3, tolerace = 5) {
@@ -21172,12 +21180,14 @@ class SimpleSpatialIndex {
21172
21180
  items.push(item);
21173
21181
  }
21174
21182
  });
21183
+ console.log("simple", items);
21175
21184
  return items;
21176
21185
  }
21177
21186
  getMbr() {
21178
21187
  return this.Mbr;
21179
21188
  }
21180
21189
  list() {
21190
+ console.log("simple list", this.itemsArray.concat());
21181
21191
  return this.itemsArray.concat();
21182
21192
  }
21183
21193
  getZIndex(item) {
package/dist/esm/node.js CHANGED
@@ -23187,6 +23187,7 @@ class SpatialIndex {
23187
23187
  }
23188
23188
  });
23189
23189
  });
23190
+ console.log([...items, ...children]);
23190
23191
  return [...items, ...children];
23191
23192
  }
23192
23193
  getEnclosedOrCrossed(left, top, right, bottom) {
@@ -23201,6 +23202,7 @@ class SpatialIndex {
23201
23202
  }
23202
23203
  });
23203
23204
  });
23205
+ console.log([...items, ...children]);
23204
23206
  return [...items, ...children];
23205
23207
  }
23206
23208
  getUnderPoint(point3, tolerance = 5) {
@@ -23214,6 +23216,7 @@ class SpatialIndex {
23214
23216
  }
23215
23217
  });
23216
23218
  });
23219
+ console.log([...items, ...children]);
23217
23220
  return [...items, ...children];
23218
23221
  }
23219
23222
  getRectsEnclosedOrCrossed(left, top, right, bottom) {
@@ -23228,6 +23231,7 @@ class SpatialIndex {
23228
23231
  }
23229
23232
  });
23230
23233
  });
23234
+ console.log([...items, ...children]);
23231
23235
  return [...items, ...children];
23232
23236
  }
23233
23237
  getItemsEnclosedOrCrossed(left, top, right, bottom) {
@@ -23247,9 +23251,11 @@ class SpatialIndex {
23247
23251
  distance: point3.getDistance(item.getMbr().getCenter())
23248
23252
  })).filter(({ distance }) => distance <= maxDistance);
23249
23253
  withDistance.sort((a, b) => a.distance - b.distance);
23254
+ console.log(withDistance.slice(0, maxItems).map(({ item }) => item));
23250
23255
  return withDistance.slice(0, maxItems).map(({ item }) => item);
23251
23256
  }
23252
23257
  list() {
23258
+ console.log("list", this.getItemsWithIncludedChildren(this.itemsArray).concat());
23253
23259
  return this.getItemsWithIncludedChildren(this.itemsArray).concat();
23254
23260
  }
23255
23261
  getZIndex(item) {
@@ -23620,6 +23626,7 @@ class SimpleSpatialIndex {
23620
23626
  items.push(item);
23621
23627
  }
23622
23628
  });
23629
+ console.log("simple", items);
23623
23630
  return items;
23624
23631
  }
23625
23632
  getEnclosedOrCrossed(left, top, right, bottom) {
@@ -23630,6 +23637,7 @@ class SimpleSpatialIndex {
23630
23637
  items.push(item);
23631
23638
  }
23632
23639
  });
23640
+ console.log("simple", items);
23633
23641
  return items;
23634
23642
  }
23635
23643
  getUnderPoint(point3, tolerace = 5) {
@@ -23639,12 +23647,14 @@ class SimpleSpatialIndex {
23639
23647
  items.push(item);
23640
23648
  }
23641
23649
  });
23650
+ console.log("simple", items);
23642
23651
  return items;
23643
23652
  }
23644
23653
  getMbr() {
23645
23654
  return this.Mbr;
23646
23655
  }
23647
23656
  list() {
23657
+ console.log("simple list", this.itemsArray.concat());
23648
23658
  return this.itemsArray.concat();
23649
23659
  }
23650
23660
  getZIndex(item) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.4.42",
3
+ "version": "0.4.43",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",