microboard-temp 0.10.0 → 0.10.2
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 +4 -1
- package/dist/cjs/index.js +4 -1
- package/dist/cjs/node.js +4 -1
- package/dist/esm/browser.js +4 -1
- package/dist/esm/index.js +4 -1
- package/dist/esm/node.js +4 -1
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -43867,8 +43867,11 @@ class ConnectorSnap {
|
|
|
43867
43867
|
pointerMove() {
|
|
43868
43868
|
this.setHover();
|
|
43869
43869
|
const nearest = this.getNearest();
|
|
43870
|
+
const underPointer = this.hover.item;
|
|
43870
43871
|
if (this.isNearBorder(nearest)) {
|
|
43871
43872
|
this.snap.item = nearest;
|
|
43873
|
+
} else if (underPointer && underPointer !== this.connector) {
|
|
43874
|
+
this.snap.item = underPointer;
|
|
43872
43875
|
} else {
|
|
43873
43876
|
this.snap.item = null;
|
|
43874
43877
|
}
|
|
@@ -43920,7 +43923,7 @@ class ConnectorSnap {
|
|
|
43920
43923
|
}
|
|
43921
43924
|
}
|
|
43922
43925
|
getNearest() {
|
|
43923
|
-
const neighbors = this.board.items.getNearPointer(this.distance.
|
|
43926
|
+
const neighbors = this.board.items.getNearPointer(this.distance.border / this.board.camera.getScale(), this.maxNeighbors);
|
|
43924
43927
|
const pointer = this.board.pointer.point;
|
|
43925
43928
|
let nearest = null;
|
|
43926
43929
|
let nearestDistance = Number.MAX_VALUE;
|
package/dist/cjs/index.js
CHANGED
|
@@ -43867,8 +43867,11 @@ class ConnectorSnap {
|
|
|
43867
43867
|
pointerMove() {
|
|
43868
43868
|
this.setHover();
|
|
43869
43869
|
const nearest = this.getNearest();
|
|
43870
|
+
const underPointer = this.hover.item;
|
|
43870
43871
|
if (this.isNearBorder(nearest)) {
|
|
43871
43872
|
this.snap.item = nearest;
|
|
43873
|
+
} else if (underPointer && underPointer !== this.connector) {
|
|
43874
|
+
this.snap.item = underPointer;
|
|
43872
43875
|
} else {
|
|
43873
43876
|
this.snap.item = null;
|
|
43874
43877
|
}
|
|
@@ -43920,7 +43923,7 @@ class ConnectorSnap {
|
|
|
43920
43923
|
}
|
|
43921
43924
|
}
|
|
43922
43925
|
getNearest() {
|
|
43923
|
-
const neighbors = this.board.items.getNearPointer(this.distance.
|
|
43926
|
+
const neighbors = this.board.items.getNearPointer(this.distance.border / this.board.camera.getScale(), this.maxNeighbors);
|
|
43924
43927
|
const pointer = this.board.pointer.point;
|
|
43925
43928
|
let nearest = null;
|
|
43926
43929
|
let nearestDistance = Number.MAX_VALUE;
|
package/dist/cjs/node.js
CHANGED
|
@@ -46340,8 +46340,11 @@ class ConnectorSnap {
|
|
|
46340
46340
|
pointerMove() {
|
|
46341
46341
|
this.setHover();
|
|
46342
46342
|
const nearest = this.getNearest();
|
|
46343
|
+
const underPointer = this.hover.item;
|
|
46343
46344
|
if (this.isNearBorder(nearest)) {
|
|
46344
46345
|
this.snap.item = nearest;
|
|
46346
|
+
} else if (underPointer && underPointer !== this.connector) {
|
|
46347
|
+
this.snap.item = underPointer;
|
|
46345
46348
|
} else {
|
|
46346
46349
|
this.snap.item = null;
|
|
46347
46350
|
}
|
|
@@ -46393,7 +46396,7 @@ class ConnectorSnap {
|
|
|
46393
46396
|
}
|
|
46394
46397
|
}
|
|
46395
46398
|
getNearest() {
|
|
46396
|
-
const neighbors = this.board.items.getNearPointer(this.distance.
|
|
46399
|
+
const neighbors = this.board.items.getNearPointer(this.distance.border / this.board.camera.getScale(), this.maxNeighbors);
|
|
46397
46400
|
const pointer = this.board.pointer.point;
|
|
46398
46401
|
let nearest = null;
|
|
46399
46402
|
let nearestDistance = Number.MAX_VALUE;
|
package/dist/esm/browser.js
CHANGED
|
@@ -43696,8 +43696,11 @@ class ConnectorSnap {
|
|
|
43696
43696
|
pointerMove() {
|
|
43697
43697
|
this.setHover();
|
|
43698
43698
|
const nearest = this.getNearest();
|
|
43699
|
+
const underPointer = this.hover.item;
|
|
43699
43700
|
if (this.isNearBorder(nearest)) {
|
|
43700
43701
|
this.snap.item = nearest;
|
|
43702
|
+
} else if (underPointer && underPointer !== this.connector) {
|
|
43703
|
+
this.snap.item = underPointer;
|
|
43701
43704
|
} else {
|
|
43702
43705
|
this.snap.item = null;
|
|
43703
43706
|
}
|
|
@@ -43749,7 +43752,7 @@ class ConnectorSnap {
|
|
|
43749
43752
|
}
|
|
43750
43753
|
}
|
|
43751
43754
|
getNearest() {
|
|
43752
|
-
const neighbors = this.board.items.getNearPointer(this.distance.
|
|
43755
|
+
const neighbors = this.board.items.getNearPointer(this.distance.border / this.board.camera.getScale(), this.maxNeighbors);
|
|
43753
43756
|
const pointer = this.board.pointer.point;
|
|
43754
43757
|
let nearest = null;
|
|
43755
43758
|
let nearestDistance = Number.MAX_VALUE;
|
package/dist/esm/index.js
CHANGED
|
@@ -43689,8 +43689,11 @@ class ConnectorSnap {
|
|
|
43689
43689
|
pointerMove() {
|
|
43690
43690
|
this.setHover();
|
|
43691
43691
|
const nearest = this.getNearest();
|
|
43692
|
+
const underPointer = this.hover.item;
|
|
43692
43693
|
if (this.isNearBorder(nearest)) {
|
|
43693
43694
|
this.snap.item = nearest;
|
|
43695
|
+
} else if (underPointer && underPointer !== this.connector) {
|
|
43696
|
+
this.snap.item = underPointer;
|
|
43694
43697
|
} else {
|
|
43695
43698
|
this.snap.item = null;
|
|
43696
43699
|
}
|
|
@@ -43742,7 +43745,7 @@ class ConnectorSnap {
|
|
|
43742
43745
|
}
|
|
43743
43746
|
}
|
|
43744
43747
|
getNearest() {
|
|
43745
|
-
const neighbors = this.board.items.getNearPointer(this.distance.
|
|
43748
|
+
const neighbors = this.board.items.getNearPointer(this.distance.border / this.board.camera.getScale(), this.maxNeighbors);
|
|
43746
43749
|
const pointer = this.board.pointer.point;
|
|
43747
43750
|
let nearest = null;
|
|
43748
43751
|
let nearestDistance = Number.MAX_VALUE;
|
package/dist/esm/node.js
CHANGED
|
@@ -46157,8 +46157,11 @@ class ConnectorSnap {
|
|
|
46157
46157
|
pointerMove() {
|
|
46158
46158
|
this.setHover();
|
|
46159
46159
|
const nearest = this.getNearest();
|
|
46160
|
+
const underPointer = this.hover.item;
|
|
46160
46161
|
if (this.isNearBorder(nearest)) {
|
|
46161
46162
|
this.snap.item = nearest;
|
|
46163
|
+
} else if (underPointer && underPointer !== this.connector) {
|
|
46164
|
+
this.snap.item = underPointer;
|
|
46162
46165
|
} else {
|
|
46163
46166
|
this.snap.item = null;
|
|
46164
46167
|
}
|
|
@@ -46210,7 +46213,7 @@ class ConnectorSnap {
|
|
|
46210
46213
|
}
|
|
46211
46214
|
}
|
|
46212
46215
|
getNearest() {
|
|
46213
|
-
const neighbors = this.board.items.getNearPointer(this.distance.
|
|
46216
|
+
const neighbors = this.board.items.getNearPointer(this.distance.border / this.board.camera.getScale(), this.maxNeighbors);
|
|
46214
46217
|
const pointer = this.board.pointer.point;
|
|
46215
46218
|
let nearest = null;
|
|
46216
46219
|
let nearestDistance = Number.MAX_VALUE;
|