three-render-objects 1.37.1 → 1.38.1
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Version 1.
|
|
1
|
+
// Version 1.38.1 three-render-objects - https://github.com/vasturiano/three-render-objects
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('three')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['three'], factory) :
|
|
@@ -77774,13 +77774,13 @@ var<${access}> ${name} : ${structName};`;
|
|
|
77774
77774
|
// Update tooltip and trigger onHover events
|
|
77775
77775
|
var topObject = null;
|
|
77776
77776
|
if (state.hoverDuringDrag || !state.isPointerDragging) {
|
|
77777
|
-
var intersects = this.intersectingObjects(state.pointerPos.x, state.pointerPos.y)
|
|
77778
|
-
return state.hoverFilter(d.object);
|
|
77779
|
-
});
|
|
77777
|
+
var intersects = this.intersectingObjects(state.pointerPos.x, state.pointerPos.y);
|
|
77780
77778
|
state.hoverOrderComparator && intersects.sort(function (a, b) {
|
|
77781
77779
|
return state.hoverOrderComparator(a.object, b.object);
|
|
77782
77780
|
});
|
|
77783
|
-
var topIntersect = intersects.
|
|
77781
|
+
var topIntersect = intersects.find(function (d) {
|
|
77782
|
+
return state.hoverFilter(d.object);
|
|
77783
|
+
}) || null;
|
|
77784
77784
|
topObject = topIntersect ? topIntersect.object : null;
|
|
77785
77785
|
state.intersection = topIntersect || null;
|
|
77786
77786
|
}
|