microboard-temp 0.4.53 → 0.4.55
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.
- package/dist/cjs/browser.js +7 -19
- package/dist/cjs/index.js +7 -19
- package/dist/cjs/node.js +7 -19
- package/dist/esm/browser.js +7 -19
- package/dist/esm/index.js +7 -19
- package/dist/esm/node.js +7 -19
- package/dist/types/Items/Frame/Frame.d.ts +0 -4
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -20423,7 +20423,7 @@ class Container extends Mbr {
|
|
|
20423
20423
|
layer;
|
|
20424
20424
|
zIndex;
|
|
20425
20425
|
constructor(id, item, layer, zIndex) {
|
|
20426
|
-
const rect = item.
|
|
20426
|
+
const rect = item.getMbrWithChildren();
|
|
20427
20427
|
super(rect.left, rect.top, rect.right, rect.bottom);
|
|
20428
20428
|
this.id = id;
|
|
20429
20429
|
this.item = item;
|
|
@@ -20533,7 +20533,7 @@ class LayeredIndex {
|
|
|
20533
20533
|
if (!this.isT(container.item)) {
|
|
20534
20534
|
return;
|
|
20535
20535
|
}
|
|
20536
|
-
const bounds = container.item.
|
|
20536
|
+
const bounds = container.item.getMbrWithChildren();
|
|
20537
20537
|
this.remove(container.item);
|
|
20538
20538
|
const inBounds = this.getRectsEnclosedOrCrossedBy(bounds);
|
|
20539
20539
|
const containersInBounds = this.getContainersFromItems(inBounds);
|
|
@@ -20561,7 +20561,7 @@ class LayeredIndex {
|
|
|
20561
20561
|
if (!this.isT(container.item)) {
|
|
20562
20562
|
return;
|
|
20563
20563
|
}
|
|
20564
|
-
const bounds = container.item.
|
|
20564
|
+
const bounds = container.item.getMbrWithChildren();
|
|
20565
20565
|
this.remove(container.item);
|
|
20566
20566
|
const inBounds = this.getRectsEnclosedOrCrossedBy(bounds);
|
|
20567
20567
|
const containersInBounds = this.getContainersFromItems(inBounds);
|
|
@@ -20587,7 +20587,7 @@ class LayeredIndex {
|
|
|
20587
20587
|
}
|
|
20588
20588
|
insert(item) {
|
|
20589
20589
|
const toInsert = new Container(item.getId(), item, 0, this.getZIndex(item));
|
|
20590
|
-
const bounds = item.
|
|
20590
|
+
const bounds = item.getMbrWithChildren();
|
|
20591
20591
|
const inBounds = this.getRectsEnclosedOrCrossedBy(bounds);
|
|
20592
20592
|
if (inBounds.length === 0) {
|
|
20593
20593
|
return this.insertContainer(toInsert);
|
|
@@ -20730,9 +20730,9 @@ class SpatialIndex {
|
|
|
20730
20730
|
return;
|
|
20731
20731
|
}
|
|
20732
20732
|
if (this.Mbr.getWidth() === 0 && this.Mbr.getHeight() === 0) {
|
|
20733
|
-
this.Mbr = item.
|
|
20733
|
+
this.Mbr = item.getMbr().copy();
|
|
20734
20734
|
} else {
|
|
20735
|
-
this.Mbr.combine([item.
|
|
20735
|
+
this.Mbr.combine([item.getMbr()]);
|
|
20736
20736
|
}
|
|
20737
20737
|
item.subject.subscribe(this.change);
|
|
20738
20738
|
this.subject.publish(this.items);
|
|
@@ -21588,7 +21588,7 @@ class BaseItem extends Mbr {
|
|
|
21588
21588
|
if (!this.index) {
|
|
21589
21589
|
return this.getMbr();
|
|
21590
21590
|
}
|
|
21591
|
-
return this.getMbr().combine(this.index.
|
|
21591
|
+
return this.getMbr().combine(this.index.getMbr());
|
|
21592
21592
|
}
|
|
21593
21593
|
getPath() {
|
|
21594
21594
|
return new Path(this.getMbr().getLines());
|
|
@@ -40483,18 +40483,6 @@ class Frame2 extends BaseItem {
|
|
|
40483
40483
|
const nearest = this.getNearestEdgePointTo(point5);
|
|
40484
40484
|
return point5.getDistance(nearest);
|
|
40485
40485
|
}
|
|
40486
|
-
isUnderPoint(point5) {
|
|
40487
|
-
return this.path.isUnderPoint(point5);
|
|
40488
|
-
}
|
|
40489
|
-
isNearPoint(point5, distance) {
|
|
40490
|
-
return distance > this.getDistanceToPoint(point5);
|
|
40491
|
-
}
|
|
40492
|
-
isEnclosedOrCrossedBy(rect) {
|
|
40493
|
-
return this.path.isEnclosedOrCrossedBy(rect);
|
|
40494
|
-
}
|
|
40495
|
-
isEnclosedBy(rect) {
|
|
40496
|
-
return this.getMbr().isEnclosedBy(rect);
|
|
40497
|
-
}
|
|
40498
40486
|
isInView(rect) {
|
|
40499
40487
|
return this.isEnclosedOrCrossedBy(rect);
|
|
40500
40488
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -20423,7 +20423,7 @@ class Container extends Mbr {
|
|
|
20423
20423
|
layer;
|
|
20424
20424
|
zIndex;
|
|
20425
20425
|
constructor(id, item, layer, zIndex) {
|
|
20426
|
-
const rect = item.
|
|
20426
|
+
const rect = item.getMbrWithChildren();
|
|
20427
20427
|
super(rect.left, rect.top, rect.right, rect.bottom);
|
|
20428
20428
|
this.id = id;
|
|
20429
20429
|
this.item = item;
|
|
@@ -20533,7 +20533,7 @@ class LayeredIndex {
|
|
|
20533
20533
|
if (!this.isT(container.item)) {
|
|
20534
20534
|
return;
|
|
20535
20535
|
}
|
|
20536
|
-
const bounds = container.item.
|
|
20536
|
+
const bounds = container.item.getMbrWithChildren();
|
|
20537
20537
|
this.remove(container.item);
|
|
20538
20538
|
const inBounds = this.getRectsEnclosedOrCrossedBy(bounds);
|
|
20539
20539
|
const containersInBounds = this.getContainersFromItems(inBounds);
|
|
@@ -20561,7 +20561,7 @@ class LayeredIndex {
|
|
|
20561
20561
|
if (!this.isT(container.item)) {
|
|
20562
20562
|
return;
|
|
20563
20563
|
}
|
|
20564
|
-
const bounds = container.item.
|
|
20564
|
+
const bounds = container.item.getMbrWithChildren();
|
|
20565
20565
|
this.remove(container.item);
|
|
20566
20566
|
const inBounds = this.getRectsEnclosedOrCrossedBy(bounds);
|
|
20567
20567
|
const containersInBounds = this.getContainersFromItems(inBounds);
|
|
@@ -20587,7 +20587,7 @@ class LayeredIndex {
|
|
|
20587
20587
|
}
|
|
20588
20588
|
insert(item) {
|
|
20589
20589
|
const toInsert = new Container(item.getId(), item, 0, this.getZIndex(item));
|
|
20590
|
-
const bounds = item.
|
|
20590
|
+
const bounds = item.getMbrWithChildren();
|
|
20591
20591
|
const inBounds = this.getRectsEnclosedOrCrossedBy(bounds);
|
|
20592
20592
|
if (inBounds.length === 0) {
|
|
20593
20593
|
return this.insertContainer(toInsert);
|
|
@@ -20730,9 +20730,9 @@ class SpatialIndex {
|
|
|
20730
20730
|
return;
|
|
20731
20731
|
}
|
|
20732
20732
|
if (this.Mbr.getWidth() === 0 && this.Mbr.getHeight() === 0) {
|
|
20733
|
-
this.Mbr = item.
|
|
20733
|
+
this.Mbr = item.getMbr().copy();
|
|
20734
20734
|
} else {
|
|
20735
|
-
this.Mbr.combine([item.
|
|
20735
|
+
this.Mbr.combine([item.getMbr()]);
|
|
20736
20736
|
}
|
|
20737
20737
|
item.subject.subscribe(this.change);
|
|
20738
20738
|
this.subject.publish(this.items);
|
|
@@ -21588,7 +21588,7 @@ class BaseItem extends Mbr {
|
|
|
21588
21588
|
if (!this.index) {
|
|
21589
21589
|
return this.getMbr();
|
|
21590
21590
|
}
|
|
21591
|
-
return this.getMbr().combine(this.index.
|
|
21591
|
+
return this.getMbr().combine(this.index.getMbr());
|
|
21592
21592
|
}
|
|
21593
21593
|
getPath() {
|
|
21594
21594
|
return new Path(this.getMbr().getLines());
|
|
@@ -40483,18 +40483,6 @@ class Frame2 extends BaseItem {
|
|
|
40483
40483
|
const nearest = this.getNearestEdgePointTo(point5);
|
|
40484
40484
|
return point5.getDistance(nearest);
|
|
40485
40485
|
}
|
|
40486
|
-
isUnderPoint(point5) {
|
|
40487
|
-
return this.path.isUnderPoint(point5);
|
|
40488
|
-
}
|
|
40489
|
-
isNearPoint(point5, distance) {
|
|
40490
|
-
return distance > this.getDistanceToPoint(point5);
|
|
40491
|
-
}
|
|
40492
|
-
isEnclosedOrCrossedBy(rect) {
|
|
40493
|
-
return this.path.isEnclosedOrCrossedBy(rect);
|
|
40494
|
-
}
|
|
40495
|
-
isEnclosedBy(rect) {
|
|
40496
|
-
return this.getMbr().isEnclosedBy(rect);
|
|
40497
|
-
}
|
|
40498
40486
|
isInView(rect) {
|
|
40499
40487
|
return this.isEnclosedOrCrossedBy(rect);
|
|
40500
40488
|
}
|
package/dist/cjs/node.js
CHANGED
|
@@ -22895,7 +22895,7 @@ class Container extends Mbr {
|
|
|
22895
22895
|
layer;
|
|
22896
22896
|
zIndex;
|
|
22897
22897
|
constructor(id, item, layer, zIndex) {
|
|
22898
|
-
const rect = item.
|
|
22898
|
+
const rect = item.getMbrWithChildren();
|
|
22899
22899
|
super(rect.left, rect.top, rect.right, rect.bottom);
|
|
22900
22900
|
this.id = id;
|
|
22901
22901
|
this.item = item;
|
|
@@ -23005,7 +23005,7 @@ class LayeredIndex {
|
|
|
23005
23005
|
if (!this.isT(container.item)) {
|
|
23006
23006
|
return;
|
|
23007
23007
|
}
|
|
23008
|
-
const bounds = container.item.
|
|
23008
|
+
const bounds = container.item.getMbrWithChildren();
|
|
23009
23009
|
this.remove(container.item);
|
|
23010
23010
|
const inBounds = this.getRectsEnclosedOrCrossedBy(bounds);
|
|
23011
23011
|
const containersInBounds = this.getContainersFromItems(inBounds);
|
|
@@ -23033,7 +23033,7 @@ class LayeredIndex {
|
|
|
23033
23033
|
if (!this.isT(container.item)) {
|
|
23034
23034
|
return;
|
|
23035
23035
|
}
|
|
23036
|
-
const bounds = container.item.
|
|
23036
|
+
const bounds = container.item.getMbrWithChildren();
|
|
23037
23037
|
this.remove(container.item);
|
|
23038
23038
|
const inBounds = this.getRectsEnclosedOrCrossedBy(bounds);
|
|
23039
23039
|
const containersInBounds = this.getContainersFromItems(inBounds);
|
|
@@ -23059,7 +23059,7 @@ class LayeredIndex {
|
|
|
23059
23059
|
}
|
|
23060
23060
|
insert(item) {
|
|
23061
23061
|
const toInsert = new Container(item.getId(), item, 0, this.getZIndex(item));
|
|
23062
|
-
const bounds = item.
|
|
23062
|
+
const bounds = item.getMbrWithChildren();
|
|
23063
23063
|
const inBounds = this.getRectsEnclosedOrCrossedBy(bounds);
|
|
23064
23064
|
if (inBounds.length === 0) {
|
|
23065
23065
|
return this.insertContainer(toInsert);
|
|
@@ -23202,9 +23202,9 @@ class SpatialIndex {
|
|
|
23202
23202
|
return;
|
|
23203
23203
|
}
|
|
23204
23204
|
if (this.Mbr.getWidth() === 0 && this.Mbr.getHeight() === 0) {
|
|
23205
|
-
this.Mbr = item.
|
|
23205
|
+
this.Mbr = item.getMbr().copy();
|
|
23206
23206
|
} else {
|
|
23207
|
-
this.Mbr.combine([item.
|
|
23207
|
+
this.Mbr.combine([item.getMbr()]);
|
|
23208
23208
|
}
|
|
23209
23209
|
item.subject.subscribe(this.change);
|
|
23210
23210
|
this.subject.publish(this.items);
|
|
@@ -24060,7 +24060,7 @@ class BaseItem extends Mbr {
|
|
|
24060
24060
|
if (!this.index) {
|
|
24061
24061
|
return this.getMbr();
|
|
24062
24062
|
}
|
|
24063
|
-
return this.getMbr().combine(this.index.
|
|
24063
|
+
return this.getMbr().combine(this.index.getMbr());
|
|
24064
24064
|
}
|
|
24065
24065
|
getPath() {
|
|
24066
24066
|
return new Path(this.getMbr().getLines());
|
|
@@ -42956,18 +42956,6 @@ class Frame2 extends BaseItem {
|
|
|
42956
42956
|
const nearest = this.getNearestEdgePointTo(point5);
|
|
42957
42957
|
return point5.getDistance(nearest);
|
|
42958
42958
|
}
|
|
42959
|
-
isUnderPoint(point5) {
|
|
42960
|
-
return this.path.isUnderPoint(point5);
|
|
42961
|
-
}
|
|
42962
|
-
isNearPoint(point5, distance) {
|
|
42963
|
-
return distance > this.getDistanceToPoint(point5);
|
|
42964
|
-
}
|
|
42965
|
-
isEnclosedOrCrossedBy(rect) {
|
|
42966
|
-
return this.path.isEnclosedOrCrossedBy(rect);
|
|
42967
|
-
}
|
|
42968
|
-
isEnclosedBy(rect) {
|
|
42969
|
-
return this.getMbr().isEnclosedBy(rect);
|
|
42970
|
-
}
|
|
42971
42959
|
isInView(rect) {
|
|
42972
42960
|
return this.isEnclosedOrCrossedBy(rect);
|
|
42973
42961
|
}
|
package/dist/esm/browser.js
CHANGED
|
@@ -20273,7 +20273,7 @@ class Container extends Mbr {
|
|
|
20273
20273
|
layer;
|
|
20274
20274
|
zIndex;
|
|
20275
20275
|
constructor(id, item, layer, zIndex) {
|
|
20276
|
-
const rect = item.
|
|
20276
|
+
const rect = item.getMbrWithChildren();
|
|
20277
20277
|
super(rect.left, rect.top, rect.right, rect.bottom);
|
|
20278
20278
|
this.id = id;
|
|
20279
20279
|
this.item = item;
|
|
@@ -20383,7 +20383,7 @@ class LayeredIndex {
|
|
|
20383
20383
|
if (!this.isT(container.item)) {
|
|
20384
20384
|
return;
|
|
20385
20385
|
}
|
|
20386
|
-
const bounds = container.item.
|
|
20386
|
+
const bounds = container.item.getMbrWithChildren();
|
|
20387
20387
|
this.remove(container.item);
|
|
20388
20388
|
const inBounds = this.getRectsEnclosedOrCrossedBy(bounds);
|
|
20389
20389
|
const containersInBounds = this.getContainersFromItems(inBounds);
|
|
@@ -20411,7 +20411,7 @@ class LayeredIndex {
|
|
|
20411
20411
|
if (!this.isT(container.item)) {
|
|
20412
20412
|
return;
|
|
20413
20413
|
}
|
|
20414
|
-
const bounds = container.item.
|
|
20414
|
+
const bounds = container.item.getMbrWithChildren();
|
|
20415
20415
|
this.remove(container.item);
|
|
20416
20416
|
const inBounds = this.getRectsEnclosedOrCrossedBy(bounds);
|
|
20417
20417
|
const containersInBounds = this.getContainersFromItems(inBounds);
|
|
@@ -20437,7 +20437,7 @@ class LayeredIndex {
|
|
|
20437
20437
|
}
|
|
20438
20438
|
insert(item) {
|
|
20439
20439
|
const toInsert = new Container(item.getId(), item, 0, this.getZIndex(item));
|
|
20440
|
-
const bounds = item.
|
|
20440
|
+
const bounds = item.getMbrWithChildren();
|
|
20441
20441
|
const inBounds = this.getRectsEnclosedOrCrossedBy(bounds);
|
|
20442
20442
|
if (inBounds.length === 0) {
|
|
20443
20443
|
return this.insertContainer(toInsert);
|
|
@@ -20580,9 +20580,9 @@ class SpatialIndex {
|
|
|
20580
20580
|
return;
|
|
20581
20581
|
}
|
|
20582
20582
|
if (this.Mbr.getWidth() === 0 && this.Mbr.getHeight() === 0) {
|
|
20583
|
-
this.Mbr = item.
|
|
20583
|
+
this.Mbr = item.getMbr().copy();
|
|
20584
20584
|
} else {
|
|
20585
|
-
this.Mbr.combine([item.
|
|
20585
|
+
this.Mbr.combine([item.getMbr()]);
|
|
20586
20586
|
}
|
|
20587
20587
|
item.subject.subscribe(this.change);
|
|
20588
20588
|
this.subject.publish(this.items);
|
|
@@ -21438,7 +21438,7 @@ class BaseItem extends Mbr {
|
|
|
21438
21438
|
if (!this.index) {
|
|
21439
21439
|
return this.getMbr();
|
|
21440
21440
|
}
|
|
21441
|
-
return this.getMbr().combine(this.index.
|
|
21441
|
+
return this.getMbr().combine(this.index.getMbr());
|
|
21442
21442
|
}
|
|
21443
21443
|
getPath() {
|
|
21444
21444
|
return new Path(this.getMbr().getLines());
|
|
@@ -40333,18 +40333,6 @@ class Frame2 extends BaseItem {
|
|
|
40333
40333
|
const nearest = this.getNearestEdgePointTo(point5);
|
|
40334
40334
|
return point5.getDistance(nearest);
|
|
40335
40335
|
}
|
|
40336
|
-
isUnderPoint(point5) {
|
|
40337
|
-
return this.path.isUnderPoint(point5);
|
|
40338
|
-
}
|
|
40339
|
-
isNearPoint(point5, distance) {
|
|
40340
|
-
return distance > this.getDistanceToPoint(point5);
|
|
40341
|
-
}
|
|
40342
|
-
isEnclosedOrCrossedBy(rect) {
|
|
40343
|
-
return this.path.isEnclosedOrCrossedBy(rect);
|
|
40344
|
-
}
|
|
40345
|
-
isEnclosedBy(rect) {
|
|
40346
|
-
return this.getMbr().isEnclosedBy(rect);
|
|
40347
|
-
}
|
|
40348
40336
|
isInView(rect) {
|
|
40349
40337
|
return this.isEnclosedOrCrossedBy(rect);
|
|
40350
40338
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -20266,7 +20266,7 @@ class Container extends Mbr {
|
|
|
20266
20266
|
layer;
|
|
20267
20267
|
zIndex;
|
|
20268
20268
|
constructor(id, item, layer, zIndex) {
|
|
20269
|
-
const rect = item.
|
|
20269
|
+
const rect = item.getMbrWithChildren();
|
|
20270
20270
|
super(rect.left, rect.top, rect.right, rect.bottom);
|
|
20271
20271
|
this.id = id;
|
|
20272
20272
|
this.item = item;
|
|
@@ -20376,7 +20376,7 @@ class LayeredIndex {
|
|
|
20376
20376
|
if (!this.isT(container.item)) {
|
|
20377
20377
|
return;
|
|
20378
20378
|
}
|
|
20379
|
-
const bounds = container.item.
|
|
20379
|
+
const bounds = container.item.getMbrWithChildren();
|
|
20380
20380
|
this.remove(container.item);
|
|
20381
20381
|
const inBounds = this.getRectsEnclosedOrCrossedBy(bounds);
|
|
20382
20382
|
const containersInBounds = this.getContainersFromItems(inBounds);
|
|
@@ -20404,7 +20404,7 @@ class LayeredIndex {
|
|
|
20404
20404
|
if (!this.isT(container.item)) {
|
|
20405
20405
|
return;
|
|
20406
20406
|
}
|
|
20407
|
-
const bounds = container.item.
|
|
20407
|
+
const bounds = container.item.getMbrWithChildren();
|
|
20408
20408
|
this.remove(container.item);
|
|
20409
20409
|
const inBounds = this.getRectsEnclosedOrCrossedBy(bounds);
|
|
20410
20410
|
const containersInBounds = this.getContainersFromItems(inBounds);
|
|
@@ -20430,7 +20430,7 @@ class LayeredIndex {
|
|
|
20430
20430
|
}
|
|
20431
20431
|
insert(item) {
|
|
20432
20432
|
const toInsert = new Container(item.getId(), item, 0, this.getZIndex(item));
|
|
20433
|
-
const bounds = item.
|
|
20433
|
+
const bounds = item.getMbrWithChildren();
|
|
20434
20434
|
const inBounds = this.getRectsEnclosedOrCrossedBy(bounds);
|
|
20435
20435
|
if (inBounds.length === 0) {
|
|
20436
20436
|
return this.insertContainer(toInsert);
|
|
@@ -20573,9 +20573,9 @@ class SpatialIndex {
|
|
|
20573
20573
|
return;
|
|
20574
20574
|
}
|
|
20575
20575
|
if (this.Mbr.getWidth() === 0 && this.Mbr.getHeight() === 0) {
|
|
20576
|
-
this.Mbr = item.
|
|
20576
|
+
this.Mbr = item.getMbr().copy();
|
|
20577
20577
|
} else {
|
|
20578
|
-
this.Mbr.combine([item.
|
|
20578
|
+
this.Mbr.combine([item.getMbr()]);
|
|
20579
20579
|
}
|
|
20580
20580
|
item.subject.subscribe(this.change);
|
|
20581
20581
|
this.subject.publish(this.items);
|
|
@@ -21431,7 +21431,7 @@ class BaseItem extends Mbr {
|
|
|
21431
21431
|
if (!this.index) {
|
|
21432
21432
|
return this.getMbr();
|
|
21433
21433
|
}
|
|
21434
|
-
return this.getMbr().combine(this.index.
|
|
21434
|
+
return this.getMbr().combine(this.index.getMbr());
|
|
21435
21435
|
}
|
|
21436
21436
|
getPath() {
|
|
21437
21437
|
return new Path(this.getMbr().getLines());
|
|
@@ -40326,18 +40326,6 @@ class Frame2 extends BaseItem {
|
|
|
40326
40326
|
const nearest = this.getNearestEdgePointTo(point5);
|
|
40327
40327
|
return point5.getDistance(nearest);
|
|
40328
40328
|
}
|
|
40329
|
-
isUnderPoint(point5) {
|
|
40330
|
-
return this.path.isUnderPoint(point5);
|
|
40331
|
-
}
|
|
40332
|
-
isNearPoint(point5, distance) {
|
|
40333
|
-
return distance > this.getDistanceToPoint(point5);
|
|
40334
|
-
}
|
|
40335
|
-
isEnclosedOrCrossedBy(rect) {
|
|
40336
|
-
return this.path.isEnclosedOrCrossedBy(rect);
|
|
40337
|
-
}
|
|
40338
|
-
isEnclosedBy(rect) {
|
|
40339
|
-
return this.getMbr().isEnclosedBy(rect);
|
|
40340
|
-
}
|
|
40341
40329
|
isInView(rect) {
|
|
40342
40330
|
return this.isEnclosedOrCrossedBy(rect);
|
|
40343
40331
|
}
|
package/dist/esm/node.js
CHANGED
|
@@ -22733,7 +22733,7 @@ class Container extends Mbr {
|
|
|
22733
22733
|
layer;
|
|
22734
22734
|
zIndex;
|
|
22735
22735
|
constructor(id, item, layer, zIndex) {
|
|
22736
|
-
const rect = item.
|
|
22736
|
+
const rect = item.getMbrWithChildren();
|
|
22737
22737
|
super(rect.left, rect.top, rect.right, rect.bottom);
|
|
22738
22738
|
this.id = id;
|
|
22739
22739
|
this.item = item;
|
|
@@ -22843,7 +22843,7 @@ class LayeredIndex {
|
|
|
22843
22843
|
if (!this.isT(container.item)) {
|
|
22844
22844
|
return;
|
|
22845
22845
|
}
|
|
22846
|
-
const bounds = container.item.
|
|
22846
|
+
const bounds = container.item.getMbrWithChildren();
|
|
22847
22847
|
this.remove(container.item);
|
|
22848
22848
|
const inBounds = this.getRectsEnclosedOrCrossedBy(bounds);
|
|
22849
22849
|
const containersInBounds = this.getContainersFromItems(inBounds);
|
|
@@ -22871,7 +22871,7 @@ class LayeredIndex {
|
|
|
22871
22871
|
if (!this.isT(container.item)) {
|
|
22872
22872
|
return;
|
|
22873
22873
|
}
|
|
22874
|
-
const bounds = container.item.
|
|
22874
|
+
const bounds = container.item.getMbrWithChildren();
|
|
22875
22875
|
this.remove(container.item);
|
|
22876
22876
|
const inBounds = this.getRectsEnclosedOrCrossedBy(bounds);
|
|
22877
22877
|
const containersInBounds = this.getContainersFromItems(inBounds);
|
|
@@ -22897,7 +22897,7 @@ class LayeredIndex {
|
|
|
22897
22897
|
}
|
|
22898
22898
|
insert(item) {
|
|
22899
22899
|
const toInsert = new Container(item.getId(), item, 0, this.getZIndex(item));
|
|
22900
|
-
const bounds = item.
|
|
22900
|
+
const bounds = item.getMbrWithChildren();
|
|
22901
22901
|
const inBounds = this.getRectsEnclosedOrCrossedBy(bounds);
|
|
22902
22902
|
if (inBounds.length === 0) {
|
|
22903
22903
|
return this.insertContainer(toInsert);
|
|
@@ -23040,9 +23040,9 @@ class SpatialIndex {
|
|
|
23040
23040
|
return;
|
|
23041
23041
|
}
|
|
23042
23042
|
if (this.Mbr.getWidth() === 0 && this.Mbr.getHeight() === 0) {
|
|
23043
|
-
this.Mbr = item.
|
|
23043
|
+
this.Mbr = item.getMbr().copy();
|
|
23044
23044
|
} else {
|
|
23045
|
-
this.Mbr.combine([item.
|
|
23045
|
+
this.Mbr.combine([item.getMbr()]);
|
|
23046
23046
|
}
|
|
23047
23047
|
item.subject.subscribe(this.change);
|
|
23048
23048
|
this.subject.publish(this.items);
|
|
@@ -23898,7 +23898,7 @@ class BaseItem extends Mbr {
|
|
|
23898
23898
|
if (!this.index) {
|
|
23899
23899
|
return this.getMbr();
|
|
23900
23900
|
}
|
|
23901
|
-
return this.getMbr().combine(this.index.
|
|
23901
|
+
return this.getMbr().combine(this.index.getMbr());
|
|
23902
23902
|
}
|
|
23903
23903
|
getPath() {
|
|
23904
23904
|
return new Path(this.getMbr().getLines());
|
|
@@ -42794,18 +42794,6 @@ class Frame2 extends BaseItem {
|
|
|
42794
42794
|
const nearest = this.getNearestEdgePointTo(point5);
|
|
42795
42795
|
return point5.getDistance(nearest);
|
|
42796
42796
|
}
|
|
42797
|
-
isUnderPoint(point5) {
|
|
42798
|
-
return this.path.isUnderPoint(point5);
|
|
42799
|
-
}
|
|
42800
|
-
isNearPoint(point5, distance) {
|
|
42801
|
-
return distance > this.getDistanceToPoint(point5);
|
|
42802
|
-
}
|
|
42803
|
-
isEnclosedOrCrossedBy(rect) {
|
|
42804
|
-
return this.path.isEnclosedOrCrossedBy(rect);
|
|
42805
|
-
}
|
|
42806
|
-
isEnclosedBy(rect) {
|
|
42807
|
-
return this.getMbr().isEnclosedBy(rect);
|
|
42808
|
-
}
|
|
42809
42797
|
isInView(rect) {
|
|
42810
42798
|
return this.isEnclosedOrCrossedBy(rect);
|
|
42811
42799
|
}
|
|
@@ -82,10 +82,6 @@ export declare class Frame extends BaseItem {
|
|
|
82
82
|
emit(operation: FrameOperation): void;
|
|
83
83
|
getNearestEdgePointTo(point: Point): Point;
|
|
84
84
|
getDistanceToPoint(point: Point): number;
|
|
85
|
-
isUnderPoint(point: Point): boolean;
|
|
86
|
-
isNearPoint(point: Point, distance: number): boolean;
|
|
87
|
-
isEnclosedOrCrossedBy(rect: Mbr): boolean;
|
|
88
|
-
isEnclosedBy(rect: Mbr): boolean;
|
|
89
85
|
isInView(rect: Mbr): boolean;
|
|
90
86
|
getSnapAnchorPoints(): Point[];
|
|
91
87
|
getNormal(point: Point): GeometricNormal;
|